Description:
Fix button.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -36,9 +36,10 | |||||
|
36 | this.budget = budget; |
|
36 | this.budget = budget; |
|
37 | this.previous_budget = previous_budget; |
|
37 | this.previous_budget = previous_budget; |
|
38 |
|
38 | ||
|
39 |
if ((mouseCur.LeftButton == ButtonState. |
|
39 | if ((mouseCur.LeftButton == ButtonState.Released) |
|
40 | && MathUtils.BetweenExclusive(mouseCur.X, width+x-20, width+x) |
|
40 | && (mousePrev.LeftButton == ButtonState.Pressed) |
|
41 |
|
|
41 | && MathUtils.BetweenExclusive(mouseCur.X, width+x-20, width+x) |
|
|
42 | && MathUtils.BetweenExclusive(mouseCur.Y, y+bar_height, y+bar_height+20) | ||
|
42 | ) { |
|
43 | ) { |
|
43 |
|
44 | ||
|
44 | return false; |
|
45 | return false; |
@@ -104,9 +105,9 | |||||
|
104 | } |
|
105 | } |
|
105 | } |
|
106 | } |
|
106 |
|
107 | ||
|
|
108 | Vector2 dimensions = font.MeasureString("X"); | ||
|
|
109 | batch.DrawString(font, "X", new Vector2(x+width -20 + (dimensions.X/2), y+bar_height), Color.Black); | ||
|
107 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(x + width - 20, y+bar_height, 20, 20), Color.LightGray); |
|
110 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(x + width - 20, y+bar_height, 20, 20), Color.LightGray); |
|
108 | Vector2 dimensions = font.MeasureString("X"); |
|
||
|
109 | batch.DrawString(font, "X", new Vector2(x+width -20 + (dimensions.X/2), y+bar_height), Color.Black); |
|
||
|
110 |
|
111 | ||
|
111 | batch.DrawString(font, String.Format("BUDGET REPORT FOR {0:MMMMM yyyy}", this.budget.DateTime), new Vector2(x, bar_height * 1 + y), Color.Black); |
|
112 | batch.DrawString(font, String.Format("BUDGET REPORT FOR {0:MMMMM yyyy}", this.budget.DateTime), new Vector2(x, bar_height * 1 + y), Color.Black); |
|
112 |
|
113 |
You need to be logged in to leave comments.
Login now