From a9d438968dce67b7eea0758c96ebc9ec79927eea Mon Sep 17 00:00:00 2001 From: Dav999 Date: Thu, 29 Feb 2024 03:20:55 +0100 Subject: [PATCH] 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`). --- desktop_version/src/Script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index d97fa9cf..b609c327 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -3547,7 +3547,7 @@ bool scriptclass::loadcustom(const std::string& t) }else if(words[0] == "reply"){ //For this version, terminal only 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 nti = ti>=0 ? ti : 1;