Example #1
0
        private void loadStateInfo()
        {
            //Label
            Player player = Player.getPlayer();

            levelValue.Text           = player.getLevel();
            atkValue.Text             = player.getAttack();
            defValue.Text             = player.getDefense();
            staminaValue.Text         = player.getStamina();
            tokensValue.Text          = player.getTokens();
            goldValue.Text            = player.getGold();
            satoshiValue.Text         = player.getSatoshi();
            bitconAddressTextBox.Text = player.getBitCoinAddress();
            arenapointsValue.Text     = player.getArenaPoints();

            //Button
            stamina_btn.Enabled = player.canUpgradeStamina();
            stamina_btn.Text    = Player.UPGRADE + player.upgradeStaminaGold() + Player.GOLD_LABEL;
            tokens_btn.Enabled  = player.canUpgradeTokens();
            tokens_btn.Text     = Player.UPGRADE + player.upgradeTokensGold() + Player.GOLD_LABEL;
            atk_btn.Enabled     = player.canUpgradeAttack();
            atk_btn.Text        = Player.UPGRADE + player.upgradeAttackGold() + Player.GOLD_LABEL;
            def_btn.Enabled     = player.canUpgradeDefense();
            def_btn.Text        = Player.UPGRADE + player.upgradeDefenseGold() + Player.GOLD_LABEL;
        }