Quality of live improvement
This commit is contained in:
@@ -29,6 +29,7 @@ public class GameView extends MdgaView {
|
||||
private FilterPostProcessor fpp;
|
||||
|
||||
public boolean needConfirm = false;
|
||||
public boolean needNoPower = false;
|
||||
|
||||
private Node guiHandlerNode = new Node();
|
||||
|
||||
@@ -131,10 +132,13 @@ public void noConfirm() {
|
||||
public void showNoPower() {
|
||||
confirmButton.hide();
|
||||
noPowerButton.show();
|
||||
|
||||
needNoPower = true;
|
||||
}
|
||||
|
||||
public void hideNoPower() {
|
||||
noPowerButton.hide();
|
||||
needNoPower = false;
|
||||
}
|
||||
|
||||
public void enterInterrupt(Color color) {
|
||||
|
||||
@@ -198,6 +198,8 @@ public void pressForward() {
|
||||
if (this instanceof GameView gameView) {
|
||||
if(gameView.needConfirm) {
|
||||
app.getModelSynchronize().confirm();
|
||||
} else if(gameView.needNoPower) {
|
||||
app.getModelSynchronize().confirm();
|
||||
} else {
|
||||
app.getAcousticHandler().playSound(MdgaSound.WRONG_INPUT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user