Start of simulator code. + animations.

This commit is contained in:
Clienthax 2014-11-18 17:15:46 +00:00
parent 794773bc58
commit 7a265983cf
2 changed files with 365 additions and 243 deletions

View File

@ -28,239 +28,277 @@
/// </summary>
private void InitializeComponent()
{
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.bottomBackgroundImage = new System.Windows.Forms.PictureBox();
this.topBackgroundImage = new System.Windows.Forms.PictureBox();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.iconBorder24pxImage = new System.Windows.Forms.PictureBox();
this.iconBorder48pxImage = new System.Windows.Forms.PictureBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.folderClosedImage = new System.Windows.Forms.PictureBox();
this.folderOpenImage = new System.Windows.Forms.PictureBox();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.backgroundMusicCheckbox = new System.Windows.Forms.CheckBox();
this.clampTextureSizeCheckBox = new System.Windows.Forms.CheckBox();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bottomBackgroundImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.topBackgroundImage)).BeginInit();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.iconBorder24pxImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.iconBorder48pxImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.folderClosedImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.folderOpenImage)).BeginInit();
this.tabPage3.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1074, 615);
this.tabControl1.SizeMode = System.Windows.Forms.TabSizeMode.FillToRight;
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.bottomBackgroundImage);
this.tabPage1.Controls.Add(this.topBackgroundImage);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1066, 589);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Background";
this.tabPage1.UseVisualStyleBackColor = true;
//
// bottomBackgroundImage
//
this.bottomBackgroundImage.Location = new System.Drawing.Point(4, 269);
this.bottomBackgroundImage.Name = "bottomBackgroundImage";
this.bottomBackgroundImage.Size = new System.Drawing.Size(1024, 256);
this.bottomBackgroundImage.TabIndex = 1;
this.bottomBackgroundImage.TabStop = false;
this.bottomBackgroundImage.Click += new System.EventHandler(this.bottomBackgroundImage_Click);
//
// topBackgroundImage
//
this.topBackgroundImage.Location = new System.Drawing.Point(4, 7);
this.topBackgroundImage.Name = "topBackgroundImage";
this.topBackgroundImage.Size = new System.Drawing.Size(1024, 256);
this.topBackgroundImage.TabIndex = 0;
this.topBackgroundImage.TabStop = false;
this.topBackgroundImage.Click += new System.EventHandler(this.topBackgroundImage_Click);
//
// tabPage2
//
this.tabPage2.Controls.Add(this.label3);
this.tabPage2.Controls.Add(this.label4);
this.tabPage2.Controls.Add(this.iconBorder24pxImage);
this.tabPage2.Controls.Add(this.iconBorder48pxImage);
this.tabPage2.Controls.Add(this.label2);
this.tabPage2.Controls.Add(this.label1);
this.tabPage2.Controls.Add(this.folderClosedImage);
this.tabPage2.Controls.Add(this.folderOpenImage);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(1066, 589);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Icons";
this.tabPage2.UseVisualStyleBackColor = true;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(410, 8);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(69, 13);
this.label3.TabIndex = 7;
this.label3.Text = "24x24 border";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(276, 8);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(69, 13);
this.label4.TabIndex = 6;
this.label4.Text = "48x48 border";
//
// iconBorder24pxImage
//
this.iconBorder24pxImage.Location = new System.Drawing.Point(413, 24);
this.iconBorder24pxImage.Name = "iconBorder24pxImage";
this.iconBorder24pxImage.Size = new System.Drawing.Size(128, 128);
this.iconBorder24pxImage.TabIndex = 5;
this.iconBorder24pxImage.TabStop = false;
this.iconBorder24pxImage.Click += new System.EventHandler(this.iconBorder24pxImage_Click);
//
// iconBorder48pxImage
//
this.iconBorder48pxImage.Location = new System.Drawing.Point(279, 24);
this.iconBorder48pxImage.Name = "iconBorder48pxImage";
this.iconBorder48pxImage.Size = new System.Drawing.Size(128, 128);
this.iconBorder48pxImage.TabIndex = 4;
this.iconBorder48pxImage.TabStop = false;
this.iconBorder48pxImage.Click += new System.EventHandler(this.iconBorder48pxImage_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(145, 8);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(67, 13);
this.label2.TabIndex = 3;
this.label2.Text = "closed folder";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(8, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(60, 13);
this.label1.TabIndex = 2;
this.label1.Text = "open folder";
//
// folderClosedImage
//
this.folderClosedImage.Location = new System.Drawing.Point(145, 24);
this.folderClosedImage.Name = "folderClosedImage";
this.folderClosedImage.Size = new System.Drawing.Size(128, 128);
this.folderClosedImage.TabIndex = 1;
this.folderClosedImage.TabStop = false;
this.folderClosedImage.Click += new System.EventHandler(this.folderClosedImage_Click);
//
// folderOpenImage
//
this.folderOpenImage.Location = new System.Drawing.Point(11, 24);
this.folderOpenImage.Name = "folderOpenImage";
this.folderOpenImage.Size = new System.Drawing.Size(128, 128);
this.folderOpenImage.TabIndex = 0;
this.folderOpenImage.TabStop = false;
this.folderOpenImage.DoubleClick += new System.EventHandler(this.folderOpenImage_Click);
//
// tabPage3
//
this.tabPage3.Controls.Add(this.backgroundMusicCheckbox);
this.tabPage3.Controls.Add(this.clampTextureSizeCheckBox);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(1066, 589);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Options";
this.tabPage3.UseVisualStyleBackColor = true;
//
// backgroundMusicCheckbox
//
this.backgroundMusicCheckbox.AutoSize = true;
this.backgroundMusicCheckbox.Checked = true;
this.backgroundMusicCheckbox.CheckState = System.Windows.Forms.CheckState.Checked;
this.backgroundMusicCheckbox.Location = new System.Drawing.Point(6, 29);
this.backgroundMusicCheckbox.Name = "backgroundMusicCheckbox";
this.backgroundMusicCheckbox.Size = new System.Drawing.Size(209, 17);
this.backgroundMusicCheckbox.TabIndex = 2;
this.backgroundMusicCheckbox.Text = "Enable background music (bgm.bcstm)";
this.backgroundMusicCheckbox.UseVisualStyleBackColor = true;
this.backgroundMusicCheckbox.CheckedChanged += new System.EventHandler(this.backgroundMusicCheckbox_CheckedChanged);
//
// clampTextureSizeCheckBox
//
this.clampTextureSizeCheckBox.AutoSize = true;
this.clampTextureSizeCheckBox.Checked = true;
this.clampTextureSizeCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.clampTextureSizeCheckBox.Location = new System.Drawing.Point(6, 6);
this.clampTextureSizeCheckBox.Name = "clampTextureSizeCheckBox";
this.clampTextureSizeCheckBox.Size = new System.Drawing.Size(161, 17);
this.clampTextureSizeCheckBox.TabIndex = 1;
this.clampTextureSizeCheckBox.Text = "Clamp texture sizes in viewer";
this.clampTextureSizeCheckBox.UseVisualStyleBackColor = true;
this.clampTextureSizeCheckBox.CheckedChanged += new System.EventHandler(this.clampTextureSizeCheckBox_CheckedChanged);
//
// tabPage4
//
this.tabPage4.Location = new System.Drawing.Point(4, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(1066, 589);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "Color only themes";
this.tabPage4.UseVisualStyleBackColor = true;
//
// ThemeViewer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1074, 627);
this.Controls.Add(this.tabControl1);
this.Name = "ThemeViewer";
this.Text = "ThemeViewer";
this.Load += new System.EventHandler(this.ThemeViewer_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.bottomBackgroundImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.topBackgroundImage)).EndInit();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.iconBorder24pxImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.iconBorder48pxImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.folderClosedImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.folderOpenImage)).EndInit();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.ResumeLayout(false);
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.bottomBackgroundImage = new System.Windows.Forms.PictureBox();
this.topBackgroundImage = new System.Windows.Forms.PictureBox();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.iconBorder24pxImage = new System.Windows.Forms.PictureBox();
this.iconBorder48pxImage = new System.Windows.Forms.PictureBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.folderClosedImage = new System.Windows.Forms.PictureBox();
this.folderOpenImage = new System.Windows.Forms.PictureBox();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.backgroundMusicCheckbox = new System.Windows.Forms.CheckBox();
this.clampTextureSizeCheckBox = new System.Windows.Forms.CheckBox();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.simBottomBackgroundImage = new System.Windows.Forms.PictureBox();
this.simTopBackgroundImage = new System.Windows.Forms.PictureBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bottomBackgroundImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.topBackgroundImage)).BeginInit();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.iconBorder24pxImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.iconBorder48pxImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.folderClosedImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.folderOpenImage)).BeginInit();
this.tabPage3.SuspendLayout();
this.tabPage5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.simBottomBackgroundImage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.simTopBackgroundImage)).BeginInit();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Controls.Add(this.tabPage5);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1074, 615);
this.tabControl1.SizeMode = System.Windows.Forms.TabSizeMode.FillToRight;
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.bottomBackgroundImage);
this.tabPage1.Controls.Add(this.topBackgroundImage);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1066, 589);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Background";
this.tabPage1.UseVisualStyleBackColor = true;
//
// bottomBackgroundImage
//
this.bottomBackgroundImage.Location = new System.Drawing.Point(4, 269);
this.bottomBackgroundImage.Name = "bottomBackgroundImage";
this.bottomBackgroundImage.Size = new System.Drawing.Size(1024, 256);
this.bottomBackgroundImage.TabIndex = 1;
this.bottomBackgroundImage.TabStop = false;
this.bottomBackgroundImage.Click += new System.EventHandler(this.bottomBackgroundImage_Click);
//
// topBackgroundImage
//
this.topBackgroundImage.Location = new System.Drawing.Point(4, 7);
this.topBackgroundImage.Name = "topBackgroundImage";
this.topBackgroundImage.Size = new System.Drawing.Size(1024, 256);
this.topBackgroundImage.TabIndex = 0;
this.topBackgroundImage.TabStop = false;
this.topBackgroundImage.Click += new System.EventHandler(this.topBackgroundImage_Click);
//
// tabPage2
//
this.tabPage2.Controls.Add(this.label3);
this.tabPage2.Controls.Add(this.label4);
this.tabPage2.Controls.Add(this.iconBorder24pxImage);
this.tabPage2.Controls.Add(this.iconBorder48pxImage);
this.tabPage2.Controls.Add(this.label2);
this.tabPage2.Controls.Add(this.label1);
this.tabPage2.Controls.Add(this.folderClosedImage);
this.tabPage2.Controls.Add(this.folderOpenImage);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(1066, 589);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Icons";
this.tabPage2.UseVisualStyleBackColor = true;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(410, 8);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(69, 13);
this.label3.TabIndex = 7;
this.label3.Text = "24x24 border";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(276, 8);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(69, 13);
this.label4.TabIndex = 6;
this.label4.Text = "48x48 border";
//
// iconBorder24pxImage
//
this.iconBorder24pxImage.Location = new System.Drawing.Point(413, 24);
this.iconBorder24pxImage.Name = "iconBorder24pxImage";
this.iconBorder24pxImage.Size = new System.Drawing.Size(128, 128);
this.iconBorder24pxImage.TabIndex = 5;
this.iconBorder24pxImage.TabStop = false;
this.iconBorder24pxImage.Click += new System.EventHandler(this.iconBorder24pxImage_Click);
//
// iconBorder48pxImage
//
this.iconBorder48pxImage.Location = new System.Drawing.Point(279, 24);
this.iconBorder48pxImage.Name = "iconBorder48pxImage";
this.iconBorder48pxImage.Size = new System.Drawing.Size(128, 128);
this.iconBorder48pxImage.TabIndex = 4;
this.iconBorder48pxImage.TabStop = false;
this.iconBorder48pxImage.Click += new System.EventHandler(this.iconBorder48pxImage_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(145, 8);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(67, 13);
this.label2.TabIndex = 3;
this.label2.Text = "closed folder";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(8, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(60, 13);
this.label1.TabIndex = 2;
this.label1.Text = "open folder";
//
// folderClosedImage
//
this.folderClosedImage.Location = new System.Drawing.Point(145, 24);
this.folderClosedImage.Name = "folderClosedImage";
this.folderClosedImage.Size = new System.Drawing.Size(128, 128);
this.folderClosedImage.TabIndex = 1;
this.folderClosedImage.TabStop = false;
this.folderClosedImage.Click += new System.EventHandler(this.folderClosedImage_Click);
//
// folderOpenImage
//
this.folderOpenImage.Location = new System.Drawing.Point(11, 24);
this.folderOpenImage.Name = "folderOpenImage";
this.folderOpenImage.Size = new System.Drawing.Size(128, 128);
this.folderOpenImage.TabIndex = 0;
this.folderOpenImage.TabStop = false;
this.folderOpenImage.DoubleClick += new System.EventHandler(this.folderOpenImage_Click);
//
// tabPage3
//
this.tabPage3.Controls.Add(this.backgroundMusicCheckbox);
this.tabPage3.Controls.Add(this.clampTextureSizeCheckBox);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(1066, 589);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Options";
this.tabPage3.UseVisualStyleBackColor = true;
//
// backgroundMusicCheckbox
//
this.backgroundMusicCheckbox.AutoSize = true;
this.backgroundMusicCheckbox.Checked = true;
this.backgroundMusicCheckbox.CheckState = System.Windows.Forms.CheckState.Checked;
this.backgroundMusicCheckbox.Location = new System.Drawing.Point(6, 29);
this.backgroundMusicCheckbox.Name = "backgroundMusicCheckbox";
this.backgroundMusicCheckbox.Size = new System.Drawing.Size(209, 17);
this.backgroundMusicCheckbox.TabIndex = 2;
this.backgroundMusicCheckbox.Text = "Enable background music (bgm.bcstm)";
this.backgroundMusicCheckbox.UseVisualStyleBackColor = true;
this.backgroundMusicCheckbox.CheckedChanged += new System.EventHandler(this.backgroundMusicCheckbox_CheckedChanged);
//
// clampTextureSizeCheckBox
//
this.clampTextureSizeCheckBox.AutoSize = true;
this.clampTextureSizeCheckBox.Checked = true;
this.clampTextureSizeCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.clampTextureSizeCheckBox.Location = new System.Drawing.Point(6, 6);
this.clampTextureSizeCheckBox.Name = "clampTextureSizeCheckBox";
this.clampTextureSizeCheckBox.Size = new System.Drawing.Size(161, 17);
this.clampTextureSizeCheckBox.TabIndex = 1;
this.clampTextureSizeCheckBox.Text = "Clamp texture sizes in viewer";
this.clampTextureSizeCheckBox.UseVisualStyleBackColor = true;
this.clampTextureSizeCheckBox.CheckedChanged += new System.EventHandler(this.clampTextureSizeCheckBox_CheckedChanged);
//
// tabPage4
//
this.tabPage4.Location = new System.Drawing.Point(4, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(1066, 589);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "Color only themes";
this.tabPage4.UseVisualStyleBackColor = true;
//
// tabPage5
//
this.tabPage5.Controls.Add(this.simBottomBackgroundImage);
this.tabPage5.Controls.Add(this.simTopBackgroundImage);
this.tabPage5.Location = new System.Drawing.Point(4, 22);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
this.tabPage5.Size = new System.Drawing.Size(1066, 589);
this.tabPage5.TabIndex = 4;
this.tabPage5.Text = "Simulator";
this.tabPage5.UseVisualStyleBackColor = true;
//
// simBottomBackgroundImage
//
this.simBottomBackgroundImage.Location = new System.Drawing.Point(3, 265);
this.simBottomBackgroundImage.Name = "simBottomBackgroundImage";
this.simBottomBackgroundImage.Size = new System.Drawing.Size(1024, 256);
this.simBottomBackgroundImage.TabIndex = 3;
this.simBottomBackgroundImage.TabStop = false;
//
// simTopBackgroundImage
//
this.simTopBackgroundImage.Location = new System.Drawing.Point(3, 3);
this.simTopBackgroundImage.Name = "simTopBackgroundImage";
this.simTopBackgroundImage.Size = new System.Drawing.Size(1024, 256);
this.simTopBackgroundImage.TabIndex = 2;
this.simTopBackgroundImage.TabStop = false;
//
// ThemeViewer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1074, 627);
this.Controls.Add(this.tabControl1);
this.Name = "ThemeViewer";
this.Text = "ThemeViewer";
this.Load += new System.EventHandler(this.ThemeViewer_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.bottomBackgroundImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.topBackgroundImage)).EndInit();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.iconBorder24pxImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.iconBorder48pxImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.folderClosedImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.folderOpenImage)).EndInit();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.tabPage5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.simBottomBackgroundImage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.simTopBackgroundImage)).EndInit();
this.ResumeLayout(false);
}
@ -283,6 +321,9 @@
private System.Windows.Forms.CheckBox clampTextureSizeCheckBox;
private System.Windows.Forms.CheckBox backgroundMusicCheckbox;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.TabPage tabPage5;
private System.Windows.Forms.PictureBox simBottomBackgroundImage;
private System.Windows.Forms.PictureBox simTopBackgroundImage;
}
}

View File

@ -13,6 +13,7 @@ using System.IO;
using _3DS.UI;
using _3DS.GPU;
using LibEveryFileExplorer.IO;
using System.Timers;
namespace _3DS.UI
{
@ -37,20 +38,96 @@ namespace _3DS.UI
private void loadImages()
{
topBackgroundImage.BackColor = Color.Aqua;
topBackgroundImage.Image = theme.GetTopTexture(clampTextureSizeCheckBox.Checked);
bottomBackgroundImage.Image = theme.GetBottomTexture(clampTextureSizeCheckBox.Checked);
folderOpenImage.Image = theme.GetOpenFolderTexture(clampTextureSizeCheckBox.Checked);
folderClosedImage.Image = theme.GetClosedFolderTexture(clampTextureSizeCheckBox.Checked);
iconBorder48pxImage.Image = theme.GetIconBorder48px(clampTextureSizeCheckBox.Checked);
iconBorder24pxImage.Image = theme.GetIconBorder24px(clampTextureSizeCheckBox.Checked);
simTopBackgroundImage.Image = topBackgroundImage.Image;
if (theme.header.topScreenDrawType == 1)//Solid
bottomBackgroundImage.Image = theme.GetBottomTexture(clampTextureSizeCheckBox.Checked);
simBottomBackgroundImage.Image = bottomBackgroundImage.Image;
if (theme.header.useFolderTextures)
{
folderOpenImage.Image = theme.GetOpenFolderTexture(clampTextureSizeCheckBox.Checked);
folderClosedImage.Image = theme.GetClosedFolderTexture(clampTextureSizeCheckBox.Checked);
}
if (theme.header.useIconBorders)
{
iconBorder48pxImage.Image = theme.GetIconBorder48px(clampTextureSizeCheckBox.Checked);
iconBorder24pxImage.Image = theme.GetIconBorder24px(clampTextureSizeCheckBox.Checked);
}
if (theme.header.topScreenDrawType == 1)//Solid
topBackgroundImage.BackColor = theme.topSolidColor;
if (theme.header.bottomScreenDrawType == 1)//Solid
bottomBackgroundImage.BackColor = theme.bottomSolidColor;
if (theme.header.bottomScreenFrameType == 2 || theme.header.bottomScreenFrameType == 4)
{
Rectangle frame0rect = new Rectangle(0, 0, 320, theme.bottomClampHeight);
Rectangle frame1rect = new Rectangle(320, 0, 320, theme.bottomClampHeight);
Rectangle frame2rect = new Rectangle(640, 0, 320, theme.bottomClampHeight);
Bitmap map = new Bitmap(960, 240);//new Bitmap(bottomBackgroundImage.Image);
bottomBackgroundImage.DrawToBitmap(map, new Rectangle(0,0,960,240));
bottomFrame0 = map.Clone(frame0rect, map.PixelFormat);
bottomFrame1 = map.Clone(frame1rect, map.PixelFormat);
bottomFrame2 = map.Clone(frame2rect, map.PixelFormat);
System.Timers.Timer timer = new System.Timers.Timer();
timer.Elapsed += new System.Timers.ElapsedEventHandler(onTimedEvent);
timer.Interval = 500;
timer.Enabled = true;
}
}
Bitmap bottomFrame0;
Bitmap bottomFrame1;
Bitmap bottomFrame2;
int frameptr = 0;
private void onTimedEvent(object source, ElapsedEventArgs e)
{
if (theme.header.bottomScreenFrameType == 2)
{
if (frameptr == 4)
frameptr = 0;
if (frameptr == 0)
simBottomBackgroundImage.Image = bottomFrame0;
if (frameptr == 1)
simBottomBackgroundImage.Image = bottomFrame1;
if (frameptr == 2)
simBottomBackgroundImage.Image = bottomFrame0;
if (frameptr == 3)
simBottomBackgroundImage.Image = bottomFrame2;
}
else if (theme.header.bottomScreenFrameType == 4)
{
if (frameptr == 4)
frameptr = 0;
if (frameptr == 0)
simBottomBackgroundImage.Image = bottomFrame0;
if (frameptr == 1)
simBottomBackgroundImage.Image = bottomFrame1;
if (frameptr == 2)
simBottomBackgroundImage.Image = bottomFrame2;
if (frameptr == 3)
simBottomBackgroundImage.Image = bottomFrame1;
}
frameptr++;
}
private void bitmapFromPngSelect(ref byte[] texturedata, Textures.ImageFormat imageFormat, int fullWidth, int fullHeight, int displayWidth, int displayHeight)
{
MessageBox.Show("Please choose a " + fullWidth + "x" + fullHeight + " size image, only " + displayWidth + "x" + displayHeight + " will be displayed on the 3ds!");
@ -70,11 +147,13 @@ namespace _3DS.UI
private void folderOpenImage_Click(object sender, EventArgs e)
{
bitmapFromPngSelect(ref theme.openFolderTexture, Textures.ImageFormat.RGB8, theme.folderWidth, theme.folderHeight, 82, 64);
if (theme.header.useFolderTextures)
bitmapFromPngSelect(ref theme.openFolderTexture, Textures.ImageFormat.RGB8, theme.folderWidth, theme.folderHeight, 82, 64);
}
private void folderClosedImage_Click(object sender, EventArgs e)
{
bitmapFromPngSelect(ref theme.closedFolderTexture, Textures.ImageFormat.RGB8, theme.folderWidth, theme.folderHeight, 74, 64);
if (theme.header.useFolderTextures)
bitmapFromPngSelect(ref theme.closedFolderTexture, Textures.ImageFormat.RGB8, theme.folderWidth, theme.folderHeight, 74, 64);
}
private void topBackgroundImage_Click(object sender, EventArgs e)
{
@ -88,12 +167,14 @@ namespace _3DS.UI
private void iconBorder48pxImage_Click(object sender, EventArgs e)
{
bitmapFromPngSelect(ref theme.iconBorder48pxTexture, Textures.ImageFormat.RGB8, theme.iconBorder48pxWidth, theme.iconBorder48pxHeight, 36, 72);
if (theme.header.useIconBorders)
bitmapFromPngSelect(ref theme.iconBorder48pxTexture, Textures.ImageFormat.RGB8, theme.iconBorder48pxWidth, theme.iconBorder48pxHeight, 36, 72);
}
private void iconBorder24pxImage_Click(object sender, EventArgs e)
{
bitmapFromPngSelect(ref theme.iconBorder24pxTexture, Textures.ImageFormat.RGB8, theme.iconBorder24pxWidth, theme.iconBorder24pxHeight, 25, 50);
if (theme.header.useIconBorders)
bitmapFromPngSelect(ref theme.iconBorder24pxTexture, Textures.ImageFormat.RGB8, theme.iconBorder24pxWidth, theme.iconBorder24pxHeight, 25, 50);
}
private void clampTextureSizeCheckBox_CheckedChanged(object sender, EventArgs e)