Example #1
0
        public static void AddMsg(string msg, Color color)
        {
            PopupLabel lb = new PopupLabel(UtilityContent.debugFont, msg);

            lb.SetColor(color);

            _instance.labels.Insert(0, lb);
        }
Example #2
0
        public static void AddMsg(string msg, bool error)
        {
            PopupLabel lb = new PopupLabel(UtilityContent.debugFont, msg);

            if (error)
            {
                lb.SetColor(Color.DarkRed);
            }
            else
            {
                lb.SetColor(Color.ForestGreen);
            }

            _instance.labels.Insert(0, lb);
        }