mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 06:34:19 +00:00
Add Button To Unlock All Fashion in BDSP Misc Edits (#3856)
This commit is contained in:
parent
0dfb012e5c
commit
7ea0e21b7d
3 changed files with 30 additions and 2 deletions
|
@ -97,4 +97,13 @@ public sealed class EventUnlocker8b : EventUnlocker<SAV8BS>
|
|||
SAV.FlagWork.SetFlag(532, false); // clear vanish
|
||||
SAV.Encounter.Roamer2Encount = 0; // not actively roaming
|
||||
}
|
||||
|
||||
public void UnlockFashion()
|
||||
{
|
||||
const int FASHION_START = 1246;
|
||||
const int FASHION_END = 1257;
|
||||
for (int i = FASHION_START; i <= FASHION_END; i++)
|
||||
SAV.FlagWork.SetFlag(i, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace PKHeX.WinForms
|
|||
this.B_Darkrai = new System.Windows.Forms.Button();
|
||||
this.B_Shaymin = new System.Windows.Forms.Button();
|
||||
this.B_Spiritomb = new System.Windows.Forms.Button();
|
||||
this.B_Fashion = new System.Windows.Forms.Button();
|
||||
this.TC_Misc.SuspendLayout();
|
||||
this.TAB_Main.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
|
@ -81,7 +82,8 @@ namespace PKHeX.WinForms
|
|||
this.TC_Misc.TabIndex = 0;
|
||||
//
|
||||
// TAB_Main
|
||||
//
|
||||
//
|
||||
this.TAB_Main.Controls.Add(this.B_Fashion);
|
||||
this.TAB_Main.Controls.Add(this.B_Arceus);
|
||||
this.TAB_Main.Controls.Add(this.B_Zones);
|
||||
this.TAB_Main.Controls.Add(this.B_RebattleEyecatch);
|
||||
|
@ -189,6 +191,16 @@ namespace PKHeX.WinForms
|
|||
this.B_Spiritomb.UseVisualStyleBackColor = true;
|
||||
this.B_Spiritomb.Click += new System.EventHandler(this.B_Spiritomb_Click);
|
||||
//
|
||||
// B_Fashion
|
||||
//
|
||||
this.B_Fashion.Location = new System.Drawing.Point(136, 262);
|
||||
this.B_Fashion.Name = "B_Fashion";
|
||||
this.B_Fashion.Size = new System.Drawing.Size(124, 58);
|
||||
this.B_Fashion.TabIndex = 9;
|
||||
this.B_Fashion.Text = "Unlock All Fashion";
|
||||
this.B_Fashion.UseVisualStyleBackColor = true;
|
||||
this.B_Fashion.Click += new System.EventHandler(this.B_Fashion_Click);
|
||||
//
|
||||
// SAV_Misc8b
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
@ -223,5 +235,6 @@ namespace PKHeX.WinForms
|
|||
private System.Windows.Forms.Button B_RebattleEyecatch;
|
||||
private System.Windows.Forms.Button B_Zones;
|
||||
private System.Windows.Forms.Button B_Arceus;
|
||||
private System.Windows.Forms.Button B_Fashion;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using PKHeX.Core;
|
||||
namespace PKHeX.WinForms;
|
||||
|
@ -108,4 +108,10 @@ public partial class SAV_Misc8b : Form
|
|||
B_RebattleEyecatch.Enabled = false;
|
||||
B_DefeatEyecatch.Enabled = true;
|
||||
}
|
||||
|
||||
private void B_Fashion_Click(object sender, EventArgs e)
|
||||
{
|
||||
Unlocker.UnlockFashion();
|
||||
System.Media.SystemSounds.Asterisk.Play();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue