public class TestContextSwitching extends SimpleApplication implements de.lessvoid.nifty.screen.ScreenController
Modifier and Type | Class and Description |
---|---|
static class |
TestContextSwitching.CustomPlatformChooser |
flyCam, fpsText, guiFont, guiNode, INPUT_MAPPING_CAMERA_POS, INPUT_MAPPING_EXIT, INPUT_MAPPING_HIDE_STATS, INPUT_MAPPING_MEMORY, rootNode, showSettings
assetManager, audioRenderer, cam, context, guiViewPort, inputEnabled, inputManager, joyInput, keyInput, listener, lostFocusBehavior, mouseInput, paused, prof, renderer, renderManager, settings, speed, stateManager, timer, touchInput, viewPort
Constructor and Description |
---|
TestContextSwitching() |
Modifier and Type | Method and Description |
---|---|
void |
bind(de.lessvoid.nifty.Nifty nifty,
de.lessvoid.nifty.screen.Screen screen) |
static void |
main(java.lang.String[] args) |
void |
onButton(java.lang.String id,
de.lessvoid.nifty.controls.ButtonClickedEvent event) |
void |
onDeviceChanged(java.lang.String id,
de.lessvoid.nifty.controls.ListBoxSelectionChangedEvent<java.lang.String> event) |
void |
onEndScreen() |
void |
onPlatformChanged(java.lang.String id,
de.lessvoid.nifty.controls.ListBoxSelectionChangedEvent<java.lang.String> event) |
void |
onStartScreen() |
void |
simpleInitApp() |
void |
simpleUpdate(float tpf) |
getFlyByCamera, getGuiNode, getRootNode, getSpeed, initialize, isShowSettings, loadGuiFont, setDisplayFps, setDisplayStatView, setShowSettings, setSpeed, simpleRender, start, update
createCanvas, destroy, destroyInput, enqueue, enqueue, gainFocus, getAppProfiler, getAssetManager, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getLostFocusBehavior, getRenderer, getRenderManager, getStateManager, getTimer, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, runQueuedTasks, setAppProfiler, setAssetManager, setLostFocusBehavior, setPauseOnLostFocus, setSettings, setTimer, start, start, start, startCanvas, startCanvas, stop, stop
public static void main(java.lang.String[] args)
args
- the command line argumentspublic void simpleInitApp()
simpleInitApp
in class SimpleApplication
public void simpleUpdate(float tpf)
simpleUpdate
in class SimpleApplication
public void bind(de.lessvoid.nifty.Nifty nifty, de.lessvoid.nifty.screen.Screen screen)
bind
in interface de.lessvoid.nifty.screen.ScreenController
public void onButton(java.lang.String id, de.lessvoid.nifty.controls.ButtonClickedEvent event)
public void onPlatformChanged(java.lang.String id, de.lessvoid.nifty.controls.ListBoxSelectionChangedEvent<java.lang.String> event)
public void onDeviceChanged(java.lang.String id, de.lessvoid.nifty.controls.ListBoxSelectionChangedEvent<java.lang.String> event)
public void onStartScreen()
onStartScreen
in interface de.lessvoid.nifty.screen.ScreenController
public void onEndScreen()
onEndScreen
in interface de.lessvoid.nifty.screen.ScreenController