mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
Show missing editors
yay useless integer stores instead of checking if an interface is implemented
This commit is contained in:
parent
abe87eb369
commit
4302347366
5 changed files with 10 additions and 2 deletions
|
@ -32,6 +32,7 @@ namespace PKHeX.Core
|
|||
CGearDataOffset = 0x52800;
|
||||
EntreeForestOffset = 0x22A00;
|
||||
PokeDex = Blocks.Zukan.PokeDex;
|
||||
WondercardData = Blocks.MysteryBlock.Offset;
|
||||
}
|
||||
|
||||
public override IReadOnlyList<BlockInfo> AllBlocks => Blocks.BlockInfo;
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace PKHeX.Core
|
|||
CGearDataOffset = 0x52000;
|
||||
EntreeForestOffset = 0x22C00;
|
||||
PokeDex = Blocks.Zukan.PokeDex;
|
||||
WondercardData = Blocks.MysteryBlock.Offset;
|
||||
}
|
||||
|
||||
public override IReadOnlyList<BlockInfo> AllBlocks => Blocks.BlockInfo;
|
||||
|
|
|
@ -21,13 +21,16 @@ namespace PKHeX.Core
|
|||
|
||||
private void Initialize()
|
||||
{
|
||||
Party = Blocks.BlockInfo[04].Offset;
|
||||
EventConst = Blocks.BlockInfo[05].Offset;
|
||||
PokeDex = Blocks.BlockInfo[06].Offset;
|
||||
EventFlag = EventConst + (EventConstMax * 2); // After Event Const (u16)*n
|
||||
HoF = EventFlag + (EventFlagMax / 8); // After Event Flags (1b)*(1u8/8b)*n
|
||||
|
||||
Blocks.BoxLayout.LoadBattleTeams();
|
||||
TeamSlots = Blocks.BoxLayout.TeamSlots;
|
||||
Box = Blocks.BlockInfo[14].Offset;
|
||||
WondercardData = Blocks.MysteryBlock.Offset;
|
||||
}
|
||||
|
||||
public override PersonalTable Personal => PersonalTable.SM;
|
||||
|
|
|
@ -18,13 +18,16 @@ namespace PKHeX.Core
|
|||
|
||||
private void Initialize()
|
||||
{
|
||||
Party = Blocks.BlockInfo[04].Offset;
|
||||
EventConst = Blocks.BlockInfo[05].Offset;
|
||||
PokeDex = Blocks.BlockInfo[06].Offset;
|
||||
EventFlag = EventConst + (EventConstMax * 2); // After Event Const (u16)*n
|
||||
HoF = EventFlag + (EventFlagMax / 8); // After Event Flags (1b)*(1u8/8b)*n
|
||||
|
||||
Blocks.BoxLayout.LoadBattleTeams();
|
||||
TeamSlots = Blocks.BoxLayout.TeamSlots;
|
||||
Box = Blocks.BlockInfo[14].Offset;
|
||||
WondercardData = Blocks.MysteryBlock.Offset;
|
||||
}
|
||||
|
||||
public override PersonalTable Personal => PersonalTable.USUM;
|
||||
|
|
|
@ -996,10 +996,10 @@ namespace PKHeX.WinForms.Controls
|
|||
B_OpenPokeblocks.Enabled = sav is SAV6AO;
|
||||
B_OpenSecretBase.Enabled = sav is SAV6AO;
|
||||
B_OpenPokepuffs.Enabled = sav is IPokePuff;
|
||||
B_JPEG.Visible = B_OpenLinkInfo.Enabled = B_OpenSuperTraining.Enabled = B_OUTPasserby.Enabled = sav is SAV6XY || sav is SAV6AO;
|
||||
B_JPEG.Visible = B_OpenLinkInfo.Enabled = B_OpenSuperTraining.Enabled = B_OUTPasserby.Enabled = sav is ISaveBlock6Main;
|
||||
B_OpenBoxLayout.Enabled = sav.HasNamableBoxes;
|
||||
B_OpenWondercards.Enabled = sav.HasWondercards;
|
||||
B_OpenHallofFame.Enabled = sav is SAV6XY || sav is SAV6AO || sav is SAV7;
|
||||
B_OpenHallofFame.Enabled = sav is ISaveBlock6Main || sav is SAV7;
|
||||
B_OpenOPowers.Enabled = sav is IOPower;
|
||||
B_OpenPokedex.Enabled = sav.HasPokeDex;
|
||||
B_OpenBerryField.Enabled = sav is SAV6XY; // oras undocumented
|
||||
|
|
Loading…
Reference in a new issue