diff options
| -rw-r--r-- | Histacom2.Engine/Template/WinXP.Designer.cs | 51 | ||||
| -rw-r--r-- | Histacom2.Engine/Template/WinXP.cs | 46 | ||||
| -rw-r--r-- | Histacom2.Engine/UI/ClassicStartMenuItem.cs | 4 | ||||
| -rw-r--r-- | Histacom2.Engine/WindowManager.cs | 68 | ||||
| -rw-r--r-- | Histacom2/Histacom2.csproj | 1 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs | 1 | ||||
| -rw-r--r-- | Histacom2/OS/Win98/Win98Apps/IE4Sites/12padams1999.Designer.cs | 316 | ||||
| -rw-r--r-- | Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs | 13 | ||||
| -rw-r--r-- | Histacom2/OS/WinXPBad/Story/Hack4.cs | 21 |
9 files changed, 333 insertions, 188 deletions
diff --git a/Histacom2.Engine/Template/WinXP.Designer.cs b/Histacom2.Engine/Template/WinXP.Designer.cs index 66cb521..0d1e060 100644 --- a/Histacom2.Engine/Template/WinXP.Designer.cs +++ b/Histacom2.Engine/Template/WinXP.Designer.cs @@ -30,26 +30,26 @@ { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WinXP)); this.program = new System.Windows.Forms.Panel(); + this.flowLayoutPanel1 = new System.Windows.Forms.Panel(); this.bottomleftcorner = new System.Windows.Forms.Panel(); this.toprightcorner = new System.Windows.Forms.Panel(); this.bottomrightcorner = new System.Windows.Forms.Panel(); this.topleftcorner = new System.Windows.Forms.Panel(); this.bottom = new System.Windows.Forms.Panel(); this.top = new System.Windows.Forms.Panel(); + this.programIcon = new System.Windows.Forms.PictureBox(); this.maximizebutton = new System.Windows.Forms.PictureBox(); this.minimizebutton = new System.Windows.Forms.PictureBox(); this.programname = new System.Windows.Forms.Label(); this.closebutton = new System.Windows.Forms.PictureBox(); this.right = new System.Windows.Forms.Panel(); this.left = new System.Windows.Forms.Panel(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.programIcon = new System.Windows.Forms.PictureBox(); this.program.SuspendLayout(); this.top.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.programIcon)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.maximizebutton)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.minimizebutton)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.closebutton)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.programIcon)).BeginInit(); this.SuspendLayout(); // // program @@ -70,6 +70,14 @@ this.program.Size = new System.Drawing.Size(300, 300); this.program.TabIndex = 10; // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.flowLayoutPanel1.Location = new System.Drawing.Point(4, 30); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(292, 266); + this.flowLayoutPanel1.TabIndex = 11; + // // bottomleftcorner // this.bottomleftcorner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); @@ -133,6 +141,18 @@ this.top.Name = "top"; this.top.Size = new System.Drawing.Size(292, 30); this.top.TabIndex = 0; + this.top.MouseDown += new System.Windows.Forms.MouseEventHandler(this.top_MouseDown); + // + // programIcon + // + this.programIcon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.programIcon.ErrorImage = null; + this.programIcon.InitialImage = null; + this.programIcon.Location = new System.Drawing.Point(6, 7); + this.programIcon.Name = "programIcon"; + this.programIcon.Size = new System.Drawing.Size(16, 16); + this.programIcon.TabIndex = 7; + this.programIcon.TabStop = false; // // maximizebutton // @@ -165,6 +185,7 @@ this.programname.Size = new System.Drawing.Size(99, 13); this.programname.TabIndex = 3; this.programname.Text = "Application Title"; + this.programname.MouseDown += new System.Windows.Forms.MouseEventHandler(this.top_MouseDown); // // closebutton // @@ -175,6 +196,7 @@ this.closebutton.Size = new System.Drawing.Size(21, 21); this.closebutton.TabIndex = 4; this.closebutton.TabStop = false; + this.closebutton.Click += new System.EventHandler(this.closebutton_Click); // // right // @@ -195,25 +217,6 @@ this.left.Size = new System.Drawing.Size(4, 300); this.left.TabIndex = 1; // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.flowLayoutPanel1.Location = new System.Drawing.Point(4, 30); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(292, 266); - this.flowLayoutPanel1.TabIndex = 11; - // - // programIcon - // - this.programIcon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.programIcon.ErrorImage = null; - this.programIcon.InitialImage = null; - this.programIcon.Location = new System.Drawing.Point(6, 7); - this.programIcon.Name = "programIcon"; - this.programIcon.Size = new System.Drawing.Size(16, 16); - this.programIcon.TabIndex = 7; - this.programIcon.TabStop = false; - // // WinXP // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -227,10 +230,10 @@ this.program.ResumeLayout(false); this.top.ResumeLayout(false); this.top.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.programIcon)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.maximizebutton)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.minimizebutton)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.closebutton)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.programIcon)).EndInit(); this.ResumeLayout(false); } @@ -250,7 +253,7 @@ internal System.Windows.Forms.PictureBox closebutton; internal System.Windows.Forms.Panel right; internal System.Windows.Forms.Panel left; - private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; public System.Windows.Forms.PictureBox programIcon; + public System.Windows.Forms.Panel flowLayoutPanel1; } }
\ No newline at end of file diff --git a/Histacom2.Engine/Template/WinXP.cs b/Histacom2.Engine/Template/WinXP.cs index 86b222e..fa26611 100644 --- a/Histacom2.Engine/Template/WinXP.cs +++ b/Histacom2.Engine/Template/WinXP.cs @@ -4,6 +4,7 @@ using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; @@ -16,8 +17,53 @@ namespace Histacom2.Engine.Template public WinXP() { InitializeComponent(); + DoubleBuffered = true; } + public Font fnt; + public ResizeOverlay resizer = new ResizeOverlay(); + public UserControl progContent; + + public bool resizable = true; + public bool max = false; + public bool closeDisabled = false; + public bool isActive = true; + public bool Resizing = false; + public Bitmap ResizingBmp = null; + public const int WM_NCLBUTTONDOWN = 0xA1; + public const int WM_SYSCOMMAND = 0x0112; + public const int HT_CAPTION = 0x2; + + private const int + HTLEFT = 10, + HTRIGHT = 11, + HTTOP = 12, + HTTOPLEFT = 13, + HTTOPRIGHT = 14, + HTBOTTOM = 15, + HTBOTTOMLEFT = 16, + HTBOTTOMRIGHT = 17; + + private void closebutton_Click(object sender, EventArgs e) + { + if (!closeDisabled) this.Close(); + } + + private void top_MouseDown(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Left && max == false) + { + ReleaseCapture(); + SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0); + } + } + + [DllImportAttribute("user32.dll")] + public static extern int SendMessage(IntPtr hWnd, + int Msg, int wParam, int lParam); + [DllImportAttribute("user32.dll")] + public static extern bool ReleaseCapture(); + private void WinXP_Load(object sender, EventArgs e) { diff --git a/Histacom2.Engine/UI/ClassicStartMenuItem.cs b/Histacom2.Engine/UI/ClassicStartMenuItem.cs index 3746ea5..dcb8361 100644 --- a/Histacom2.Engine/UI/ClassicStartMenuItem.cs +++ b/Histacom2.Engine/UI/ClassicStartMenuItem.cs @@ -75,7 +75,7 @@ namespace Histacom2.Engine.UI if (!Selected) { switch (layout) { case ClassicStartMenuItemLayout.DistancedTitle: - e.Graphics.DrawString(Text, Font, new SolidBrush(ForeColor), imgWidth + 6, 11, sf); + e.Graphics.DrawString(Text, Font, new SolidBrush(ForeColor), imgWidth + 6, getYForString(), sf); break; case ClassicStartMenuItemLayout.CloseTitle: e.Graphics.DrawString(Text, Font, new SolidBrush(ForeColor), imgWidth + 2, getYForString(), sf); @@ -99,7 +99,7 @@ namespace Histacom2.Engine.UI switch (layout) { case ClassicStartMenuItemLayout.DistancedTitle: - e.Graphics.DrawString(Text, Font, new SolidBrush(SaveSystem.currentTheme.selectedTextColor), imgWidth + 6, 11, sf); + e.Graphics.DrawString(Text, Font, new SolidBrush(SaveSystem.currentTheme.selectedTextColor), imgWidth + 6, getYForString(), sf); break; case ClassicStartMenuItemLayout.CloseTitle: e.Graphics.DrawString(Text, Font, new SolidBrush(SaveSystem.currentTheme.selectedTextColor), imgWidth + 2, getYForString(), sf); diff --git a/Histacom2.Engine/WindowManager.cs b/Histacom2.Engine/WindowManager.cs index 4f4951c..12f7954 100644 --- a/Histacom2.Engine/WindowManager.cs +++ b/Histacom2.Engine/WindowManager.cs @@ -36,11 +36,6 @@ namespace Histacom2.Engine app = new WinClassic(); break; } - case "XP": - { - // app = new WinXP(); - break; - } default: { app = new WinClassic(); @@ -111,9 +106,68 @@ namespace Histacom2.Engine return app; } - // A THING TM + public WinXP InitXP(UserControl content, string title, Image icon, bool MaxButton, bool MinButton, bool ShowApplicationAsDialog = false, bool resize = true) + { + WinXP app = new WinXP(); + + app.Text = title; + app.programname.Text = title; + app.Width = content.Width + 8; + app.Height = content.Height + 26; + // Initialize Font + pfc.AddFontFile(SaveSystem.GameDirectory + "\\Data\\LeviWindows.ttf"); + Font fnt = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0))); + app.fnt = fnt; + // Setup UC + content.Parent = app.flowLayoutPanel1; + content.BringToFront(); + content.Dock = DockStyle.Fill; + app.progContent = content; + + // Check if icon is null + if (icon == null) + { + app.programIcon.Hide(); + app.programIcon.Image = Engine.Properties.Resources.nullIcon; + app.programname.Location = new Point(2, 1); + } + else app.programIcon.Image = icon; + + // Check if Max button is enabled and set proper X for Min button + if (MaxButton == false) + { + app.maximizebutton.Visible = false; + app.minimizebutton.Location = new Point(app.closebutton.Location.X - 14, app.minimizebutton.Location.Y); + } + + // Check if Min button is enabled + if (MinButton == false) + { + app.minimizebutton.Visible = false; + app.minimizebutton.Location = new Point(app.minimizebutton.Location.X, app.minimizebutton.Location.Y); + } - // A THING TM + //Resize + app.resizable = resize; + + // Convert an image to an icon (for the taskbar) + if (icon != null) + { + Bitmap theBitmap = new Bitmap(icon, new Size(icon.Width, icon.Height)); + IntPtr Hicon = theBitmap.GetHicon(); // Get an Hicon for myBitmap. + Icon newIcon = Icon.FromHandle(Hicon); // Create a new icon from the handle. + app.Icon = newIcon; + } + + // Set some values (for the taskbar) + app.Tag = TaskBarController.AvalibleApplicationID; + app.Text = title; + + // Show the app + app.TopMost = true; + if (ShowApplicationAsDialog == false) { app.Show(); } else { app.ShowDialog(); } + return app; + } public WinClassic StartInfobox95(string title, string text, InfoboxType type, InfoboxButtons btns) { diff --git a/Histacom2/Histacom2.csproj b/Histacom2/Histacom2.csproj index 2b01cc7..1cb3010 100644 --- a/Histacom2/Histacom2.csproj +++ b/Histacom2/Histacom2.csproj @@ -353,6 +353,7 @@ <Compile Include="OS\Win98\Win98Apps\WinClassicWindowsExplorer.Designer.cs"> <DependentUpon>WinClassicWindowsExplorer.cs</DependentUpon> </Compile> + <Compile Include="OS\WinXPBad\Story\Hack4.cs" /> <Compile Include="OS\WinXPBad\WinXPBad.cs"> <SubType>Form</SubType> </Compile> diff --git a/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs b/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs index 5f71ce4..77f63b5 100644 --- a/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs +++ b/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs @@ -5,7 +5,6 @@ using System.Threading.Tasks; using System.Windows.Forms; using Histacom2.Engine; using Histacom2.Engine.Template; -using Histacom2.OS.Win98; namespace Histacom2.OS.Win95.Win95Apps.Story { diff --git a/Histacom2/OS/Win98/Win98Apps/IE4Sites/12padams1999.Designer.cs b/Histacom2/OS/Win98/Win98Apps/IE4Sites/12padams1999.Designer.cs index 5a252ef..8b8efac 100644 --- a/Histacom2/OS/Win98/Win98Apps/IE4Sites/12padams1999.Designer.cs +++ b/Histacom2/OS/Win98/Win98Apps/IE4Sites/12padams1999.Designer.cs @@ -31,35 +31,35 @@ this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel(); this.classicLabel2 = new Histacom2.Engine.UI.ClassicLabel(); this.panel1 = new System.Windows.Forms.Panel(); + this.classicLabel9 = new Histacom2.Engine.UI.ClassicLabel(); + this.classicButton2 = new Histacom2.Engine.UI.ClassicButton(); this.classicLabel8 = new Histacom2.Engine.UI.ClassicLabel(); this.classicButton1 = new Histacom2.Engine.UI.ClassicButton(); this.panel2 = new System.Windows.Forms.Panel(); this.classicLabel3 = new Histacom2.Engine.UI.ClassicLabel(); this.panel3 = new System.Windows.Forms.Panel(); + this.classicLabel12 = new Histacom2.Engine.UI.ClassicLabel(); + this.classicButton5 = new Histacom2.Engine.UI.ClassicButton(); + this.classicLabel13 = new Histacom2.Engine.UI.ClassicLabel(); + this.classicButton6 = new Histacom2.Engine.UI.ClassicButton(); this.panel4 = new System.Windows.Forms.Panel(); this.classicLabel4 = new Histacom2.Engine.UI.ClassicLabel(); this.panel5 = new System.Windows.Forms.Panel(); + this.classicLabel11 = new Histacom2.Engine.UI.ClassicLabel(); + this.classicButton4 = new Histacom2.Engine.UI.ClassicButton(); + this.classicLabel10 = new Histacom2.Engine.UI.ClassicLabel(); + this.classicButton3 = new Histacom2.Engine.UI.ClassicButton(); this.panel6 = new System.Windows.Forms.Panel(); this.classicLabel5 = new Histacom2.Engine.UI.ClassicLabel(); this.panel7 = new System.Windows.Forms.Panel(); + this.classicLabel15 = new Histacom2.Engine.UI.ClassicLabel(); this.panel8 = new System.Windows.Forms.Panel(); this.classicLabel6 = new Histacom2.Engine.UI.ClassicLabel(); this.panel9 = new System.Windows.Forms.Panel(); + this.classicLabel16 = new Histacom2.Engine.UI.ClassicLabel(); this.panel10 = new System.Windows.Forms.Panel(); this.classicLabel7 = new Histacom2.Engine.UI.ClassicLabel(); - this.classicButton2 = new Histacom2.Engine.UI.ClassicButton(); - this.classicLabel9 = new Histacom2.Engine.UI.ClassicLabel(); - this.classicButton3 = new Histacom2.Engine.UI.ClassicButton(); - this.classicLabel10 = new Histacom2.Engine.UI.ClassicLabel(); - this.classicButton4 = new Histacom2.Engine.UI.ClassicButton(); - this.classicLabel11 = new Histacom2.Engine.UI.ClassicLabel(); - this.classicLabel12 = new Histacom2.Engine.UI.ClassicLabel(); - this.classicButton5 = new Histacom2.Engine.UI.ClassicButton(); - this.classicLabel13 = new Histacom2.Engine.UI.ClassicLabel(); - this.classicButton6 = new Histacom2.Engine.UI.ClassicButton(); this.classicLabel14 = new Histacom2.Engine.UI.ClassicLabel(); - this.classicLabel15 = new Histacom2.Engine.UI.ClassicLabel(); - this.classicLabel16 = new Histacom2.Engine.UI.ClassicLabel(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); @@ -75,6 +75,7 @@ // classicLabel1 // this.classicLabel1.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.classicLabel1.DropShadow = false; this.classicLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.classicLabel1.Location = new System.Drawing.Point(347, 12); this.classicLabel1.Name = "classicLabel1"; @@ -85,6 +86,7 @@ // classicLabel2 // this.classicLabel2.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.classicLabel2.DropShadow = false; this.classicLabel2.Location = new System.Drawing.Point(361, 34); this.classicLabel2.Name = "classicLabel2"; this.classicLabel2.Size = new System.Drawing.Size(250, 13); @@ -106,8 +108,34 @@ this.panel1.Size = new System.Drawing.Size(225, 209); this.panel1.TabIndex = 2; // + // classicLabel9 + // + this.classicLabel9.DropShadow = false; + this.classicLabel9.Location = new System.Drawing.Point(4, 79); + this.classicLabel9.Name = "classicLabel9"; + this.classicLabel9.Size = new System.Drawing.Size(121, 13); + this.classicLabel9.TabIndex = 4; + this.classicLabel9.Text = "Web Chat 1999"; + // + // classicButton2 + // + this.classicButton2.AdaptBackColorWithTheme = false; + this.classicButton2.AdaptFontWithTheme = true; + this.classicButton2.AdaptForeColorWithTheme = true; + this.classicButton2.BackColor = System.Drawing.Color.Green; + this.classicButton2.DialogResult = System.Windows.Forms.DialogResult.None; + this.classicButton2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.classicButton2.ForeColor = System.Drawing.Color.Black; + this.classicButton2.Location = new System.Drawing.Point(144, 74); + this.classicButton2.Name = "classicButton2"; + this.classicButton2.Size = new System.Drawing.Size(72, 23); + this.classicButton2.TabIndex = 3; + this.classicButton2.Text = "Download"; + this.classicButton2.Click += new System.EventHandler(this.classicButton2_Click); + // // classicLabel8 // + this.classicLabel8.DropShadow = false; this.classicLabel8.Location = new System.Drawing.Point(4, 49); this.classicLabel8.Name = "classicLabel8"; this.classicLabel8.Size = new System.Drawing.Size(121, 13); @@ -143,6 +171,7 @@ // // classicLabel3 // + this.classicLabel3.DropShadow = false; this.classicLabel3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.classicLabel3.ForeColor = System.Drawing.Color.White; this.classicLabel3.Location = new System.Drawing.Point(58, 10); @@ -166,6 +195,54 @@ this.panel3.Size = new System.Drawing.Size(225, 209); this.panel3.TabIndex = 3; // + // classicLabel12 + // + this.classicLabel12.DropShadow = false; + this.classicLabel12.Location = new System.Drawing.Point(5, 79); + this.classicLabel12.Name = "classicLabel12"; + this.classicLabel12.Size = new System.Drawing.Size(121, 13); + this.classicLabel12.TabIndex = 8; + this.classicLabel12.Text = "Error Blaster 98"; + // + // classicButton5 + // + this.classicButton5.AdaptBackColorWithTheme = false; + this.classicButton5.AdaptFontWithTheme = true; + this.classicButton5.AdaptForeColorWithTheme = true; + this.classicButton5.BackColor = System.Drawing.Color.Green; + this.classicButton5.DialogResult = System.Windows.Forms.DialogResult.None; + this.classicButton5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.classicButton5.ForeColor = System.Drawing.Color.Black; + this.classicButton5.Location = new System.Drawing.Point(145, 74); + this.classicButton5.Name = "classicButton5"; + this.classicButton5.Size = new System.Drawing.Size(72, 23); + this.classicButton5.TabIndex = 7; + this.classicButton5.Text = "Download"; + // + // classicLabel13 + // + this.classicLabel13.DropShadow = false; + this.classicLabel13.Location = new System.Drawing.Point(5, 49); + this.classicLabel13.Name = "classicLabel13"; + this.classicLabel13.Size = new System.Drawing.Size(121, 13); + this.classicLabel13.TabIndex = 6; + this.classicLabel13.Text = "Start Runner 98"; + // + // classicButton6 + // + this.classicButton6.AdaptBackColorWithTheme = false; + this.classicButton6.AdaptFontWithTheme = true; + this.classicButton6.AdaptForeColorWithTheme = true; + this.classicButton6.BackColor = System.Drawing.Color.Green; + this.classicButton6.DialogResult = System.Windows.Forms.DialogResult.None; + this.classicButton6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.classicButton6.ForeColor = System.Drawing.Color.Black; + this.classicButton6.Location = new System.Drawing.Point(145, 45); + this.classicButton6.Name = "classicButton6"; + this.classicButton6.Size = new System.Drawing.Size(72, 23); + this.classicButton6.TabIndex = 5; + this.classicButton6.Text = "Download"; + // // panel4 // this.panel4.BackColor = System.Drawing.Color.ForestGreen; @@ -179,6 +256,7 @@ // // classicLabel4 // + this.classicLabel4.DropShadow = false; this.classicLabel4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.classicLabel4.ForeColor = System.Drawing.Color.White; this.classicLabel4.Location = new System.Drawing.Point(57, 10); @@ -202,6 +280,54 @@ this.panel5.Size = new System.Drawing.Size(225, 209); this.panel5.TabIndex = 4; // + // classicLabel11 + // + this.classicLabel11.DropShadow = false; + this.classicLabel11.Location = new System.Drawing.Point(4, 79); + this.classicLabel11.Name = "classicLabel11"; + this.classicLabel11.Size = new System.Drawing.Size(93, 13); + this.classicLabel11.TabIndex = 7; + this.classicLabel11.Text = "Skindows 98"; + // + // classicButton4 + // + this.classicButton4.AdaptBackColorWithTheme = false; + this.classicButton4.AdaptFontWithTheme = true; + this.classicButton4.AdaptForeColorWithTheme = true; + this.classicButton4.BackColor = System.Drawing.Color.Green; + this.classicButton4.DialogResult = System.Windows.Forms.DialogResult.None; + this.classicButton4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.classicButton4.ForeColor = System.Drawing.Color.Black; + this.classicButton4.Location = new System.Drawing.Point(103, 73); + this.classicButton4.Name = "classicButton4"; + this.classicButton4.Size = new System.Drawing.Size(112, 23); + this.classicButton4.TabIndex = 6; + this.classicButton4.Text = "Info"; + // + // classicLabel10 + // + this.classicLabel10.DropShadow = false; + this.classicLabel10.Location = new System.Drawing.Point(4, 49); + this.classicLabel10.Name = "classicLabel10"; + this.classicLabel10.Size = new System.Drawing.Size(93, 13); + this.classicLabel10.TabIndex = 5; + this.classicLabel10.Text = "Backgrounds"; + // + // classicButton3 + // + this.classicButton3.AdaptBackColorWithTheme = false; + this.classicButton3.AdaptFontWithTheme = true; + this.classicButton3.AdaptForeColorWithTheme = true; + this.classicButton3.BackColor = System.Drawing.Color.Green; + this.classicButton3.DialogResult = System.Windows.Forms.DialogResult.None; + this.classicButton3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.classicButton3.ForeColor = System.Drawing.Color.Black; + this.classicButton3.Location = new System.Drawing.Point(103, 44); + this.classicButton3.Name = "classicButton3"; + this.classicButton3.Size = new System.Drawing.Size(112, 23); + this.classicButton3.TabIndex = 2; + this.classicButton3.Text = "View Backgrounds"; + // // panel6 // this.panel6.BackColor = System.Drawing.Color.ForestGreen; @@ -215,6 +341,7 @@ // // classicLabel5 // + this.classicLabel5.DropShadow = false; this.classicLabel5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.classicLabel5.ForeColor = System.Drawing.Color.White; this.classicLabel5.Location = new System.Drawing.Point(62, 10); @@ -235,6 +362,18 @@ this.panel7.Size = new System.Drawing.Size(353, 135); this.panel7.TabIndex = 5; // + // classicLabel15 + // + this.classicLabel15.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.classicLabel15.DropShadow = false; + this.classicLabel15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.classicLabel15.ForeColor = System.Drawing.Color.Navy; + this.classicLabel15.Location = new System.Drawing.Point(90, 44); + this.classicLabel15.Name = "classicLabel15"; + this.classicLabel15.Size = new System.Drawing.Size(167, 13); + this.classicLabel15.TabIndex = 2; + this.classicLabel15.Text = "Y2K: A Global Computer Crisis"; + // // panel8 // this.panel8.BackColor = System.Drawing.Color.ForestGreen; @@ -248,6 +387,7 @@ // // classicLabel6 // + this.classicLabel6.DropShadow = false; this.classicLabel6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.classicLabel6.ForeColor = System.Drawing.Color.White; this.classicLabel6.Location = new System.Drawing.Point(129, 10); @@ -268,6 +408,18 @@ this.panel9.Size = new System.Drawing.Size(353, 135); this.panel9.TabIndex = 6; // + // classicLabel16 + // + this.classicLabel16.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.classicLabel16.DropShadow = false; + this.classicLabel16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.classicLabel16.ForeColor = System.Drawing.Color.Navy; + this.classicLabel16.Location = new System.Drawing.Point(122, 44); + this.classicLabel16.Name = "classicLabel16"; + this.classicLabel16.Size = new System.Drawing.Size(109, 13); + this.classicLabel16.TabIndex = 3; + this.classicLabel16.Text = "Microsoft Wi n d o w s"; + // // panel10 // this.panel10.BackColor = System.Drawing.Color.ForestGreen; @@ -281,6 +433,7 @@ // // classicLabel7 // + this.classicLabel7.DropShadow = false; this.classicLabel7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.classicLabel7.ForeColor = System.Drawing.Color.White; this.classicLabel7.Location = new System.Drawing.Point(105, 10); @@ -289,153 +442,16 @@ this.classicLabel7.TabIndex = 0; this.classicLabel7.Text = "History Of Computers"; // - // classicButton2 - // - this.classicButton2.AdaptBackColorWithTheme = false; - this.classicButton2.AdaptFontWithTheme = true; - this.classicButton2.AdaptForeColorWithTheme = true; - this.classicButton2.BackColor = System.Drawing.Color.Green; - this.classicButton2.DialogResult = System.Windows.Forms.DialogResult.None; - this.classicButton2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.classicButton2.ForeColor = System.Drawing.Color.Black; - this.classicButton2.Location = new System.Drawing.Point(144, 74); - this.classicButton2.Name = "classicButton2"; - this.classicButton2.Size = new System.Drawing.Size(72, 23); - this.classicButton2.TabIndex = 3; - this.classicButton2.Text = "Download"; - this.classicButton2.Click += new System.EventHandler(this.classicButton2_Click); - // - // classicLabel9 - // - this.classicLabel9.Location = new System.Drawing.Point(4, 79); - this.classicLabel9.Name = "classicLabel9"; - this.classicLabel9.Size = new System.Drawing.Size(121, 13); - this.classicLabel9.TabIndex = 4; - this.classicLabel9.Text = "Web Chat 1999"; - // - // classicButton3 - // - this.classicButton3.AdaptBackColorWithTheme = false; - this.classicButton3.AdaptFontWithTheme = true; - this.classicButton3.AdaptForeColorWithTheme = true; - this.classicButton3.BackColor = System.Drawing.Color.Green; - this.classicButton3.DialogResult = System.Windows.Forms.DialogResult.None; - this.classicButton3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.classicButton3.ForeColor = System.Drawing.Color.Black; - this.classicButton3.Location = new System.Drawing.Point(116, 44); - this.classicButton3.Name = "classicButton3"; - this.classicButton3.Size = new System.Drawing.Size(99, 23); - this.classicButton3.TabIndex = 2; - this.classicButton3.Text = "View Backgrounds"; - // - // classicLabel10 - // - this.classicLabel10.Location = new System.Drawing.Point(4, 49); - this.classicLabel10.Name = "classicLabel10"; - this.classicLabel10.Size = new System.Drawing.Size(107, 13); - this.classicLabel10.TabIndex = 5; - this.classicLabel10.Text = "Backgrounds"; - // - // classicButton4 - // - this.classicButton4.AdaptBackColorWithTheme = false; - this.classicButton4.AdaptFontWithTheme = true; - this.classicButton4.AdaptForeColorWithTheme = true; - this.classicButton4.BackColor = System.Drawing.Color.Green; - this.classicButton4.DialogResult = System.Windows.Forms.DialogResult.None; - this.classicButton4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.classicButton4.ForeColor = System.Drawing.Color.Black; - this.classicButton4.Location = new System.Drawing.Point(116, 73); - this.classicButton4.Name = "classicButton4"; - this.classicButton4.Size = new System.Drawing.Size(99, 23); - this.classicButton4.TabIndex = 6; - this.classicButton4.Text = "Info"; - // - // classicLabel11 - // - this.classicLabel11.Location = new System.Drawing.Point(4, 79); - this.classicLabel11.Name = "classicLabel11"; - this.classicLabel11.Size = new System.Drawing.Size(107, 13); - this.classicLabel11.TabIndex = 7; - this.classicLabel11.Text = "Skindows 98"; - // - // classicLabel12 - // - this.classicLabel12.Location = new System.Drawing.Point(5, 79); - this.classicLabel12.Name = "classicLabel12"; - this.classicLabel12.Size = new System.Drawing.Size(121, 13); - this.classicLabel12.TabIndex = 8; - this.classicLabel12.Text = "Error Blaster 98"; - // - // classicButton5 - // - this.classicButton5.AdaptBackColorWithTheme = false; - this.classicButton5.AdaptFontWithTheme = true; - this.classicButton5.AdaptForeColorWithTheme = true; - this.classicButton5.BackColor = System.Drawing.Color.Green; - this.classicButton5.DialogResult = System.Windows.Forms.DialogResult.None; - this.classicButton5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.classicButton5.ForeColor = System.Drawing.Color.Black; - this.classicButton5.Location = new System.Drawing.Point(145, 74); - this.classicButton5.Name = "classicButton5"; - this.classicButton5.Size = new System.Drawing.Size(72, 23); - this.classicButton5.TabIndex = 7; - this.classicButton5.Text = "Download"; - // - // classicLabel13 - // - this.classicLabel13.Location = new System.Drawing.Point(5, 49); - this.classicLabel13.Name = "classicLabel13"; - this.classicLabel13.Size = new System.Drawing.Size(121, 13); - this.classicLabel13.TabIndex = 6; - this.classicLabel13.Text = "Start Runner 98"; - // - // classicButton6 - // - this.classicButton6.AdaptBackColorWithTheme = false; - this.classicButton6.AdaptFontWithTheme = true; - this.classicButton6.AdaptForeColorWithTheme = true; - this.classicButton6.BackColor = System.Drawing.Color.Green; - this.classicButton6.DialogResult = System.Windows.Forms.DialogResult.None; - this.classicButton6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); - this.classicButton6.ForeColor = System.Drawing.Color.Black; - this.classicButton6.Location = new System.Drawing.Point(145, 45); - this.classicButton6.Name = "classicButton6"; - this.classicButton6.Size = new System.Drawing.Size(72, 23); - this.classicButton6.TabIndex = 5; - this.classicButton6.Text = "Download"; - // // classicLabel14 // this.classicLabel14.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.classicLabel14.DropShadow = false; this.classicLabel14.Location = new System.Drawing.Point(430, 460); this.classicLabel14.Name = "classicLabel14"; this.classicLabel14.Size = new System.Drawing.Size(100, 13); this.classicLabel14.TabIndex = 7; this.classicLabel14.Text = "© 12padams, 1999"; // - // classicLabel15 - // - this.classicLabel15.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.classicLabel15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.classicLabel15.ForeColor = System.Drawing.Color.Navy; - this.classicLabel15.Location = new System.Drawing.Point(90, 44); - this.classicLabel15.Name = "classicLabel15"; - this.classicLabel15.Size = new System.Drawing.Size(167, 13); - this.classicLabel15.TabIndex = 2; - this.classicLabel15.Text = "Y2K: A Global Computer Crisis"; - // - // classicLabel16 - // - this.classicLabel16.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.classicLabel16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.classicLabel16.ForeColor = System.Drawing.Color.Navy; - this.classicLabel16.Location = new System.Drawing.Point(122, 44); - this.classicLabel16.Name = "classicLabel16"; - this.classicLabel16.Size = new System.Drawing.Size(109, 13); - this.classicLabel16.TabIndex = 3; - this.classicLabel16.Text = "Microsoft Wi n d o w s"; - // // _12padams1999 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); diff --git a/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs b/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs index 1313f0d..6798109 100644 --- a/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs +++ b/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs @@ -166,10 +166,15 @@ namespace Histacom2.OS.Win98.Win98Apps.Story await Task.Delay(80); TitleScreen.frm98.distort.classicLabel1.Hide(); await Task.Delay(80); TitleScreen.frm98.distort.classicLabel1.Show(); // 10.84 await Task.Delay(3000); - /*if (close_everything_.count2000 == -169) - MyProject.Forms.Windowsxp2002damaged.Show(); - if (close_everything_.count2000 != -170) - return;*/ + + SaveSystem.CurrentSave.CurrentOS = "xpbad"; + SaveSystem.currentTheme = new BadXPTheme(); + SaveSystem.CurrentSave.ThemeName = "badxp"; + TitleScreen.frm98.distort.ParentForm.Close(); + foreach (Form frm in Application.OpenForms) if (frm is WinClassic) frm.Close(); + Program.title.StartGame(); + TitleScreen.frm98.Close(); + return; } } } diff --git a/Histacom2/OS/WinXPBad/Story/Hack4.cs b/Histacom2/OS/WinXPBad/Story/Hack4.cs new file mode 100644 index 0000000..2a9bcd7 --- /dev/null +++ b/Histacom2/OS/WinXPBad/Story/Hack4.cs @@ -0,0 +1,21 @@ +using Histacom2.Engine; +using Histacom2.Engine.Template; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Histacom2.OS.WinXPBad.Story +{ + public class Hack4 : object + { + static WindowManager wm = new WindowManager(); + + public static async void StartObjective() + { + Win95.Win95Apps.WinClassicTerminal Console = new Win95.Win95Apps.WinClassicTerminal(true); + WinXP app = wm.InitXP(Console, "MS-DOS Prompt", null, true, true); + } + } +} |
