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

r93:88a5159af5e3 -

@@ -763,15 +763,19
763 if (MathUtils.Between(this.mouseGrid.X, 0, this.squaresAcross) && MathUtils.Between(this.mouseGrid.Y, 0, this.squaresAcross))
763 if (MathUtils.Between(this.mouseGrid.X, 0, this.squaresAcross) && MathUtils.Between(this.mouseGrid.Y, 0, this.squaresAcross))
764 {
764 {
765 has_tree = this.simulation.map.cells[(int)this.mouseGrid.X][(int)this.mouseGrid.Y].hasTree;
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 String header_left = String.Format("${0:}|{1:} trees⚘𐂷🌳", this.simulation.money, this.simulation.map.tree_count);
775 String header_left = String.Format("${0:}|{1:} trees⚘𐂷🌳", this.simulation.money, this.simulation.map.tree_count);
773 String header_middle = String.Format("{0:MMMMM yyyy} ({1:})", this.simulation.DateTime, this.simulation.Season);
776 String header_middle = String.Format("{0:MMMMM yyyy} ({1:})", this.simulation.DateTime, this.simulation.Season);
774 String header_right = String.Format("Hotkeys: Arrow keys; (F)orest Policy; (B)udget; 0 toggles pause");
777 // String header_right = String.Format("Press H for help.");
778 String header_right = "";
775
779
776 this.Window.Title = String.Format("Isometric Park [{0:}]", header_middle);
780 this.Window.Title = String.Format("Isometric Park [{0:}]", header_middle);
777 Vector2 middle_dimensions = monoFont.MeasureString(header_middle);
781 Vector2 middle_dimensions = monoFont.MeasureString(header_middle);
@@ -784,9 +788,8
784 FilledRectangle.drawFilledRectangle(batch, new Rectangle(0, (int)top, width, (int)middle_dimensions.Y), Color.White, 0.51f);
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, header_left, new Vector2(1, 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);
788 batch.DrawString(monoFont, header_middle, new Vector2(middle_start, 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);
789 batch.DrawString(monoFont, header_right, new Vector2(right_start, top), Color.Black, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f);
790 #endregion draw_header
793 #endregion draw_header
791
794
792
795
@@ -71,7 +71,7
71 {
71 {
72 paused = !paused;
72 paused = !paused;
73 }
73 }
74 if (Menu.activeButton("1", (rate == 0), new Num.Vector4(0.060f, 0.590f, 0.980f, 1f)))
74 if (Menu.activeButton("1", (rate == 0), new Num.Vector4(0.060f, 0.590f, 0.980f, 1f)))
75 {
75 {
76 paused = false;
76 paused = false;
77 rate = 0;
77 rate = 0;
@@ -101,8 +101,6
101
101
102
102
103 ImGui.EndMainMenuBar();
103 ImGui.EndMainMenuBar();
104 // ImGui.Button("Toolbar goes here", new Num.Vector2(0, 37));
105
106
104
107 // ImGui.End();
105 // ImGui.End();
108 ImGui.GetStyle().WindowMenuButtonPosition = ImGuiDir.Left;
106 ImGui.GetStyle().WindowMenuButtonPosition = ImGuiDir.Left;
You need to be logged in to leave comments. Login now