Exemplo n.º 1
0
        public HighscorePanel(GraphBlueprint focus, HighscoreCategory mod)
        {
            _focus = focus;
            _mode  = mod;

            RelativePosition = FPoint.Zero;
            Size             = new FSize(WIDTH, HEIGHT);
            Alignment        = HUDAlignment.CENTER;
            Background       = FlatColors.BackgroundHUD;
        }
Exemplo n.º 2
0
        private Color GetModeColor(HighscoreCategory cat)
        {
            switch (cat)
            {
            case HighscoreCategory.GlobalPoints:
                return(Color.White);

            case HighscoreCategory.WorldPoints:
                return(Color.White);

            case HighscoreCategory.MultiplayerPoints:
                return(FlatColors.Amethyst);

            case HighscoreCategory.CustomLevelStars:
                return(FlatColors.SunFlower);

            case HighscoreCategory.CustomLevelPoints:
                return(FlatColors.Alizarin);

            default:
                SAMLog.Error("HP::EnumSwitch_GMC", "cat: " + _mode);
                return(Color.Magenta);
            }
        }
Exemplo n.º 3
0
        private TextureRegion2D GetModeIcon(HighscoreCategory cat)
        {
            switch (cat)
            {
            case HighscoreCategory.GlobalPoints:
                return(Textures.TexIconScore);

            case HighscoreCategory.WorldPoints:
                return(Textures.TexIconScore);

            case HighscoreCategory.MultiplayerPoints:
                return(Textures.TexIconMPScore);

            case HighscoreCategory.CustomLevelStars:
                return(Textures.TexIconStar);

            case HighscoreCategory.CustomLevelPoints:
                return(Textures.TexIconTetromino);

            default:
                SAMLog.Error("HP::EnumSwitch_GMI", "cat: " + _mode);
                return(Textures.TexPixel);
            }
        }
Exemplo n.º 4
0
 public async Task <QueryResultRanking> GetRanking(PlayerProfile profile, GraphBlueprint limit, HighscoreCategory cat)
 {
     return(new QueryResultRanking());
 }
Exemplo n.º 5
0
        private HighscoreCategory NextCategory(HighscoreCategory cat, bool delta)
        {
            if (delta)
            {
                // FWD

                switch (cat)
                {
                case HighscoreCategory.GlobalPoints:
                    if (_focus != null)
                    {
                        return(HighscoreCategory.WorldPoints);
                    }
                    return(HighscoreCategory.MultiplayerPoints);

                case HighscoreCategory.WorldPoints:
                    return(HighscoreCategory.MultiplayerPoints);

                case HighscoreCategory.MultiplayerPoints:
                    return(HighscoreCategory.CustomLevelStars);

                case HighscoreCategory.CustomLevelStars:
                    return(HighscoreCategory.CustomLevelPoints);

                case HighscoreCategory.CustomLevelPoints:
                    return(HighscoreCategory.GlobalPoints);

                default:
                    SAMLog.Error("HP::EnumSwitch_SM1", "cat: " + _mode);
                    return(HighscoreCategory.GlobalPoints);
                }
            }
            else
            {
                // RWD

                switch (cat)
                {
                case HighscoreCategory.GlobalPoints:
                    return(HighscoreCategory.CustomLevelPoints);

                case HighscoreCategory.WorldPoints:
                    return(HighscoreCategory.GlobalPoints);

                case HighscoreCategory.MultiplayerPoints:
                    if (_focus != null)
                    {
                        return(HighscoreCategory.WorldPoints);
                    }
                    return(HighscoreCategory.GlobalPoints);

                case HighscoreCategory.CustomLevelStars:
                    return(HighscoreCategory.MultiplayerPoints);

                case HighscoreCategory.CustomLevelPoints:
                    return(HighscoreCategory.CustomLevelStars);

                default:
                    SAMLog.Error("HP::EnumSwitch_SM2", "cat: " + _mode);
                    return(HighscoreCategory.GlobalPoints);
                }
            }
        }