From 281382f120dcaba79b082d010771e193d7a6e9cc Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 26 Feb 2017 11:52:38 -0500 Subject: ShiftSweeper basics --- ShiftOS.WinForms/Applications/Calculator.cs | 5 +- .../Applications/ShiftSweeper.Designer.cs | 61 +++++++++++ ShiftOS.WinForms/Applications/ShiftSweeper.cs | 41 +++++++ ShiftOS.WinForms/Applications/ShiftSweeper.resx | 120 +++++++++++++++++++++ 4 files changed, 223 insertions(+), 4 deletions(-) create mode 100644 ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs create mode 100644 ShiftOS.WinForms/Applications/ShiftSweeper.cs create mode 100644 ShiftOS.WinForms/Applications/ShiftSweeper.resx (limited to 'ShiftOS.WinForms/Applications') diff --git a/ShiftOS.WinForms/Applications/Calculator.cs b/ShiftOS.WinForms/Applications/Calculator.cs index afd09f5..4fa84de 100644 --- a/ShiftOS.WinForms/Applications/Calculator.cs +++ b/ShiftOS.WinForms/Applications/Calculator.cs @@ -69,10 +69,7 @@ namespace ShiftOS.WinForms.Applications prepareButtons(); } - public void OnSkinLoad() - { - - } + public void OnSkinLoad() { } public bool OnUnload() { diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs new file mode 100644 index 0000000..374784a --- /dev/null +++ b/ShiftOS.WinForms/Applications/ShiftSweeper.Designer.cs @@ -0,0 +1,61 @@ +namespace ShiftOS.WinForms.Applications +{ + partial class ShiftSweeper + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.BackgroundImage = global::ShiftOS.WinForms.Properties.Resources.SweeperNormalFace; + this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pictureBox1.Location = new System.Drawing.Point(110, 3); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(32, 32); + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // ShiftSweeper + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.pictureBox1); + this.Name = "ShiftSweeper"; + this.Size = new System.Drawing.Size(270, 333); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + } +} diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.cs b/ShiftOS.WinForms/Applications/ShiftSweeper.cs new file mode 100644 index 0000000..c61f3eb --- /dev/null +++ b/ShiftOS.WinForms/Applications/ShiftSweeper.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ShiftOS.Engine; + +namespace ShiftOS.WinForms.Applications +{ + [Launcher("ShiftSweeper", false, null, "Games")] + [RequiresUpgrade("shiftsweeper")] + [WinOpen("shiftsweeper")] + [DefaultIcon("iconShiftSweeper")] + public partial class ShiftSweeper : UserControl, IShiftOSWindow + { + private bool gameplayed = false; + + public ShiftSweeper() + { + InitializeComponent(); + } + + public void OnLoad() + { + + } + + public void OnSkinLoad() { } + + public bool OnUnload() { return true; } + + public void OnUpgrade() + { + + } + } +} diff --git a/ShiftOS.WinForms/Applications/ShiftSweeper.resx b/ShiftOS.WinForms/Applications/ShiftSweeper.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ShiftOS.WinForms/Applications/ShiftSweeper.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file -- cgit v1.2.3