Add nine-patch

This commit is contained in:
oakes
2014-01-24 21:54:17 -05:00
parent 9b808100ef
commit 73c4e0222f
4 changed files with 62 additions and 14 deletions

View File

@@ -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})