Add nine-patch
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
(ns play-clj.utils
|
||||
(:require [clojure.string :as s])
|
||||
(:import [com.badlogic.gdx.graphics.g2d TextureRegion]
|
||||
(:import [com.badlogic.gdx.graphics.g2d NinePatch TextureRegion]
|
||||
[com.badlogic.gdx.scenes.scene2d Actor]
|
||||
[com.badlogic.gdx.utils Array ArrayMap]))
|
||||
|
||||
@@ -193,6 +193,10 @@ new object to be created each time a field is set)
|
||||
[obj]
|
||||
{:type :texture :object obj})
|
||||
|
||||
(defmethod create-entity NinePatch
|
||||
[obj]
|
||||
{:type :nine-patch :object obj})
|
||||
|
||||
(defmethod create-entity Actor
|
||||
[obj]
|
||||
{:type :actor :object obj})
|
||||
|
||||
Reference in New Issue
Block a user