Remove confusing info in defscreen docstring

This commit is contained in:
oakes
2014-12-15 13:03:16 -05:00
parent 3bcab9b01d
commit 5b874400d4

View File

@@ -226,7 +226,6 @@ via the screen map.
entities))
; gesture functions
; Tip: use gesture-detector! to configure these functions
(defscreen my-screen
; the user dragged over the screen and lifted
:on-fling
@@ -323,21 +322,13 @@ via the screen map.
entities))
; ui input functions (for play-clj.ui)
; Tip: use click-listener! to configure these functions
(defscreen my-screen
; the ui entity was changed
; the ui entity was clicked or changed
:on-ui-changed
(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 (:actor screen)) ; the Actor - http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/Actor.html
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
:on-ui-enter
(fn [screen entities]
@@ -384,7 +375,6 @@ via the screen map.
entities))
; ui drag functions (for play-clj.ui)
; Tip: use drag-listener! to configure these functions
(defscreen my-screen
:on-ui-drag
(fn [screen entities]