public override void Refresh() { if (Memory.State?.Characters != null && Damageable != null && Damageable.GetCharacterData(out Saves.CharacterData _c)) { List <KeyValuePair <int, Characters> > party = GetParty(); byte pos = GetCharPos(party); foreach (KeyValuePair <int, Characters> pm in party.Where(x => x.Value == _c.ID)) { bool blink = false; bool charging = false; if (Damageable.GetBattleMode().Equals(Damageable.BattleMode.YourTurn)) { ((IGMDataItem.Texture)ITEM[pos, (int)DepthID.ATBCharged]).Color = Color.LightYellow * .8f; blink = true; } else if (Damageable.GetBattleMode().Equals(Damageable.BattleMode.ATB_Charged)) { ((IGMDataItem.Texture)ITEM[pos, (int)DepthID.ATBCharged]).Color = Color.Yellow * .8f; } else if (Damageable.GetBattleMode().Equals(Damageable.BattleMode.ATB_Charging)) { charging = true; ((IGMDataItem.Gradient.ATB)ITEM[pos, (int)DepthID.ATBCharging]).Refresh(Damageable); } ((IGMDataItem.Texture)ITEM[pos, (int)DepthID.ATBCharged]).Blink = blink; if (charging) { ITEM[pos, (int)DepthID.ATBCharged].Hide(); ITEM[pos, (int)DepthID.ATBCharging].Show(); } else { ITEM[pos, (int)DepthID.ATBCharging].Hide(); ITEM[pos, (int)DepthID.ATBCharged].Show(); } ((IGMDataItem.Text)ITEM[pos, (byte)DepthID.Name]).Blink = blink; ((IGMDataItem.Integer)ITEM[pos, (byte)DepthID.HP]).Blink = blink; pos++; } base.Refresh(); } }
public override Enum GetMode() => Damageable.GetBattleMode();