mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Make Violet's button dialogue work in cutscene test
This was easier than I expected - just add an optional buttons="1" attribute to cutscenes.xml. It's treated like the speaker attribute - it's only there as context for the translator, and for the cutscene test.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
bc156137d8
commit
65d9d9a0d8
@@ -3608,8 +3608,12 @@ void scriptclass::loadalts(const std::string& processed, const std::string& raw)
|
||||
}
|
||||
}
|
||||
|
||||
void scriptclass::add_test_line(const std::string& speaker, const std::string& english, char textcase)
|
||||
{
|
||||
void scriptclass::add_test_line(
|
||||
const std::string& speaker,
|
||||
const std::string& english,
|
||||
const char textcase,
|
||||
const bool textbuttons
|
||||
) {
|
||||
if (speaker == "gray")
|
||||
{
|
||||
add("squeak(terminal)");
|
||||
@@ -3622,6 +3626,10 @@ void scriptclass::add_test_line(const std::string& speaker, const std::string& e
|
||||
add("text("+speaker+",0,0,1)");
|
||||
add(english);
|
||||
add("position(center)");
|
||||
if (textbuttons)
|
||||
{
|
||||
add("textbuttons()");
|
||||
}
|
||||
add("speak_active");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user