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; 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 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 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 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 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 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()); }
private void Update_String() { if (IGM_Junction != null && IGM_Junction.GetMode().Equals(Mode.TopMenu_Off) && Enabled) { FF8String Changed = null; switch (CURSOR_SELECT) { case 0: Changed = Descriptions[Items.RemMag]; break; case 1: Changed = Descriptions[Items.RemAll]; break; } if (Changed != null && IGM_Junction != null) { IGM_Junction.ChangeHelp(Changed); } } }
public override void CheckMode(bool cursor = true) => CheckMode(-1, Mode.None, Mode.Mag_Stat, IGM_Junction != null && (IGM_Junction.GetMode().Equals(Mode.Mag_Stat)), IGM_Junction != null && (IGM_Junction.GetMode().Equals(Mode.Mag_Pool_Stat)), (IGM_Junction.GetMode().Equals(Mode.Mag_Stat) || IGM_Junction.GetMode().Equals(Mode.Mag_Pool_Stat)) && cursor);
public override void CheckMode(bool cursor = true) => CheckMode(0, Mode.Mag_EL_A, Mode.Mag_EL_D, IGM_Junction != null && (IGM_Junction.GetMode().Equals(Mode.Mag_EL_A) || IGM_Junction.GetMode().Equals(Mode.Mag_EL_D)), IGM_Junction != null && (IGM_Junction.GetMode().Equals(Mode.Mag_Pool_EL_A) || IGM_Junction.GetMode().Equals(Mode.Mag_Pool_EL_D)), cursor);
public override bool Update() { if (IGM_Junction != null && !IGM_Junction.GetMode().Equals(Mode.Abilities_Abilities)) { Cursor_Status &= ~Cursor_Status.Enabled; } else { Cursor_Status |= Cursor_Status.Enabled; } int pos = 0; int skip = Page * Rows; for (int i = 0; Memory.State.Characters != null && i < Memory.State.Characters[Character].UnlockedGFAbilities.Count && pos < Rows; i++) { if (Memory.State.Characters[Character].UnlockedGFAbilities[i] != Kernel_bin.Abilities.None) { Kernel_bin.Abilities j = Memory.State.Characters[Character].UnlockedGFAbilities[i]; if (Source.ContainsKey(j)) { if (skip > 0) { skip--; continue; } Font.ColorID cid = Memory.State.Characters[Character].Abilities.Contains(j) ? Font.ColorID.Grey : Font.ColorID.White; BLANKS[pos] = cid == Font.ColorID.Grey ? true : false; ITEM[pos, 0] = new IGMDataItem_String( Source[j].Icon, 9, Source[j].Name, new Rectangle(SIZE[pos].X, SIZE[pos].Y, 0, 0), cid); Contents[pos] = j; pos++; } } } for (; pos < Rows; pos++) { ITEM[pos, 0] = null; BLANKS[pos] = true; Contents[pos] = Kernel_bin.Abilities.None; } if (Contents[CURSOR_SELECT] != Kernel_bin.Abilities.None && IGM_Junction.GetMode().Equals(Mode.Abilities_Abilities)) { IGM_Junction.ChangeHelp(Source[Contents[CURSOR_SELECT]].Description); } UpdateTitle(); if (Contents[CURSOR_SELECT] == Kernel_bin.Abilities.None) { CURSOR_NEXT(); } if (Pages > 1) { if (Contents[0] == Kernel_bin.Abilities.None) { Pages = Page; PAGE_NEXT(); return(Update()); } else if (Contents[Rows - 1] == Kernel_bin.Abilities.None) { Pages = Page + 1; } } return(base.Update()); }
public override bool Update() { if (IGM_Junction != null && !IGM_Junction.GetMode().Equals(Mode.Abilities_Abilities)) { Cursor_Status &= ~Cursor_Status.Enabled; } else { Cursor_Status |= Cursor_Status.Enabled; } int pos = 0; int skip = Page * Rows; if (Damageable != null && Damageable.GetCharacterData(out Saves.CharacterData c)) { for (int i = 0; Memory.State.Characters != null && i < c.UnlockedGFAbilities.Count && pos < Rows; i++) { if (c.UnlockedGFAbilities[i] != Kernel_bin.Abilities.None) { Kernel_bin.Abilities j = c.UnlockedGFAbilities[i]; if (Source.ContainsKey(j)) { if (skip > 0) { skip--; continue; } Font.ColorID cid; if (c.Abilities.Contains(j)) { cid = Font.ColorID.Grey; BLANKS[pos] = true; } else { cid = Font.ColorID.White; BLANKS[pos] = false; } ((IGMDataItem.Text)ITEM[pos, 0]).Icon = Source[j].Icon; ((IGMDataItem.Text)ITEM[pos, 0]).Data = Source[j].Name; ((IGMDataItem.Text)ITEM[pos, 0]).FontColor = cid; ITEM[pos, 0].Show(); Contents[pos] = j; pos++; } } } } for (; pos < Rows; pos++) { ITEM[pos, 0].Hide(); BLANKS[pos] = true; Contents[pos] = Kernel_bin.Abilities.None; } if (Contents[CURSOR_SELECT] != Kernel_bin.Abilities.None && IGM_Junction.GetMode().Equals(Mode.Abilities_Abilities)) { IGM_Junction.ChangeHelp(Source[Contents[CURSOR_SELECT]].Description); } UpdateTitle(); if (Contents[CURSOR_SELECT] == Kernel_bin.Abilities.None) { CURSOR_NEXT(); } if (Pages > 1) { if (Contents[0] == Kernel_bin.Abilities.None) { //Pages = Page; PAGE_NEXT(); return(Update()); } //else if (Contents[Rows - 1] == Kernel_bin.Abilities.None) // //Pages = Page + 1; } return(base.Update()); }