diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index a27408c6..99ceb2c3 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -47,6 +47,7 @@ scriptclass::scriptclass(void) add_default_colours(); textflipme = false; textcentertext = false; + textboxtimer = 0; textpad_left = 0; textpad_right = 0; textpadtowidth = 0; @@ -503,6 +504,7 @@ void scriptclass::run(void) textpad_left = 0; textpad_right = 0; textpadtowidth = 0; + textboxtimer = 0; translate_dialogue(); } @@ -669,6 +671,10 @@ void scriptclass::run(void) { game.backgroundtext = true; } + else if (words[0] == "textboxtimer") + { + textboxtimer = ss_toi(words[1]); + } else if (words[0] == "flipme") { textflipme = !textflipme; @@ -695,6 +701,11 @@ void scriptclass::run(void) } } + if (textboxtimer > 0) + { + graphics.textboxtimer(textboxtimer); + } + // Some textbox formatting that can be set by translations... if (textcentertext) { diff --git a/desktop_version/src/Script.h b/desktop_version/src/Script.h index 6f579cbc..1924fb41 100644 --- a/desktop_version/src/Script.h +++ b/desktop_version/src/Script.h @@ -122,6 +122,7 @@ public: char textcase; bool textbuttons; bool textlarge; + int textboxtimer; //Misc int i, j, k;