aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/MainGame/Apps/ShifterStuff/SelectColor.cs
diff options
context:
space:
mode:
authorRichie Moch <[email protected]>2018-12-23 19:15:07 -0600
committerRichie Moch <[email protected]>2018-12-23 19:15:07 -0600
commitbca879db94bc6395dbfa77628747080311fdb226 (patch)
tree24103811cd3df0957f2450bbe579e05d7dc7c4e6 /ShiftOS.Main/MainGame/Apps/ShifterStuff/SelectColor.cs
parentd94c79dbf5183230e5fd3342848408f776de60ea (diff)
downloadshiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.tar.gz
shiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.tar.bz2
shiftos-rewind-bca879db94bc6395dbfa77628747080311fdb226.zip
started work on the pong, implemented "ShiftToolStrip". (note: pong is very buggy)
Diffstat (limited to 'ShiftOS.Main/MainGame/Apps/ShifterStuff/SelectColor.cs')
-rw-r--r--ShiftOS.Main/MainGame/Apps/ShifterStuff/SelectColor.cs63
1 files changed, 0 insertions, 63 deletions
diff --git a/ShiftOS.Main/MainGame/Apps/ShifterStuff/SelectColor.cs b/ShiftOS.Main/MainGame/Apps/ShifterStuff/SelectColor.cs
deleted file mode 100644
index 3da3b98..0000000
--- a/ShiftOS.Main/MainGame/Apps/ShifterStuff/SelectColor.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-using System;
-using System.Drawing;
-using System.Globalization;
-using System.Windows.Forms;
-using ShiftOS.Engine.WindowManager;
-using ShiftOS.Engine.UI;
-
-namespace ShiftOS.Main.ShiftOS.Apps.ShifterStuff
-{
- public partial class SelectColor : UserControl
- {
- int _colorType1;
- int _colorType2;
- int _colorType3;
- Color _finalColor;
-
- public SelectColor()
- {
- InitializeComponent();
- }
-
- Color SetColor()
- {
- _colorType1 = int.Parse(redUpDown.Value.ToString(CultureInfo.InvariantCulture));
- _colorType2 = int.Parse(greenUpDown.Value.ToString(CultureInfo.InvariantCulture));
- _colorType3 = int.Parse(blueUpDown.Value.ToString(CultureInfo.InvariantCulture));
- try
- {
- _finalColor = Color.FromArgb(_colorType1, _colorType2, _colorType3);
-
-
- foreach (var window in ShiftWM.Windows)
- {
- window.Invoke(new Action(() => window.titleBar.BackColor = _finalColor));
- }
-
-
- ShiftWM.StartInfoboxSession(
- "Success!",
- $"Changed color to:\r\n{_colorType1}, {_colorType2}, {_colorType3}.",
- InfoboxTemplate.ButtonType.Ok);
- }
- catch (Exception)
- {
- ShiftWM.StartInfoboxSession("Error!", "An error occured while setting the color.", InfoboxTemplate.ButtonType.Ok);
- }
- return _finalColor;
- }
-
- void btnSetColor_Click(object sender, EventArgs e)
- {
- SetColor();
- }
-
- private void SelectColor_Load(object sender, EventArgs e)
- {
- var s = new ShiftButton();
- s.Location = new System.Drawing.Point(211, 48);
- s.Text = "test";
- Controls.Add(s);
- }
- }
-} \ No newline at end of file