public override void DisplayPreview() { base.DisplayPreview(); if (!Preview || InputMap == null || InputMap == Map.Internal || Battle.SpectateRegion == null || Battle.SpectateRegion.Area.Length == 0) { if (_SpectatePreview != null) { _SpectatePreview.Unregister(); _SpectatePreview = null; } return; } if (_SpectatePreview != null) { if (_SpectatePreview.Map == InputMap && _SpectatePreview.Area.GetBoundsHashCode() == Battle.SpectateRegion.Area.GetBoundsHashCode()) { _SpectatePreview.Refresh(); return; } _SpectatePreview.Unregister(); _SpectatePreview = null; } _SpectatePreview = Battle.SpectateRegion.DisplayPreview(ErrorHue, PreviewEffect, EffectRender.Darken); }
public virtual void DisplayPreview() { if (!Preview || InputMap == null || InputMap == Map.Internal || List.Count == 0) { if (_Preview != null) { _Preview.Unregister(); _Preview = null; } return; } if (_Preview != null) { if (_Preview.Map == InputMap && _Preview.Area.GetBoundsHashCode() == List.GetBoundsHashCode()) { _Preview.Refresh(); return; } _Preview.Unregister(); } _Preview = RegionExtUtility.DisplayPreview( PreviewName, InputMap, PreviewHue, PreviewEffect, PreviewRender, List.ToArray()); }
public virtual void ClearPreview() { if (_Preview == null) { return; } _Preview.Unregister(); _Preview = null; }
public override void ClearPreview() { base.ClearPreview(); if (_SpectatePreview == null) { return; } _SpectatePreview.Unregister(); _SpectatePreview = null; }
public override void ClearPreview() { base.ClearPreview(); if (_BattlePreview == null) { return; } _BattlePreview.Unregister(); _BattlePreview = null; }
public override void DisplayPreview() { base.DisplayPreview(); if (!Preview || InputMap == null || InputMap == Map.Internal || Battle.BattleRegion == null || Battle.BattleRegion.Area.Length == 0) { if (_BattlePreview != null) { _BattlePreview.Unregister(); _BattlePreview = null; } return; } if (_BattlePreview != null) { if (_BattlePreview.Map == InputMap && _BattlePreview.Area.GetBoundsHashCode() == Battle.BattleRegion.Area.GetBoundsHashCode()) { _BattlePreview.Refresh(); return; } _BattlePreview.Unregister(); _BattlePreview = null; } _BattlePreview = Battle.BattleRegion.DisplayPreview(ErrorHue, PreviewEffect, EffectRender.Darken); }