From 5650ea4f4a10c7b029ea4d68f1dc9cfa2527d134 Mon Sep 17 00:00:00 2001 From: oakes Date: Tue, 21 Jan 2014 19:24:15 -0500 Subject: [PATCH] Fix drawable --- src/play_clj/ui.clj | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/play_clj/ui.clj b/src/play_clj/ui.clj index 9f805c8..e0a9d58 100644 --- a/src/play_clj/ui.clj +++ b/src/play_clj/ui.clj @@ -14,14 +14,16 @@ [com.esotericsoftware.tablelayout Cell])) (defmacro drawable - "Internal use only" + "Returns a subclass of [BaseDrawable](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/BaseDrawable.html) + + (drawable :texture-region)" [k & options] - `(~(symbol (str u/main-package ".scenes.scene2d.ui." + `(~(symbol (str u/main-package ".scenes.scene2d.utils." (u/key->pascal k) "Drawable.")) ~@options)) (defmacro style - "Returns a style object based on the keyword `k` + "Returns a style object whose class is determined by the keyword `k` (style :check-box)" [k & options]