mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-11 15:07:11 +00:00
Reorder form init
This commit is contained in:
parent
58a84e3770
commit
9ed2c594f2
46 changed files with 85 additions and 69 deletions
|
@ -929,8 +929,9 @@ namespace PKHeX.WinForms
|
|||
GameInfo.Strings = GameInfo.GetStrings(l);
|
||||
|
||||
// Update Legality Strings
|
||||
// WinFormsTranslator.UpdateAll("en", new[] {"ja", "fr", "it", "de", "es", "ko", "zh", "pt"});
|
||||
// WinFormsTranslator.DumpAll();
|
||||
WinFormsTranslator.LoadAllForms();
|
||||
WinFormsTranslator.UpdateAll("en", new[] {"ja", "fr", "it", "de", "es", "ko", "zh", "pt"});
|
||||
WinFormsTranslator.DumpAll();
|
||||
// Clipboard.SetText(string.Join(Environment.NewLine, Util.GetLocalization(typeof(LegalityCheckStrings))));
|
||||
Task.Run(() => {
|
||||
var lang = Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName.Substring(0, 2);
|
||||
|
|
|
@ -18,9 +18,10 @@ namespace PKHeX.WinForms
|
|||
|
||||
public KChart(SaveFile sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = sav;
|
||||
alolanOnly = SAV.Generation == 7 && DialogResult.Yes == WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Alolan Dex only?");
|
||||
InitializeComponent();
|
||||
|
||||
Array.Resize(ref species, SAV.Personal.TableLength);
|
||||
|
||||
|
|
|
@ -17,9 +17,10 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public BatchEditor(PKM pk, SaveFile sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
pkmref = pk;
|
||||
SAV = sav;
|
||||
InitializeComponent();
|
||||
DragDrop += TabMain_DragDrop;
|
||||
DragEnter += TabMain_DragEnter;
|
||||
|
||||
|
|
|
@ -11,15 +11,15 @@ namespace PKHeX.WinForms
|
|||
private readonly string[] vartypes = new string[5];
|
||||
public MemoryAmie(PKM pk)
|
||||
{
|
||||
pkm = pk;
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
pkm = pk;
|
||||
cba = new[] { CB_Country0, CB_Country1, CB_Country2, CB_Country3, CB_Country4 };
|
||||
mta = new[] { CB_Region0, CB_Region1, CB_Region2, CB_Region3, CB_Region4, };
|
||||
CB_Country0.DisplayMember = CB_Country1.DisplayMember = CB_Country2.DisplayMember = CB_Country3.DisplayMember = CB_Country4.DisplayMember = "Text";
|
||||
CB_Country0.ValueMember = CB_Country1.ValueMember = CB_Country2.ValueMember = CB_Country3.ValueMember = CB_Country4.ValueMember = "Value";
|
||||
CB_Region0.DisplayMember = CB_Region1.DisplayMember = CB_Region2.DisplayMember = CB_Region3.DisplayMember = CB_Region4.DisplayMember = "Text";
|
||||
CB_Region0.ValueMember = CB_Region1.ValueMember = CB_Region2.ValueMember = CB_Region3.ValueMember = CB_Region4.ValueMember = "Value";
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
string[] arguments = L_Arguments.Text.Split(new[] {" ; "}, StringSplitOptions.None);
|
||||
|
||||
for (int i = 5; i < Math.Min(arguments.Length, vartypes.Length + 5); i++)
|
||||
|
|
|
@ -12,6 +12,7 @@ namespace PKHeX.WinForms
|
|||
{
|
||||
pkm = pk;
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
int vertScrollWidth = SystemInformation.VerticalScrollBarWidth;
|
||||
TLP_SuperTrain.Padding = TLP_DistSuperTrain.Padding = new Padding(0, 0, vertScrollWidth, 0);
|
||||
|
||||
|
@ -22,7 +23,6 @@ namespace PKHeX.WinForms
|
|||
TLP_DistSuperTrain.Scroll += WinFormsUtil.PanelScroll;
|
||||
PopulateRegimens("SuperTrain", TLP_SuperTrain, reglist);
|
||||
PopulateRegimens("DistSuperTrain", TLP_DistSuperTrain, distlist);
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
TLP_SuperTrain.ResumeLayout();
|
||||
TLP_DistSuperTrain.ResumeLayout();
|
||||
|
||||
|
|
|
@ -12,10 +12,10 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public TrashEditor(TextBoxBase TB_NN, byte[] raw, SaveFile sav)
|
||||
{
|
||||
SAV = sav;
|
||||
InitializeComponent();
|
||||
bigendian = new[] { GameVersion.COLO, GameVersion.XD, GameVersion.BATREV, }.Contains(SAV.Version);
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = sav;
|
||||
bigendian = new[] { GameVersion.COLO, GameVersion.XD, GameVersion.BATREV, }.Contains(SAV.Version);
|
||||
|
||||
FinalString = TB_NN.Text;
|
||||
Raw = FinalBytes = raw;
|
||||
|
|
|
@ -20,10 +20,18 @@ namespace PKHeX.WinForms
|
|||
private readonly PKMEditor PKME_Tabs;
|
||||
public SAV_Database(PKMEditor f1, SAVEditor saveditor)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
ToolStripMenuItem mnuView = new ToolStripMenuItem {Name = "mnuView", Text = "View"};
|
||||
ToolStripMenuItem mnuDelete = new ToolStripMenuItem {Name = "mnuDelete", Text = "Delete" };
|
||||
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
ContextMenuStrip mnu = new ContextMenuStrip();
|
||||
mnu.Items.AddRange(new ToolStripItem[] { mnuView, mnuDelete });
|
||||
|
||||
SAV = saveditor.SAV;
|
||||
BoxView = saveditor;
|
||||
PKME_Tabs = f1;
|
||||
InitializeComponent();
|
||||
|
||||
// Preset Filters to only show PKM available for loaded save
|
||||
CB_FormatComparator.SelectedIndex = 3; // <=
|
||||
|
@ -66,16 +74,11 @@ namespace PKHeX.WinForms
|
|||
L_Viewed.MouseEnter += (sender, e) => hover.SetToolTip(L_Viewed, L_Viewed.Text);
|
||||
PopulateComboBoxes();
|
||||
|
||||
ContextMenuStrip mnu = new ContextMenuStrip();
|
||||
ToolStripMenuItem mnuView = new ToolStripMenuItem("View");
|
||||
ToolStripMenuItem mnuDelete = new ToolStripMenuItem("Delete");
|
||||
|
||||
// Assign event handlers
|
||||
mnuView.Click += ClickView;
|
||||
mnuDelete.Click += ClickDelete;
|
||||
|
||||
// Add to main context menu
|
||||
mnu.Items.AddRange(new ToolStripItem[] { mnuView, mnuDelete });
|
||||
|
||||
// Assign to datagridview
|
||||
foreach (PictureBox p in PKXBOXES)
|
||||
|
|
|
@ -18,10 +18,19 @@ namespace PKHeX.WinForms
|
|||
private readonly SAVEditor BoxView;
|
||||
public SAV_MysteryGiftDB(PKMEditor tabs, SAVEditor sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
ToolStripMenuItem mnuView = new ToolStripMenuItem { Name = "mnuView", Text = "View" };
|
||||
ToolStripMenuItem mnuSaveMG = new ToolStripMenuItem { Name = "mnuSaveMG", Text = "Save Gift" };
|
||||
ToolStripMenuItem mnuSavePK = new ToolStripMenuItem { Name = "mnuSavePK", Text = "Save PKM" };
|
||||
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
ContextMenuStrip mnu = new ContextMenuStrip();
|
||||
mnu.Items.AddRange(new ToolStripItem[] { mnuView, mnuSaveMG, mnuSavePK });
|
||||
|
||||
SAV = sav.SAV;
|
||||
BoxView = sav;
|
||||
PKME_Tabs = tabs;
|
||||
InitializeComponent();
|
||||
|
||||
// Preset Filters to only show PKM available for loaded save
|
||||
CB_FormatComparator.SelectedIndex = 3; // <=
|
||||
|
@ -59,19 +68,11 @@ namespace PKHeX.WinForms
|
|||
var hover = new ToolTip();
|
||||
L_Viewed.MouseEnter += (sender, e) => hover.SetToolTip(L_Viewed, L_Viewed.Text);
|
||||
|
||||
ContextMenuStrip mnu = new ContextMenuStrip();
|
||||
ToolStripMenuItem mnuView = new ToolStripMenuItem("View");
|
||||
ToolStripMenuItem mnuSaveMG = new ToolStripMenuItem("Save Gift");
|
||||
ToolStripMenuItem mnuSavePK = new ToolStripMenuItem("Save PKM");
|
||||
|
||||
// Assign event handlers
|
||||
mnuView.Click += ClickView;
|
||||
mnuSaveMG.Click += ClickSaveMG;
|
||||
mnuSavePK.Click += ClickSavePK;
|
||||
|
||||
// Add to main context menu
|
||||
mnu.Items.AddRange(new ToolStripItem[] { mnuView, mnuSaveMG, mnuSavePK });
|
||||
|
||||
// Assign to datagridview
|
||||
foreach (PictureBox p in PKXBOXES)
|
||||
p.ContextMenuStrip = mnu;
|
||||
|
|
|
@ -13,6 +13,7 @@ namespace PKHeX.WinForms
|
|||
public SAV_EventReset1(SaveFile sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
Overworld = new G1OverworldSpawner((SAV1)sav);
|
||||
|
||||
InitializeButtons();
|
||||
|
|
|
@ -12,9 +12,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV3 SAV;
|
||||
public SAV_Misc3(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV3)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV3)(Origin = sav).Clone();
|
||||
|
||||
if (SAV.FRLG || SAV.E)
|
||||
ReadJoyful();
|
||||
|
|
|
@ -10,9 +10,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV3 SAV;
|
||||
public SAV_RTC3(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV3)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV3)(Origin = sav).Clone();
|
||||
|
||||
ClockInitial = SAV.ClockInitial;
|
||||
ClockElapsed = SAV.ClockElapsed;
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace PKHeX.WinForms
|
|||
|
||||
public SAV_Roamer3(SaveFile sav)
|
||||
{
|
||||
Reader = new Roamer3((SAV3)sav);
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
Reader = new Roamer3((SAV3)sav);
|
||||
|
||||
CB_Species.DisplayMember = "Text";
|
||||
CB_Species.ValueMember = "Value";
|
||||
|
|
|
@ -8,9 +8,9 @@ namespace PKHeX.WinForms
|
|||
{
|
||||
public SAV_Apricorn(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
|
||||
Setup();
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV4 SAV;
|
||||
public SAV_HoneyTree(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
|
||||
if (SAV.DP)
|
||||
Table = HoneyTree.TableDP;
|
||||
|
|
|
@ -15,9 +15,10 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV4 SAV;
|
||||
public SAV_Misc4(SaveFile sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
int ofsFlag;
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
|
||||
int GBO = SAV.GBO;
|
||||
switch (SAV.Version)
|
||||
|
|
|
@ -12,10 +12,10 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV4 SAV;
|
||||
public SAV_Pokedex4(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
CL = new[] { CHK_L1, CHK_L2, CHK_L3, CHK_L5, CHK_L4, CHK_L6, }; // JPN,ENG,FRA,GER,ITA,SPA
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
CL = new[] { CHK_L1, CHK_L2, CHK_L3, CHK_L5, CHK_L4, CHK_L6, }; // JPN,ENG,FRA,GER,ITA,SPA
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
|
||||
editing = true;
|
||||
// Clear Listbox and ComboBox
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV4 SAV;
|
||||
public SAV_Underground(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV4)(Origin = sav).Clone();
|
||||
|
||||
GetUGScores();
|
||||
}
|
||||
|
|
|
@ -14,8 +14,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV5 SAV;
|
||||
public SAV_CGearSkin(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV5)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV5)(Origin = sav).Clone();
|
||||
|
||||
byte[] data = SAV.CGearSkinData;
|
||||
bg = new CGearBackground(data);
|
||||
|
|
|
@ -12,8 +12,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV5 SAV;
|
||||
public SAV_Misc5(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV5)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV5)(Origin = sav).Clone();
|
||||
ReadMain();
|
||||
if (SAV.B2W2) ReadEntralink();
|
||||
else TC_Misc.Controls.Remove(TAB_Entralink);
|
||||
|
|
|
@ -13,12 +13,12 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV5 SAV;
|
||||
public SAV_Pokedex5(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV5)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV5)(Origin = sav).Clone();
|
||||
FormLen = SAV.B2W2 ? 0xB : 0x9;
|
||||
CP = new[] { CHK_P1, CHK_P2, CHK_P3, CHK_P4, CHK_P5, CHK_P6, CHK_P7, CHK_P8, CHK_P9, };
|
||||
CL = new[] { CHK_L1, CHK_L2, CHK_L3, CHK_L4, CHK_L5, CHK_L6, CHK_L7, };
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
|
||||
editing = true;
|
||||
// Clear Listbox and ComboBox
|
||||
|
|
|
@ -10,9 +10,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_BerryFieldXY(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
listBox1.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public SAV_BoxLayout(SaveFile sav, int box)
|
||||
{
|
||||
SAV = (Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (Origin = sav).Clone();
|
||||
editing = true;
|
||||
|
||||
if (!SAV.HasBoxWallpapers)
|
||||
|
|
|
@ -14,9 +14,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_HallOfFame(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
|
||||
Array.Copy(SAV.Data, SAV.HoF, data, 0, data.Length); //Copy HoF section of save into Data
|
||||
Setup();
|
||||
|
|
|
@ -12,15 +12,15 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_Link6(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
foreach (var cb in TAB_Items.Controls.OfType<ComboBox>())
|
||||
{
|
||||
cb.DisplayMember = "Text";
|
||||
cb.ValueMember = "Value";
|
||||
cb.DataSource = new BindingSource(GameInfo.ItemDataSource.Where(item => item.Value <= SAV.MaxItemID).ToArray(), null);
|
||||
}
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
byte[] data = SAV.LinkBlock;
|
||||
if (data == null)
|
||||
{
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_OPower(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
LoadData();
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_PokeBlockORAS(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
nup_spec = new[] { NUP_Red, NUP_Blue, NUP_Pink, NUP_Green, NUP_Yellow, NUP_Rainbow, NUP_RedPlus, NUP_BluePlus, NUP_PinkPlus, NUP_GreenPlus, NUP_YellowPlus, NUP_RainbowPlus };
|
||||
Label[] lbl_spec = { L_Red, L_Blue, L_Pink, L_Green, L_Yellow, L_Rainbow, L_RedPlus, L_BluePlus, L_PinkPlus, L_GreenPlus, L_YellowPlus, L_RainbowPlus };
|
||||
|
||||
|
|
|
@ -13,11 +13,11 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_PokedexORAS(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
CP = new[] { CHK_P1, CHK_P2, CHK_P3, CHK_P4, CHK_P5, CHK_P6, CHK_P7, CHK_P8, CHK_P9, };
|
||||
CL = new[] { CHK_L1, CHK_L2, CHK_L3, CHK_L4, CHK_L5, CHK_L6, CHK_L7, };
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
|
||||
editing = true;
|
||||
// Clear Listbox and ComboBox
|
||||
|
|
|
@ -13,11 +13,11 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_PokedexXY(SaveFile sav)
|
||||
{
|
||||
SAV = (Origin = sav).Clone() as SAV6;
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
CP = new[] { CHK_P1, CHK_P2, CHK_P3, CHK_P4, CHK_P5, CHK_P6, CHK_P7, CHK_P8, CHK_P9, };
|
||||
CL = new[] { CHK_L1, CHK_L2, CHK_L3, CHK_L4, CHK_L5, CHK_L6, CHK_L7, };
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
|
||||
editing = true;
|
||||
// Clear Listbox and ComboBox
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_Pokepuff(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
|
||||
Setup();
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_SecretBase(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
abilitylist = GameInfo.Strings.abilitylist;
|
||||
|
||||
SetupComboBoxes();
|
||||
|
|
|
@ -11,14 +11,14 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_SuperTrain(SaveFile sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
trba = GameInfo.Strings.trainingbags;
|
||||
trba[0] = "---";
|
||||
offsetTime = SAV.SuperTrain + 0x08;
|
||||
offsetSpec = SAV.SuperTrain + 0x188;
|
||||
offsetVal = SAV.SuperTrain + 0x18A;
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
string[] stages = GameInfo.Strings.trainingstage;
|
||||
listBox1.Items.Clear();
|
||||
for (int i = 0; i < 32; i++)
|
||||
|
|
|
@ -12,8 +12,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV6 SAV;
|
||||
public SAV_Trainer(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV6)(Origin = sav).Clone();
|
||||
if (Main.Unicode)
|
||||
try
|
||||
{
|
||||
|
@ -23,7 +24,6 @@ namespace PKHeX.WinForms
|
|||
}
|
||||
catch (Exception e) { WinFormsUtil.Alert("Font loading failed...", e.ToString()); }
|
||||
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
B_MaxCash.Click += (sender, e) => MT_Money.Text = "9,999,999";
|
||||
|
||||
CB_Gender.Items.Clear();
|
||||
|
|
|
@ -12,9 +12,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV7 SAV;
|
||||
public SAV_FestivalPlaza(SaveFile sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
editing = true;
|
||||
InitializeComponent();
|
||||
typeMAX = SAV.USUM ? 0x7F : 0x7C;
|
||||
TB_PlazaName.Text = SAV.FestivalPlazaName;
|
||||
if (SAV.USUM)
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV7 SAV;
|
||||
public SAV_HallOfFame7(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
entries = new[]
|
||||
{
|
||||
CB_F1, CB_F2, CB_F3, CB_F4, CB_F5, CB_F6,
|
||||
|
|
|
@ -9,9 +9,9 @@ namespace PKHeX.WinForms
|
|||
{
|
||||
public SAV_Pokebean(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
|
||||
var colors = new[] {"Red", "Blue", "Light Blue", "Green", "Yellow", "Purple", "Orange"};
|
||||
var beans = new List<string>();
|
||||
|
|
|
@ -13,11 +13,11 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV7 SAV;
|
||||
public SAV_PokedexSM(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
CP = new[] { CHK_P1, CHK_P2, CHK_P3, CHK_P4, CHK_P5, CHK_P6, CHK_P7, CHK_P8, CHK_P9, };
|
||||
CL = new[] { CHK_L1, CHK_L2, CHK_L3, CHK_L4, CHK_L5, CHK_L6, CHK_L7, CHK_L8, CHK_L9, };
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
|
||||
editing = true;
|
||||
// Clear Listbox and ComboBox
|
||||
|
|
|
@ -12,14 +12,14 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV7 SAV;
|
||||
public SAV_Trainer7(SaveFile sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
Loading = true;
|
||||
InitializeComponent();
|
||||
if (Main.Unicode)
|
||||
try { TB_OTName.Font = FontUtil.GetPKXFont(11); }
|
||||
catch (Exception e) { WinFormsUtil.Alert("Font loading failed...", e.ToString()); }
|
||||
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
B_MaxCash.Click += (sender, e) => MT_Money.Text = "9,999,999";
|
||||
|
||||
CB_Gender.Items.Clear();
|
||||
|
|
|
@ -11,8 +11,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SAV7 SAV;
|
||||
public SAV_ZygardeCell(SaveFile sav)
|
||||
{
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (SAV7)(Origin = sav).Clone();
|
||||
|
||||
// Constants @ 0x1C00
|
||||
// Cell Data @ 0x1D8C
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace PKHeX.WinForms
|
|||
public SAV_BoxList(SAVEditor p, SlotChangeManager m)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
|
||||
// initialize boxes dynamically
|
||||
var sav = p.SAV;
|
||||
|
|
|
@ -15,8 +15,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public SAV_EventFlags(SaveFile sav)
|
||||
{
|
||||
SAV = (Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (Origin = sav).Clone();
|
||||
|
||||
DragEnter += Main_DragEnter;
|
||||
DragDrop += Main_DragDrop;
|
||||
|
|
|
@ -13,6 +13,7 @@ namespace PKHeX.WinForms
|
|||
public SAV_GameSelect(IEnumerable<ComboItem> items)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
CB_Game.DisplayMember = nameof(ComboItem.Text);
|
||||
CB_Game.ValueMember = nameof(ComboItem.Value);
|
||||
CB_Game.DataSource = new BindingSource(items.ToList(), null);
|
||||
|
|
|
@ -12,9 +12,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public SAV_Inventory(SaveFile sav)
|
||||
{
|
||||
SAV = (Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (Origin = sav).Clone();
|
||||
itemlist = GameInfo.Strings.GetItemStrings(SAV.Generation, SAV.Version);
|
||||
|
||||
for (int i = 0; i < itemlist.Length; i++)
|
||||
|
|
|
@ -13,11 +13,12 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public SAV_MailBox(SaveFile sav)
|
||||
{
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (Origin = sav).Clone();
|
||||
Gen = SAV.Generation;
|
||||
p = SAV.PartyData;
|
||||
editing = true;
|
||||
InitializeComponent();
|
||||
|
||||
Messages = new[]
|
||||
{
|
||||
|
|
|
@ -10,9 +10,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public SAV_SimplePokedex(SaveFile sav)
|
||||
{
|
||||
SAV = (Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (Origin = sav).Clone();
|
||||
seen = new bool[SAV.MaxSpeciesID];
|
||||
caught = new bool[SAV.MaxSpeciesID];
|
||||
|
||||
|
|
|
@ -11,10 +11,10 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public SAV_SimpleTrainer(SaveFile sav)
|
||||
{
|
||||
SAV = (Origin = sav).Clone();
|
||||
Loading = true;
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (Origin = sav).Clone();
|
||||
Loading = true;
|
||||
|
||||
cba = new[] {CHK_1, CHK_2, CHK_3, CHK_4, CHK_5, CHK_6, CHK_7, CHK_8};
|
||||
TB_OTName.MaxLength = SAV.OTLength;
|
||||
|
|
|
@ -14,9 +14,9 @@ namespace PKHeX.WinForms
|
|||
private readonly SaveFile SAV;
|
||||
public SAV_Wondercard(SaveFile sav, MysteryGift g = null)
|
||||
{
|
||||
SAV = (Origin = sav).Clone();
|
||||
InitializeComponent();
|
||||
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
|
||||
SAV = (Origin = sav).Clone();
|
||||
mga = SAV.GiftAlbum;
|
||||
|
||||
switch (SAV.Generation)
|
||||
|
|
Loading…
Reference in a new issue