Exemplo n.º 1
0
 void box_Accepted(object sender, EventArgs e)
 {
     m_UpgradeValue.Upgrade();
     NextUpgradeCostString.Text = m_UpgradeValue.GetUpgradeCost().ToString();
     LevelString.Text           = "Level: " + m_UpgradeValue.GetUpgradeLevel().ToString();
     UpgradeMenuScreen.SetFieldValue(this.m_UpgradeField, m_UpgradeValue);
 }
Exemplo n.º 2
0
 public void SetUpgradeField(UpgradeMenuScreen.UpgradeFieldEnum field, UpgradeField val)
 {
     NameString                 = new ColorString(m_Font, val.Name, Color.White);
     m_UpgradeField             = field;
     m_UpgradeValue             = val;
     NextUpgradeCostString.Text = m_UpgradeValue.GetUpgradeCost().ToString();
     LevelString.Text           = "Level: " + m_UpgradeValue.GetUpgradeLevel().ToString();
 }