mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-20 13:54:49 -05:00
Update sprite on gmax field change
This commit is contained in:
@@ -371,7 +371,7 @@ private static string ReloadGender(string text, IReadOnlyList<string> genders)
|
||||
|
||||
private static void ReloadGender(Label l, IReadOnlyList<string> genders) => l.Text = ReloadGender(l.Text, genders);
|
||||
|
||||
private void UpdateSprite()
|
||||
internal void UpdateSprite()
|
||||
{
|
||||
if (FieldsLoaded && !forceValidation)
|
||||
UpdatePreviewSprite?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
@@ -1198,6 +1198,7 @@ private void InitializeComponent()
|
||||
this.CHK_Gigantamax.TabIndex = 44;
|
||||
this.CHK_Gigantamax.Text = "Gigantamax";
|
||||
this.CHK_Gigantamax.UseVisualStyleBackColor = true;
|
||||
this.CHK_Gigantamax.CheckedChanged += new System.EventHandler(this.CHK_Gigantamax_CheckedChanged);
|
||||
//
|
||||
// StatEditor
|
||||
//
|
||||
|
||||
@@ -534,5 +534,11 @@ public void InitializeDataSources()
|
||||
CB_HPType.DataSource = Util.GetCBList(GameInfo.Strings.types.Skip(1).Take(16).ToArray());
|
||||
ChangingFields = false;
|
||||
}
|
||||
|
||||
private void CHK_Gigantamax_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!ChangingFields)
|
||||
((PKMEditor) MainEditor).UpdateSprite();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user