Description:
Fix status bar.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -92,6 +92,7 | |||
|
92 | 92 | } |
|
93 | 93 | |
|
94 | 94 | game.in_zone = false; |
|
95 | game.in_active_zone = false; | |
|
95 | 96 | foreach (ref readonly var entity in ReadEntities<AreaComponent>()) |
|
96 | 97 | { |
|
97 | 98 | var areaComponent = GetComponent<AreaComponent>(entity); |
@@ -101,7 +102,8 | |||
|
101 | 102 | if (game.mouseGrid == square) |
|
102 | 103 | { |
|
103 | 104 | game.in_zone = true; |
|
104 |
|
|
|
105 | if ((contractStatusComponent.status == ContractStatus.Active) | |
|
106 | || (contractStatusComponent.status == ContractStatus.Accepted)) | |
|
105 | 107 | { |
|
106 | 108 | game.in_active_zone = true; |
|
107 | 109 | } |
@@ -794,7 +794,7 | |||
|
794 | 794 | { |
|
795 | 795 | status_left = String.Format("{0:},{1:} {2} ({3})", this.mouseGrid.X, this.mouseGrid.Y, |
|
796 | 796 | this.simulation.map.cells[(int)this.mouseGrid.X][(int)this.mouseGrid.Y].status, |
|
797 |
this.in_active_zone ? "Contracted" : (this.in_zone ? "Proposed Contract": "Un |
|
|
797 | this.in_active_zone ? "Contracted" : (this.in_zone ? "Proposed Contract": "Unused")); | |
|
798 | 798 | } |
|
799 | 799 | |
|
800 | 800 | String header_left = String.Format("${0:}|{1:} \ue124", this.simulation.money, this.simulation.map.tree_count); |
You need to be logged in to leave comments.
Login now