Description:
Fix close button.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -17,6 +17,9 | |||
|
17 | 17 | private Vector2 mouseStart; |
|
18 | 18 | private MouseState mousePrev; |
|
19 | 19 | |
|
20 | private static int bar_height = 25; | |
|
21 | ||
|
22 | ||
|
20 | 23 | public BudgetWindow(Budget budget, SpriteFont font, int start_x, int start_y) |
|
21 | 24 | { |
|
22 | 25 | |
@@ -31,8 +34,8 | |||
|
31 | 34 | this.budget = budget; |
|
32 | 35 | |
|
33 | 36 | if ((mouseCur.LeftButton == ButtonState.Pressed) |
|
34 |
&& MathUtils.Between(mouseCur.X, 700+x- |
|
|
35 |
|
|
|
37 | && MathUtils.Between(mouseCur.X, 700+x-20, 700+x) | |
|
38 | && MathUtils.Between(mouseCur.Y, y+bar_height, y+bar_height+20) | |
|
36 | 39 | ) { |
|
37 | 40 | |
|
38 | 41 | return false; |
@@ -69,7 +72,6 | |||
|
69 | 72 | { |
|
70 | 73 | |
|
71 | 74 | |
|
72 | int bar_height = 25; | |
|
73 | 75 | int height = 500; |
|
74 | 76 | |
|
75 | 77 | FilledRectangle.drawFilledRectangle(batch, new Rectangle(x - 20, y+bar_height, 20, height), Color.White); |
You need to be logged in to leave comments.
Login now