22.10
This commit is contained in:
@@ -24,6 +24,8 @@ public class MuehleButton {
|
||||
|
||||
public boolean isActive = true;
|
||||
|
||||
public boolean isDestroyed = false;
|
||||
|
||||
public MuehleButton(int id,int relX, int relY, double absX, double absY, Game game) {
|
||||
this.id = id;
|
||||
|
||||
@@ -59,6 +61,16 @@ public class MuehleButton {
|
||||
circle.setFill(Color.rgb(0,255,0));
|
||||
}
|
||||
}
|
||||
public void destroy( ) {
|
||||
isDestroyed = true;
|
||||
circle.setFill(Color.rgb(0,0,0,0));
|
||||
|
||||
} // end of if-else
|
||||
|
||||
public void create() {
|
||||
isDestroyed = false;
|
||||
circle.setFill(this.color);
|
||||
}
|
||||
|
||||
EventHandler<MouseEvent> mouse_click_target = new EventHandler<MouseEvent>() {
|
||||
public void handle(MouseEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user