update to new waitForInput() scheme
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#7c92be0b91c33759575b3232c5625d218905c184" into hollywoo/0.0.0/github/7c92be0b91c33759575b3232c5625d218905c184
|
||||
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/7c92be0b91c33759575b3232c5625d218905c184"
|
||||
# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#1332b9b43d95ecce98a7c986cfc61e49b504fd53" into hollywoo/0.0.0/github/1332b9b43d95ecce98a7c986cfc61e49b504fd53
|
||||
# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/1332b9b43d95ecce98a7c986cfc61e49b504fd53"
|
||||
-lib kiss
|
||||
-lib kiss-tools
|
||||
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/7c92be0b91c33759575b3232c5625d218905c184/src/
|
||||
-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/1332b9b43d95ecce98a7c986cfc61e49b504fd53/src/
|
||||
-D hollywoo=0.0.0
|
||||
@@ -491,7 +491,7 @@
|
||||
|
||||
(hideTitleCard)
|
||||
(hideBlackScreen)
|
||||
(hideDialog)
|
||||
(_hideDialog)
|
||||
(hideLighting)
|
||||
|
||||
(when (and flxMovie.sceneKey (< 0 (Lambda.count flxMovie.scenes)))
|
||||
@@ -568,12 +568,11 @@
|
||||
(set nextCC null)
|
||||
(cc)))
|
||||
|
||||
(method :Void startWaitForInput [:Continuation cc]
|
||||
(method &public :Void _startWaitForInput [:Continuation cc]
|
||||
(set nextCC cc))
|
||||
|
||||
(method :Void stopWaitForInput [:Continuation cc]
|
||||
(when (= nextCC cc)
|
||||
(set nextCC null)))
|
||||
(method &public :Void _stopWaitForInput []
|
||||
(set nextCC null))
|
||||
|
||||
(var TITLE_Y 240)
|
||||
(var TITLE_SIZE 72)
|
||||
@@ -700,9 +699,8 @@
|
||||
(actor.playAnimation wryly)
|
||||
(actor.playAnimation "neutral")))
|
||||
|
||||
(method showDialog [:String speakerName :SpeechType<ActorFlxSprite> type :String wryly :String text :Continuation cc]
|
||||
(method &public _showDialog [:String speakerName :SpeechType<ActorFlxSprite> type :String wryly :String text :Continuation cc]
|
||||
// TODO handle text messages, wrylies, off-screen, from-phone, etc. via (case type)
|
||||
// TODO attribute on-screen dialogue to the character's stageposition
|
||||
|
||||
// TODO allow sounds for wrylies, like the dispatch click
|
||||
(localVar &mut :Float speakerNameX -1)
|
||||
@@ -716,7 +714,6 @@
|
||||
(superText.screenCenter)
|
||||
(set superText.y flxMovie.DIALOG_Y)
|
||||
(FlxG.state.add superText)
|
||||
(startWaitForInput cc)
|
||||
(return)))
|
||||
((OnScreen character)
|
||||
(set speakerNameX (+ character.actor.x (fHalf character.actor.width))))
|
||||
@@ -759,10 +756,9 @@
|
||||
(set dialogText.y flxMovie.DIALOG_Y))
|
||||
(set dialogText.size DIALOG_SIZE)
|
||||
(while (< FlxG.height (+ dialogText.y dialogText.height))
|
||||
(-= dialogText.size 6))
|
||||
(startWaitForInput cc))
|
||||
(-= dialogText.size 6)))
|
||||
|
||||
(method :Void hideDialog []
|
||||
(method &public :Void _hideDialog []
|
||||
(when dialogText
|
||||
(FlxG.state.remove dialogText)
|
||||
(set dialogText null))
|
||||
|
||||
@@ -104,7 +104,7 @@ CLEARCHARACTERS
|
||||
{
|
||||
(doFor preset PRESET_SCREEN_POSITIONS
|
||||
(addProp preset preset ->:Void {}))
|
||||
(director.startWaitForInput cc)
|
||||
(director._startWaitForInput cc)
|
||||
}
|
||||
|
||||
// TODO test credits
|
||||
|
||||
Reference in New Issue
Block a user