protected override void PageRight() => Junction.SetMode(Mode.Mag_ST_A);
public override void CheckMode(bool cursor = true) => CheckMode(-1, Mode.None, Mode.Mag_Stat, Junction != null && (Junction.GetMode().Equals(Mode.Mag_Stat)), Junction != null && (Junction.GetMode().Equals(Mode.Mag_Pool_Stat)), Junction != null && ((Junction.GetMode().Equals(Mode.Mag_Stat) || Junction.GetMode().Equals(Mode.Mag_Pool_Stat)) && cursor));
protected override void PageLeft() => Junction.SetMode(Mode.Mag_EL_A);
public override bool Update() { if (Junction != null && !Junction.GetMode().Equals(Mode.Abilities_Commands)) { Cursor_Status &= ~Cursor_Status.Enabled; } else { Cursor_Status |= Cursor_Status.Enabled; } var pos = 0; var skip = Page * Rows; if (Damageable != null && Damageable.GetCharacterData(out var c)) { for (var i = 0; Memory.State.Characters && i < c.UnlockedGFAbilities.Count && pos < Rows; i++) { if (c.UnlockedGFAbilities[i] == Kernel.Abilities.None) { continue; } var j = (c.UnlockedGFAbilities[i]); if (!Source.ContainsKey(j) || skip-- > 0) { continue; } Font.ColorID cid; if (c.Commands.Contains(j)) { cid = Font.ColorID.Grey; BLANKS[pos] = true; } else { cid = Font.ColorID.White; BLANKS[pos] = false; } ((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.Abilities.None; } if (Contents[CURSOR_SELECT] != Kernel.Abilities.None && Junction.GetMode().Equals(Mode.Abilities_Commands)) { Junction.ChangeHelp(Source[Contents[CURSOR_SELECT]].Description); } UpdateTitle(); if (Contents[CURSOR_SELECT] == Kernel.Abilities.None) { CURSOR_NEXT(); } if (Pages > 1) { if (Contents[0] == Kernel.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 Inputs_CANCEL() { base.Inputs_CANCEL(); Junction.SetMode(Mode.Abilities); return(true); }
public override bool Inputs_CANCEL() { base.Inputs_CANCEL(); Junction.SetMode(Mode.TopMenu_Junction); return(true); }
public override void CheckMode(bool cursor = true) => CheckMode(0, Mode.Mag_EL_A, Mode.Mag_EL_D, Junction != null && (Junction.GetMode().Equals(Mode.Mag_EL_A) || Junction.GetMode().Equals(Mode.Mag_EL_D)), Junction != null && (Junction.GetMode().Equals(Mode.Mag_Pool_EL_A) || Junction.GetMode().Equals(Mode.Mag_Pool_EL_D)), cursor);