mobile prep

This commit is contained in:
Bryce Covert
2016-07-21 19:48:54 -07:00
parent d0fb4736aa
commit 973f452641
10 changed files with 27 additions and 28 deletions

View File

@@ -881,7 +881,7 @@ void main ()
last)
(= active was-active))
(let [image-path (if active "cursor_light.png" "cursor.png")]
(input! :set-cursor-image (utils/cursor image-path (or (:cursor new-current) new-current)) 0 0)))
(graphics! :set-cursor (utils/cursor image-path (or (:cursor new-current) new-current)))))
(update-in entities [:cursor ] assoc :last new-current
:was-active active))
entities))
@@ -1204,7 +1204,7 @@ void main ()
:on-resume (fn [screen [{{:keys [current override last active was-active]} :cursor :as entities}]]
(let [current (or override current)
image-path (if active "cursor_light.png" "cursor.png")]
(input! :set-cursor-image (utils/cursor image-path (or (:cursor current) current)) 0 0))
(graphics! :set-cursor (utils/cursor image-path (or (:cursor current) current))))
(doseq [[k [start time fn]] (get-in entities [:room :timers])]
(add-timer! screen k start time)))
@@ -1384,7 +1384,7 @@ void main ()
(when-not (or (get-in entities [:tweens :fade-out])
(get-in entities [:tweens :fade-in]))
(input! :set-cursor-image (utils/cursor "cursor.png" :hourglass) 0 0)
(graphics! :set-cursor (utils/cursor "cursor.png" :hourglass))
(-> entities
(assoc-in [:closing? :value] true)
(assoc-in [:tweens :fade-out-music]