Remove confusing info in defscreen docstring
This commit is contained in:
@@ -226,7 +226,6 @@ via the screen map.
|
|||||||
entities))
|
entities))
|
||||||
|
|
||||||
; gesture functions
|
; gesture functions
|
||||||
; Tip: use gesture-detector! to configure these functions
|
|
||||||
(defscreen my-screen
|
(defscreen my-screen
|
||||||
; the user dragged over the screen and lifted
|
; the user dragged over the screen and lifted
|
||||||
:on-fling
|
:on-fling
|
||||||
@@ -323,21 +322,13 @@ via the screen map.
|
|||||||
entities))
|
entities))
|
||||||
|
|
||||||
; ui input functions (for play-clj.ui)
|
; ui input functions (for play-clj.ui)
|
||||||
; Tip: use click-listener! to configure these functions
|
|
||||||
(defscreen my-screen
|
(defscreen my-screen
|
||||||
; the ui entity was changed
|
; the ui entity was clicked or changed
|
||||||
:on-ui-changed
|
:on-ui-changed
|
||||||
(fn [screen entities]
|
(fn [screen entities]
|
||||||
(println (:event screen)) ; the ChangeListener.ChangeEvent - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/ChangeListener.ChangeEvent.html
|
(println (:event screen)) ; the ChangeListener.ChangeEvent - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/ChangeListener.ChangeEvent.html
|
||||||
(println (:actor screen)) ; the Actor - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/Actor.html
|
(println (:actor screen)) ; the Actor - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/Actor.html
|
||||||
entities)
|
entities)
|
||||||
; the ui entity was clicked
|
|
||||||
:on-ui-clicked
|
|
||||||
(fn [screen entities]
|
|
||||||
(println (:event screen)) ; the InputEvent - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/InputEvent.html
|
|
||||||
(println (:input-x screen)) ; the x position of the finger/mouse
|
|
||||||
(println (:input-y screen)) ; the y position of the finger/mouse
|
|
||||||
entities)
|
|
||||||
; the finger/mouse moved over the ui entity
|
; the finger/mouse moved over the ui entity
|
||||||
:on-ui-enter
|
:on-ui-enter
|
||||||
(fn [screen entities]
|
(fn [screen entities]
|
||||||
@@ -384,7 +375,6 @@ via the screen map.
|
|||||||
entities))
|
entities))
|
||||||
|
|
||||||
; ui drag functions (for play-clj.ui)
|
; ui drag functions (for play-clj.ui)
|
||||||
; Tip: use drag-listener! to configure these functions
|
|
||||||
(defscreen my-screen
|
(defscreen my-screen
|
||||||
:on-ui-drag
|
:on-ui-drag
|
||||||
(fn [screen entities]
|
(fn [screen entities]
|
||||||
|
|||||||
Reference in New Issue
Block a user