예제 #1
0
        public static void StopCombatMessageOverlay()
        {
            if (!Core.OverlayManager.IsActive)
            {
                return;
            }

            if (CombatMessageOverlay != null)
            {
                Core.OverlayManager.RemoveUIComponent(CombatMessageOverlay);
            }
            CombatMessageOverlay = null;
        }
예제 #2
0
        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);
        }