Example #1
0
        public NavigationMenu(SaveFile saveFile)
        {
            this.saveFile = saveFile;
            InitializeComponent();
            if (saveFile.Character.Gender == "Male")
            {
                pictureBox2.Image = imageList1.Images[0];
            }
            else
            {
                pictureBox2.Image = imageList1.Images[1];
            }


            questLog     = new QuestLog(saveFile, this);
            inventoryGui = new InventoryGUI();
            openChildForm(questLog);

            nameLabel.Text        = character.Name;
            levelLabel.Text       = @"Level : " + character.Level;
            gameBalanceLabel.Text = character.InGameBalance.ToString();
            xpBarController();
            hpBarController();
            hpLabel.Text = $"{character.GetCurrentHp()} / {character.LifePoints}";
            xpLabel.Text = $"{character.ExpreriencePoints} / {character.Level * 100}";
        }
Example #2
0
        public PrepareForBoss(SaveFile sf)
        {
            InitializeComponent();
            InventoryGUI objForm = new InventoryGUI(sf);

            objForm.TopLevel = false;
            panel1.Controls.Add(objForm);
            objForm.FormBorderStyle = FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Example #3
0
        public NavigationMenu(SaveFile saveFile)
        {
            this.saveFile = saveFile;
            InitializeComponent();
            pictureBox2.Image = imageList1.Images[character.Gender == "Male" ? 0 : 1];

            questLog     = new QuestLog(saveFile, UpdateStats);
            inventoryGui = new InventoryGUI(saveFile);
            shopGui      = new ShopGUI(saveFile);
            helpGui      = new HelpGUI();
            openChildForm(questLog);

            nameLabel.Text = character.Name;
            character.InGameBalanceChanged += SetBalance;
            SetBalance(character.InGameBalance);
            saveFile.TryInitiateBossBattle(StartBossBattle);
            waitingForBossGUI = new WaitingForBossBattle(saveFile.NextBossDate);
            UpdateStats();
        }