debug commit
This commit is contained in:
@@ -68,7 +68,6 @@ public void init() {
|
||||
public void shutdown(){
|
||||
clearSelectable();
|
||||
isInitialised = false;
|
||||
initMap();
|
||||
rootNode.detachChild(rootNodeBoard);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ public void select(Spatial model, ColorRGBA color, int width) {
|
||||
}
|
||||
|
||||
private void hideOutlineFilterEffect(Spatial model) {
|
||||
app.enqueue(() -> {
|
||||
// app.enqueue(() -> {
|
||||
outlineFilter.setEnabled(false);
|
||||
outlineFilter.getOutlinePreFilter().setEnabled(false);
|
||||
fpp.removeFilter(outlineFilter);
|
||||
@@ -62,12 +62,12 @@ private void hideOutlineFilterEffect(Spatial model) {
|
||||
outlineViewport.clearProcessors();
|
||||
renderManager.removePreView(outlineViewport);
|
||||
outlineViewport = null;
|
||||
return null;
|
||||
});
|
||||
// return null;
|
||||
// });
|
||||
}
|
||||
|
||||
private void showOutlineFilterEffect(Spatial model, int width, ColorRGBA color) {
|
||||
app.enqueue(() -> {
|
||||
// app.enqueue(() -> {
|
||||
outlineViewport = renderManager.createPreView("outlineViewport", cam);
|
||||
FilterPostProcessor outlineFpp = new FilterPostProcessor(assetManager);
|
||||
|
||||
@@ -82,7 +82,7 @@ private void showOutlineFilterEffect(Spatial model, int width, ColorRGBA color)
|
||||
outlineFilter.setOutlineWidth(width);
|
||||
|
||||
fpp.addFilter(outlineFilter);
|
||||
return null;
|
||||
});
|
||||
// return null;
|
||||
// });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,11 +90,11 @@ public void onEnter() {
|
||||
app.getNotificationSynchronizer().addTestNotification(new PlayerInGameNotification(Color.NAVY, uuid2, "Test"));
|
||||
app.getNotificationSynchronizer().addTestNotification(new MovePieceNotification(p1, 0, true));
|
||||
app.getNotificationSynchronizer().addTestNotification(new MovePieceNotification(p1_2, 30, true));
|
||||
app.getNotificationSynchronizer().addTestNotification(new SelectableMoveNotification(List.of(p1), List.of(4), List.of(false)));
|
||||
// app.getNotificationSynchronizer().addTestNotification(new SelectableMoveNotification(List.of(p1), List.of(4), List.of(false)));
|
||||
app.getNotificationSynchronizer().addTestNotification(new AcquireCardNotification(BonusCard.SHIELD));
|
||||
app.getNotificationSynchronizer().addTestNotification(new SelectableCardsNotification(List.of(BonusCard.SHIELD)));
|
||||
app.getNotificationSynchronizer().addTestNotification(new ShieldActiveNotification(p1));
|
||||
app.getNotificationSynchronizer().addTestNotification(new ActivePlayerNotification(Color.NAVY));
|
||||
// app.getNotificationSynchronizer().addTestNotification(new ShieldActiveNotification(p1));
|
||||
// app.getNotificationSynchronizer().addTestNotification(new ActivePlayerNotification(Color.NAVY));
|
||||
|
||||
// app.getNotificationSynchronizer().addTestNotification(new DiceNowNotification());
|
||||
// app.getNotificationSynchronizer().addTestNotification(new RollDiceNotification(Color.AIRFORCE, 5, true, 2));
|
||||
@@ -107,9 +107,10 @@ public void onEnter() {
|
||||
|
||||
@Override
|
||||
public void onLeave() {
|
||||
camera.shutdown();
|
||||
boardHandler.shutdown();
|
||||
guiHandler.shutdown();
|
||||
camera.shutdown();
|
||||
|
||||
|
||||
confirmButton.hide();
|
||||
|
||||
|
||||
@@ -51,8 +51,8 @@ public void enter() {
|
||||
}
|
||||
|
||||
public void leave() {
|
||||
app.getRootNode().detachChild(rootNode);
|
||||
app.getGuiNode().detachChild(guiNode);
|
||||
onLeave();
|
||||
|
||||
|
||||
settingsButton.hide();
|
||||
|
||||
@@ -60,7 +60,8 @@ public void leave() {
|
||||
pressEscape();
|
||||
}
|
||||
|
||||
onLeave();
|
||||
app.getRootNode().detachChild(rootNode);
|
||||
app.getGuiNode().detachChild(guiNode);
|
||||
}
|
||||
|
||||
public void enterOverlay(Overlay overlay) {
|
||||
|
||||
Reference in New Issue
Block a user