Ajout possibilite de supprimer le survol en changeant la variable static Constants.DRAW_POSITION
This commit is contained in:
parent
01182a7f64
commit
7cda7fdbdc
@ -24,8 +24,10 @@ public class GrilleMouseListener extends MouseInputAdapter{
|
||||
*/
|
||||
@Override
|
||||
public void mouseMoved(MouseEvent e) {
|
||||
if(Constants.DRAW_POSITION)
|
||||
if(Constants.DRAW_POSITION) {
|
||||
this.controller.hoverGrille(e.getX());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -45,7 +45,7 @@ public class Constants {
|
||||
/**
|
||||
* Le survol du pion est activé ?
|
||||
*/
|
||||
public static final boolean DRAW_POSITION = true;
|
||||
public static boolean DRAW_POSITION = true;
|
||||
/**
|
||||
* La marge d'un pion
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user