From 45ed8faac0588802f3b04a39ba29393988247afb Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 23 Feb 2017 17:09:20 -0500 Subject: [PATCH] RGB 1,0,1 for desktop panel and applauncher BGs --- ShiftOS.WinForms/Applications/MUDControlCentre.cs | 7 +++++++ ShiftOS.WinForms/WinformsDesktop.cs | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ShiftOS.WinForms/Applications/MUDControlCentre.cs b/ShiftOS.WinForms/Applications/MUDControlCentre.cs index 0d67776..6426562 100644 --- a/ShiftOS.WinForms/Applications/MUDControlCentre.cs +++ b/ShiftOS.WinForms/Applications/MUDControlCentre.cs @@ -873,7 +873,14 @@ Current legions: {legionname}"; { if(second == true) { + ServerManager.SendMessage("delete_save", JsonConvert.SerializeObject(new ClientSave + { + Username = SaveSystem.CurrentSave.Username, + Password = SaveSystem.CurrentSave.Password + })); + SaveSystem.CurrentSave = null; + ShiftOS.Objects.ShiftFS.Utils.Delete(Paths.GetPath("user.dat")); TerminalBackend.InvokeCommand("sos.shutdown"); MessageBox.Show("Thank you for playing ShiftOS. Your save data has been deleted successfully. You can come back at anytime, but you will have to restart your game."); diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 7409040..8ca7969 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -250,8 +250,10 @@ namespace ShiftOS.WinForms this.BackgroundImage = img; })); this.BackgroundImageLayout = GetImageLayout("desktopbackground"); - desktoppanel.BackgroundImage = GetImage("desktoppanel"); + desktoppanel.BackgroundImage = ((Bitmap)GetImage("desktoppanel")); + ((Bitmap)desktoppanel.BackgroundImage).MakeTransparent(Color.FromArgb(1, 0, 1)); menuStrip1.BackgroundImage = GetImage("applauncher"); + ((Bitmap)menuStrip1.BackgroundImage).MakeTransparent(Color.FromArgb(1, 0, 1)); lbtime.ForeColor = LoadedSkin.DesktopPanelClockColor; lbtime.Font = LoadedSkin.DesktopPanelClockFont; if (desktoppanel.BackgroundImage == null)