Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void loadinfo()
- {
- string progress, city, date, miles, money, health;
- for(int i = 0; i < Game.GameList.Count; i++)
- {
- if(Game.EnabledGames[i] != false)
- {
- progress = ($"Progress: {($"{Game.GameList[i].Progress.ToString()}%")}");
- city = ($"Location: {Game.GameList[i].CurrentLocation}");
- date = ($"Date: {Game.GameList[i].CurrentDay}");
- miles = ($"Miles: {Game.GameList[i].MilesTraveled.ToString()}");
- money = ($"Money: {($"${Game.GameList[i].CurrentMoney.ToString()}")}");
- health = ($"Health: {Game.GameList[i].CurrentHealth}");
- string display = String.Format(" {0}@ {1}@ {2}@ {3}@ {4}@ {5}@ {6}@", progress, city, date, miles, money, health);
- display = display.Replace("@", Environment.NewLine);
- switch (i)
- {
- case 0:
- con.game1Desc.Text = display;
- break;
- case 1:
- con.game2Desc.Text = display;
- break;
- case 2:
- con.game3Desc.Text = display;
- break;
- }
- }
- else
- {
- switch (i)
- {
- case 0:
- con.game1Desc.Text = "Game not started";
- break;
- case 1:
- con.game2Desc.Text = "Game not started";
- break;
- case 2:
- con.game3Desc.Text = "Game not started";
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement