|
@@ -234,7 +234,7 @@ public class TerrainTestAdvanced extends SimpleApplication {
|
|
hintText = new BitmapText(guiFont, false);
|
|
hintText = new BitmapText(guiFont, false);
|
|
hintText.setSize(guiFont.getCharSet().getRenderedSize());
|
|
hintText.setSize(guiFont.getCharSet().getRenderedSize());
|
|
hintText.setLocalTranslation(0, getCamera().getHeight(), 0);
|
|
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);
|
|
guiNode.attachChild(hintText);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -254,7 +254,7 @@ public class TerrainTestAdvanced extends SimpleApplication {
|
|
public void onAction(String name, boolean pressed, float tpf) {
|
|
public void onAction(String name, boolean pressed, float tpf) {
|
|
if (name.equals("wireframe") && !pressed) {
|
|
if (name.equals("wireframe") && !pressed) {
|
|
wireframe = !wireframe;
|
|
wireframe = !wireframe;
|
|
- if (!wireframe) {
|
|
|
|
|
|
+ if (wireframe) {
|
|
terrain.setMaterial(matWire);
|
|
terrain.setMaterial(matWire);
|
|
} else {
|
|
} else {
|
|
terrain.setMaterial(matTerrain);
|
|
terrain.setMaterial(matTerrain);
|