downsize too-big text
This commit is contained in:
@@ -86,6 +86,10 @@
|
|||||||
(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 this is downsizing everything:
|
||||||
|
(when (< 720 (+ dialogText.y dialogText.height))
|
||||||
|
(-= dialogText.size 6))
|
||||||
// show the speaker name
|
// show the speaker name
|
||||||
(unless speakerNameText
|
(unless speakerNameText
|
||||||
(set speakerNameText (new FlxText DIALOG_X DIALOG_Y DIALOG_WIDTH "" DIALOG_SIZE)))
|
(set speakerNameText (new FlxText DIALOG_X DIALOG_Y DIALOG_WIDTH "" DIALOG_SIZE)))
|
||||||
|
Reference in New Issue
Block a user