public static void StopCombatMessageOverlay() { if (!Core.OverlayManager.IsActive) { return; } if (CombatMessageOverlay != null) { Core.OverlayManager.RemoveUIComponent(CombatMessageOverlay); } CombatMessageOverlay = null; }
public static void StartCombatMessageOverlay() { if (!Core.OverlayManager.IsActive) { return; } if (!BaseSettings.Instance.UseCombatMessageOverlay) { return; } if (CombatMessageOverlay == null) { CombatMessageOverlay = new CombatMessageUiComponent(BaseSettings.Instance.CombatMessageOverlayAdjustable); } Core.OverlayManager.AddUIComponent(CombatMessageOverlay); }