mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Add textboxtimer command
This commit is contained in:
parent
fb38668182
commit
6abb76238d
2 changed files with 12 additions and 0 deletions
|
@ -47,6 +47,7 @@ scriptclass::scriptclass(void)
|
||||||
add_default_colours();
|
add_default_colours();
|
||||||
textflipme = false;
|
textflipme = false;
|
||||||
textcentertext = false;
|
textcentertext = false;
|
||||||
|
textboxtimer = 0;
|
||||||
textpad_left = 0;
|
textpad_left = 0;
|
||||||
textpad_right = 0;
|
textpad_right = 0;
|
||||||
textpadtowidth = 0;
|
textpadtowidth = 0;
|
||||||
|
@ -503,6 +504,7 @@ void scriptclass::run(void)
|
||||||
textpad_left = 0;
|
textpad_left = 0;
|
||||||
textpad_right = 0;
|
textpad_right = 0;
|
||||||
textpadtowidth = 0;
|
textpadtowidth = 0;
|
||||||
|
textboxtimer = 0;
|
||||||
|
|
||||||
translate_dialogue();
|
translate_dialogue();
|
||||||
}
|
}
|
||||||
|
@ -669,6 +671,10 @@ void scriptclass::run(void)
|
||||||
{
|
{
|
||||||
game.backgroundtext = true;
|
game.backgroundtext = true;
|
||||||
}
|
}
|
||||||
|
else if (words[0] == "textboxtimer")
|
||||||
|
{
|
||||||
|
textboxtimer = ss_toi(words[1]);
|
||||||
|
}
|
||||||
else if (words[0] == "flipme")
|
else if (words[0] == "flipme")
|
||||||
{
|
{
|
||||||
textflipme = !textflipme;
|
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...
|
// Some textbox formatting that can be set by translations...
|
||||||
if (textcentertext)
|
if (textcentertext)
|
||||||
{
|
{
|
||||||
|
|
|
@ -122,6 +122,7 @@ public:
|
||||||
char textcase;
|
char textcase;
|
||||||
bool textbuttons;
|
bool textbuttons;
|
||||||
bool textlarge;
|
bool textlarge;
|
||||||
|
int textboxtimer;
|
||||||
|
|
||||||
//Misc
|
//Misc
|
||||||
int i, j, k;
|
int i, j, k;
|
||||||
|
|
Loading…
Reference in a new issue