Description:
Add status to the bottom.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -763,15 +763,19 | |||
|
763 | 763 | if (MathUtils.Between(this.mouseGrid.X, 0, this.squaresAcross) && MathUtils.Between(this.mouseGrid.Y, 0, this.squaresAcross)) |
|
764 | 764 | { |
|
765 | 765 | has_tree = this.simulation.map.cells[(int)this.mouseGrid.X][(int)this.mouseGrid.Y].hasTree; |
|
766 | //batch.DrawString(font, has_tree.ToString(), new Vector2(500, 33), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); | |
|
767 | //batch.DrawString(font, has_tree.ToString(), new Vector2(499, 32), Color.White, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.49f); | |
|
768 | 766 | } |
|
769 | 767 | //*/ |
|
770 | 768 | |
|
769 | String status_left = ""; | |
|
770 | if (MathUtils.Between(this.mouseGrid.X, -1, this.simulation.map.MapWidth) && MathUtils.Between(this.mouseGrid.Y, -1, this.simulation.map.MapHeight)) | |
|
771 | { | |
|
772 | status_left = String.Format("{0:},{1:} {2}", this.mouseGrid.X, this.mouseGrid.Y, this.simulation.map.cells[(int)this.mouseGrid.X][(int)this.mouseGrid.Y].status); | |
|
773 | } | |
|
771 | 774 | |
|
772 | 775 | String header_left = String.Format("${0:}|{1:} trees⚘𐂷🌳", this.simulation.money, this.simulation.map.tree_count); |
|
773 | 776 | String header_middle = String.Format("{0:MMMMM yyyy} ({1:})", this.simulation.DateTime, this.simulation.Season); |
|
774 |
String header_right = String.Format(" |
|
|
777 | // String header_right = String.Format("Press H for help."); | |
|
778 | String header_right = ""; | |
|
775 | 779 | |
|
776 | 780 | this.Window.Title = String.Format("Isometric Park [{0:}]", header_middle); |
|
777 | 781 | Vector2 middle_dimensions = monoFont.MeasureString(header_middle); |
@@ -784,9 +788,8 | |||
|
784 | 788 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(0, (int)top, width, (int)middle_dimensions.Y), Color.White, 0.51f); |
|
785 | 789 | |
|
786 | 790 | |
|
787 |
batch.DrawString(monoFont, |
|
|
788 |
batch.DrawString(monoFont, header_ |
|
|
789 | batch.DrawString(monoFont, header_right, new Vector2(right_start, top), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); | |
|
791 | batch.DrawString(monoFont, status_left, new Vector2(1, top), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); | |
|
792 | // batch.DrawString(monoFont, header_right, new Vector2(right_start, top), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f); | |
|
790 | 793 | #endregion draw_header |
|
791 | 794 | |
|
792 | 795 |
@@ -71,7 +71,7 | |||
|
71 | 71 | { |
|
72 | 72 | paused = !paused; |
|
73 | 73 | } |
|
74 |
if (Menu.activeButton("1 |
|
|
74 | if (Menu.activeButton("1", (rate == 0), new Num.Vector4(0.060f, 0.590f, 0.980f, 1f))) | |
|
75 | 75 | { |
|
76 | 76 | paused = false; |
|
77 | 77 | rate = 0; |
@@ -101,8 +101,6 | |||
|
101 | 101 | |
|
102 | 102 | |
|
103 | 103 | ImGui.EndMainMenuBar(); |
|
104 | // ImGui.Button("Toolbar goes here", new Num.Vector2(0, 37)); | |
|
105 | ||
|
106 | 104 | |
|
107 | 105 | // ImGui.End(); |
|
108 | 106 | ImGui.GetStyle().WindowMenuButtonPosition = ImGuiDir.Left; |
You need to be logged in to leave comments.
Login now