Description:
More appearance tweaks.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -63,13 +63,17 | |||||
|
63 |
|
63 | ||
|
64 | public void draw(SpriteBatch batch) |
|
64 | public void draw(SpriteBatch batch) |
|
65 | { |
|
65 | { |
|
|
66 | |||
|
|
67 | |||
|
66 | int bar_height = 25; |
|
68 | int bar_height = 25; |
|
67 | int height = 500; |
|
69 | int height = 500; |
|
68 |
|
70 | ||
|
69 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(x - 20, y+bar_height, 20, height), Color.White); |
|
71 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(x - 20, y+bar_height, 20, height), Color.White); |
|
|
72 | Line.drawLine(batch, new Vector2(x, y + bar_height), new Vector2(x, y + bar_height + height), Color.Gray); | ||
|
70 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(x + 700, y+bar_height, 20, height), Color.White); |
|
73 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(x + 700, y+bar_height, 20, height), Color.White); |
|
|
74 | Line.drawLine(batch, new Vector2(x + 700, y + bar_height), new Vector2(x + 700, y + bar_height + height), Color.Gray); | ||
|
71 |
|
75 | ||
|
72 | for (int i = 1; i < (height / bar_height); i++) |
|
76 | for (int i = 1; i <= (height / bar_height); i++) |
|
73 | { |
|
77 | { |
|
74 | Rectangle position = new Rectangle(this.x, bar_height * i + this.y, |
|
78 | Rectangle position = new Rectangle(this.x, bar_height * i + this.y, |
|
75 | 700, bar_height); |
|
79 | 700, bar_height); |
@@ -97,6 +101,10 | |||||
|
97 |
|
101 | ||
|
98 | batch.DrawString(font, String.Format("Ending Funds.........${0:}", this.budget.final_money), new Vector2(x, bar_height * 11 + y), Color.Black); |
|
102 | batch.DrawString(font, String.Format("Ending Funds.........${0:}", this.budget.final_money), new Vector2(x, bar_height * 11 + y), Color.Black); |
|
99 |
|
103 | ||
|
|
104 | |||
|
|
105 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(50, 50, 50, 50), new Color (0, 0,0, 0), 0.99f); | ||
|
|
106 | |||
|
|
107 | |||
|
100 | } |
|
108 | } |
|
101 | } |
|
109 | } |
|
102 | } |
|
110 | } |
@@ -473,6 +473,8 | |||||
|
473 |
|
473 | ||
|
474 | protected void drawTileAt(int x, int y, int tileIndex, int height, float depth) |
|
474 | protected void drawTileAt(int x, int y, int tileIndex, int height, float depth) |
|
475 | { |
|
475 | { |
|
|
476 | |||
|
|
477 | |||
|
476 | /* |
|
478 | /* |
|
477 | Vector2 firstSquare = Vector2.Zero; |
|
479 | Vector2 firstSquare = Vector2.Zero; |
|
478 | Vector2 squareOffset = Vector2.Zero; |
|
480 | Vector2 squareOffset = Vector2.Zero; |
@@ -815,7 +817,7 | |||||
|
815 | #region budget |
|
817 | #region budget |
|
816 |
|
818 | ||
|
817 | if (this.showBudget) |
|
819 | if (this.showBudget) |
|
818 | { |
|
820 | { |
|
819 | budgetWindow.draw(batch); |
|
821 | budgetWindow.draw(batch); |
|
820 |
|
822 | ||
|
821 | } |
|
823 | } |
@@ -824,6 +826,9 | |||||
|
824 |
|
826 | ||
|
825 | batch.End(); |
|
827 | batch.End(); |
|
826 |
|
828 | ||
|
|
829 | |||
|
|
830 | |||
|
|
831 | |||
|
827 | #region debug_window |
|
832 | #region debug_window |
|
828 | //Calcs for debug window: |
|
833 | //Calcs for debug window: |
|
829 | if ((this.frameCounter % 15) == 0) |
|
834 | if ((this.frameCounter % 15) == 0) |
You need to be logged in to leave comments.
Login now