Description:
Add season display.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r31:ce8b160270cf -

@@ -714,7 +714,9
714
714
715
715
716 String header_left = String.Format("${0:}|{1:} trees⚘𐂷🌳", this.simulation.money, this.simulation.map.tree_count);
716 String header_left = String.Format("${0:}|{1:} trees⚘𐂷🌳", this.simulation.money, this.simulation.map.tree_count);
717 String header_middle = String.Format("{0:yyyy MMMMM}", this.simulation.DateTime);
717 String header_middle = String.Format("{0:MMMMM yyyy} ({1:})", this.simulation.DateTime, this.simulation.Season);
718
719 this.Window.Title = String.Format("Isometric Park [{0:}]",header_middle);
718 Vector2 dimensions = monoFont.MeasureString(header_middle);
720 Vector2 dimensions = monoFont.MeasureString(header_middle);
719
721
720 float middle_start = (FNAGame.width / 2) - (dimensions.X / 2);
722 float middle_start = (FNAGame.width / 2) - (dimensions.X / 2);
@@ -38,6 +38,26
38 public decimal money;
38 public decimal money;
39
39
40 public float millisecondsPerAdvance { get; private set; }
40 public float millisecondsPerAdvance { get; private set; }
41 public String Season { get
42 {
43 if (MathUtils.Between(this.DateTime.Month, 3, 5))
44 {
45 return "Spring";
46 }
47 else if (MathUtils.Between(this.DateTime.Month, 6, 8))
48 {
49 return "Summer";
50 }
51 else if (MathUtils.Between(this.DateTime.Month, 9, 11))
52 {
53 return "Fall";
54 }
55 else
56 {
57 return "Winter";
58 }
59 }
60 }
41
61
42 public TileMap map;
62 public TileMap map;
43
63
You need to be logged in to leave comments. Login now