private void UpgradeShop_Load(object sender, EventArgs e)
 {
     foreach (string i in UpgradeMeta.listUpgradesAvaiable())
     {
         listUpgrades.Items.Add(i);
     }
 }
Пример #2
0
 private void tmData_Tick(object sender, EventArgs e)
 {
     lblSiteName.Text    = "Network Name: " + Properties.Settings.Default.SiteName;
     lblAdIntensity.Text = "Ad Intensity: " + Properties.Settings.Default.AdIntensity.ToString();
     lblUserCount.Text   = "Users: " + Properties.Settings.Default.Users.ToString();
     lblAdsense.Text     = "AdSense? : " + (UpgradeMeta.checkUpgradeBought("Enable AdSense") ? "Yes" : "No");
 }
Пример #3
0
 private void desktop_Load(object sender, EventArgs e)
 {
     RPCManger.UpdateSatus("Desktop", "Managing the desktop", "icon");
     lblDayCount.Text = "Day " + Properties.Settings.Default.DayCount.ToString();
     lblMoney.Text    = "Money: $" + Properties.Settings.Default.CashCount.ToString();
     if (!UpgradeMeta.checkUpgradeBought("Unlock Leaderboards"))
     {
         tsmLeaderboard.Visible = false;
     }
     // if (!UpgradeMeta.checkUpgradeBought("Exploiter")) tsmExploiter.Visible = false;
 }
Пример #4
0
 private void btnDayAdvance_Click(object sender, EventArgs e)
 {
     Properties.Settings.Default.DayCount += 1;
     lblDayCount.Text = "Day " + Properties.Settings.Default.DayCount.ToString();
     Properties.Settings.Default.Users     += Properties.Settings.Default.AdIntensity * 2;
     Properties.Settings.Default.CashCount -= Properties.Settings.Default.AdIntensity;
     if (UpgradeMeta.checkUpgradeBought("Enable AdSense"))
     {
         Properties.Settings.Default.CashCount += Properties.Settings.Default.Users / 2;
     }
     lblMoney.Text = "Money: $" + Properties.Settings.Default.CashCount;
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (listUpgrades.SelectedItem == null)
     {
         return;
     }
     UpgradeMeta.buyUpgrade(listUpgrades.SelectedItem.ToString());
     listUpgrades.Items.Clear();
     foreach (string i in UpgradeMeta.listUpgradesAvaiable())
     {
         listUpgrades.Items.Add(i);
     }
 }
Пример #6
0
 private void MenuScreen_Load(object sender, EventArgs e)
 {
     RPCManger.start("Menu Screen", "Browsing the Menu Screen");
     if (Properties.Settings.Default.upgradesAvailable == null)
     {
         Properties.Settings.Default.upgradesAvailable = new System.Collections.Hashtable();
         Properties.Settings.Default.upgradesBought    = new System.Collections.Hashtable();
         Properties.Settings.Default.upgradesAvailable.Add("Enable AdSense", null);
         Properties.Settings.Default.upgradesAvailable.Add("Unlock Leaderboards", null);
         Properties.Settings.Default.upgradesAvailable.Add("Exploiter", null);
     }
     UpgradeMeta.load();
 }
 private void listUpgrades_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listUpgrades.SelectedItem == null)
     {
         return;
     }
     lblUpgradeTitle.Text = listUpgrades.SelectedItem.ToString();
     lblUpgradeDesc.Text  = UpgradeMeta.getUpgradeDescription(listUpgrades.SelectedItem.ToString());
     lblCost.Text         = UpgradeMeta.getUpgradePrice(listUpgrades.SelectedItem.ToString()).ToString();
     if (Properties.Settings.Default.CashCount < UpgradeMeta.getUpgradePrice(listUpgrades.SelectedItem.ToString()))
     {
         button1.Enabled = false;
     }
     else
     {
         button1.Enabled = true;
     }
 }
Пример #8
0
 private void tmData_Tick(object sender, EventArgs e)
 {
     lblMoney.Text            = "Money: $" + Properties.Settings.Default.CashCount;
     lblAnalyticsUsers.Text   = "Users: " + Properties.Settings.Default.Users;
     lblAnalyticsAdsense.Text = "Adsense? : " + (UpgradeMeta.checkUpgradeBought("Enable AdSense") ? "Yes" : "No");
 }