don't permanently size down dialog after one overflow
This commit is contained in:
@@ -80,17 +80,17 @@
|
|||||||
(unless dialogBox
|
(unless dialogBox
|
||||||
(set dialogBox (new FlxSprite DIALOG_X DIALOG_Y))
|
(set dialogBox (new FlxSprite DIALOG_X DIALOG_Y))
|
||||||
(dialogBox.makeGraphic DIALOG_WIDTH DIALOG_HEIGHT DIALOG_BOX_COLOR))
|
(dialogBox.makeGraphic DIALOG_WIDTH DIALOG_HEIGHT DIALOG_BOX_COLOR))
|
||||||
|
|
||||||
(currentState.add dialogBox)
|
(currentState.add dialogBox)
|
||||||
(dialogBox.revive)
|
(dialogBox.revive)
|
||||||
// show the dialog
|
// show the dialog
|
||||||
(unless dialogText
|
(unless dialogText
|
||||||
// TODO use FlxTypeText to reveal dialog gradually
|
|
||||||
(set dialogText (new FlxText DIALOG_X DIALOG_Y DIALOG_WIDTH "" DIALOG_SIZE)))
|
(set dialogText (new FlxText DIALOG_X DIALOG_Y DIALOG_WIDTH "" DIALOG_SIZE)))
|
||||||
(currentState.add dialogText)
|
(currentState.add dialogText)
|
||||||
(set dialogText.text text)
|
(set dialogText.text text)
|
||||||
// TODO actually clip the dialogue instead of sizing it down:
|
// TODO actually page through the dialog instead of sizing it down?
|
||||||
// TODO this is downsizing everything:
|
(set dialogText.size DIALOG_SIZE)
|
||||||
(when (< 720 (+ dialogText.y dialogText.height))
|
(while (< 720 (+ dialogText.y dialogText.height))
|
||||||
(-= dialogText.size 6))
|
(-= dialogText.size 6))
|
||||||
// show the speaker name
|
// show the speaker name
|
||||||
(unless speakerNameText
|
(unless speakerNameText
|
||||||
|
|||||||
Reference in New Issue
Block a user