コード例 #1
0
        protected override void ChoiceChanged()
        {
            int choice = CurrentPage * SpacesPerPage + CurrentChoice - 1;

            if (choice > -1)
            {
                summaryMenu.Visible = true;
                summaryMenu.SetDungeon(dungeonIndices[choice], DataManager.Instance.Save.DungeonUnlocks[dungeonIndices[choice]] == GameProgress.UnlockState.Completed);
            }
            else
            {
                summaryMenu.Visible = false;
            }
            base.ChoiceChanged();
        }
コード例 #2
0
 public DungeonEnterDialog(string message, int dungeon, bool sound, DialogueChoice[] choices, int defaultChoice, int cancelChoice)
     : base(message, sound, choices, defaultChoice, cancelChoice)
 {
     summaryMenu = new DungeonSummary(new Rect(new Loc(8, 8), new Loc(128, GraphicsManager.MenuBG.TileHeight * 2 + VERT_SPACE * 7)));
     summaryMenu.SetDungeon(dungeon, DataManager.Instance.Save.DungeonUnlocks[dungeon] == GameProgress.UnlockState.Completed);
 }