Skip to content

Commit 405dc3c

Browse files
authored
Merge pull request #110 from Owen2k6/1.5
1.5.3
2 parents 3b91af6 + 5c718f6 commit 405dc3c

23 files changed

+1093
-985
lines changed

GoOS/BetterConsole/BetterConsole.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using GoOS.GUI;
66
using GoOS.Themes;
77
using GoGL.Graphics;
8+
using GoOS.GUI.Apps.Settings;
89
using static GoOS.Resources;
910

1011
/// <summary>
@@ -330,7 +331,7 @@ public static string ReadLine()
330331

331332
case ConsoleKeyEx.Enter:
332333
if (MenuOptions[selected] == MenuOptions[0])
333-
GoOS.ControlPanel.Launch();
334+
WindowManager.AddWindow(new Frame());
334335
else if (MenuOptions[selected] == MenuOptions[1])
335336
Power.Reboot();
336337
break;

GoOS/GUI/Apps/About.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public About()
2222
SetDock(WindowDock.Auto);
2323
// Paint the window.
2424
Contents.DrawImage(0, 0, Resources.abtbg, false);
25-
Contents.DrawString(10, 152, "GoOS "+Kernel.version, Resources.Font_1x, Color.White);
26-
Contents.DrawString(10, 164, "GoGL "+new GoGL.Info().getVersion(), Resources.Font_1x, Color.White);
27-
Contents.DrawString(10, 176, "GoCode "+GoCode.GoCode.Version, Resources.Font_1x, Color.White);
28-
Contents.DrawString(10, 188, "9xCode "+Interpreter.Version, Resources.Font_1x, Color.White);
25+
Contents.DrawString(10, 152, "GoOS " + Kernel.version, Resources.Font_1x, Color.White);
26+
Contents.DrawString(10, 164, "GoGL " + new GoGL.Info().getVersion(), Resources.Font_1x, Color.White);
27+
Contents.DrawString(10, 176, "GoCode " + GoCode.GoCode.Version, Resources.Font_1x, Color.White);
28+
Contents.DrawString(10, 188, "9xCode " + Interpreter.Version, Resources.Font_1x, Color.White);
2929
}
3030
}
3131
}

GoOS/GUI/Apps/GoStore/MainFrame.cs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class MainFrame : Window
1515
Button[] catagoryButtons;
1616
Button[] _repoFilesButtons;
1717
string[] Catagories;
18+
public static string Version = "1.0";
1819

1920
private int catagory = 0;
2021
private int page = 0;

GoOS/GUI/Apps/GoWeb/GoWebWindow.cs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace GoOS.GUI.Apps.GoWeb
88
{
99
public class GoWebWindow : Window
1010
{
11+
public static string Version = "0.1.0";
1112
readonly Input AddressBar;
1213

1314
readonly Button HomeButton;

GoOS/GUI/Apps/Settings/Frame.cs

+707
Large diffs are not rendered by default.

GoOS/GUI/Apps/StartMenu.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using IL2CPU.API.Attribs;
1111
using GoGL.Graphics;
1212
using GoGL.Hardware.GPU;
13+
using GoOS.GUI.Apps.Settings;
1314
using static GoOS.Resources;
1415

1516
namespace GoOS.GUI.Apps
@@ -115,8 +116,7 @@ private void AddSideButtons()
115116
});
116117
AddSideButton("Settings", () =>
117118
{
118-
WindowManager.AddWindow(new GTerm());
119-
ControlPanel.Launch();
119+
WindowManager.AddWindow(new Frame());
120120
Dispose();
121121
});
122122
AddSideButton("Paint", () =>

GoOS/GUI/Dialogue.cs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static Dialogue Show(string title, string message, List<DialogueButton> b
2929
{
3030
// TODO: finish overrides
3131

32+
Kernel.InfoSound();
3233
var dialogue = new Dialogue(title, message, buttons, icon);
3334
WindowManager.AddWindow(dialogue);
3435
WindowManager.Update();

GoOS/GUI/Window.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ internal void HandleMouseInput()
207207

208208
Dragging = false;
209209
}
210-
210+
211211
if (MouseManager.MouseState == MouseState.None && previousMouseState == MouseState.Right)
212212
{
213213
ShowContextMenu();
@@ -229,7 +229,7 @@ internal void HandleMouseInput()
229229
{
230230
wasDown = true;
231231
downOnControl = hoveredControl;
232-
232+
233233
HandleDown(new MouseEventArgs()
234234
{
235235
X = RelativeMouseX,
@@ -403,7 +403,7 @@ protected void ShowAboutDialog(string version)
403403
{
404404
Dialogue.Show(
405405
$"About {Title}",
406-
$"GoOS {Title} v{version}\n\nCopyright (c) "+Kernel.Copyright+ "Owen2k6\nAll rights reserved.",
406+
$"GoOS {Title} v{version}\n\nCopyright (c) " + Kernel.Copyright + "Owen2k6\nAll rights reserved.",
407407
null,
408408
heightOverride: 144);
409409
}

GoOS/GUI/WindowManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public static void Update()
352352
{
353353
GetWindowByType<StartMenu>().Dispose();
354354
}
355-
355+
356356
if (MouseManager.ScreenWidth != Canvas.Width || MouseManager.ScreenHeight != Canvas.Height)
357357
{
358358
MouseManager.ScreenWidth = Canvas.Width;

0 commit comments

Comments
 (0)