aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/Commands.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-06 16:00:01 -0500
committerMichael <[email protected]>2017-02-06 16:00:01 -0500
commitaa9234c68130018f4ee3dbb40f54758536e9d101 (patch)
treef63c04e7d35bf18f088143c9fd9144e183450673 /ShiftOS_TheReturn/Commands.cs
parent481623e07418dd740e23df2a77a30f7ef272d618 (diff)
downloadshiftos_thereturn-aa9234c68130018f4ee3dbb40f54758536e9d101.tar.gz
shiftos_thereturn-aa9234c68130018f4ee3dbb40f54758536e9d101.tar.bz2
shiftos_thereturn-aa9234c68130018f4ee3dbb40f54758536e9d101.zip
Fix console forwarding with infoboxes
Diffstat (limited to 'ShiftOS_TheReturn/Commands.cs')
-rw-r--r--ShiftOS_TheReturn/Commands.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs
index 1976ce3..2e70151 100644
--- a/ShiftOS_TheReturn/Commands.cs
+++ b/ShiftOS_TheReturn/Commands.cs
@@ -67,9 +67,11 @@ namespace ShiftOS.Engine
public static bool ShowYesNo(Dictionary<string, object> args)
{
bool forwarding = TerminalBackend.IsForwardingConsoleWrites;
+ var fGuid = TerminalBackend.ForwardGUID;
Action<bool> callback = (result) =>
{
TerminalBackend.IsForwardingConsoleWrites = forwarding;
+ TerminalBackend.ForwardGUID = (forwarding == true) ? fGuid : null;
string resultFriendly = (result == true) ? "yes" : "no";
Console.WriteLine($"{SaveSystem.CurrentSave.Username} says {resultFriendly}.");
TerminalBackend.IsForwardingConsoleWrites = false;
@@ -88,9 +90,11 @@ namespace ShiftOS.Engine
public static bool ShowText(Dictionary<string, object> args)
{
bool forwarding = TerminalBackend.IsForwardingConsoleWrites;
+ var fGuid = TerminalBackend.ForwardGUID;
Action<string> callback = (result) =>
{
TerminalBackend.IsForwardingConsoleWrites = forwarding;
+ TerminalBackend.ForwardGUID = (forwarding == true) ? fGuid : null;
Console.WriteLine($"{SaveSystem.CurrentSave.Username} says \"{result}\".");
TerminalBackend.IsForwardingConsoleWrites = false;
};