Beispiel #1
0
        public static void UpdateStatusDisplays(ModifierType type, string command, string amount, string user, string color, UpdateType updateType)
        {
            switch (updateType)
            {
            case UpdateType.All:
                StatusTextManager.UpdatePopup(type, command, amount);
                if (Integrations.scoreOverlayFound)
                {
                    ScoreOverlay.UpdateOverlay(type, command, amount, user, color, ScoreOverlay.State.Active);
                }
                break;

            case UpdateType.Ingame:
                StatusTextManager.UpdatePopup(type, command, amount);
                break;

            case UpdateType.ScoreOverlay:
                if (Integrations.scoreOverlayFound)
                {
                    ScoreOverlay.UpdateOverlay(type, command, amount, user, color, ScoreOverlay.State.Cooldown);
                }
                break;
            }
        }