Adjust delays
This commit is contained in:
@@ -167,10 +167,12 @@ private void handleGame(Notification notification) {
|
|||||||
if(n.isMoveStart()) {
|
if(n.isMoveStart()) {
|
||||||
//StartMove
|
//StartMove
|
||||||
boardHandler.movePieceStartAnim(n.getPiece(), n.getMoveIndex());
|
boardHandler.movePieceStartAnim(n.getPiece(), n.getMoveIndex());
|
||||||
|
waitForAnimation = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//InfieldMove
|
//InfieldMove
|
||||||
boardHandler.movePieceAnim(n.getPiece(), n.getStartIndex(), n.getMoveIndex());
|
boardHandler.movePieceAnim(n.getPiece(), n.getStartIndex(), n.getMoveIndex());
|
||||||
|
waitForAnimation = true;
|
||||||
}
|
}
|
||||||
guiHandler.hideText();
|
guiHandler.hideText();
|
||||||
} else if (notification instanceof ThrowPieceNotification n) {
|
} else if (notification instanceof ThrowPieceNotification n) {
|
||||||
|
|||||||
@@ -473,6 +473,7 @@ private void movePieceStart(UUID uuid, int nodeIndex){
|
|||||||
removeItemFromMapList(waitingPiecesMap, color, pieceControl);
|
removeItemFromMapList(waitingPiecesMap, color, pieceControl);
|
||||||
waitingNodes.get(color).remove(uuid);
|
waitingNodes.get(color).remove(uuid);
|
||||||
app.getModelSynchronize().animationEnd();
|
app.getModelSynchronize().animationEnd();
|
||||||
|
app.getModelSynchronize().animationEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -486,6 +487,7 @@ private void movePiece(UUID uuid, int curIndex, int moveIndex){
|
|||||||
|
|
||||||
movePieceRek(uuid, curIndex, moveIndex);
|
movePieceRek(uuid, curIndex, moveIndex);
|
||||||
app.getModelSynchronize().animationEnd();
|
app.getModelSynchronize().animationEnd();
|
||||||
|
app.getModelSynchronize().animationEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user