Exemplo n.º 1
0
        private static void DisplayBadge(Badge badge)
        {
            if (badge == null)
            {
                return;
            }

            if (_global.Contains(badge))
            {
                if (!badge.Meta)
                {
                    GLog.Highlight("Badge endorsed: {0}", badge.Description);
                }
            }
            else
            {
                _global.Add(badge);
                _saveNeeded = true;

                if (badge.Meta)
                {
                    GLog.Highlight("New super badge: {0}", badge.Description);
                }
                else
                {
                    GLog.Highlight("New badge: {0}", badge.Description);
                }
                PixelScene.ShowBadge(badge);
            }
        }