Exemple #1
0
 public override bool IsIn(int x, int y)
 {
     x = (int)(Settings.GameScale * x);
     y = (int)(Settings.GameScale * y);
     return(GUIEngine.ContainsHUDScene(this) && isVisible &&
            bRemove.IsIn(x - (int)Position.X, y - (int)Position.Y));
 }
Exemple #2
0
 public override void onButtonUp(InputEngine.MouseArgs e)
 {
     if (GUIEngine.ContainsHUDScene(GUIEngine.s_mainMenu))
     {
         return;
     }
     base.onButtonUp(e);
 }
Exemple #3
0
 public override bool IsIn(int x, int y)
 {
     return(GUIEngine.ContainsHUDScene(this) &&
            ((button.isVisible && button.IsIn(x, y)) || (tbCode.isVisible && tbCode.IsIn(x, y))));
 }
Exemple #4
0
 public override bool IsIn(int x, int y)
 {
     return(GUIEngine.ContainsHUDScene(this) && isVisible &&
            tbCode.IsIn(x - (int)Settings.GameOffset.X, y - (int)Settings.GameOffset.Y));
 }