fix all beta 2.3 bugs

This commit is contained in:
Michael 2017-04-29 10:52:10 -04:00
parent fc815c4869
commit 9916fafefc
4 changed files with 31 additions and 4 deletions

View file

@ -405,7 +405,6 @@ namespace ShiftOS.WinForms.Applications
RemoteGuid = "";
}
};
}
private void Terminal_FormClosing(object sender, FormClosingEventArgs e)
@ -425,10 +424,13 @@ namespace ShiftOS.WinForms.Applications
{
rtbterm.Select(rtbterm.TextLength, 0);
}
TerminalBackend.PrintPrompt();
}
new Thread(() =>
{
Thread.Sleep(1000);
TerminalBackend.PrintPrompt();
}).Start();
}
public void OnSkinLoad()

View file

@ -355,6 +355,7 @@
<Compile Include="ShiftOSConfigFile.cs" />
<Compile Include="SkinCommands.cs" />
<Compile Include="Stories\LegionStory.cs" />
<Compile Include="TestCommandsForUpgrades.cs" />
<Compile Include="Tools\ColorPickerDataBackend.cs" />
<Compile Include="Tools\ControlManager.cs" />
<Compile Include="Tools\DitheringEngine.cs" />

View file

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShiftOS.Engine;
namespace ShiftOS.WinForms
{
[Namespace("test")]
public static class TestCommandsForUpgrades
{
[ShiftoriumUpgrade("Test Command", 50, "This is a simple test command", null, "Test")]
[Command("simpletest")]
public static bool Simple()
{
return true;
}
}
}

View file

@ -445,7 +445,11 @@ namespace ShiftOS.Engine
{
public ShiftoriumUpgradeAttribute(string name, long cost, string desc, string dependencies, string category) : base(name.ToLower().Replace(" ", "_"))
{
Name = name;
Description = desc;
Dependencies = dependencies;
Cost = cost;
Category = category;
}
public string Name { get; private set; }