From 1284671d6f65f4f3ee36d2120b19965781c57263 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Thu, 23 Apr 2020 12:42:36 -0700 Subject: [PATCH] T key had to be pressed 2x before worked in jme3test.terrain (4 files) --- jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java | 4 ++-- .../src/main/java/jme3test/terrain/TerrainTestAdvanced.java | 4 ++-- .../src/main/java/jme3test/terrain/TerrainTestAndroid.java | 4 ++-- .../main/java/jme3test/terrain/TerrainTestModifyHeight.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java b/jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java index dfe50b7b9..58c93afbc 100644 --- a/jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java +++ b/jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java @@ -177,7 +177,7 @@ public class TerrainTest extends SimpleApplication { hintText = new BitmapText(guiFont, false); hintText.setSize(guiFont.getCharSet().getRenderedSize()); hintText.setLocalTranslation(0, getCamera().getHeight(), 0); - hintText.setText("Hit T to switch to wireframe, P to switch to tri-planar texturing"); + hintText.setText("Press T to toggle wireframe, P to toggle tri-planar texturing"); guiNode.attachChild(hintText); } @@ -193,7 +193,7 @@ public class TerrainTest extends SimpleApplication { public void onAction(String name, boolean pressed, float tpf) { if (name.equals("wireframe") && !pressed) { wireframe = !wireframe; - if (!wireframe) { + if (wireframe) { terrain.setMaterial(matWire); } else { terrain.setMaterial(matRock); diff --git a/jme3-examples/src/main/java/jme3test/terrain/TerrainTestAdvanced.java b/jme3-examples/src/main/java/jme3test/terrain/TerrainTestAdvanced.java index d80153096..b3c6ae0f4 100644 --- a/jme3-examples/src/main/java/jme3test/terrain/TerrainTestAdvanced.java +++ b/jme3-examples/src/main/java/jme3test/terrain/TerrainTestAdvanced.java @@ -234,7 +234,7 @@ public class TerrainTestAdvanced extends SimpleApplication { hintText = new BitmapText(guiFont, false); hintText.setSize(guiFont.getCharSet().getRenderedSize()); hintText.setLocalTranslation(0, getCamera().getHeight(), 0); - hintText.setText("Hit T to switch to wireframe, P to switch to tri-planar texturing"); + hintText.setText("Press T to toggle wireframe, P to toggle tri-planar texturing"); guiNode.attachChild(hintText); } @@ -254,7 +254,7 @@ public class TerrainTestAdvanced extends SimpleApplication { public void onAction(String name, boolean pressed, float tpf) { if (name.equals("wireframe") && !pressed) { wireframe = !wireframe; - if (!wireframe) { + if (wireframe) { terrain.setMaterial(matWire); } else { terrain.setMaterial(matTerrain); diff --git a/jme3-examples/src/main/java/jme3test/terrain/TerrainTestAndroid.java b/jme3-examples/src/main/java/jme3test/terrain/TerrainTestAndroid.java index 901896ce9..310af3b93 100644 --- a/jme3-examples/src/main/java/jme3test/terrain/TerrainTestAndroid.java +++ b/jme3-examples/src/main/java/jme3test/terrain/TerrainTestAndroid.java @@ -158,7 +158,7 @@ public class TerrainTestAndroid extends SimpleApplication { hintText = new BitmapText(guiFont, false); hintText.setSize(guiFont.getCharSet().getRenderedSize()); hintText.setLocalTranslation(0, getCamera().getHeight(), 0); - hintText.setText("Hit T to switch to wireframe, P to switch to tri-planar texturing"); + hintText.setText("Press T to toggle wireframe, P to toggle tri-planar texturing"); guiNode.attachChild(hintText); } @@ -174,7 +174,7 @@ public class TerrainTestAndroid extends SimpleApplication { public void onAction(String name, boolean pressed, float tpf) { if (name.equals("wireframe") && !pressed) { wireframe = !wireframe; - if (!wireframe) { + if (wireframe) { terrain.setMaterial(matWire); } else { terrain.setMaterial(matRock); diff --git a/jme3-examples/src/main/java/jme3test/terrain/TerrainTestModifyHeight.java b/jme3-examples/src/main/java/jme3test/terrain/TerrainTestModifyHeight.java index 0b6d1c0fd..cdeb4852a 100644 --- a/jme3-examples/src/main/java/jme3test/terrain/TerrainTestModifyHeight.java +++ b/jme3-examples/src/main/java/jme3test/terrain/TerrainTestModifyHeight.java @@ -81,7 +81,7 @@ public class TerrainTestModifyHeight extends SimpleApplication { private TerrainQuad terrain; Material matTerrain; Material matWire; - boolean wireframe = true; + boolean wireframe = false; boolean triPlanar = false; boolean wardiso = false; boolean minnaert = false; @@ -197,7 +197,7 @@ public class TerrainTestModifyHeight extends SimpleApplication { public void onAction(String name, boolean pressed, float tpf) { if (name.equals("wireframe") && !pressed) { wireframe = !wireframe; - if (!wireframe) { + if (wireframe) { terrain.setMaterial(matWire); } else { terrain.setMaterial(matTerrain);