aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorMichael VanOverbeek <[email protected]>2017-06-19 00:34:31 +0000
committerGitHub <[email protected]>2017-06-19 00:34:31 +0000
commit0c94c9307370eb9873a505a35411d70ce4f70e30 (patch)
treeb9d685b3d59b852629945f7f05ef9fdfc4b52e7b /ShiftOS.WinForms
parent5fd343195be5632ba341031953d4a4e6d9317253 (diff)
parentd0d42a2785bee57ce74b81f9784cf7ec0e6c2616 (diff)
downloadshiftos_thereturn-0c94c9307370eb9873a505a35411d70ce4f70e30.tar.gz
shiftos_thereturn-0c94c9307370eb9873a505a35411d70ce4f70e30.tar.bz2
shiftos_thereturn-0c94c9307370eb9873a505a35411d70ce4f70e30.zip
Merge pull request #130 from ComputeLinux/master
Make a better loading screen
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/MainMenu/Loading.Designer.cs57
-rw-r--r--ShiftOS.WinForms/MainMenu/Loading.cs8
-rw-r--r--ShiftOS.WinForms/Properties/Resources.Designer.cs49
-rw-r--r--ShiftOS.WinForms/Properties/Resources.resx3
-rw-r--r--ShiftOS.WinForms/Resources/austmicrotrends.pngbin0 -> 22027 bytes
-rw-r--r--ShiftOS.WinForms/ShiftOS.WinForms.csproj1
6 files changed, 93 insertions, 25 deletions
diff --git a/ShiftOS.WinForms/MainMenu/Loading.Designer.cs b/ShiftOS.WinForms/MainMenu/Loading.Designer.cs
index 5cf42d6..c612d96 100644
--- a/ShiftOS.WinForms/MainMenu/Loading.Designer.cs
+++ b/ShiftOS.WinForms/MainMenu/Loading.Designer.cs
@@ -29,32 +29,74 @@
private void InitializeComponent()
{
this.label = new System.Windows.Forms.Label();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// label
//
- this.label.Dock = System.Windows.Forms.DockStyle.Fill;
- this.label.Font = new System.Drawing.Font("Tahoma", 72F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.label.Font = new System.Drawing.Font("Tahoma", 24F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label.ForeColor = System.Drawing.Color.White;
- this.label.Location = new System.Drawing.Point(0, 0);
+ this.label.Location = new System.Drawing.Point(832, 576);
this.label.Name = "label";
- this.label.Size = new System.Drawing.Size(284, 262);
+ this.label.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.label.Size = new System.Drawing.Size(410, 85);
this.label.TabIndex = 0;
this.label.Text = "{GEN_LOADING}";
- this.label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label.TextAlign = System.Drawing.ContentAlignment.BottomRight;
+ this.label.Click += new System.EventHandler(this.label_Click);
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.label1);
+ this.panel1.Controls.Add(this.pictureBox1);
+ this.panel1.Location = new System.Drawing.Point(12, 12);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(919, 646);
+ this.panel1.TabIndex = 1;
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.Black;
+ this.pictureBox1.Image = global::ShiftOS.WinForms.Properties.Resources.austmicrotrends;
+ this.pictureBox1.InitialImage = global::ShiftOS.WinForms.Properties.Resources.austmicrotrends;
+ this.pictureBox1.Location = new System.Drawing.Point(3, 3);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(619, 193);
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.ForeColor = System.Drawing.Color.White;
+ this.label1.Location = new System.Drawing.Point(3, 199);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(82, 24);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "label1";
//
// Loading
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Black;
- this.ClientSize = new System.Drawing.Size(284, 262);
+ this.ClientSize = new System.Drawing.Size(1254, 670);
+ this.Controls.Add(this.panel1);
this.Controls.Add(this.label);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "Loading";
this.Text = "Loading";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Shown += new System.EventHandler(this.Loading_FormShown);
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
@@ -62,5 +104,8 @@
#endregion
private System.Windows.Forms.Label label;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Label label1;
}
} \ No newline at end of file
diff --git a/ShiftOS.WinForms/MainMenu/Loading.cs b/ShiftOS.WinForms/MainMenu/Loading.cs
index c1c0ba0..c69fd3d 100644
--- a/ShiftOS.WinForms/MainMenu/Loading.cs
+++ b/ShiftOS.WinForms/MainMenu/Loading.cs
@@ -17,6 +17,7 @@ namespace ShiftOS.WinForms.MainMenu
{
InitializeComponent();
label.Text = Localization.Parse(label.Text);
+ label1.Text = "AMIBIOS(C)"+ DateTime.Now.Year +" Australian Microtrends, Plc.\nShiftsoft 480-L ACPI BIOS Revision 1002\nCPU : VTC 210-N " + Environment.ProcessorCount + " CPU 1.33GHz\n Speed : 1.337Ghz\n\nPress DEL to run Setup\nPress <F8> for BBS POPUP\nDDR3 Frequency 1337MHz, Dual Channel, Linear Mode\nChecking NVRAM\n\n1337MB OK";
}
private void Loading_FormShown(object sender, EventArgs e)
@@ -25,8 +26,13 @@ namespace ShiftOS.WinForms.MainMenu
// before it starts doing stuff.
var callback = new Timer();
callback.Tick += (o, a) => { Desktop.CurrentDesktop.Show(); Hide(); callback.Stop(); };
- callback.Interval = 1;
+ callback.Interval = 1000; //also so the bios screen shows
callback.Start();
}
+
+ private void label_Click(object sender, EventArgs e)
+ {
+
+ }
}
}
diff --git a/ShiftOS.WinForms/Properties/Resources.Designer.cs b/ShiftOS.WinForms/Properties/Resources.Designer.cs
index 3289a0a..f56285a 100644
--- a/ShiftOS.WinForms/Properties/Resources.Designer.cs
+++ b/ShiftOS.WinForms/Properties/Resources.Designer.cs
@@ -352,6 +352,16 @@ namespace ShiftOS.WinForms.Properties {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
+ internal static System.Drawing.Bitmap austmicrotrends {
+ get {
+ object obj = ResourceManager.GetObject("austmicrotrends", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap DefaultMouse {
get {
object obj = ResourceManager.GetObject("DefaultMouse", resourceCulture);
@@ -1104,7 +1114,7 @@ namespace ShiftOS.WinForms.Properties {
/// Name: &quot;NetXtreme Hyper Edition&quot;,
/// CostPerMonth: 150,
/// DownloadSpeed: 524288, //512 kb/s
- /// Description: &quot;It&apos;s time to supercharge your Shiftnet experience. [rest of string was truncated]&quot;;.
+ /// Description: &quot;It&apos;s time to supercharge your Shift [rest of string was truncated]&quot;;.
/// </summary>
internal static string ShiftnetServices {
get {
@@ -1126,8 +1136,7 @@ namespace ShiftOS.WinForms.Properties {
/// Name: &quot;Icon Manager&quot;,
/// Cost: 450,
/// Description: &quot;This tool allows you to add and edit application icons within ShiftOS for the small prive of 450 Codepoints!&quot;,
- /// Dependencies: &quot;skinning&quot;,
- /// Category [rest of string was truncated]&quot;;.
+ /// Dependencies: &quot;skinning [rest of string was truncated]&quot;;.
/// </summary>
internal static string Shiftorium {
get {
@@ -1137,7 +1146,7 @@ namespace ShiftOS.WinForms.Properties {
/// <summary>
/// Looks up a localized string similar to {\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff0\deff0\stshfdbch31505\stshfloch31506\stshfhich31506\stshfbi0\deflang1033\deflangfe1033\themelang1033\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
- ///{\f37\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}{\f38\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0302020204030204}Calibri Light;}{\flo [rest of string was truncated]&quot;;.
+ ///{\f37\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}{\f38\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0302020204030204}Calibri Light;}{\fl [rest of string was truncated]&quot;;.
/// </summary>
internal static string ShiftOS {
get {
@@ -1286,8 +1295,7 @@ namespace ShiftOS.WinForms.Properties {
///Eine kurze Erklärung wie du das Terminal benutzt lautet wiefolgt. Du kannst das command &apos;sos.help&apos; benutzen um eine Liste aller commands aufzurufen. Schreib es
///einfach in das Terminal und drücke &lt;enter&gt; um alle commands anzuzeigen.
///
- ///Commands können mit argumenten versehen werden, indem du ein key-value Paar in einem {} Block hinter dem command angibst. Zum Beispiel:
- /// [rest of string was truncated]&quot;;.
+ ///Commands können mit argumenten versehen werden, indem du ein key-value Paar in einem {} Block hinter dem command angibst. Zum Be [rest of string was truncated]&quot;;.
/// </summary>
internal static string strings_de {
get {
@@ -1296,18 +1304,23 @@ namespace ShiftOS.WinForms.Properties {
}
/// <summary>
- /// Looks up a localized string similar to {
- /// &quot;{SUBMIT}&quot;:&quot;Submit&quot;,
+ /// Looks up a localized string similar to /*
+ /// * ShiftOS English Language Pack
+ /// *
+ /// * This is the default language pack distributed within the game.
+ /// */
///
- ///&quot;{TERMINAL_TUTORIAL_1}&quot;:&quot;Welcome to the ShiftOS terminal. This is where you will spend the bulk of your time within ShiftOS.
- ///
- ///A brief rundown of how to use the terminal is as follows. You can use the &apos;sos.help&apos; command to show a list of all commands. Simply type it in and strike &lt;enter&gt; to view all commands.
- ///
- ///Commands can be sent arguments by specifying a key-value pair inside a {} block at the end of the command. For example:
- ///
- ///some.command{print:\&quot;hello\&quot;}
- ///math.add{op1:1,op2:2}
- /// [rest of string was truncated]&quot;;.
+ ///{
+ /// //General strings
+ /// //These strings can be used anywhere in the UI where language context isn&apos;t necessary.
+ /// &quot;{GEN_PROGRAMS}&quot;: &quot;Programs&quot;,
+ /// &quot;{GEN_COMMANDS}&quot;: &quot;Commands&quot;,
+ /// &quot;{GEN_OBJECTIVES}&quot;: &quot;Objectives&quot;,
+ /// &quot;{GEN_CURRENTPROCESSES}&quot;: &quot;Current processes&quot;,
+ /// &quot;{GEN_WELCOME}&quot;: &quot;Welcome to ShiftOS.&quot;,
+ /// &quot;{GEN_SYSTEMNAME}&quot;: &quot;System name&quot;,
+ /// &quot;{GEN_PASSWORD}&quot;: &quot;Password&quot;,
+ /// &quot;{GEN_LPROMPT [rest of string was truncated]&quot;;.
/// </summary>
internal static string strings_en {
get {
@@ -1495,7 +1508,7 @@ namespace ShiftOS.WinForms.Properties {
/// &quot;Before you can begin with ShiftOS, you&apos;ll need to know a few things about it.&quot;,
/// &quot;One: Terminal command syntax.&quot;,
/// &quot;Inside ShiftOS, the bulk of your time is going to be spent within the Terminal.&quot;,
- /// &quot;The Terminal is an application that starts up when you turn on your computer. It allows you to execute system commands, open program [rest of string was truncated]&quot;;.
+ /// &quot;The Terminal is an application that starts up when you turn on your computer. It allows you to execute system commands, ope [rest of string was truncated]&quot;;.
/// </summary>
internal static string sys_shiftoriumstory {
get {
diff --git a/ShiftOS.WinForms/Properties/Resources.resx b/ShiftOS.WinForms/Properties/Resources.resx
index 128197b..5e5555b 100644
--- a/ShiftOS.WinForms/Properties/Resources.resx
+++ b/ShiftOS.WinForms/Properties/Resources.resx
@@ -34612,4 +34612,7 @@
<data name="mindblow" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\mindblow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="austmicrotrends" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\austmicrotrends.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
</root> \ No newline at end of file
diff --git a/ShiftOS.WinForms/Resources/austmicrotrends.png b/ShiftOS.WinForms/Resources/austmicrotrends.png
new file mode 100644
index 0000000..cad4464
--- /dev/null
+++ b/ShiftOS.WinForms/Resources/austmicrotrends.png
Binary files differ
diff --git a/ShiftOS.WinForms/ShiftOS.WinForms.csproj b/ShiftOS.WinForms/ShiftOS.WinForms.csproj
index 37a3175..a6d9ff7 100644
--- a/ShiftOS.WinForms/ShiftOS.WinForms.csproj
+++ b/ShiftOS.WinForms/ShiftOS.WinForms.csproj
@@ -862,6 +862,7 @@
<None Include="Resources\Ambient7.mp3" />
<None Include="Resources\Ambient8.mp3" />
<None Include="Resources\Ambient9.mp3" />
+ <None Include="Resources\austmicrotrends.png" />
<Content Include="Resources\fileiconcf.bmp" />
<None Include="Resources\infobox.wav" />
<None Include="Resources\typesound.wav" />