diff --git a/Tools/ANXContentCompilerGUI/ANX.ContentCompiler.GUI.csproj b/Tools/ANXContentCompilerGUI/ANX.ContentCompiler.GUI.csproj
index 72eea06a..9072081a 100644
--- a/Tools/ANXContentCompilerGUI/ANX.ContentCompiler.GUI.csproj
+++ b/Tools/ANXContentCompilerGUI/ANX.ContentCompiler.GUI.csproj
@@ -90,12 +90,19 @@
FirstStartScreen.cs
+
UserControl
EditingState.cs
+
+ UserControl
+
+
+ MenuState.cs
+
UserControl
@@ -134,6 +141,9 @@
EditingState.cs
+
+ MenuState.cs
+
StartState.cs
diff --git a/Tools/ANXContentCompilerGUI/Controls/ArrowButton.Designer.cs b/Tools/ANXContentCompilerGUI/Controls/ArrowButton.Designer.cs
index 4029512c..84e5a1db 100644
--- a/Tools/ANXContentCompilerGUI/Controls/ArrowButton.Designer.cs
+++ b/Tools/ANXContentCompilerGUI/Controls/ArrowButton.Designer.cs
@@ -30,41 +30,62 @@
{
this.labelText = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.splitContainer = new System.Windows.Forms.SplitContainer();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.splitContainer.Panel1.SuspendLayout();
+ this.splitContainer.Panel2.SuspendLayout();
+ this.splitContainer.SuspendLayout();
this.SuspendLayout();
//
// labelText
//
- this.labelText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelText.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelText.Font = new System.Drawing.Font("Segoe UI Semibold", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.labelText.Location = new System.Drawing.Point(82, -1);
+ this.labelText.Location = new System.Drawing.Point(0, 0);
this.labelText.Name = "labelText";
- this.labelText.Size = new System.Drawing.Size(252, 90);
+ this.labelText.Size = new System.Drawing.Size(259, 48);
this.labelText.TabIndex = 0;
this.labelText.Text = "Test Text";
this.labelText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.labelText.Click += new System.EventHandler(this.labelText_Click);
- this.labelText.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrowButton_MouseDown);
- this.labelText.MouseEnter += new System.EventHandler(this.ArrowButton_MouseEnter);
- this.labelText.MouseLeave += new System.EventHandler(this.ArrowButton_MouseLeave);
- this.labelText.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ArrowButton_MouseUp);
+ this.labelText.Click += new System.EventHandler(this.LabelTextClick);
+ this.labelText.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrowButtonMouseDown);
+ this.labelText.MouseEnter += new System.EventHandler(this.ArrowButtonMouseEnter);
+ this.labelText.MouseLeave += new System.EventHandler(this.ArrowButtonMouseLeave);
+ this.labelText.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ArrowButtonMouseUp);
//
// pictureBox1
//
- this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
+ this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Image = global::ANX.ContentCompiler.GUI.Properties.Resources.arrow;
- this.pictureBox1.Location = new System.Drawing.Point(17, 16);
+ this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(55, 61);
+ this.pictureBox1.Size = new System.Drawing.Size(47, 48);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
- this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
- this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrowButton_MouseDown);
- this.pictureBox1.MouseEnter += new System.EventHandler(this.ArrowButton_MouseEnter);
- this.pictureBox1.MouseLeave += new System.EventHandler(this.ArrowButton_MouseLeave);
- this.pictureBox1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ArrowButton_MouseUp);
+ this.pictureBox1.Click += new System.EventHandler(this.PictureBox1Click);
+ this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrowButtonMouseDown);
+ this.pictureBox1.MouseEnter += new System.EventHandler(this.ArrowButtonMouseEnter);
+ this.pictureBox1.MouseLeave += new System.EventHandler(this.ArrowButtonMouseLeave);
+ this.pictureBox1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ArrowButtonMouseUp);
+ //
+ // splitContainer
+ //
+ this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer.IsSplitterFixed = true;
+ this.splitContainer.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer.Name = "splitContainer";
+ //
+ // splitContainer.Panel1
+ //
+ this.splitContainer.Panel1.Controls.Add(this.pictureBox1);
+ //
+ // splitContainer.Panel2
+ //
+ this.splitContainer.Panel2.Controls.Add(this.labelText);
+ this.splitContainer.Size = new System.Drawing.Size(310, 48);
+ this.splitContainer.SplitterDistance = 47;
+ this.splitContainer.TabIndex = 2;
//
// ArrowButton
//
@@ -72,17 +93,21 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.Controls.Add(this.pictureBox1);
- this.Controls.Add(this.labelText);
+ this.Controls.Add(this.splitContainer);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ForeColor = System.Drawing.Color.White;
this.Name = "ArrowButton";
- this.Size = new System.Drawing.Size(337, 93);
- this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrowButton_MouseDown);
- this.MouseEnter += new System.EventHandler(this.ArrowButton_MouseEnter);
- this.MouseLeave += new System.EventHandler(this.ArrowButton_MouseLeave);
- this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ArrowButton_MouseUp);
+ this.Size = new System.Drawing.Size(310, 48);
+ this.Load += new System.EventHandler(this.ArrowButtonLoad);
+ this.FontChanged += new System.EventHandler(this.ArrowButtonFontChanged);
+ this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ArrowButtonMouseDown);
+ this.MouseEnter += new System.EventHandler(this.ArrowButtonMouseEnter);
+ this.MouseLeave += new System.EventHandler(this.ArrowButtonMouseLeave);
+ this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.ArrowButtonMouseUp);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.splitContainer.Panel1.ResumeLayout(false);
+ this.splitContainer.Panel2.ResumeLayout(false);
+ this.splitContainer.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -91,5 +116,6 @@
private System.Windows.Forms.Label labelText;
private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.SplitContainer splitContainer;
}
}
diff --git a/Tools/ANXContentCompilerGUI/Controls/ArrowButton.cs b/Tools/ANXContentCompilerGUI/Controls/ArrowButton.cs
index 47cd98e9..8ef703ca 100644
--- a/Tools/ANXContentCompilerGUI/Controls/ArrowButton.cs
+++ b/Tools/ANXContentCompilerGUI/Controls/ArrowButton.cs
@@ -19,34 +19,45 @@ namespace ANX.ContentCompiler.GUI.Controls
set { labelText.Text = value; }
}
- private void ArrowButton_MouseEnter(object sender, EventArgs e)
+ private void ArrowButtonMouseEnter(object sender, EventArgs e)
{
BorderStyle = BorderStyle.FixedSingle;
}
- private void ArrowButton_MouseLeave(object sender, EventArgs e)
+ private void ArrowButtonMouseLeave(object sender, EventArgs e)
{
BorderStyle = BorderStyle.None;
}
- private void ArrowButton_MouseDown(object sender, MouseEventArgs e)
+ private void ArrowButtonMouseDown(object sender, MouseEventArgs e)
{
- BackColor = Color.Green;
+ BackColor = Settings.AccentColor3;
}
- private void ArrowButton_MouseUp(object sender, MouseEventArgs e)
+ private void ArrowButtonMouseUp(object sender, MouseEventArgs e)
{
- BackColor = Color.Transparent;
+ BackColor = Settings.MainColor;
}
- private void pictureBox1_Click(object sender, EventArgs e)
+ private void PictureBox1Click(object sender, EventArgs e)
{
OnClick(e);
}
- private void labelText_Click(object sender, EventArgs e)
+ private void LabelTextClick(object sender, EventArgs e)
{
OnClick(e);
}
+
+ private void ArrowButtonFontChanged(object sender, EventArgs e)
+ {
+ labelText.Font = Font;
+ }
+
+ private void ArrowButtonLoad(object sender, EventArgs e)
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ }
}
}
\ No newline at end of file
diff --git a/Tools/ANXContentCompilerGUI/Controls/RibbonButton.Designer.cs b/Tools/ANXContentCompilerGUI/Controls/RibbonButton.Designer.cs
index 537d0d24..06273f60 100644
--- a/Tools/ANXContentCompilerGUI/Controls/RibbonButton.Designer.cs
+++ b/Tools/ANXContentCompilerGUI/Controls/RibbonButton.Designer.cs
@@ -40,11 +40,11 @@
this.pictureBox.Size = new System.Drawing.Size(60, 60);
this.pictureBox.TabIndex = 0;
this.pictureBox.TabStop = false;
- this.pictureBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.RibbonButton_MouseDown);
- this.pictureBox.MouseEnter += new System.EventHandler(this.RibbonButton_MouseEnter);
- this.pictureBox.MouseLeave += new System.EventHandler(this.RibbonButton_MouseLeave);
- this.pictureBox.MouseHover += new System.EventHandler(this.RibbonButton_MouseHover);
- this.pictureBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.RibbonButton_MouseUp);
+ this.pictureBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.RibbonButtonMouseDown);
+ this.pictureBox.MouseEnter += new System.EventHandler(this.RibbonButtonMouseEnter);
+ this.pictureBox.MouseLeave += new System.EventHandler(this.RibbonButtonMouseLeave);
+ this.pictureBox.MouseHover += new System.EventHandler(this.RibbonButtonMouseHover);
+ this.pictureBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.RibbonButtonMouseUp);
//
// labelText
//
@@ -56,11 +56,11 @@
this.labelText.TabIndex = 1;
this.labelText.Text = "Button";
this.labelText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- this.labelText.MouseDown += new System.Windows.Forms.MouseEventHandler(this.RibbonButton_MouseDown);
- this.labelText.MouseEnter += new System.EventHandler(this.RibbonButton_MouseEnter);
- this.labelText.MouseLeave += new System.EventHandler(this.RibbonButton_MouseLeave);
- this.labelText.MouseHover += new System.EventHandler(this.RibbonButton_MouseHover);
- this.labelText.MouseUp += new System.Windows.Forms.MouseEventHandler(this.RibbonButton_MouseUp);
+ this.labelText.MouseDown += new System.Windows.Forms.MouseEventHandler(this.RibbonButtonMouseDown);
+ this.labelText.MouseEnter += new System.EventHandler(this.RibbonButtonMouseEnter);
+ this.labelText.MouseLeave += new System.EventHandler(this.RibbonButtonMouseLeave);
+ this.labelText.MouseHover += new System.EventHandler(this.RibbonButtonMouseHover);
+ this.labelText.MouseUp += new System.Windows.Forms.MouseEventHandler(this.RibbonButtonMouseUp);
//
// RibbonButton
//
@@ -72,11 +72,12 @@
this.ForeColor = System.Drawing.Color.White;
this.Name = "RibbonButton";
this.Size = new System.Drawing.Size(60, 79);
- this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.RibbonButton_MouseDown);
- this.MouseEnter += new System.EventHandler(this.RibbonButton_MouseEnter);
- this.MouseLeave += new System.EventHandler(this.RibbonButton_MouseLeave);
- this.MouseHover += new System.EventHandler(this.RibbonButton_MouseHover);
- this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.RibbonButton_MouseUp);
+ this.Load += new System.EventHandler(this.RibbonButtonLoad);
+ this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.RibbonButtonMouseDown);
+ this.MouseEnter += new System.EventHandler(this.RibbonButtonMouseEnter);
+ this.MouseLeave += new System.EventHandler(this.RibbonButtonMouseLeave);
+ this.MouseHover += new System.EventHandler(this.RibbonButtonMouseHover);
+ this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.RibbonButtonMouseUp);
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit();
this.ResumeLayout(false);
diff --git a/Tools/ANXContentCompilerGUI/Controls/RibbonButton.cs b/Tools/ANXContentCompilerGUI/Controls/RibbonButton.cs
index 4edddbf5..9b3954d4 100644
--- a/Tools/ANXContentCompilerGUI/Controls/RibbonButton.cs
+++ b/Tools/ANXContentCompilerGUI/Controls/RibbonButton.cs
@@ -26,30 +26,37 @@ namespace ANX.ContentCompiler.GUI.Controls
set { pictureBox.Image = value; }
}
- private void RibbonButton_MouseEnter(object sender, EventArgs e)
+ private void RibbonButtonMouseEnter(object sender, EventArgs e)
{
- BackColor = Color.LightGray;
+ BackColor = Settings.LightMainColor;
}
- private void RibbonButton_MouseDown(object sender, MouseEventArgs e)
+ private void RibbonButtonMouseDown(object sender, MouseEventArgs e)
{
- BackColor = Color.LimeGreen;
+ BackColor = Settings.AccentColor;
OnClick(new EventArgs());
}
- private void RibbonButton_MouseUp(object sender, MouseEventArgs e)
+ private void RibbonButtonMouseUp(object sender, MouseEventArgs e)
{
- BackColor = Color.LightGray;
+ BackColor = Settings.LightMainColor;
}
- private void RibbonButton_MouseLeave(object sender, EventArgs e)
+ private void RibbonButtonMouseLeave(object sender, EventArgs e)
{
- BackColor = Color.FromArgb(0, 64, 64, 64);
+ BackColor = Settings.MainColor;
}
- private void RibbonButton_MouseHover(object sender, EventArgs e)
+ private void RibbonButtonMouseHover(object sender, EventArgs e)
{
- //BackColor = Color.LightGray;
+ BackColor = Settings.LightMainColor;
+ }
+
+ private void RibbonButtonLoad(object sender, EventArgs e)
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ Refresh();
}
}
}
\ No newline at end of file
diff --git a/Tools/ANXContentCompilerGUI/Controls/RibbonButton.resx b/Tools/ANXContentCompilerGUI/Controls/RibbonButton.resx
index 29dcb1b3..5ea0895e 100644
--- a/Tools/ANXContentCompilerGUI/Controls/RibbonButton.resx
+++ b/Tools/ANXContentCompilerGUI/Controls/RibbonButton.resx
@@ -112,9 +112,9 @@
2.0
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
\ No newline at end of file
diff --git a/Tools/ANXContentCompilerGUI/Dialogues/FirstStartScreen.cs b/Tools/ANXContentCompilerGUI/Dialogues/FirstStartScreen.cs
index 3acd877b..f4a8092a 100644
--- a/Tools/ANXContentCompilerGUI/Dialogues/FirstStartScreen.cs
+++ b/Tools/ANXContentCompilerGUI/Dialogues/FirstStartScreen.cs
@@ -7,6 +7,14 @@ namespace ANX.ContentCompiler.GUI.Dialogues
public FirstStartScreen()
{
InitializeComponent();
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ button1.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ button2.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ button3.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ button1.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ button2.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ button3.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
}
}
}
\ No newline at end of file
diff --git a/Tools/ANXContentCompilerGUI/Dialogues/NewProjectImportersScreen.cs b/Tools/ANXContentCompilerGUI/Dialogues/NewProjectImportersScreen.cs
index 18854503..c35a4998 100644
--- a/Tools/ANXContentCompilerGUI/Dialogues/NewProjectImportersScreen.cs
+++ b/Tools/ANXContentCompilerGUI/Dialogues/NewProjectImportersScreen.cs
@@ -8,6 +8,27 @@ namespace ANX.ContentCompiler.GUI.Dialogues
public NewProjectImportersScreen()
{
InitializeComponent();
+ SetUpColors();
+ }
+
+ private void SetUpColors()
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ buttonClose.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonBrowse.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonCancel.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonNext.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonClose.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonBrowse.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonCancel.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonNext.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonNext.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonClose.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonBrowse.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonCancel.FlatAppearance.BorderColor = Settings.LightMainColor;
+ textBoxLocation.BackColor = Settings.DarkMainColor;
+ textBoxLocation.ForeColor = Settings.ForeColor;
}
private void ArrowButtonYesClick(object sender, EventArgs e)
diff --git a/Tools/ANXContentCompilerGUI/Dialogues/NewProjectOutputScreen.cs b/Tools/ANXContentCompilerGUI/Dialogues/NewProjectOutputScreen.cs
index 1b9f81ca..d9da15e9 100644
--- a/Tools/ANXContentCompilerGUI/Dialogues/NewProjectOutputScreen.cs
+++ b/Tools/ANXContentCompilerGUI/Dialogues/NewProjectOutputScreen.cs
@@ -8,6 +8,7 @@ namespace ANX.ContentCompiler.GUI.Dialogues
public NewProjectOutputScreen()
{
InitializeComponent();
+ SetUpColors();
}
private void ArrowButtonYesClick(object sender, EventArgs e)
@@ -19,6 +20,26 @@ namespace ANX.ContentCompiler.GUI.Dialogues
arrowButtonNo.Enabled = false;
}
+ private void SetUpColors()
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ buttonClose.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonBrowse.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonCancel.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonNext.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonClose.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonBrowse.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonCancel.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonNext.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonNext.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonClose.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonBrowse.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonCancel.FlatAppearance.BorderColor = Settings.LightMainColor;
+ textBoxLocation.BackColor = Settings.DarkMainColor;
+ textBoxLocation.ForeColor = Settings.ForeColor;
+ }
+
private void ArrowButtonNoClick(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
diff --git a/Tools/ANXContentCompilerGUI/Dialogues/NewProjectScreen.cs b/Tools/ANXContentCompilerGUI/Dialogues/NewProjectScreen.cs
index d503e98d..a16b05c0 100644
--- a/Tools/ANXContentCompilerGUI/Dialogues/NewProjectScreen.cs
+++ b/Tools/ANXContentCompilerGUI/Dialogues/NewProjectScreen.cs
@@ -9,7 +9,30 @@ namespace ANX.ContentCompiler.GUI.Dialogues
public NewProjectScreen()
{
InitializeComponent();
- textBoxLocation.Text = MainWindow.DefaultProjectPath;
+ textBoxLocation.Text = Settings.DefaultProjectPath;
+ SetUpColors();
+ }
+
+ private void SetUpColors()
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ button3.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonBrowse.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonCancel.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonNext.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ button3.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonBrowse.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonCancel.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonNext.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonNext.FlatAppearance.BorderColor = Settings.LightMainColor;
+ button3.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonBrowse.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonCancel.FlatAppearance.BorderColor = Settings.LightMainColor;
+ textBoxName.BackColor = Settings.DarkMainColor;
+ textBoxLocation.BackColor = Settings.DarkMainColor;
+ textBoxName.ForeColor = Settings.ForeColor;
+ textBoxLocation.ForeColor = Settings.ForeColor;
}
private void ButtonBrowseClick(object sender, EventArgs e)
@@ -29,7 +52,7 @@ namespace ANX.ContentCompiler.GUI.Dialogues
private void TextBoxNameTextChanged(object sender, EventArgs e)
{
- textBoxLocation.Text = Path.Combine(MainWindow.DefaultProjectPath, textBoxName.Text);
+ textBoxLocation.Text = Path.Combine(Settings.DefaultProjectPath, textBoxName.Text);
}
private void ButtonNextClick(object sender, EventArgs e)
diff --git a/Tools/ANXContentCompilerGUI/Dialogues/NewProjectSummaryScreen.cs b/Tools/ANXContentCompilerGUI/Dialogues/NewProjectSummaryScreen.cs
index 062aac34..d53d5793 100644
--- a/Tools/ANXContentCompilerGUI/Dialogues/NewProjectSummaryScreen.cs
+++ b/Tools/ANXContentCompilerGUI/Dialogues/NewProjectSummaryScreen.cs
@@ -8,6 +8,7 @@ namespace ANX.ContentCompiler.GUI.Dialogues
public NewProjectSummaryScreen(String projectName, String projectDir, String outputDir, bool customImporters, String customImportersDir, int customImportersFound, int customProcessorsFound)
{
InitializeComponent();
+ SetUpColors();
textBox.Text =
"Summary for new project " + projectName + Environment.NewLine +
"=========================================" + Environment.NewLine +
@@ -26,6 +27,20 @@ namespace ANX.ContentCompiler.GUI.Dialogues
}
+ private void SetUpColors()
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ buttonClose.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonNext.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonClose.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonNext.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ buttonNext.FlatAppearance.BorderColor = Settings.LightMainColor;
+ buttonClose.FlatAppearance.BorderColor = Settings.LightMainColor;
+ textBox.BackColor = Settings.DarkMainColor;
+ textBox.ForeColor = Settings.ForeColor;
+ }
+
private void ButtonNextClick(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
diff --git a/Tools/ANXContentCompilerGUI/MainWindow.Designer.cs b/Tools/ANXContentCompilerGUI/MainWindow.Designer.cs
index 70506ad9..1cc3ae64 100644
--- a/Tools/ANXContentCompilerGUI/MainWindow.Designer.cs
+++ b/Tools/ANXContentCompilerGUI/MainWindow.Designer.cs
@@ -32,6 +32,12 @@ namespace ANX.ContentCompiler.GUI
{
this.components = new System.ComponentModel.Container();
this.splitContainerMenuLayout = new System.Windows.Forms.SplitContainer();
+ this.ribbonButtonHelp = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
+ this.ribbonButtonWeb = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
+ this.ribbonButtonClean = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
+ this.ribbonButtonSave = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
+ this.ribbonButtonLoad = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
+ this.ribbonButtonNew = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
this.buttonQuit = new System.Windows.Forms.Button();
this.buttonMenu = new System.Windows.Forms.Button();
this.labelTitle = new System.Windows.Forms.Label();
@@ -43,16 +49,11 @@ namespace ANX.ContentCompiler.GUI
this.treeViewItemRename = new System.Windows.Forms.ToolStripMenuItem();
this.treeViewItemDelete = new System.Windows.Forms.ToolStripMenuItem();
this.splitContainerProperties = new System.Windows.Forms.SplitContainer();
- this.labelProperties = new System.Windows.Forms.Label();
- this.propertyGrid = new System.Windows.Forms.PropertyGrid();
- this.ribbonButtonHelp = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
- this.ribbonButtonWeb = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
- this.ribbonButtonClean = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
- this.ribbonButtonSave = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
- this.ribbonButtonLoad = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
- this.ribbonButtonNew = new ANX.ContentCompiler.GUI.Controls.RibbonButton();
this.editingState = new ANX.ContentCompiler.GUI.States.EditingState();
this.startState = new ANX.ContentCompiler.GUI.States.StartState();
+ this.labelProperties = new System.Windows.Forms.Label();
+ this.propertyGrid = new System.Windows.Forms.PropertyGrid();
+ this.menuState = new ANX.ContentCompiler.GUI.States.MenuState();
this.splitContainerMenuLayout.Panel1.SuspendLayout();
this.splitContainerMenuLayout.Panel2.SuspendLayout();
this.splitContainerMenuLayout.SuspendLayout();
@@ -94,6 +95,79 @@ namespace ANX.ContentCompiler.GUI
this.splitContainerMenuLayout.SplitterDistance = 99;
this.splitContainerMenuLayout.TabIndex = 0;
//
+ // ribbonButtonHelp
+ //
+ this.ribbonButtonHelp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.ribbonButtonHelp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.ribbonButtonHelp.Content = "Help";
+ this.ribbonButtonHelp.ForeColor = System.Drawing.Color.White;
+ this.ribbonButtonHelp.Image = null;
+ this.ribbonButtonHelp.Location = new System.Drawing.Point(299, 26);
+ this.ribbonButtonHelp.Name = "ribbonButtonHelp";
+ this.ribbonButtonHelp.Size = new System.Drawing.Size(52, 68);
+ this.ribbonButtonHelp.TabIndex = 8;
+ //
+ // ribbonButtonWeb
+ //
+ this.ribbonButtonWeb.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.ribbonButtonWeb.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.ribbonButtonWeb.Content = "Website";
+ this.ribbonButtonWeb.ForeColor = System.Drawing.Color.White;
+ this.ribbonButtonWeb.Image = null;
+ this.ribbonButtonWeb.Location = new System.Drawing.Point(237, 26);
+ this.ribbonButtonWeb.Name = "ribbonButtonWeb";
+ this.ribbonButtonWeb.Size = new System.Drawing.Size(63, 68);
+ this.ribbonButtonWeb.TabIndex = 7;
+ //
+ // ribbonButtonClean
+ //
+ this.ribbonButtonClean.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.ribbonButtonClean.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.ribbonButtonClean.Content = "Clean";
+ this.ribbonButtonClean.ForeColor = System.Drawing.Color.White;
+ this.ribbonButtonClean.Image = null;
+ this.ribbonButtonClean.Location = new System.Drawing.Point(186, 26);
+ this.ribbonButtonClean.Name = "ribbonButtonClean";
+ this.ribbonButtonClean.Size = new System.Drawing.Size(52, 68);
+ this.ribbonButtonClean.TabIndex = 6;
+ //
+ // ribbonButtonSave
+ //
+ this.ribbonButtonSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.ribbonButtonSave.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.ribbonButtonSave.Content = "Save";
+ this.ribbonButtonSave.ForeColor = System.Drawing.Color.White;
+ this.ribbonButtonSave.Image = null;
+ this.ribbonButtonSave.Location = new System.Drawing.Point(105, 26);
+ this.ribbonButtonSave.Name = "ribbonButtonSave";
+ this.ribbonButtonSave.Size = new System.Drawing.Size(52, 68);
+ this.ribbonButtonSave.TabIndex = 5;
+ //
+ // ribbonButtonLoad
+ //
+ this.ribbonButtonLoad.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.ribbonButtonLoad.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.ribbonButtonLoad.Content = "Open";
+ this.ribbonButtonLoad.ForeColor = System.Drawing.Color.White;
+ this.ribbonButtonLoad.Image = null;
+ this.ribbonButtonLoad.Location = new System.Drawing.Point(54, 26);
+ this.ribbonButtonLoad.Name = "ribbonButtonLoad";
+ this.ribbonButtonLoad.Size = new System.Drawing.Size(52, 68);
+ this.ribbonButtonLoad.TabIndex = 4;
+ //
+ // ribbonButtonNew
+ //
+ this.ribbonButtonNew.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.ribbonButtonNew.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.ribbonButtonNew.Content = "New";
+ this.ribbonButtonNew.ForeColor = System.Drawing.Color.White;
+ this.ribbonButtonNew.Image = null;
+ this.ribbonButtonNew.Location = new System.Drawing.Point(3, 26);
+ this.ribbonButtonNew.Name = "ribbonButtonNew";
+ this.ribbonButtonNew.Size = new System.Drawing.Size(52, 68);
+ this.ribbonButtonNew.TabIndex = 3;
+ this.ribbonButtonNew.Click += new System.EventHandler(this.RibbonButtonNewClick);
+ //
// buttonQuit
//
this.buttonQuit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -123,10 +197,11 @@ namespace ANX.ContentCompiler.GUI
this.buttonMenu.ForeColor = System.Drawing.Color.White;
this.buttonMenu.Location = new System.Drawing.Point(-1, -1);
this.buttonMenu.Name = "buttonMenu";
- this.buttonMenu.Size = new System.Drawing.Size(56, 24);
+ this.buttonMenu.Size = new System.Drawing.Size(85, 24);
this.buttonMenu.TabIndex = 0;
this.buttonMenu.Text = "File";
this.buttonMenu.UseVisualStyleBackColor = false;
+ this.buttonMenu.Click += new System.EventHandler(this.ButtonMenuClick);
//
// labelTitle
//
@@ -137,7 +212,7 @@ namespace ANX.ContentCompiler.GUI
this.labelTitle.ForeColor = System.Drawing.Color.Silver;
this.labelTitle.Location = new System.Drawing.Point(-1, 0);
this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(865, 23);
+ this.labelTitle.Size = new System.Drawing.Size(865, 24);
this.labelTitle.TabIndex = 2;
this.labelTitle.Text = "ANX Content Compiler";
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -253,113 +328,6 @@ namespace ANX.ContentCompiler.GUI
this.splitContainerProperties.SplitterDistance = 409;
this.splitContainerProperties.TabIndex = 0;
//
- // labelProperties
- //
- this.labelProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelProperties.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.labelProperties.ForeColor = System.Drawing.Color.White;
- this.labelProperties.Location = new System.Drawing.Point(3, 0);
- this.labelProperties.Name = "labelProperties";
- this.labelProperties.Size = new System.Drawing.Size(221, 19);
- this.labelProperties.TabIndex = 2;
- this.labelProperties.Text = "Eigenschaften";
- this.labelProperties.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // propertyGrid
- //
- this.propertyGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.propertyGrid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
- this.propertyGrid.CategoryForeColor = System.Drawing.SystemColors.ControlLightLight;
- this.propertyGrid.CommandsActiveLinkColor = System.Drawing.Color.White;
- this.propertyGrid.CommandsBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
- this.propertyGrid.CommandsForeColor = System.Drawing.Color.White;
- this.propertyGrid.CommandsLinkColor = System.Drawing.Color.White;
- this.propertyGrid.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
- this.propertyGrid.HelpForeColor = System.Drawing.Color.White;
- this.propertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.propertyGrid.Location = new System.Drawing.Point(3, 22);
- this.propertyGrid.Name = "propertyGrid";
- this.propertyGrid.Size = new System.Drawing.Size(221, 503);
- this.propertyGrid.TabIndex = 0;
- this.propertyGrid.ViewBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
- this.propertyGrid.ViewForeColor = System.Drawing.Color.White;
- //
- // ribbonButtonHelp
- //
- this.ribbonButtonHelp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.ribbonButtonHelp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.ribbonButtonHelp.Content = "Help";
- this.ribbonButtonHelp.ForeColor = System.Drawing.Color.White;
- this.ribbonButtonHelp.Image = null;
- this.ribbonButtonHelp.Location = new System.Drawing.Point(299, 26);
- this.ribbonButtonHelp.Name = "ribbonButtonHelp";
- this.ribbonButtonHelp.Size = new System.Drawing.Size(52, 68);
- this.ribbonButtonHelp.TabIndex = 8;
- //
- // ribbonButtonWeb
- //
- this.ribbonButtonWeb.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.ribbonButtonWeb.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.ribbonButtonWeb.Content = "Website";
- this.ribbonButtonWeb.ForeColor = System.Drawing.Color.White;
- this.ribbonButtonWeb.Image = null;
- this.ribbonButtonWeb.Location = new System.Drawing.Point(237, 26);
- this.ribbonButtonWeb.Name = "ribbonButtonWeb";
- this.ribbonButtonWeb.Size = new System.Drawing.Size(63, 68);
- this.ribbonButtonWeb.TabIndex = 7;
- //
- // ribbonButtonClean
- //
- this.ribbonButtonClean.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.ribbonButtonClean.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.ribbonButtonClean.Content = "Clean";
- this.ribbonButtonClean.ForeColor = System.Drawing.Color.White;
- this.ribbonButtonClean.Image = null;
- this.ribbonButtonClean.Location = new System.Drawing.Point(186, 26);
- this.ribbonButtonClean.Name = "ribbonButtonClean";
- this.ribbonButtonClean.Size = new System.Drawing.Size(52, 68);
- this.ribbonButtonClean.TabIndex = 6;
- //
- // ribbonButtonSave
- //
- this.ribbonButtonSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.ribbonButtonSave.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.ribbonButtonSave.Content = "Save";
- this.ribbonButtonSave.ForeColor = System.Drawing.Color.White;
- this.ribbonButtonSave.Image = null;
- this.ribbonButtonSave.Location = new System.Drawing.Point(105, 26);
- this.ribbonButtonSave.Name = "ribbonButtonSave";
- this.ribbonButtonSave.Size = new System.Drawing.Size(52, 68);
- this.ribbonButtonSave.TabIndex = 5;
- //
- // ribbonButtonLoad
- //
- this.ribbonButtonLoad.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.ribbonButtonLoad.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.ribbonButtonLoad.Content = "Open";
- this.ribbonButtonLoad.ForeColor = System.Drawing.Color.White;
- this.ribbonButtonLoad.Image = null;
- this.ribbonButtonLoad.Location = new System.Drawing.Point(54, 26);
- this.ribbonButtonLoad.Name = "ribbonButtonLoad";
- this.ribbonButtonLoad.Size = new System.Drawing.Size(52, 68);
- this.ribbonButtonLoad.TabIndex = 4;
- //
- // ribbonButtonNew
- //
- this.ribbonButtonNew.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.ribbonButtonNew.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.ribbonButtonNew.Content = "New";
- this.ribbonButtonNew.ForeColor = System.Drawing.Color.White;
- this.ribbonButtonNew.Image = null;
- this.ribbonButtonNew.Location = new System.Drawing.Point(3, 26);
- this.ribbonButtonNew.Name = "ribbonButtonNew";
- this.ribbonButtonNew.Size = new System.Drawing.Size(52, 68);
- this.ribbonButtonNew.TabIndex = 3;
- this.ribbonButtonNew.Click += new System.EventHandler(this.RibbonButtonNewClick);
- //
// editingState
//
this.editingState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
@@ -384,12 +352,62 @@ namespace ANX.ContentCompiler.GUI
this.startState.TabIndex = 0;
this.startState.Visible = false;
//
+ // labelProperties
+ //
+ this.labelProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelProperties.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.labelProperties.ForeColor = System.Drawing.Color.White;
+ this.labelProperties.Location = new System.Drawing.Point(3, 0);
+ this.labelProperties.Name = "labelProperties";
+ this.labelProperties.Size = new System.Drawing.Size(221, 19);
+ this.labelProperties.TabIndex = 2;
+ this.labelProperties.Text = "Properties";
+ this.labelProperties.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // propertyGrid
+ //
+ this.propertyGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.propertyGrid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
+ this.propertyGrid.CategoryForeColor = System.Drawing.SystemColors.ControlLightLight;
+ this.propertyGrid.CommandsActiveLinkColor = System.Drawing.Color.White;
+ this.propertyGrid.CommandsBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
+ this.propertyGrid.CommandsForeColor = System.Drawing.Color.White;
+ this.propertyGrid.CommandsLinkColor = System.Drawing.Color.White;
+ this.propertyGrid.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
+ this.propertyGrid.HelpForeColor = System.Drawing.Color.White;
+ this.propertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.propertyGrid.Location = new System.Drawing.Point(3, 22);
+ this.propertyGrid.Name = "propertyGrid";
+ this.propertyGrid.Size = new System.Drawing.Size(221, 503);
+ this.propertyGrid.TabIndex = 0;
+ this.propertyGrid.ViewBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
+ this.propertyGrid.ViewForeColor = System.Drawing.Color.White;
+ //
+ // menuState
+ //
+ this.menuState.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.menuState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.menuState.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.menuState.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.menuState.ForeColor = System.Drawing.Color.White;
+ this.menuState.Location = new System.Drawing.Point(-2, 23);
+ this.menuState.Name = "menuState";
+ this.menuState.Size = new System.Drawing.Size(865, 630);
+ this.menuState.TabIndex = 1;
+ this.menuState.Visible = false;
+ //
// MainWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.ClientSize = new System.Drawing.Size(865, 652);
+ this.Controls.Add(this.menuState);
this.Controls.Add(this.splitContainerMenuLayout);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ForeColor = System.Drawing.Color.White;
@@ -397,6 +415,7 @@ namespace ANX.ContentCompiler.GUI
this.Name = "MainWindow";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ANX Content Compiler";
+ this.Shown += new System.EventHandler(this.MainWindowShown);
this.splitContainerMenuLayout.Panel1.ResumeLayout(false);
this.splitContainerMenuLayout.Panel2.ResumeLayout(false);
this.splitContainerMenuLayout.ResumeLayout(false);
@@ -418,7 +437,6 @@ namespace ANX.ContentCompiler.GUI
private System.Windows.Forms.SplitContainer splitContainerProperties;
private System.Windows.Forms.TreeView treeView;
private System.Windows.Forms.PropertyGrid propertyGrid;
- private System.Windows.Forms.Button buttonMenu;
private System.Windows.Forms.Button buttonQuit;
private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Label labelFileTree;
@@ -435,6 +453,8 @@ namespace ANX.ContentCompiler.GUI
private System.Windows.Forms.ToolStripMenuItem treeViewItemDelete;
private System.Windows.Forms.ToolStripMenuItem treeViewItemAddFolder;
private EditingState editingState;
+ private MenuState menuState;
+ private System.Windows.Forms.Button buttonMenu;
}
}
diff --git a/Tools/ANXContentCompilerGUI/MainWindow.cs b/Tools/ANXContentCompilerGUI/MainWindow.cs
index a2ef4d2a..49dedeca 100644
--- a/Tools/ANXContentCompilerGUI/MainWindow.cs
+++ b/Tools/ANXContentCompilerGUI/MainWindow.cs
@@ -9,11 +9,13 @@ namespace ANX.ContentCompiler.GUI
public partial class MainWindow : Form
{
#region Fields
- public static String DefaultProjectPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "ANX Content Compiler\\4.0\\");
public static String DefaultOutputPath = "bin";
+ public static String SettingsFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "ANX Content Compiler" + Path.PathSeparator + "settings.ees");
- private Point lastPos;
- private bool mouseDown;
+ private Point _lastPos;
+ private bool _mouseDown;
+ private bool _menuMode;
+ private readonly bool _firstStart = true;
#endregion
#region Properties
@@ -26,16 +28,28 @@ namespace ANX.ContentCompiler.GUI
public String ProjectImportersDir { get; set; }
#endregion
- #region Constructor
+ #region Init
public MainWindow()
{
InitializeComponent();
Instance = this;
+ _firstStart = !File.Exists(SettingsFile);
+ if (_firstStart)
+ Settings.Defaults();
+ else
+ Settings.Load(SettingsFile);
treeViewItemAddFolder.MouseEnter += TreeViewItemMouseEnter;
treeViewItemAddFolder.MouseLeave += TreeViewItemeLeave;
treeViewItemDelete.MouseEnter += TreeViewItemMouseEnter;
treeViewItemRename.MouseEnter += TreeViewItemMouseEnter;
-
+ SetUpColors();
+ }
+
+ private void MainWindowShown(object sender, EventArgs e)
+ {
+ if (_firstStart)
+ ShowFirstStartStuff();
+ ChangeEnvironmentStartState();
}
#endregion
@@ -47,7 +61,7 @@ namespace ANX.ContentCompiler.GUI
if (dlg.ShowDialog() == DialogResult.OK)
{
ProjectName = dlg.textBoxName.Text;
- ProjectFolder = !String.IsNullOrEmpty(dlg.textBoxLocation.Text) ? dlg.textBoxLocation.Text : Path.Combine(DefaultProjectPath, ProjectName);
+ ProjectFolder = !String.IsNullOrEmpty(dlg.textBoxLocation.Text) ? dlg.textBoxLocation.Text : Path.Combine(Settings.DefaultProjectPath, ProjectName);
}
else
{
@@ -83,7 +97,7 @@ namespace ANX.ContentCompiler.GUI
#endregion
#region EnvironmentStates
- private void ChangeEnvironmentStartState()
+ public void ChangeEnvironmentStartState()
{
editingState.Visible = false;
startState.Visible = true;
@@ -91,7 +105,7 @@ namespace ANX.ContentCompiler.GUI
labelTitle.Text = "ANX Content Compiler 4";
}
- private void ChangeEnvironmentOpenProject()
+ public void ChangeEnvironmentOpenProject()
{
startState.Visible = false;
editingState.Visible = true;
@@ -105,28 +119,32 @@ namespace ANX.ContentCompiler.GUI
{
Application.Exit();
}
+ private void ButtonMenuClick(object sender, EventArgs e)
+ {
+ ToggleMenuMode();
+ }
#endregion
#region WindowMoveMethods
private void LabelTitleMouseMove(object sender, MouseEventArgs e)
{
- if (!mouseDown) return;
- var xoffset = MousePosition.X - lastPos.X;
- var yoffset = MousePosition.Y - lastPos.Y;
+ if (!_mouseDown) return;
+ var xoffset = MousePosition.X - _lastPos.X;
+ var yoffset = MousePosition.Y - _lastPos.Y;
Left += xoffset;
Top += yoffset;
- lastPos = MousePosition;
+ _lastPos = MousePosition;
}
private void LabelTitleMouseDown(object sender, MouseEventArgs e)
{
- mouseDown = true;
- lastPos = MousePosition;
+ _mouseDown = true;
+ _lastPos = MousePosition;
}
private void LabelTitleMouseUp(object sender, MouseEventArgs e)
{
- mouseDown = false;
+ _mouseDown = false;
}
#endregion
@@ -141,5 +159,59 @@ namespace ANX.ContentCompiler.GUI
((ToolStripItem)sender).BackColor = Color.Green;
}
#endregion
+
+ #region MenuMethods
+ public void ToggleMenuMode()
+ {
+ _menuMode = !_menuMode;
+ if (_menuMode)
+ {
+ buttonMenu.BackColor = Settings.AccentColor3;
+ menuState.Visible = true;
+ }
+ else
+ {
+ menuState.Visible = false;
+ buttonMenu.BackColor = Settings.AccentColor;
+ }
+ }
+
+ #endregion
+
+ #region ShowFirstStartStuff
+ private void ShowFirstStartStuff()
+ {
+ using (var dlg = new FirstStartScreen())
+ {
+ if (dlg.ShowDialog() == DialogResult.OK)
+ {
+
+ }
+ }
+ }
+ #endregion
+
+ #region SetUpColors
+ private void SetUpColors()
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ buttonQuit.FlatAppearance.MouseOverBackColor = Settings.LightMainColor;
+ buttonQuit.FlatAppearance.MouseDownBackColor = Settings.AccentColor;
+ buttonMenu.BackColor = Settings.AccentColor;
+ buttonMenu.FlatAppearance.MouseOverBackColor = Settings.AccentColor2;
+ buttonMenu.FlatAppearance.MouseDownBackColor = Settings.AccentColor3;
+ labelTitle.ForeColor = Settings.ForeColor;
+ labelProperties.ForeColor = Settings.ForeColor;
+ labelFileTree.ForeColor = Settings.ForeColor;
+ treeView.BackColor = Settings.DarkMainColor;
+ propertyGrid.BackColor = Settings.DarkMainColor;
+ propertyGrid.ForeColor = Settings.ForeColor;
+ propertyGrid.HelpBackColor = Settings.MainColor;
+ propertyGrid.LineColor = Settings.MainColor;
+ propertyGrid.ViewBackColor = Settings.DarkMainColor;
+ propertyGrid.ViewForeColor = Settings.ForeColor;
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/Tools/ANXContentCompilerGUI/Settings.cs b/Tools/ANXContentCompilerGUI/Settings.cs
new file mode 100644
index 00000000..49e8f26e
--- /dev/null
+++ b/Tools/ANXContentCompilerGUI/Settings.cs
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.IO;
+using System.Linq;
+using System.Text;
+
+namespace ANX.ContentCompiler.GUI
+{
+ public static class Settings
+ {
+ public static String DefaultProjectPath { get; set; }
+ public static Color MainColor { get; set; }
+ public static Color DarkMainColor { get; set; }
+ public static Color LightMainColor { get; set; }
+ public static Color ForeColor { get; set; }
+ public static Color AccentColor { get; set; }
+ public static Color AccentColor2 { get; set; }
+ public static Color AccentColor3 { get; set; }
+
+ public static void Defaults()
+ {
+ DefaultProjectPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
+ "ANX Content Compiler" + Path.DirectorySeparatorChar + "4.0" + Path.DirectorySeparatorChar);
+ MainColor = Color.FromArgb(64, 64, 64);
+ //MainColor = Color.Goldenrod;
+ DarkMainColor = Color.FromArgb(42, 42, 42);
+ //DarkMainColor = Color.DarkOrange;
+ LightMainColor = Color.Gray;
+ //LightMainColor = Color.Gold;
+ ForeColor = Color.White;
+ //ForeColor = Color.DarkRed;
+ AccentColor = Color.FromArgb(0, 192, 0);
+ //AccentColor = Color.HotPink;
+ AccentColor2 = Color.LimeGreen;
+ //AccentColor2 = Color.IndianRed;
+ AccentColor3 = Color.Green;
+ }
+
+ public static void Load(string path)
+ {
+
+ }
+
+ public static void Save(string path)
+ {
+
+ }
+ }
+}
diff --git a/Tools/ANXContentCompilerGUI/States/EditingState.Designer.cs b/Tools/ANXContentCompilerGUI/States/EditingState.Designer.cs
index 7e8f6e91..78f1107f 100644
--- a/Tools/ANXContentCompilerGUI/States/EditingState.Designer.cs
+++ b/Tools/ANXContentCompilerGUI/States/EditingState.Designer.cs
@@ -52,10 +52,8 @@
this.arrowButtonAddFiles.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.arrowButtonAddFiles.AutoSize = true;
- this.arrowButtonAddFiles.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.arrowButtonAddFiles.Content = "Add Files";
this.arrowButtonAddFiles.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.arrowButtonAddFiles.ForeColor = System.Drawing.Color.White;
this.arrowButtonAddFiles.Location = new System.Drawing.Point(16, 73);
this.arrowButtonAddFiles.Name = "arrowButtonAddFiles";
this.arrowButtonAddFiles.Size = new System.Drawing.Size(348, 64);
@@ -66,10 +64,8 @@
this.arrowButtonCreateFolder.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.arrowButtonCreateFolder.AutoSize = true;
- this.arrowButtonCreateFolder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.arrowButtonCreateFolder.Content = "Create Folder";
this.arrowButtonCreateFolder.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.arrowButtonCreateFolder.ForeColor = System.Drawing.Color.White;
this.arrowButtonCreateFolder.Location = new System.Drawing.Point(16, 141);
this.arrowButtonCreateFolder.Name = "arrowButtonCreateFolder";
this.arrowButtonCreateFolder.Size = new System.Drawing.Size(348, 64);
@@ -80,10 +76,8 @@
this.arrowButtonPreview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.arrowButtonPreview.AutoSize = true;
- this.arrowButtonPreview.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.arrowButtonPreview.Content = "Preview File";
this.arrowButtonPreview.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.arrowButtonPreview.ForeColor = System.Drawing.Color.White;
this.arrowButtonPreview.Location = new System.Drawing.Point(16, 206);
this.arrowButtonPreview.Name = "arrowButtonPreview";
this.arrowButtonPreview.Size = new System.Drawing.Size(348, 64);
@@ -94,10 +88,8 @@
this.arrowButtonBuild.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.arrowButtonBuild.AutoSize = true;
- this.arrowButtonBuild.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.arrowButtonBuild.Content = "Build Project";
this.arrowButtonBuild.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.arrowButtonBuild.ForeColor = System.Drawing.Color.White;
this.arrowButtonBuild.Location = new System.Drawing.Point(16, 273);
this.arrowButtonBuild.Name = "arrowButtonBuild";
this.arrowButtonBuild.Size = new System.Drawing.Size(348, 64);
@@ -117,6 +109,7 @@
this.ForeColor = System.Drawing.Color.White;
this.Name = "EditingState";
this.Size = new System.Drawing.Size(380, 384);
+ this.Load += new System.EventHandler(this.EditingStateLoad);
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/Tools/ANXContentCompilerGUI/States/EditingState.cs b/Tools/ANXContentCompilerGUI/States/EditingState.cs
index 669dc27b..192cf071 100644
--- a/Tools/ANXContentCompilerGUI/States/EditingState.cs
+++ b/Tools/ANXContentCompilerGUI/States/EditingState.cs
@@ -1,10 +1,4 @@
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
using System.Windows.Forms;
namespace ANX.ContentCompiler.GUI.States
@@ -15,5 +9,12 @@ namespace ANX.ContentCompiler.GUI.States
{
InitializeComponent();
}
+
+ private void EditingStateLoad(object sender, EventArgs e)
+ {
+ ForeColor = Settings.ForeColor;
+ BackColor = Settings.MainColor;
+ }
+
}
}
diff --git a/Tools/ANXContentCompilerGUI/States/MenuState.Designer.cs b/Tools/ANXContentCompilerGUI/States/MenuState.Designer.cs
new file mode 100644
index 00000000..7d3498de
--- /dev/null
+++ b/Tools/ANXContentCompilerGUI/States/MenuState.Designer.cs
@@ -0,0 +1,440 @@
+namespace ANX.ContentCompiler.GUI.States
+{
+ partial class MenuState
+ {
+ ///
+ /// 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()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MenuState));
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.buttonExit = new System.Windows.Forms.Button();
+ this.buttonSettings = new System.Windows.Forms.Button();
+ this.buttonClose = new System.Windows.Forms.Button();
+ this.buttonSaveAs = new System.Windows.Forms.Button();
+ this.buttonSave = new System.Windows.Forms.Button();
+ this.buttonOpen = new System.Windows.Forms.Button();
+ this.buttonNew = new System.Windows.Forms.Button();
+ this.labelVersion = new System.Windows.Forms.Label();
+ this.panelNew = new System.Windows.Forms.Panel();
+ this.labelDescription = new System.Windows.Forms.Label();
+ this.arrowButtonFolder = new ANX.ContentCompiler.GUI.Controls.ArrowButton();
+ this.arrowButtonFile = new ANX.ContentCompiler.GUI.Controls.ArrowButton();
+ this.arrowButtonNewProject = new ANX.ContentCompiler.GUI.Controls.ArrowButton();
+ this.labelNew = new System.Windows.Forms.Label();
+ this.panelOpen = new System.Windows.Forms.Panel();
+ this.labelOpenDesc = new System.Windows.Forms.Label();
+ this.arrowButtonImport = new ANX.ContentCompiler.GUI.Controls.ArrowButton();
+ this.labelOpen = new System.Windows.Forms.Label();
+ this.arrowButtonOpen = new ANX.ContentCompiler.GUI.Controls.ArrowButton();
+ this.panelSaveAs = new System.Windows.Forms.Panel();
+ this.labelDesc = new System.Windows.Forms.Label();
+ this.arrowButtonSaveAsCCProj = new ANX.ContentCompiler.GUI.Controls.ArrowButton();
+ this.arrowButtonSaveAsCproj = new ANX.ContentCompiler.GUI.Controls.ArrowButton();
+ this.labelHeading = new System.Windows.Forms.Label();
+ this.panelSettings = new System.Windows.Forms.Panel();
+ this.labelSettings = new System.Windows.Forms.Label();
+ this.panel1.SuspendLayout();
+ this.panelNew.SuspendLayout();
+ this.panelOpen.SuspendLayout();
+ this.panelSaveAs.SuspendLayout();
+ this.panelSettings.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.BackColor = System.Drawing.Color.Green;
+ this.panel1.Controls.Add(this.buttonExit);
+ this.panel1.Controls.Add(this.buttonSettings);
+ this.panel1.Controls.Add(this.buttonClose);
+ this.panel1.Controls.Add(this.buttonSaveAs);
+ this.panel1.Controls.Add(this.buttonSave);
+ this.panel1.Controls.Add(this.buttonOpen);
+ this.panel1.Controls.Add(this.buttonNew);
+ this.panel1.Location = new System.Drawing.Point(1, 0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(85, 628);
+ this.panel1.TabIndex = 0;
+ //
+ // buttonExit
+ //
+ this.buttonExit.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
+ this.buttonExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.buttonExit.Location = new System.Drawing.Point(-1, 279);
+ this.buttonExit.Name = "buttonExit";
+ this.buttonExit.Size = new System.Drawing.Size(86, 41);
+ this.buttonExit.TabIndex = 6;
+ this.buttonExit.Text = "Exit";
+ this.buttonExit.UseVisualStyleBackColor = true;
+ this.buttonExit.Click += new System.EventHandler(this.ButtonExitClick);
+ //
+ // buttonSettings
+ //
+ this.buttonSettings.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
+ this.buttonSettings.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.buttonSettings.Location = new System.Drawing.Point(-1, 228);
+ this.buttonSettings.Name = "buttonSettings";
+ this.buttonSettings.Size = new System.Drawing.Size(86, 41);
+ this.buttonSettings.TabIndex = 5;
+ this.buttonSettings.Text = "Settings";
+ this.buttonSettings.UseVisualStyleBackColor = true;
+ this.buttonSettings.Click += new System.EventHandler(this.ButtonSettingsClick);
+ //
+ // buttonClose
+ //
+ this.buttonClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
+ this.buttonClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.buttonClose.Location = new System.Drawing.Point(-1, 178);
+ this.buttonClose.Name = "buttonClose";
+ this.buttonClose.Size = new System.Drawing.Size(86, 41);
+ this.buttonClose.TabIndex = 4;
+ this.buttonClose.Text = "Close";
+ this.buttonClose.UseVisualStyleBackColor = true;
+ this.buttonClose.Click += new System.EventHandler(this.ButtonCloseClick);
+ //
+ // buttonSaveAs
+ //
+ this.buttonSaveAs.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
+ this.buttonSaveAs.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.buttonSaveAs.Location = new System.Drawing.Point(-1, 120);
+ this.buttonSaveAs.Name = "buttonSaveAs";
+ this.buttonSaveAs.Size = new System.Drawing.Size(86, 41);
+ this.buttonSaveAs.TabIndex = 3;
+ this.buttonSaveAs.Text = "Save As";
+ this.buttonSaveAs.UseVisualStyleBackColor = true;
+ this.buttonSaveAs.Click += new System.EventHandler(this.ButtonSaveAsClick);
+ //
+ // buttonSave
+ //
+ this.buttonSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
+ this.buttonSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.buttonSave.Location = new System.Drawing.Point(-1, 80);
+ this.buttonSave.Name = "buttonSave";
+ this.buttonSave.Size = new System.Drawing.Size(86, 41);
+ this.buttonSave.TabIndex = 2;
+ this.buttonSave.Text = "Save";
+ this.buttonSave.UseVisualStyleBackColor = true;
+ this.buttonSave.Click += new System.EventHandler(this.ButtonSaveClick);
+ //
+ // buttonOpen
+ //
+ this.buttonOpen.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
+ this.buttonOpen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.buttonOpen.Location = new System.Drawing.Point(-1, 40);
+ this.buttonOpen.Name = "buttonOpen";
+ this.buttonOpen.Size = new System.Drawing.Size(86, 41);
+ this.buttonOpen.TabIndex = 1;
+ this.buttonOpen.Text = "Open";
+ this.buttonOpen.UseVisualStyleBackColor = true;
+ this.buttonOpen.Click += new System.EventHandler(this.ButtonOpenClick);
+ //
+ // buttonNew
+ //
+ this.buttonNew.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
+ this.buttonNew.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
+ this.buttonNew.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.buttonNew.Location = new System.Drawing.Point(-1, 0);
+ this.buttonNew.Name = "buttonNew";
+ this.buttonNew.Size = new System.Drawing.Size(86, 41);
+ this.buttonNew.TabIndex = 0;
+ this.buttonNew.Text = "New";
+ this.buttonNew.UseVisualStyleBackColor = false;
+ this.buttonNew.Click += new System.EventHandler(this.ButtonNewClick);
+ //
+ // labelVersion
+ //
+ this.labelVersion.Location = new System.Drawing.Point(662, 591);
+ this.labelVersion.Name = "labelVersion";
+ this.labelVersion.Size = new System.Drawing.Size(188, 26);
+ this.labelVersion.TabIndex = 2;
+ this.labelVersion.Text = "ANX Content Compiler v4.0.0.1";
+ this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ //
+ // panelNew
+ //
+ this.panelNew.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panelNew.Controls.Add(this.labelDescription);
+ this.panelNew.Controls.Add(this.arrowButtonFolder);
+ this.panelNew.Controls.Add(this.arrowButtonFile);
+ this.panelNew.Controls.Add(this.arrowButtonNewProject);
+ this.panelNew.Controls.Add(this.labelNew);
+ this.panelNew.Location = new System.Drawing.Point(95, 0);
+ this.panelNew.Name = "panelNew";
+ this.panelNew.Size = new System.Drawing.Size(773, 576);
+ this.panelNew.TabIndex = 4;
+ //
+ // labelDescription
+ //
+ this.labelDescription.Location = new System.Drawing.Point(29, 205);
+ this.labelDescription.Name = "labelDescription";
+ this.labelDescription.Size = new System.Drawing.Size(688, 34);
+ this.labelDescription.TabIndex = 4;
+ this.labelDescription.Text = "If you choose to add a new file or folder, it will be created under the current s" +
+ "elected item in the project explorer.";
+ //
+ // arrowButtonFolder
+ //
+ this.arrowButtonFolder.AutoSize = true;
+ this.arrowButtonFolder.Content = "Folder";
+ this.arrowButtonFolder.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.arrowButtonFolder.Location = new System.Drawing.Point(26, 86);
+ this.arrowButtonFolder.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.arrowButtonFolder.Name = "arrowButtonFolder";
+ this.arrowButtonFolder.Size = new System.Drawing.Size(216, 33);
+ this.arrowButtonFolder.TabIndex = 2;
+ this.arrowButtonFolder.Click += new System.EventHandler(this.ArrowButtonFolderClick);
+ //
+ // arrowButtonFile
+ //
+ this.arrowButtonFile.AutoSize = true;
+ this.arrowButtonFile.Content = "File";
+ this.arrowButtonFile.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.arrowButtonFile.Location = new System.Drawing.Point(26, 46);
+ this.arrowButtonFile.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.arrowButtonFile.Name = "arrowButtonFile";
+ this.arrowButtonFile.Size = new System.Drawing.Size(216, 33);
+ this.arrowButtonFile.TabIndex = 0;
+ this.arrowButtonFile.Click += new System.EventHandler(this.ArrowButtonFileClick);
+ //
+ // arrowButtonNewProject
+ //
+ this.arrowButtonNewProject.AutoSize = true;
+ this.arrowButtonNewProject.Content = "New Project";
+ this.arrowButtonNewProject.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.arrowButtonNewProject.Location = new System.Drawing.Point(26, 145);
+ this.arrowButtonNewProject.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.arrowButtonNewProject.Name = "arrowButtonNewProject";
+ this.arrowButtonNewProject.Size = new System.Drawing.Size(216, 33);
+ this.arrowButtonNewProject.TabIndex = 3;
+ this.arrowButtonNewProject.Click += new System.EventHandler(this.ArrowButtonNewProjectClick);
+ //
+ // labelNew
+ //
+ this.labelNew.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.labelNew.Location = new System.Drawing.Point(21, 9);
+ this.labelNew.Name = "labelNew";
+ this.labelNew.Size = new System.Drawing.Size(242, 29);
+ this.labelNew.TabIndex = 1;
+ this.labelNew.Text = "Create new Stuff";
+ this.labelNew.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // panelOpen
+ //
+ this.panelOpen.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panelOpen.Controls.Add(this.labelOpenDesc);
+ this.panelOpen.Controls.Add(this.arrowButtonImport);
+ this.panelOpen.Controls.Add(this.labelOpen);
+ this.panelOpen.Controls.Add(this.arrowButtonOpen);
+ this.panelOpen.Location = new System.Drawing.Point(95, -1);
+ this.panelOpen.Name = "panelOpen";
+ this.panelOpen.Size = new System.Drawing.Size(773, 576);
+ this.panelOpen.TabIndex = 5;
+ this.panelOpen.Visible = false;
+ //
+ // labelOpenDesc
+ //
+ this.labelOpenDesc.Location = new System.Drawing.Point(28, 169);
+ this.labelOpenDesc.Name = "labelOpenDesc";
+ this.labelOpenDesc.Size = new System.Drawing.Size(687, 70);
+ this.labelOpenDesc.TabIndex = 3;
+ this.labelOpenDesc.Text = resources.GetString("labelOpenDesc.Text");
+ //
+ // arrowButtonImport
+ //
+ this.arrowButtonImport.AutoSize = true;
+ this.arrowButtonImport.Content = "Import";
+ this.arrowButtonImport.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.arrowButtonImport.Location = new System.Drawing.Point(29, 89);
+ this.arrowButtonImport.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.arrowButtonImport.Name = "arrowButtonImport";
+ this.arrowButtonImport.Size = new System.Drawing.Size(216, 33);
+ this.arrowButtonImport.TabIndex = 2;
+ this.arrowButtonImport.Click += new System.EventHandler(this.ArrowButtonImportClick);
+ //
+ // labelOpen
+ //
+ this.labelOpen.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.labelOpen.Location = new System.Drawing.Point(21, 9);
+ this.labelOpen.Name = "labelOpen";
+ this.labelOpen.Size = new System.Drawing.Size(242, 29);
+ this.labelOpen.TabIndex = 1;
+ this.labelOpen.Text = "Open/Import Project";
+ this.labelOpen.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // arrowButtonOpen
+ //
+ this.arrowButtonOpen.AutoSize = true;
+ this.arrowButtonOpen.Content = "Open";
+ this.arrowButtonOpen.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.arrowButtonOpen.Location = new System.Drawing.Point(29, 52);
+ this.arrowButtonOpen.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.arrowButtonOpen.Name = "arrowButtonOpen";
+ this.arrowButtonOpen.Size = new System.Drawing.Size(216, 33);
+ this.arrowButtonOpen.TabIndex = 0;
+ this.arrowButtonOpen.Click += new System.EventHandler(this.ArrowButtonOpenClick);
+ //
+ // panelSaveAs
+ //
+ this.panelSaveAs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panelSaveAs.Controls.Add(this.labelDesc);
+ this.panelSaveAs.Controls.Add(this.arrowButtonSaveAsCCProj);
+ this.panelSaveAs.Controls.Add(this.arrowButtonSaveAsCproj);
+ this.panelSaveAs.Controls.Add(this.labelHeading);
+ this.panelSaveAs.Location = new System.Drawing.Point(95, 0);
+ this.panelSaveAs.Name = "panelSaveAs";
+ this.panelSaveAs.Size = new System.Drawing.Size(773, 576);
+ this.panelSaveAs.TabIndex = 5;
+ this.panelSaveAs.Visible = false;
+ //
+ // labelDesc
+ //
+ this.labelDesc.Location = new System.Drawing.Point(27, 136);
+ this.labelDesc.Name = "labelDesc";
+ this.labelDesc.Size = new System.Drawing.Size(688, 41);
+ this.labelDesc.TabIndex = 3;
+ this.labelDesc.Text = "Choose the compressed Content Project if you only have a small number of files or" +
+ " the compression will take ages.";
+ //
+ // arrowButtonSaveAsCCProj
+ //
+ this.arrowButtonSaveAsCCProj.AutoSize = true;
+ this.arrowButtonSaveAsCCProj.Content = "Compressed Content Project";
+ this.arrowButtonSaveAsCCProj.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.arrowButtonSaveAsCCProj.Location = new System.Drawing.Point(26, 92);
+ this.arrowButtonSaveAsCCProj.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.arrowButtonSaveAsCCProj.Name = "arrowButtonSaveAsCCProj";
+ this.arrowButtonSaveAsCCProj.Size = new System.Drawing.Size(267, 33);
+ this.arrowButtonSaveAsCCProj.TabIndex = 2;
+ this.arrowButtonSaveAsCCProj.Click += new System.EventHandler(this.ArrowButtonSaveAsCcProjClick);
+ //
+ // arrowButtonSaveAsCproj
+ //
+ this.arrowButtonSaveAsCproj.AutoSize = true;
+ this.arrowButtonSaveAsCproj.Content = "ANX Content Projekt";
+ this.arrowButtonSaveAsCproj.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.arrowButtonSaveAsCproj.Location = new System.Drawing.Point(26, 55);
+ this.arrowButtonSaveAsCproj.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+ this.arrowButtonSaveAsCproj.Name = "arrowButtonSaveAsCproj";
+ this.arrowButtonSaveAsCproj.Size = new System.Drawing.Size(267, 33);
+ this.arrowButtonSaveAsCproj.TabIndex = 0;
+ this.arrowButtonSaveAsCproj.Click += new System.EventHandler(this.ArrowButtonSaveAsCprojClick);
+ //
+ // labelHeading
+ //
+ this.labelHeading.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.labelHeading.Location = new System.Drawing.Point(21, 9);
+ this.labelHeading.Name = "labelHeading";
+ this.labelHeading.Size = new System.Drawing.Size(242, 29);
+ this.labelHeading.TabIndex = 1;
+ this.labelHeading.Text = "Save the project";
+ this.labelHeading.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // panelSettings
+ //
+ this.panelSettings.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panelSettings.Controls.Add(this.labelSettings);
+ this.panelSettings.Location = new System.Drawing.Point(95, 0);
+ this.panelSettings.Name = "panelSettings";
+ this.panelSettings.Size = new System.Drawing.Size(773, 576);
+ this.panelSettings.TabIndex = 6;
+ this.panelSettings.Visible = false;
+ //
+ // labelSettings
+ //
+ this.labelSettings.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.labelSettings.Location = new System.Drawing.Point(21, 9);
+ this.labelSettings.Name = "labelSettings";
+ this.labelSettings.Size = new System.Drawing.Size(242, 29);
+ this.labelSettings.TabIndex = 1;
+ this.labelSettings.Text = "Tweak me!";
+ this.labelSettings.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // MenuState
+ //
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.Controls.Add(this.panelSettings);
+ this.Controls.Add(this.labelVersion);
+ this.Controls.Add(this.panelOpen);
+ this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelSaveAs);
+ this.Controls.Add(this.panelNew);
+ this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.ForeColor = System.Drawing.Color.White;
+ this.Name = "MenuState";
+ this.Size = new System.Drawing.Size(863, 626);
+ this.Load += new System.EventHandler(this.MenuState_Load);
+ this.panel1.ResumeLayout(false);
+ this.panelNew.ResumeLayout(false);
+ this.panelNew.PerformLayout();
+ this.panelOpen.ResumeLayout(false);
+ this.panelOpen.PerformLayout();
+ this.panelSaveAs.ResumeLayout(false);
+ this.panelSaveAs.PerformLayout();
+ this.panelSettings.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Button buttonNew;
+ private System.Windows.Forms.Button buttonExit;
+ private System.Windows.Forms.Button buttonSettings;
+ private System.Windows.Forms.Button buttonClose;
+ private System.Windows.Forms.Button buttonSaveAs;
+ private System.Windows.Forms.Button buttonSave;
+ private System.Windows.Forms.Button buttonOpen;
+ private Controls.ArrowButton arrowButtonFile;
+ private Controls.ArrowButton arrowButtonFolder;
+ private Controls.ArrowButton arrowButtonNewProject;
+ private System.Windows.Forms.Label labelVersion;
+ private System.Windows.Forms.Panel panelNew;
+ private System.Windows.Forms.Label labelNew;
+ private System.Windows.Forms.Panel panelOpen;
+ private Controls.ArrowButton arrowButtonImport;
+ private System.Windows.Forms.Label labelOpen;
+ private Controls.ArrowButton arrowButtonOpen;
+ private Controls.ArrowButton arrowButtonSaveAsCCProj;
+ private Controls.ArrowButton arrowButtonSaveAsCproj;
+ private System.Windows.Forms.Label labelHeading;
+ private System.Windows.Forms.Label labelDesc;
+ private System.Windows.Forms.Panel panelSaveAs;
+ private System.Windows.Forms.Label labelDescription;
+ private System.Windows.Forms.Label labelOpenDesc;
+ private System.Windows.Forms.Panel panelSettings;
+ private System.Windows.Forms.Label labelSettings;
+ }
+}
diff --git a/Tools/ANXContentCompilerGUI/States/MenuState.cs b/Tools/ANXContentCompilerGUI/States/MenuState.cs
new file mode 100644
index 00000000..baa5c090
--- /dev/null
+++ b/Tools/ANXContentCompilerGUI/States/MenuState.cs
@@ -0,0 +1,161 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace ANX.ContentCompiler.GUI.States
+{
+ public partial class MenuState : UserControl
+ {
+ public MenuState()
+ {
+ InitializeComponent();
+ }
+
+ #region HelperMethods
+ private void SetUpColors()
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ panel1.BackColor = Settings.AccentColor3;
+ buttonClose.BackColor = Settings.AccentColor3;
+ buttonExit.BackColor = Settings.AccentColor3;
+ buttonNew.BackColor = Settings.AccentColor3;
+ buttonOpen.BackColor = Settings.AccentColor3;
+ buttonSave.BackColor = Settings.AccentColor3;
+ buttonSaveAs.BackColor = Settings.AccentColor3;
+ buttonSettings.BackColor = Settings.AccentColor3;
+ buttonClose.FlatAppearance.BorderColor = Settings.AccentColor2;
+ buttonExit.FlatAppearance.BorderColor = Settings.AccentColor2;
+ buttonNew.FlatAppearance.BorderColor = Settings.AccentColor2;
+ buttonOpen.FlatAppearance.BorderColor = Settings.AccentColor2;
+ buttonSave.FlatAppearance.BorderColor = Settings.AccentColor2;
+ buttonSaveAs.FlatAppearance.BorderColor = Settings.AccentColor2;
+ buttonSettings.FlatAppearance.BorderColor = Settings.AccentColor2;
+ buttonClose.FlatAppearance.MouseOverBackColor = Settings.AccentColor2;
+ buttonExit.FlatAppearance.MouseOverBackColor = Settings.AccentColor2;
+ buttonNew.FlatAppearance.MouseOverBackColor = Settings.AccentColor2;
+ buttonOpen.FlatAppearance.MouseOverBackColor = Settings.AccentColor2;
+ buttonSave.FlatAppearance.MouseOverBackColor = Settings.AccentColor2;
+ buttonSaveAs.FlatAppearance.MouseOverBackColor = Settings.AccentColor2;
+ buttonSettings.FlatAppearance.MouseDownBackColor = Settings.AccentColor2;
+ }
+
+ private void ResetMenuState()
+ {
+ buttonNew.BackColor = Settings.AccentColor3;
+ buttonOpen.BackColor = Settings.AccentColor3;
+ buttonSave.BackColor = Settings.AccentColor3;
+ buttonSaveAs.BackColor = Settings.AccentColor3;
+ buttonClose.BackColor = Settings.AccentColor3;
+ buttonSettings.BackColor = Settings.AccentColor3;
+ buttonExit.BackColor = Settings.AccentColor3;
+ panelNew.Visible = false;
+ panelOpen.Visible = false;
+ panelSaveAs.Visible = false;
+ panelSettings.Visible = false;
+ }
+ #endregion
+
+ #region MenuButtons
+ private void ButtonNewClick(object sender, EventArgs e)
+ {
+ ResetMenuState();
+ buttonNew.BackColor = Settings.AccentColor;
+ panelNew.Visible = true;
+ }
+ private void ButtonOpenClick(object sender, EventArgs e)
+ {
+ ResetMenuState();
+ buttonOpen.BackColor = Settings.AccentColor;
+ panelOpen.Visible = true;
+ }
+
+ private void ButtonSaveClick(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ButtonSaveAsClick(object sender, EventArgs e)
+ {
+ ResetMenuState();
+ buttonSaveAs.BackColor = Settings.AccentColor;
+ panelSaveAs.Visible = true;
+ }
+
+ private void ButtonCloseClick(object sender, EventArgs e)
+ {
+ ResetMenuState();
+ Visible = false;
+ MainWindow.Instance.ToggleMenuMode();
+ MainWindow.Instance.ChangeEnvironmentStartState();
+ }
+
+ private void ButtonSettingsClick(object sender, EventArgs e)
+ {
+ ResetMenuState();
+ buttonSettings.BackColor = Settings.AccentColor;
+ panelSettings.Visible = true;
+ }
+
+ private void ButtonExitClick(object sender, EventArgs e)
+ {
+ ResetMenuState();
+ Application.Exit();
+ }
+ #endregion
+
+ #region MenuNew
+ private void ArrowButtonFileClick(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ArrowButtonFolderClick(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ArrowButtonNewProjectClick(object sender, EventArgs e)
+ {
+
+ }
+ #endregion
+
+ #region MenuOpen
+ private void ArrowButtonOpenClick(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ArrowButtonImportClick(object sender, EventArgs e)
+ {
+
+ }
+ #endregion
+
+ #region MenuSave
+ private void ArrowButtonSaveAsCprojClick(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ArrowButtonSaveAsCcProjClick(object sender, EventArgs e)
+ {
+
+ }
+ #endregion
+
+ private void MenuState_Load(object sender, EventArgs e)
+ {
+ SetUpColors();
+ ResetMenuState();
+ buttonNew.BackColor = Settings.AccentColor;
+ panelNew.Visible = true;
+ }
+ }
+}
diff --git a/Tools/ANXContentCompilerGUI/States/MenuState.resx b/Tools/ANXContentCompilerGUI/States/MenuState.resx
new file mode 100644
index 00000000..381fcdcc
--- /dev/null
+++ b/Tools/ANXContentCompilerGUI/States/MenuState.resx
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ If you want to use your existing XNA Contentproject you need to choose the Import option. Also the Import option is required when trying to open files created by the EES Content Compiler 3.
+Only choose "Open" if you want to open a file that was previously saved by this application.
+
+
\ No newline at end of file
diff --git a/Tools/ANXContentCompilerGUI/States/StartState.Designer.cs b/Tools/ANXContentCompilerGUI/States/StartState.Designer.cs
index 9b44a7d0..7c0552eb 100644
--- a/Tools/ANXContentCompilerGUI/States/StartState.Designer.cs
+++ b/Tools/ANXContentCompilerGUI/States/StartState.Designer.cs
@@ -51,10 +51,8 @@
this.arrowButtonLoad.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.arrowButtonLoad.AutoSize = true;
- this.arrowButtonLoad.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.arrowButtonLoad.Content = "Load Project";
this.arrowButtonLoad.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.arrowButtonLoad.ForeColor = System.Drawing.Color.White;
this.arrowButtonLoad.Location = new System.Drawing.Point(20, 158);
this.arrowButtonLoad.Name = "arrowButtonLoad";
this.arrowButtonLoad.Size = new System.Drawing.Size(348, 64);
@@ -65,10 +63,8 @@
this.arrowButtonImport.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.arrowButtonImport.AutoSize = true;
- this.arrowButtonImport.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.arrowButtonImport.Content = "Import Project";
this.arrowButtonImport.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.arrowButtonImport.ForeColor = System.Drawing.Color.White;
this.arrowButtonImport.Location = new System.Drawing.Point(20, 228);
this.arrowButtonImport.Name = "arrowButtonImport";
this.arrowButtonImport.Size = new System.Drawing.Size(348, 64);
@@ -79,10 +75,8 @@
this.arrowButtonNew.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.arrowButtonNew.AutoSize = true;
- this.arrowButtonNew.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.arrowButtonNew.Content = "Create Project";
this.arrowButtonNew.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.arrowButtonNew.ForeColor = System.Drawing.Color.White;
this.arrowButtonNew.Location = new System.Drawing.Point(20, 88);
this.arrowButtonNew.Name = "arrowButtonNew";
this.arrowButtonNew.Size = new System.Drawing.Size(348, 64);
@@ -101,6 +95,7 @@
this.ForeColor = System.Drawing.Color.White;
this.Name = "StartState";
this.Size = new System.Drawing.Size(386, 323);
+ this.Load += new System.EventHandler(this.StartState_Load);
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/Tools/ANXContentCompilerGUI/States/StartState.cs b/Tools/ANXContentCompilerGUI/States/StartState.cs
index d6c0062b..e398f535 100644
--- a/Tools/ANXContentCompilerGUI/States/StartState.cs
+++ b/Tools/ANXContentCompilerGUI/States/StartState.cs
@@ -8,5 +8,16 @@ namespace ANX.ContentCompiler.GUI.States
{
InitializeComponent();
}
+
+ private void SetUpColor()
+ {
+ BackColor = Settings.MainColor;
+ ForeColor = Settings.ForeColor;
+ }
+
+ private void StartState_Load(object sender, System.EventArgs e)
+ {
+ SetUpColor();
+ }
}
}
\ No newline at end of file