public override bool Inputs_OKAY() { if (Damageable.GetCharacterData(out Saves.CharacterData c)) { switch (CURSOR_SELECT) { case 0: c.AutoATK(); break; case 1: c.AutoDEF(); break; case 2: c.AutoMAG(); break; default: return(false); } } skipsnd = true; init_debugger_Audio.PlaySound(31); Inputs_CANCEL(); IGM_Junction.Refresh(); return(true); }
private void Update_String() { if (IGM_Junction != null && IGM_Junction.GetMode().Equals(Mode.TopMenu_Auto) && Enabled) { FF8String Changed = null; switch (CURSOR_SELECT) { case 0: Changed = Strings.Description.AutoAtk; break; case 1: Changed = Strings.Description.AutoDef; break; case 2: Changed = Strings.Description.AutoMag; break; } if (Changed != null && IGM_Junction != null) { IGM_Junction.ChangeHelp(Changed); } } }
public override bool Update() { bool ret = base.Update(); if (IGM_Junction != null && IGM_Junction.GetMode().Equals(Mode.Abilities)) { Cursor_Status &= ~Cursor_Status.Blinking; IGMDataItem_IGMData i = ((IGMDataItem_IGMData)ITEM[0, 0]); IGMDataItem_IGMData i2 = ((IGMDataItem_IGMData)ITEM[1, 0]); if (i != null && i.Data != null && i2 != null && i2.Data != null) { if (CURSOR_SELECT >= i.Data.Count) { if (i2.Data.Descriptions != null && i2.Data.Descriptions.ContainsKey(CURSOR_SELECT - i.Data.Count)) { IGM_Junction.ChangeHelp(i2.Data.Descriptions[CURSOR_SELECT - i.Data.Count]); } } else { if (i.Data.Descriptions != null && i.Data.Descriptions.ContainsKey(CURSOR_SELECT)) { IGM_Junction.ChangeHelp(i.Data.Descriptions[CURSOR_SELECT]); } } } } else { Cursor_Status |= Cursor_Status.Blinking; } return(ret); }
public override void Refresh() { base.Refresh(); if (IGM_Junction != null && IGM_Junction.GetMode().Equals(Mode.Mag_Stat) && Enabled) { ITEM[0, 0] = new IGMDataItem_Icon(Icons.ID.Rewind_Fast, new Rectangle(SIZE[0].X, SIZE[0].Y, 0, 0), 2, 7); ITEM[0, 1] = new IGMDataItem_String(Descriptions[Items.ST_A_D], new Rectangle(SIZE[0].X + 20, SIZE[0].Y, 0, 0)); ITEM[0, 2] = new IGMDataItem_Icon(Icons.ID.Rewind, new Rectangle(SIZE[0].X + 143, SIZE[0].Y, 0, 0), 2, 7); ITEM[0, 3] = new IGMDataItem_String(Descriptions[Items.EL_A_D], new Rectangle(SIZE[0].X + 169, SIZE[0].Y, 0, 0)); } else if (IGM_Junction != null && IGM_Junction.GetMode().Equals(Mode.Mag_EL_A) && Enabled) //coords for these two need checked. { ITEM[0, 0] = new IGMDataItem_Icon(Icons.ID.Rewind, new Rectangle(SIZE[0].X, SIZE[0].Y, 0, 0), 2, 7); ITEM[0, 1] = new IGMDataItem_String(Descriptions[Items.ST_A_D], new Rectangle(SIZE[0].X + 20, SIZE[0].Y, 0, 0)); ITEM[0, 2] = new IGMDataItem_Icon(Icons.ID.Forward, new Rectangle(SIZE[0].X + 143, SIZE[0].Y, 0, 0), 2, 7); ITEM[0, 3] = new IGMDataItem_String(Descriptions[Items.Stats], new Rectangle(SIZE[0].X + 169, SIZE[0].Y, 0, 0)); } else if (IGM_Junction != null && IGM_Junction.GetMode().Equals(Mode.Mag_ST_A) && Enabled) { ITEM[0, 0] = new IGMDataItem_Icon(Icons.ID.Forward, new Rectangle(SIZE[0].X, SIZE[0].Y, 0, 0), 2, 7); ITEM[0, 1] = new IGMDataItem_String(Descriptions[Items.EL_A_D], new Rectangle(SIZE[0].X + 20, SIZE[0].Y, 0, 0)); ITEM[0, 2] = new IGMDataItem_Icon(Icons.ID.Forward_Fast, new Rectangle(SIZE[0].X + 143, SIZE[0].Y, 0, 0), 2, 7); ITEM[0, 3] = new IGMDataItem_String(Descriptions[Items.Stats], new Rectangle(SIZE[0].X + 169, SIZE[0].Y, 0, 0)); } }
public override bool Inputs_OKAY() { switch (CURSOR_SELECT) { case 0: IGM_Junction.Data[SectionName.TopMenu_Junction].Show(); Cursor_Status |= Cursor_Status.Blinking; IGM_Junction.SetMode(Mode.TopMenu_Junction); break; case 1: IGM_Junction.Data[SectionName.TopMenu_Off].Show(); Cursor_Status |= Cursor_Status.Blinking; IGM_Junction.SetMode(Mode.TopMenu_Off); break; case 2: IGM_Junction.Data[SectionName.TopMenu_Auto].Show(); Cursor_Status |= Cursor_Status.Blinking; IGM_Junction.SetMode(Mode.TopMenu_Auto); break; case 3: IGM_Junction.Data[SectionName.TopMenu_Abilities].Show(); Cursor_Status |= Cursor_Status.Blinking; IGM_Junction.SetMode(Mode.Abilities); break; default: return(false); } base.Inputs_OKAY(); return(true); }
public override bool Inputs_CANCEL() { base.Inputs_CANCEL(); IGM_Junction.SetMode(Mode.TopMenu); Hide(); return(true); }
public override bool Inputs_OKAY() { switch (CURSOR_SELECT) { case 0: skipsnd = true; init_debugger_Audio.PlaySound(31); base.Inputs_OKAY(); Memory.State.Characters[Character].RemoveAll(); IGM_Junction.Data[SectionName.RemAll].Hide(); IGM_Junction.Data[SectionName.TopMenu_Off].Hide(); IGM_Junction.SetMode(Mode.TopMenu); IGM_Junction.Data[SectionName.TopMenu].CURSOR_SELECT = 0; IGM_Junction.Refresh(); break; case 1: Inputs_CANCEL(); break; default: return(false); } return(true); }
public override bool Update() { bool ret = base.Update(); if (IGM_Junction != null && IGM_Junction.GetMode().Equals(Mode.Abilities)) { Cursor_Status &= ~Cursor_Status.Blinking; if (Commands != null && Ability != null) { if (CURSOR_SELECT >= Commands.Count) { if (Ability.Descriptions != null && Ability.Descriptions.TryGetValue(CURSOR_SELECT - Commands.Count, out FF8String v)) { IGM_Junction.ChangeHelp(v); } } else { if (Commands.Descriptions != null && Commands.Descriptions.TryGetValue(CURSOR_SELECT, out FF8String v)) { IGM_Junction.ChangeHelp(v); } } } } else { Cursor_Status |= Cursor_Status.Blinking; } return(ret); }
public override bool Update() { bool ret = base.Update(); if (IGM_Junction != null && IGM_Junction.GetMode().Equals(Mode.TopMenu) && Enabled) { FF8String Changed = null; switch (CURSOR_SELECT) { case 0: Changed = Descriptions[Items.Junction]; break; case 1: Changed = Descriptions[Items.Off]; break; case 2: Changed = Descriptions[Items.Auto]; break; case 3: Changed = Descriptions[Items.Ability]; break; } if (Changed != null) { IGM_Junction.ChangeHelp(Changed); } } return(ret); }
public override bool Inputs_CANCEL() { base.Inputs_CANCEL(); IGM_Junction.Data[SectionName.RemMag].Hide(); IGM_Junction.SetMode(Mode.TopMenu_Off); return(true); }
public override bool Inputs_OKAY() { skipsnd = true; AV.Sound.Play(31); IGM_Junction.Data[SectionName.ConfirmChanges].Hide(); IGM_Junction.SetMode(Mode.TopMenu); base.Inputs_OKAY(); switch (CURSOR_SELECT) { case 0: break; case 1: Memory.State = Memory.PrevState.Clone(); break; } if (Menu.Module.State == MenuModule.Mode.IGM_Junction) { Menu.Module.State = MenuModule.Mode.IGM; IGM.Refresh(); FadeIn(); return(true); } return(false); }
public override void Refresh() { base.Refresh(); if (UpdateChild(Mode.Mag_Stat, Icons.ID.Rewind_Fast, Strings.Name.ST_A_D, Icons.ID.Rewind, Strings.Name.EL_A_D)) { } else if (UpdateChild(Mode.Mag_EL_A, Icons.ID.Rewind, Strings.Name.ST_A_D, Icons.ID.Forward, Strings.Name.Stats)) { } else if (UpdateChild(Mode.Mag_ST_A, Icons.ID.Forward, Strings.Name.EL_A_D, Icons.ID.Forward_Fast, Strings.Name.Stats)) { } bool UpdateChild(Mode mode, Icons.ID icon1, FF8StringReference str1, Icons.ID icon2, FF8StringReference str2) { if (IGM_Junction != null && IGM_Junction.GetMode().Equals(mode) && Enabled) { ((IGMDataItem.Icon)ITEM[0, 0]).Data = icon1; ((IGMDataItem.Text)ITEM[0, 1]).Data = str1; ((IGMDataItem.Icon)ITEM[0, 2]).Data = icon2; ((IGMDataItem.Text)ITEM[0, 3]).Data = str2; return(true); } return(false); } }
public override bool Inputs_CANCEL() { base.Inputs_CANCEL(); IGM_Junction.Data[SectionName.ConfirmChanges].Hide(); IGM_Junction.SetMode(Mode.TopMenu); return(true); }
public override bool Inputs_OKAY() { skipsnd = true; init_debugger_Audio.PlaySound(31); IGM_Junction.Data[SectionName.ConfirmChanges].Hide(); IGM_Junction.SetMode(Mode.TopMenu); base.Inputs_OKAY(); switch (CURSOR_SELECT) { case 0: break; case 1: Memory.State = Memory.PrevState.Clone(); break; } if (Module_main_menu_debug.State == Module_main_menu_debug.MainMenuStates.IGM_Junction) { Module_main_menu_debug.State = Module_main_menu_debug.MainMenuStates.IGM; IGM.Refresh(); FadeIn(); return(true); } return(false); }
public void CheckMode(int pos, Mode one, Mode two, bool slots, bool pools, bool cursor = true) { if (IGM_Junction != null && slots && Enabled) { Cursor_Status &= ~Cursor_Status.Horizontal; Cursor_Status |= Cursor_Status.Vertical; Cursor_Status &= ~Cursor_Status.Blinking; if (CURSOR_SELECT > pos) { IGM_Junction.SetMode(two); } else { IGM_Junction.SetMode(one); } } else if (IGM_Junction != null && pools && Enabled) { Cursor_Status |= Cursor_Status.Blinking; } if (cursor) { Cursor_Status |= Cursor_Status.Enabled; } else { Cursor_Status &= ~Cursor_Status.Enabled; } }
public override bool Inputs_OKAY() { switch (CURSOR_SELECT) { case 0: skipsnd = true; AV.Sound.Play(31); base.Inputs_OKAY(); if (Damageable.GetCharacterData(out Saves.CharacterData c)) { c.RemoveAll(); } IGM_Junction.Data[SectionName.RemAll].Hide(); IGM_Junction.Data[SectionName.TopMenu_Off].Hide(); IGM_Junction.SetMode(Mode.TopMenu); ((IGMData.Base)IGM_Junction.Data[SectionName.TopMenu]).CURSOR_SELECT = 0; IGM_Junction.Refresh(); break; case 1: Inputs_CANCEL(); break; default: return(false); } return(true); }
public override bool Inputs_CANCEL() { skipdata = true; base.Inputs_CANCEL(); skipdata = false; IGM_Junction.Data[SectionName.TopMenu_Abilities].Hide(); IGM_Junction.SetMode(Mode.TopMenu); return(true); }
public override bool Update() { if (IGM_Junction != null && !IGM_Junction.GetMode().Equals(last) && Enabled) { last = (Mode)IGM_Junction.GetMode(); Refresh(); return(base.Update()); } return(false); }
public override bool Inputs_CANCEL() { if (Memory.PrevState != null && Damageable.GetCharacterData(out Saves.CharacterData c) && ( Memory.PrevState.Characters[c.ID].CurrentHP() > Memory.State.Characters[c.ID].CurrentHP() || Memory.PrevState.Characters[c.ID].MaxHP() > Memory.State.Characters[c.ID].MaxHP())) { IGM_Junction.Data[SectionName.ConfirmChanges].Show(); IGM_Junction.SetMode(Mode.ConfirmChanges); }
public override bool Inputs_OKAY() { if (!BLANKS[CURSOR_SELECT]) { base.Inputs_OKAY(); BackupSetting(); IGM_Junction.SetMode(Mode.Mag_Pool_Stat); return(true); } return(false); }
public override void Inputs_Menu() { skipdata = true; base.Inputs_Menu(); skipdata = false; if (Contents[CURSOR_SELECT] == Kernel_bin.Stat.None) { Memory.State.Characters[Character].Stat_J[Contents[CURSOR_SELECT]] = 0; IGM_Junction.Refresh(); } }
public override void Inputs_Menu() { skipdata = true; base.Inputs_Menu(); skipdata = false; if (Contents[CURSOR_SELECT] == Kernel_bin.Stat.None && Damageable.GetCharacterData(out Saves.CharacterData c)) { c.Stat_J[Contents[CURSOR_SELECT]] = 0; IGM_Junction.Refresh(); } }
public override bool Inputs_OKAY() { bool ret = base.Inputs_OKAY(); FadeIn(); switch (Choice) { case Items.Junction: Menu.Module.State = MenuModule.Mode.IGM_Junction; IGM_Junction.Refresh(Contents[CURSOR_SELECT], true); return(true); } return(ret); }
public override bool Inputs_OKAY() { bool ret = base.Inputs_OKAY(); FadeIn(); switch (Choice) { case Items.Junction: Module_main_menu_debug.State = Module_main_menu_debug.MainMenuStates.IGM_Junction; IGM_Junction.Refresh(Contents[CURSOR_SELECT].Item1, Contents[CURSOR_SELECT].Item2); return(true); } return(ret); }
public override bool Inputs_OKAY() { base.Inputs_OKAY(); if (CURSOR_SELECT == 0) { IGM_Junction.SetMode(Mode.TopMenu_GF_Group); IGM_Junction.Data[SectionName.TopMenu_GF_Group].Show(); } else { IGM_Junction.SetMode(Mode.Mag_Stat); IGM_Junction.Data[SectionName.Mag_Group].Show(); } return(true); }
public override bool Inputs_OKAY() { if (Contents[CURSOR_SELECT] != Kernel_bin.Abilities.None && !BLANKS[CURSOR_SELECT] && Damageable.GetCharacterData(out Saves.CharacterData c)) { skipsnd = true; AV.Sound.Play(31); base.Inputs_OKAY(); int target = ((IGMData.Base)IGM_Junction.Data[SectionName.TopMenu_Abilities]).CURSOR_SELECT - 4; c.Abilities[target] = Contents[CURSOR_SELECT]; IGM_Junction.SetMode(Mode.Abilities); IGM_Junction.Refresh(); // can be more specific if you want to find what is being changed. return(true); } return(false); }
public override bool Inputs_OKAY() { if (Contents[CURSOR_SELECT] != Kernel_bin.Abilities.None && !BLANKS[CURSOR_SELECT]) { skipsnd = true; init_debugger_Audio.PlaySound(31); base.Inputs_OKAY(); int target = IGM_Junction.Data[SectionName.TopMenu_Abilities].CURSOR_SELECT - 4; Memory.State.Characters[Character].Abilities[target] = Contents[CURSOR_SELECT]; IGM_Junction.SetMode(Mode.Abilities); IGM_Junction.Refresh(); // can be more specific if you want to find what is being changed. return(true); } return(false); }
public override bool Update() { Update_String(); if (IGM_Junction != null) { if (IGM_Junction.GetMode().Equals(Mode.TopMenu_Junction)) { Cursor_Status &= ~Cursor_Status.Blinking; } else { Cursor_Status |= Cursor_Status.Blinking; } } return(base.Update()); }
public override bool Inputs_OKAY() { if (Contents[CURSOR_SELECT] != Kernel_bin.Abilities.None && !BLANKS[CURSOR_SELECT]) { skipsnd = true; init_debugger_Audio.PlaySound(31); base.Inputs_OKAY(); int target = IGM_Junction.Data[SectionName.TopMenu_Abilities].CURSOR_SELECT - 1; Memory.State.Characters[Character].Commands[target] = Contents[CURSOR_SELECT]; IGM_Junction.SetMode(Mode.Abilities); IGM_Junction.Data[SectionName.TopMenu_Abilities].Refresh(); IGM_Junction.Data[SectionName.Commands].Refresh(); return(true); } return(false); }
public override bool Inputs_OKAY() { if (Contents[CURSOR_SELECT] != Kernel_bin.Abilities.None && !BLANKS[CURSOR_SELECT] && Damageable.GetCharacterData(out Saves.CharacterData c)) { skipsnd = true; init_debugger_Audio.PlaySound(31); base.Inputs_OKAY(); int target = ((IGMData.Base)IGM_Junction.Data[SectionName.TopMenu_Abilities]).CURSOR_SELECT - 1; c.Commands[target] = Contents[CURSOR_SELECT]; IGM_Junction.SetMode(Mode.Abilities); IGM_Junction.Data[SectionName.TopMenu_Abilities].Refresh(); IGM_Junction.Data[SectionName.Commands].Refresh(); return(true); } return(false); }