Exemple #1
0
        private void DungeonGUI_Load(object sender, EventArgs e)
        {
            Text = $"Tier {_state.dungeonTiers[_state.DungeonType]} Dungeon";

            // set up the lists here since we need to reuse "SetUpEnemyGUI" later
            enemyBoxes.AddRange(new PictureBox[] { EnemyPic1, EnemyPic2, EnemyPic3 });
            enemyBars.AddRange(new ProgressBar[] { EnemyBar1, EnemyBar2, EnemyBar3 });
            enemyNames.AddRange(new TextBox[] { EnemyBox1, EnemyBox2, EnemyBox3 });

            dgh = new DungeonGUIHelper(_state, this);

            dgh.Start();

            Skills.SelectedIndex = 1;
        }
        private void DungeonGUI_Load(object sender, EventArgs e)
        {
            Text = (_state.DungeonType == DungeonType.FINAL) ? "God's Domain" : $"Tier {_state.dungeonTiers[_state.DungeonType]} Boss Dungeon";

            dgh = new DungeonGUIHelper(_state, this);

            // set up the lists here since we need to reuse "SetUpEnemyGUI" later
            subbars.AddRange(new ProgressBar[] { subbar, subbar2, subbar3, subbar4, subbar5, subbar6, subbar7, subbar8, subbar9,
                                                 subbar10, subbar11, subbar12, subbar13, subbar14, subbar15, subbar16, subbar17, subbar18, subbar19, subbar20, subbar21 });

            bc = new BossCalculator(subbars.Count);

            dgh.Start();

            Skills.SelectedIndex = 1;
        }