1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Change reply scripting command to player color

This is just a small visual fix to an inconsistency with textbox
colors in simplified scripting. The `reply` command is meant to be
used for the player, and always correctly positions it above the
player, while the `say` command may be used to generate a cyan textbox
that's positioned above a cyan non-player crewmate. However, the color
for both textboxes is always `cyan`, so the `reply` command doesn't use
the (normally identical) `player` color even though all its other
behavior (squeak, position) does. Now that customized textbox colors
were added in 2.4 (#910), it's a shame that this distinction isn't
made between `cyan` and `player`, so this change addresses that (before
we're stuck with levels that change `cyan` but not `player`).
This commit is contained in:
Dav999 2024-02-29 03:20:55 +01:00 committed by Misa Elizabeth Kai
parent 91e144736b
commit a9d438968d

View file

@ -3547,7 +3547,7 @@ bool scriptclass::loadcustom(const std::string& t)
}else if(words[0] == "reply"){ }else if(words[0] == "reply"){
//For this version, terminal only //For this version, terminal only
if(squeakmode==0) add("squeak(player)"); if(squeakmode==0) add("squeak(player)");
add("text(cyan,0,0,"+words[1]+")"); add("text(player,0,0,"+words[1]+")");
int ti=help.Int(words[1].c_str()); int ti=help.Int(words[1].c_str());
int nti = ti>=0 ? ti : 1; int nti = ti>=0 ? ti : 1;