Пример #1
0
        private void DisplayDayInfo()
        {
            DaySystem.ShowDay();
            txtTotalDays.Text = DaySystem.totalDay.ToString();
            txtTOD.Text       = "  DAY";

            string tom = DaySystem.ShowMonth();

            if (tom == "FINISHED")
            {
                this.NavigationService.Navigate(new Uri("WinScreen.xaml", UriKind.Relative));
            }
            txtTOM.Text = tom;


            int cTemp = TemperatureSystem.CalculateTemp();

            if (cTemp < 16)
            {
                MainGrid.Background = new SolidColorBrush(Color.FromArgb(100, 0, 17, 131));
            }
            else if (cTemp > 31)
            {
                MainGrid.Background = new SolidColorBrush(Color.FromArgb(100, 255, 17, 0));
            }
            else
            {
                MainGrid.Background = new SolidColorBrush(Color.FromArgb(100, 192, 172, 0));
            }

            txtTemperature.Text = cTemp.ToString();



            if (DaySystem.Migration)
            {
                txtMigration.Content = "MIGRATION SEASON";
            }
            else
            {
                txtMigration.Content = "";
            }
        }
Пример #2
0
        private void InitialDisplay()
        {
            TemperatureSystem.currentTemp = 18;
            DaySystem.ShowDay();
            txtTotalDays.Text   = DaySystem.totalDay.ToString();
            txtTOD.Text         = "  DAY";
            txtTOM.Text         = DaySystem.ShowMonth();
            txtTemperature.Text = TemperatureSystem.currentTemp.ToString();
            txtFireWood.Text    = Desert.player.FireWood.ToString();


            InvHotbarTXT.Add(txtInv1);
            InvHotbarTXT.Add(txtInv2);
            InvHotbarTXT.Add(txtInv3);
            InvHotbarTXT.Add(txtInv4);
            InvHotbarTXT.Add(txtInv5);
            InvHotbarTXT.Add(txtInv6);
            InvHotbarTXT.Add(txtInv7);
            InvHotbarTXT.Add(txtInv8);
            InvHotbarTXT.Add(txtInv9);

            InvHotbarIMG.Add(imgInv1);
            InvHotbarIMG.Add(imgInv2);
            InvHotbarIMG.Add(imgInv3);
            InvHotbarIMG.Add(imgInv4);
            InvHotbarIMG.Add(imgInv5);
            InvHotbarIMG.Add(imgInv6);
            InvHotbarIMG.Add(imgInv7);
            InvHotbarIMG.Add(imgInv8);
            InvHotbarIMG.Add(imgInv9);

            TextureList.Add(imgSeed);
            TextureList.Add(imgSparrow);
            TextureList.Add(imgBird);
            TextureList.Add(imgArmadillo);
        }