downsize too-big text

This commit is contained in:
2021-11-03 14:50:03 -04:00
parent 343e9d3330
commit ebbc0084eb

View File

@@ -86,6 +86,10 @@
(set dialogText (new FlxText DIALOG_X DIALOG_Y DIALOG_WIDTH "" DIALOG_SIZE)))
(currentState.add dialogText)
(set dialogText.text text)
// TODO actually clip the dialogue instead of sizing it down:
// TODO this is downsizing everything:
(when (< 720 (+ dialogText.y dialogText.height))
(-= dialogText.size 6))
// show the speaker name
(unless speakerNameText
(set speakerNameText (new FlxText DIALOG_X DIALOG_Y DIALOG_WIDTH "" DIALOG_SIZE)))