Add scroll-pane
This commit is contained in:
@@ -5,8 +5,9 @@
|
|||||||
[com.badlogic.gdx.graphics.g2d BitmapFont TextureRegion]
|
[com.badlogic.gdx.graphics.g2d BitmapFont TextureRegion]
|
||||||
[com.badlogic.gdx.scenes.scene2d Actor Stage]
|
[com.badlogic.gdx.scenes.scene2d Actor Stage]
|
||||||
[com.badlogic.gdx.scenes.scene2d.ui ButtonGroup CheckBox Dialog
|
[com.badlogic.gdx.scenes.scene2d.ui ButtonGroup CheckBox Dialog
|
||||||
HorizontalGroup Image ImageButton ImageTextButton Label SelectBox
|
HorizontalGroup Image ImageButton ImageTextButton Label ScrollPane
|
||||||
Skin Slider Table TextButton TextField VerticalGroup WidgetGroup]
|
SelectBox Skin Slider Table TextButton TextField VerticalGroup
|
||||||
|
WidgetGroup]
|
||||||
[com.badlogic.gdx.scenes.scene2d.utils ActorGestureListener Align
|
[com.badlogic.gdx.scenes.scene2d.utils ActorGestureListener Align
|
||||||
ChangeListener ClickListener DragListener FocusListener
|
ChangeListener ClickListener DragListener FocusListener
|
||||||
NinePatchDrawable SpriteDrawable TextureRegionDrawable
|
NinePatchDrawable SpriteDrawable TextureRegionDrawable
|
||||||
@@ -223,6 +224,20 @@
|
|||||||
[entity k & options]
|
[entity k & options]
|
||||||
`(u/call! ^Label (:object ~entity) ~k ~@options))
|
`(u/call! ^Label (:object ~entity) ~k ~@options))
|
||||||
|
|
||||||
|
(defn scroll-pane*
|
||||||
|
[child arg]
|
||||||
|
(u/create-entity (ScrollPane. (:object child) arg)))
|
||||||
|
|
||||||
|
(defmacro scroll-pane
|
||||||
|
[child arg & options]
|
||||||
|
`(let [entity# (scroll-pane* ~child ~arg)]
|
||||||
|
(u/calls! ^ScrollPane (:object entity#) ~@options)
|
||||||
|
entity#))
|
||||||
|
|
||||||
|
(defmacro scroll-pane!
|
||||||
|
[entity k & options]
|
||||||
|
`(u/call! ^ScrollPane (:object ~entity) ~k ~@options))
|
||||||
|
|
||||||
(defn select-box*
|
(defn select-box*
|
||||||
[items arg]
|
[items arg]
|
||||||
(u/create-entity (SelectBox. (into-array items) arg)))
|
(u/create-entity (SelectBox. (into-array items) arg)))
|
||||||
|
|||||||
Reference in New Issue
Block a user