public MenuCreditsModelView(ModelViewRunner modelViewRunner, ExtraMenuItemsModelView parentModelView) : base(modelViewRunner, parentModelView)
        {
            LastLanguageIndex = LanguageEngine.currentLanguageIndex;
            FontSizeInEms     = MeasurementHelpers.FontSizeInEms;

            ContentTitle  = CreditStr();
            ContentHelper = CreditHelperStr();
            ParseCredits();

            PostContent = DisclaimerStr();
        }
        public MenuInstructionsModelView(ModelViewRunner modelViewRunner, ExtraMenuItemsModelView parentModelView) : base(modelViewRunner, parentModelView)
        {
            LastLanguageIndex = LanguageEngine.currentLanguageIndex;
            FontSizeInEms     = MeasurementHelpers.FontSizeInEms;

            lastFontColor = runner.FontColor.Color;

            ContentTitle  = InstructionsHeader();
            ContentHelper = null;
            ParseInstructions();

            PostContent = SaveWarning();
        }
Beispiel #3
0
        public MenuAchievementsModelView(ModelViewRunner modelViewRunner, ExtraMenuItemsModelView parentModelView) : base(modelViewRunner, parentModelView)
        {
            ContentTitle  = AchievementStr();
            ContentHelper = AchievementHelperStr();

            HashSet <AchievementBase> unlockedAchievements = new HashSet <AchievementBase>(achievementData.unlockedAchievements);

            numAchievementsUnlocked = unlockedAchievements.Count;

            List <AchievementWrapper> achievementStore = achievementData.allAchievements.Select(x =>
            {
                bool isUnlocked = unlockedAchievements.Contains(x);
                return(new AchievementWrapper(x, isUnlocked));
            }).ToList();

            achievementDisplays   = new ReadOnlyCollection <AchievementWrapper>(achievementStore);
            totalAchievementCount = achievementDisplays.Count;

            Content = null;             //unused.

            PostContent       = PostAchievementStr();
            LastLanguageIndex = LanguageEngine.currentLanguageIndex;
        }