aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/ShiftOS.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-03 22:03:58 -0400
committerMichael <[email protected]>2017-07-03 22:03:58 -0400
commitd23c5cc29dc47537d1cf6069f27009750fd80919 (patch)
tree971c8db7c7ef08c5efa1d867b98bfc01b2096f97 /ShiftOS.Frontend/ShiftOS.cs
parent23e622ffc37fa7b2f5c21378b60912af46289575 (diff)
downloadshiftos_thereturn-d23c5cc29dc47537d1cf6069f27009750fd80919.tar.gz
shiftos_thereturn-d23c5cc29dc47537d1cf6069f27009750fd80919.tar.bz2
shiftos_thereturn-d23c5cc29dc47537d1cf6069f27009750fd80919.zip
HELP ME. I can't get autoscroll working in terminall.
Diffstat (limited to 'ShiftOS.Frontend/ShiftOS.cs')
-rw-r--r--ShiftOS.Frontend/ShiftOS.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/ShiftOS.Frontend/ShiftOS.cs b/ShiftOS.Frontend/ShiftOS.cs
index 833ee59..fd3d784 100644
--- a/ShiftOS.Frontend/ShiftOS.cs
+++ b/ShiftOS.Frontend/ShiftOS.cs
@@ -113,10 +113,15 @@ Reflection manager found {ReflectMan.Types.Count()} Common Language Runtime type
statslabel.Layout();
};
+ TerminalBackend.TerminalRequested += () =>
+ {
+ AppearanceManager.SetupWindow(new Apps.Terminal());
+ };
+
//We'll use sandbox mode
- SaveSystem.IsSandbox = true;
+ SaveSystem.IsSandbox = false;
- SaveSystem.Begin();
+ SaveSystem.Begin(true);
var textinput = new GUI.TextInput();
textinput.Width = 250;
@@ -174,6 +179,12 @@ Reflection manager found {ReflectMan.Types.Count()} Common Language Runtime type
/// <param name="gameTime">Provides a snapshot of timing values.</param>
protected override void Update(GameTime gameTime)
{
+ if (UIManager.CrossThreadOperations.Count > 0)
+ {
+ var action = UIManager.CrossThreadOperations.Dequeue();
+ action?.Invoke();
+ }
+
//Let's get the mouse state
var mouseState = Mouse.GetState(this.Window);