public void InlineLogSpecial(string message, SpecialTextType type) { switch (type) { case SpecialTextType.Error: InlineLogError(message); break; case SpecialTextType.Lewd: InlineLogLewd(message); break; case SpecialTextType.Accent: InlineLogAccent(message); break; case SpecialTextType.System: InlineLogSystem(message); break; case SpecialTextType.Player: InlineLogPlayer(message); break; default: Debug.LogError("Trying to log inline text with unknown special type: " + type); break; } }
private string getColorTagForTextType(SpecialTextType type) { switch (type) { case SpecialTextType.Accent: return(getColorTagForColor(UISkinController.skinController.skin.accentTextColor)); case SpecialTextType.Error: return(getColorTagForColor(UISkinController.skinController.skin.errorTextColor)); case SpecialTextType.Lewd: return(getColorTagForColor(UISkinController.skinController.skin.lewdTextColor)); case SpecialTextType.Player: return(getColorTagForColor(UISkinController.skinController.skin.playerTextColor)); case SpecialTextType.System: return(getColorTagForColor(UISkinController.skinController.skin.systemTextColor)); default: break; } return(string.Empty); }