Skip to content

Commit ceea055

Browse files
committed
T key had to be pressed 2x before worked in jme3test.terrain (4 files)
1 parent d636049 commit ceea055

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public void loadHintText() {
177177
hintText = new BitmapText(guiFont, false);
178178
hintText.setSize(guiFont.getCharSet().getRenderedSize());
179179
hintText.setLocalTranslation(0, getCamera().getHeight(), 0);
180-
hintText.setText("Hit T to switch to wireframe, P to switch to tri-planar texturing");
180+
hintText.setText("Press T to toggle wireframe, P to toggle tri-planar texturing");
181181
guiNode.attachChild(hintText);
182182
}
183183

@@ -194,7 +194,7 @@ private void setupKeys() {
194194
public void onAction(String name, boolean pressed, float tpf) {
195195
if (name.equals("wireframe") && !pressed) {
196196
wireframe = !wireframe;
197-
if (!wireframe) {
197+
if (wireframe) {
198198
terrain.setMaterial(matWire);
199199
} else {
200200
terrain.setMaterial(matRock);

jme3-examples/src/main/java/jme3test/terrain/TerrainTestAdvanced.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public void loadHintText() {
234234
hintText = new BitmapText(guiFont, false);
235235
hintText.setSize(guiFont.getCharSet().getRenderedSize());
236236
hintText.setLocalTranslation(0, getCamera().getHeight(), 0);
237-
hintText.setText("Hit T to switch to wireframe, P to switch to tri-planar texturing");
237+
hintText.setText("Press T to toggle wireframe, P to toggle tri-planar texturing");
238238
guiNode.attachChild(hintText);
239239
}
240240

@@ -255,7 +255,7 @@ private void setupKeys() {
255255
public void onAction(String name, boolean pressed, float tpf) {
256256
if (name.equals("wireframe") && !pressed) {
257257
wireframe = !wireframe;
258-
if (!wireframe) {
258+
if (wireframe) {
259259
terrain.setMaterial(matWire);
260260
} else {
261261
terrain.setMaterial(matTerrain);

jme3-examples/src/main/java/jme3test/terrain/TerrainTestAndroid.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void loadHintText() {
158158
hintText = new BitmapText(guiFont, false);
159159
hintText.setSize(guiFont.getCharSet().getRenderedSize());
160160
hintText.setLocalTranslation(0, getCamera().getHeight(), 0);
161-
hintText.setText("Hit T to switch to wireframe, P to switch to tri-planar texturing");
161+
hintText.setText("Press T to toggle wireframe, P to toggle tri-planar texturing");
162162
guiNode.attachChild(hintText);
163163
}
164164

@@ -175,7 +175,7 @@ private void setupKeys() {
175175
public void onAction(String name, boolean pressed, float tpf) {
176176
if (name.equals("wireframe") && !pressed) {
177177
wireframe = !wireframe;
178-
if (!wireframe) {
178+
if (wireframe) {
179179
terrain.setMaterial(matWire);
180180
} else {
181181
terrain.setMaterial(matRock);

jme3-examples/src/main/java/jme3test/terrain/TerrainTestModifyHeight.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class TerrainTestModifyHeight extends SimpleApplication {
8181
private TerrainQuad terrain;
8282
Material matTerrain;
8383
Material matWire;
84-
boolean wireframe = true;
84+
boolean wireframe = false;
8585
boolean triPlanar = false;
8686
boolean wardiso = false;
8787
boolean minnaert = false;
@@ -198,7 +198,7 @@ private void setupKeys() {
198198
public void onAction(String name, boolean pressed, float tpf) {
199199
if (name.equals("wireframe") && !pressed) {
200200
wireframe = !wireframe;
201-
if (!wireframe) {
201+
if (wireframe) {
202202
terrain.setMaterial(matWire);
203203
} else {
204204
terrain.setMaterial(matTerrain);

0 commit comments

Comments
 (0)