Description:
Fix close button.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r59:7ca5e64d6ad0 -

@@ -17,6 +17,9
17 private Vector2 mouseStart;
17 private Vector2 mouseStart;
18 private MouseState mousePrev;
18 private MouseState mousePrev;
19
19
20 private static int bar_height = 25;
21
22
20 public BudgetWindow(Budget budget, SpriteFont font, int start_x, int start_y)
23 public BudgetWindow(Budget budget, SpriteFont font, int start_x, int start_y)
21 {
24 {
22
25
@@ -31,8 +34,8
31 this.budget = budget;
34 this.budget = budget;
32
35
33 if ((mouseCur.LeftButton == ButtonState.Pressed)
36 if ((mouseCur.LeftButton == ButtonState.Pressed)
34 && MathUtils.Between(mouseCur.X, 700+x-40, 700+x)
37 && MathUtils.Between(mouseCur.X, 700+x-20, 700+x)
35 // && MathUtils.Between(mouseCur.Y, 500+y-20, 500 + y)
38 && MathUtils.Between(mouseCur.Y, y+bar_height, y+bar_height+20)
36 ) {
39 ) {
37
40
38 return false;
41 return false;
@@ -69,7 +72,6
69 {
72 {
70
73
71
74
72 int bar_height = 25;
73 int height = 500;
75 int height = 500;
74
76
75 FilledRectangle.drawFilledRectangle(batch, new Rectangle(x - 20, y+bar_height, 20, height), Color.White);
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