diff options
| author | AShifter <[email protected]> | 2017-11-25 08:59:48 -0700 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-11-25 08:59:48 -0700 |
| commit | c81573594f509177214bbc9b64427c8aabdc30a6 (patch) | |
| tree | 0f16be1fffc1e1557adafbd1baa9ff7aa16a3381 /ShiftOS.Main/ShiftOS/Desktop.cs | |
| parent | 90b1bdca5f8f2bf634a0b83ed9b623843ada5661 (diff) | |
| download | shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.tar.gz shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.tar.bz2 shiftos-rewind-c81573594f509177214bbc9b64427c8aabdc30a6.zip | |
Add SaveSystem, FullScreen Terminal and stuff
Git had a horrible seizure and removed our repo but Alex-TIMEHACK helped
us get it back.
Diffstat (limited to 'ShiftOS.Main/ShiftOS/Desktop.cs')
| -rw-r--r-- | ShiftOS.Main/ShiftOS/Desktop.cs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ShiftOS.Main/ShiftOS/Desktop.cs b/ShiftOS.Main/ShiftOS/Desktop.cs index 7d1a052..64dafdc 100644 --- a/ShiftOS.Main/ShiftOS/Desktop.cs +++ b/ShiftOS.Main/ShiftOS/Desktop.cs @@ -5,24 +5,28 @@ using ShiftOS.Main.Properties; using ShiftOS.Main.ShiftOS.Apps; using System.IO; using ShiftOS.Engine; +using System.Drawing; +using ShiftOS.Engine.UI; namespace ShiftOS.Main.ShiftOS { // testing github because git hates me public partial class Desktop : Form { - public Desktop() + Graphics g; + public Desktop() { InitializeComponent(); timer1.Start(); - Setup(); Closed += (sender, args) => { Application.Exit(); }; - } + var s = new ShiftStripRenderer(); + + } private void shifterToolStripMenuItem_Click(object sender, EventArgs e) { Apps.ShifterStuff.Shifter app = new Apps.ShifterStuff.Shifter(); - ShiftWM.Init(app, "Shifter", null); + ShiftWM.Init(app, "Shifter", Resources.iconShifter); } private void Desktop_Load(object sender, EventArgs e) @@ -53,11 +57,11 @@ namespace ShiftOS.Main.ShiftOS { lblClock.Text = DateTime.Now.ToString("hh:mm:ss"); } - public void Setup() + + private void SetupToolStrip(ToolStripRenderEventArgs e, Graphics g) { - if (!Directory.Exists(SaveSystem.gameDir)) Directory.CreateDirectory(SaveSystem.gameDir); - if (!Directory.Exists(SaveSystem.fontDir)) Directory.CreateDirectory(SaveSystem.fontDir); - if (!File.Exists(SaveSystem.fontDir + "\\termFont.ttf")) File.WriteAllBytes(SaveSystem.fontDir + "\\termFont.ttf", Resources.UbuntuMono_R); + var s = new ShiftStripRenderer(); + s.DrawToolStripBackground(e); } } } |
