Fix bug preventing some interop calls from working
This commit is contained in:
@@ -26,3 +26,30 @@
|
|||||||
|
|
||||||
; ui
|
; ui
|
||||||
|
|
||||||
|
(defmacro check-box!
|
||||||
|
[entity k & options]
|
||||||
|
`(utils/call! ^Checkbox (:object ~entity) ~k ~@options))
|
||||||
|
|
||||||
|
(defmacro image-button!
|
||||||
|
[entity k & options]
|
||||||
|
`(utils/call! ^ImageButton (:object ~entity) ~k ~@options))
|
||||||
|
|
||||||
|
(defmacro image-text-button!
|
||||||
|
[entity k & options]
|
||||||
|
`(utils/call! ^ImageTextButton (:object ~entity) ~k ~@options))
|
||||||
|
|
||||||
|
(defmacro label!
|
||||||
|
[entity k & options]
|
||||||
|
`(utils/call! ^Label (:object ~entity) ~k ~@options))
|
||||||
|
|
||||||
|
(defmacro text-button!
|
||||||
|
[entity k & options]
|
||||||
|
`(utils/call! ^TextButton (:object ~entity) ~k ~@options))
|
||||||
|
|
||||||
|
(defmacro text-field!
|
||||||
|
[entity k & options]
|
||||||
|
`(utils/call! ^TextField (:object ~entity) ~k ~@options))
|
||||||
|
|
||||||
|
(defmacro dialog!
|
||||||
|
[entity k & options]
|
||||||
|
`(utils/call! ^Dialog (:object ~entity) ~k ~@options))
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
(in-ns 'play-clj.core)
|
(in-ns 'play-clj.core)
|
||||||
|
|
||||||
(defmacro bitmap-font
|
|
||||||
[& options]
|
|
||||||
`(BitmapFont. ~@options))
|
|
||||||
|
|
||||||
(defmacro style
|
(defmacro style
|
||||||
[type & options]
|
[type & options]
|
||||||
`(~(symbol (str utils/gdx-package "scenes.scene2d.ui."
|
`(~(symbol (str utils/gdx-package "scenes.scene2d.ui."
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
(defmacro call!
|
(defmacro call!
|
||||||
[obj k & args]
|
[obj k & args]
|
||||||
`(~(key->method k) ~obj ~@(flatten args)))
|
`(~(key->method k) ~obj ~@args))
|
||||||
|
|
||||||
(defn calls!*
|
(defn calls!*
|
||||||
[[k v]]
|
[[k v]]
|
||||||
|
|||||||
Reference in New Issue
Block a user