diff --git a/ModPacker.Designer.cs b/ModPacker.Designer.cs index 77e3878..8149ac9 100644 --- a/ModPacker.Designer.cs +++ b/ModPacker.Designer.cs @@ -37,11 +37,17 @@ this.OriginalLabel = new System.Windows.Forms.Label(); this.OriginalButton = new System.Windows.Forms.Button(); this.panel2 = new System.Windows.Forms.Panel(); + this.versionTextBox = new System.Windows.Forms.TextBox(); + this.versionLabel = new System.Windows.Forms.Label(); this.AuthorTextBox = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.NameTextBox = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.panel3 = new System.Windows.Forms.Panel(); + this.linuxLabel = new System.Windows.Forms.Label(); + this.linuxButton = new System.Windows.Forms.Button(); + this.saveTextBox = new System.Windows.Forms.TextBox(); + this.linuxCheckBox = new System.Windows.Forms.CheckBox(); this.winSaveButton = new System.Windows.Forms.Button(); this.ApkLabel = new System.Windows.Forms.Label(); this.ApkButton = new System.Windows.Forms.Button(); @@ -49,15 +55,13 @@ this.YYCCheckBox = new System.Windows.Forms.CheckBox(); this.SaveCheckBox = new System.Windows.Forms.CheckBox(); this.MusicCheckBox = new System.Windows.Forms.CheckBox(); - this.linuxCheckBox = new System.Windows.Forms.CheckBox(); - this.saveTextBox = new System.Windows.Forms.TextBox(); - this.linuxButton = new System.Windows.Forms.Button(); - this.linuxLabel = new System.Windows.Forms.Label(); - this.versionLabel = new System.Windows.Forms.Label(); - this.versionTextBox = new System.Windows.Forms.TextBox(); + this.modNotesTextBox = new System.Windows.Forms.TextBox(); + this.panel4 = new System.Windows.Forms.Panel(); + this.modNotesLabel = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); + this.panel4.SuspendLayout(); this.SuspendLayout(); // // panel1 @@ -68,7 +72,7 @@ this.panel1.Controls.Add(this.ModButton); this.panel1.Controls.Add(this.OriginalLabel); this.panel1.Controls.Add(this.OriginalButton); - this.panel1.Location = new System.Drawing.Point(12, 264); + this.panel1.Location = new System.Drawing.Point(309, 210); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(291, 86); this.panel1.TabIndex = 0; @@ -148,6 +152,22 @@ this.panel2.Size = new System.Drawing.Size(291, 77); this.panel2.TabIndex = 1; // + // versionTextBox + // + this.versionTextBox.Location = new System.Drawing.Point(63, 50); + this.versionTextBox.Name = "versionTextBox"; + this.versionTextBox.Size = new System.Drawing.Size(225, 20); + this.versionTextBox.TabIndex = 12; + // + // versionLabel + // + this.versionLabel.AutoSize = true; + this.versionLabel.Location = new System.Drawing.Point(2, 53); + this.versionLabel.Name = "versionLabel"; + this.versionLabel.Size = new System.Drawing.Size(45, 13); + this.versionLabel.TabIndex = 11; + this.versionLabel.Text = "Version:"; + // // AuthorTextBox // this.AuthorTextBox.Location = new System.Drawing.Point(63, 28); @@ -195,15 +215,55 @@ this.panel3.Controls.Add(this.YYCCheckBox); this.panel3.Controls.Add(this.SaveCheckBox); this.panel3.Controls.Add(this.MusicCheckBox); - this.panel3.Location = new System.Drawing.Point(12, 79); + this.panel3.Location = new System.Drawing.Point(309, 3); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(291, 182); + this.panel3.Size = new System.Drawing.Size(291, 201); this.panel3.TabIndex = 2; // + // linuxLabel + // + this.linuxLabel.AutoSize = true; + this.linuxLabel.Location = new System.Drawing.Point(147, 164); + this.linuxLabel.Name = "linuxLabel"; + this.linuxLabel.Size = new System.Drawing.Size(141, 13); + this.linuxLabel.TabIndex = 18; + this.linuxLabel.Text = "Modded Linux game loaded!"; + this.linuxLabel.Visible = false; + // + // linuxButton + // + this.linuxButton.Enabled = false; + this.linuxButton.Location = new System.Drawing.Point(3, 159); + this.linuxButton.Name = "linuxButton"; + this.linuxButton.Size = new System.Drawing.Size(143, 23); + this.linuxButton.TabIndex = 17; + this.linuxButton.Text = "Load modded Linux .zip"; + this.linuxButton.UseVisualStyleBackColor = true; + this.linuxButton.Click += new System.EventHandler(this.linuxButton_Click); + // + // saveTextBox + // + this.saveTextBox.Enabled = false; + this.saveTextBox.Location = new System.Drawing.Point(4, 28); + this.saveTextBox.Name = "saveTextBox"; + this.saveTextBox.Size = new System.Drawing.Size(283, 20); + this.saveTextBox.TabIndex = 15; + // + // linuxCheckBox + // + this.linuxCheckBox.AutoSize = true; + this.linuxCheckBox.Location = new System.Drawing.Point(4, 141); + this.linuxCheckBox.Name = "linuxCheckBox"; + this.linuxCheckBox.Size = new System.Drawing.Size(96, 17); + this.linuxCheckBox.TabIndex = 12; + this.linuxCheckBox.Text = "Supports Linux"; + this.linuxCheckBox.UseVisualStyleBackColor = true; + this.linuxCheckBox.CheckedChanged += new System.EventHandler(this.linuxCheckBox_CheckedChanged); + // // winSaveButton // this.winSaveButton.Enabled = false; - this.winSaveButton.Location = new System.Drawing.Point(177, 2); + this.winSaveButton.Location = new System.Drawing.Point(177, 7); this.winSaveButton.Name = "winSaveButton"; this.winSaveButton.Size = new System.Drawing.Size(111, 19); this.winSaveButton.TabIndex = 10; @@ -214,7 +274,7 @@ // ApkLabel // this.ApkLabel.AutoSize = true; - this.ApkLabel.Location = new System.Drawing.Point(180, 117); + this.ApkLabel.Location = new System.Drawing.Point(180, 120); this.ApkLabel.Name = "ApkLabel"; this.ApkLabel.Size = new System.Drawing.Size(108, 13); this.ApkLabel.TabIndex = 7; @@ -224,7 +284,7 @@ // ApkButton // this.ApkButton.Enabled = false; - this.ApkButton.Location = new System.Drawing.Point(3, 112); + this.ApkButton.Location = new System.Drawing.Point(3, 115); this.ApkButton.Name = "ApkButton"; this.ApkButton.Size = new System.Drawing.Size(143, 23); this.ApkButton.TabIndex = 6; @@ -235,7 +295,7 @@ // AndroidCheckBox // this.AndroidCheckBox.AutoSize = true; - this.AndroidCheckBox.Location = new System.Drawing.Point(4, 93); + this.AndroidCheckBox.Location = new System.Drawing.Point(4, 95); this.AndroidCheckBox.Name = "AndroidCheckBox"; this.AndroidCheckBox.Size = new System.Drawing.Size(107, 17); this.AndroidCheckBox.TabIndex = 5; @@ -246,7 +306,7 @@ // YYCCheckBox // this.YYCCheckBox.AutoSize = true; - this.YYCCheckBox.Location = new System.Drawing.Point(4, 72); + this.YYCCheckBox.Location = new System.Drawing.Point(4, 74); this.YYCCheckBox.Name = "YYCCheckBox"; this.YYCCheckBox.Size = new System.Drawing.Size(140, 17); this.YYCCheckBox.TabIndex = 4; @@ -256,7 +316,7 @@ // SaveCheckBox // this.SaveCheckBox.AutoSize = true; - this.SaveCheckBox.Location = new System.Drawing.Point(4, 3); + this.SaveCheckBox.Location = new System.Drawing.Point(4, 8); this.SaveCheckBox.Name = "SaveCheckBox"; this.SaveCheckBox.Size = new System.Drawing.Size(156, 17); this.SaveCheckBox.TabIndex = 3; @@ -267,7 +327,7 @@ // MusicCheckBox // this.MusicCheckBox.AutoSize = true; - this.MusicCheckBox.Location = new System.Drawing.Point(4, 51); + this.MusicCheckBox.Location = new System.Drawing.Point(4, 52); this.MusicCheckBox.Margin = new System.Windows.Forms.Padding(2, 3, 3, 3); this.MusicCheckBox.Name = "MusicCheckBox"; this.MusicCheckBox.Size = new System.Drawing.Size(117, 17); @@ -275,75 +335,47 @@ this.MusicCheckBox.Text = "Uses custom music"; this.MusicCheckBox.UseVisualStyleBackColor = true; // - // linuxCheckBox + // modNotesTextBox // - this.linuxCheckBox.AutoSize = true; - this.linuxCheckBox.Location = new System.Drawing.Point(4, 138); - this.linuxCheckBox.Name = "linuxCheckBox"; - this.linuxCheckBox.Size = new System.Drawing.Size(96, 17); - this.linuxCheckBox.TabIndex = 12; - this.linuxCheckBox.Text = "Supports Linux"; - this.linuxCheckBox.UseVisualStyleBackColor = true; - this.linuxCheckBox.CheckedChanged += new System.EventHandler(this.linuxCheckBox_CheckedChanged); + this.modNotesTextBox.Location = new System.Drawing.Point(3, 16); + this.modNotesTextBox.Multiline = true; + this.modNotesTextBox.Name = "modNotesTextBox"; + this.modNotesTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.modNotesTextBox.Size = new System.Drawing.Size(284, 198); + this.modNotesTextBox.TabIndex = 3; // - // saveTextBox + // panel4 // - this.saveTextBox.Enabled = false; - this.saveTextBox.Location = new System.Drawing.Point(4, 25); - this.saveTextBox.Name = "saveTextBox"; - this.saveTextBox.Size = new System.Drawing.Size(284, 20); - this.saveTextBox.TabIndex = 15; + this.panel4.Controls.Add(this.modNotesLabel); + this.panel4.Controls.Add(this.modNotesTextBox); + this.panel4.Location = new System.Drawing.Point(12, 80); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(291, 216); + this.panel4.TabIndex = 4; // - // linuxButton + // modNotesLabel // - this.linuxButton.Enabled = false; - this.linuxButton.Location = new System.Drawing.Point(3, 156); - this.linuxButton.Name = "linuxButton"; - this.linuxButton.Size = new System.Drawing.Size(143, 23); - this.linuxButton.TabIndex = 17; - this.linuxButton.Text = "Load modded Linux .zip"; - this.linuxButton.UseVisualStyleBackColor = true; - this.linuxButton.Click += new System.EventHandler(this.linuxButton_Click); - // - // linuxLabel - // - this.linuxLabel.AutoSize = true; - this.linuxLabel.Location = new System.Drawing.Point(147, 161); - this.linuxLabel.Name = "linuxLabel"; - this.linuxLabel.Size = new System.Drawing.Size(141, 13); - this.linuxLabel.TabIndex = 18; - this.linuxLabel.Text = "Modded Linux game loaded!"; - this.linuxLabel.Visible = false; - // - // versionLabel - // - this.versionLabel.AutoSize = true; - this.versionLabel.Location = new System.Drawing.Point(2, 53); - this.versionLabel.Name = "versionLabel"; - this.versionLabel.Size = new System.Drawing.Size(45, 13); - this.versionLabel.TabIndex = 11; - this.versionLabel.Text = "Version:"; - // - // versionTextBox - // - this.versionTextBox.Location = new System.Drawing.Point(63, 50); - this.versionTextBox.Name = "versionTextBox"; - this.versionTextBox.Size = new System.Drawing.Size(224, 20); - this.versionTextBox.TabIndex = 12; + this.modNotesLabel.AutoSize = true; + this.modNotesLabel.Location = new System.Drawing.Point(2, 0); + this.modNotesLabel.Name = "modNotesLabel"; + this.modNotesLabel.Size = new System.Drawing.Size(60, 13); + this.modNotesLabel.TabIndex = 4; + this.modNotesLabel.Text = "Mod notes:"; // // ModPacker // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(315, 376); + this.ClientSize = new System.Drawing.Size(615, 309); + this.Controls.Add(this.panel4); this.Controls.Add(this.panel3); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; - this.MaximumSize = new System.Drawing.Size(331, 415); - this.MinimumSize = new System.Drawing.Size(331, 415); + this.MaximumSize = new System.Drawing.Size(631, 348); + this.MinimumSize = new System.Drawing.Size(631, 348); this.Name = "ModPacker"; this.Text = "AM2R ModPacker"; this.panel1.ResumeLayout(false); @@ -352,6 +384,8 @@ this.panel2.PerformLayout(); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); this.ResumeLayout(false); } @@ -384,6 +418,9 @@ private System.Windows.Forms.Label linuxLabel; private System.Windows.Forms.TextBox versionTextBox; private System.Windows.Forms.Label versionLabel; + private System.Windows.Forms.TextBox modNotesTextBox; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Label modNotesLabel; } } diff --git a/ModPacker.cs b/ModPacker.cs index d4342fa..e964209 100644 --- a/ModPacker.cs +++ b/ModPacker.cs @@ -27,7 +27,7 @@ namespace AM2R_ModPacker public ModPacker() { InitializeComponent(); - profile = new ModProfileXML("", 1, "", "", "", false, "", false, false); // (1, "", "", false, "default", false, false); + profile = new ModProfileXML("", 1, "", "", "", false, "", false, false, ""); // (1, "", "", false, "default", false, false); isOriginalLoaded = false; isModLoaded = false; isApkLoaded = false; @@ -365,6 +365,7 @@ namespace AM2R_ModPacker profile.UsesYYC = YYCCheckBox.Checked; profile.Android = AndroidCheckBox.Checked; // profile.OperatingSystem = WindowsCheckBox.Checked ? "Windows" : "Linux"; + profile.ProfileNotes = modNotesTextBox.Text; profile.OperatingSystem = operatingSystem; if (SaveCheckBox.Checked && saveTextBox.Text != "") { diff --git a/XML/ModProfileXML.cs b/XML/ModProfileXML.cs index 683d8ab..a91ae78 100644 --- a/XML/ModProfileXML.cs +++ b/XML/ModProfileXML.cs @@ -50,10 +50,15 @@ namespace AM2R_ModPacker public bool Installable { get; set; } + /// Indicates any notes that the mod author deemed worthy to share about his mod. + [XmlAttribute("ProfileNotes")] + public string ProfileNotes + { get; set; } + public ModProfileXML() { } - public ModProfileXML(string operatingSystem, int xmlVersion, string version, string name, string author, bool usesCustomMusic, string saveLocation, bool android, bool usesYYC, bool installable = true) + public ModProfileXML(string operatingSystem, int xmlVersion, string version, string name, string author, bool usesCustomMusic, string saveLocation, bool android, bool usesYYC, string profileNotes, bool installable = true) { OperatingSystem = operatingSystem; XMLVersion = xmlVersion; @@ -64,6 +69,7 @@ namespace AM2R_ModPacker SaveLocation = saveLocation; Android = android; UsesYYC = usesYYC; + ProfileNotes = profileNotes; Installable = installable; } }