Skip to content

Commit

Permalink
iPad script debugging help. Not sending speech update events if not n…
Browse files Browse the repository at this point in the history
…eeded when clearing speech.
  • Loading branch information
nwinter committed Oct 29, 2014
1 parent 60bf580 commit 4e931ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/scripts/ScriptManager.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = ScriptManager = class ScriptManager extends CocoClass
super(options)
@originalScripts = options.scripts
@session = options.session
@debugScripts = CocoView.getQueryVariable 'dev'
@debugScripts = application.isIPadApp or CocoView.getQueryVariable 'dev'
@initProperties()
@addScriptSubscriptions()
@beginTicking()
Expand Down Expand Up @@ -193,7 +193,7 @@ module.exports = ScriptManager = class ScriptManager extends CocoClass
for sprite in noteGroup.sprites
if sprite.move?
sprite.move.duration ?= DEFAULT_BOT_MOVE_DURATION
sprite.id ?= 'Captain Anya'
sprite.id ?= 'Hero Placeholder'
noteGroup.script ?= {}
noteGroup.script.yields ?= true
noteGroup.script.skippable ?= true
Expand Down
1 change: 1 addition & 0 deletions app/lib/surface/Lank.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ module.exports = Lank = class Lank extends CocoClass
@notifySpeechUpdated e

onClearDialogue: (e) ->
return unless @labels.dialogue?.text
@labels.dialogue?.setText null
@dialogueSoundInstance?.stop()
@notifySpeechUpdated {}
Expand Down

0 comments on commit 4e931ea

Please sign in to comment.