public class CCTRMenu extends FXGLMenu
activePropertyFXGLMenu.MenuContent| Constructor and Description |
|---|
CCTRMenu(GameApplication app,
MenuType type) |
| Modifier and Type | Method and Description |
|---|---|
protected javafx.scene.control.Button |
createActionButton(String name,
Runnable action)
Creates a new button with given name that performs given action on click/press.
|
protected javafx.scene.Node |
createBackground(double width,
double height) |
protected javafx.scene.control.Button |
createContentButton(String name,
Supplier<FXGLMenu.MenuContent> contentSupplier)
Creates a new button with given name that sets given content on click/press.
|
protected javafx.scene.Node |
createMenuBodyGameMenu() |
protected javafx.scene.Node |
createMenuBodyMainMenu() |
protected javafx.scene.Node |
createProfileView(String profileName) |
protected javafx.scene.Node |
createTitleView(String title) |
protected javafx.scene.Node |
createVersionView(String version) |
protected void |
switchMenuContentTo(javafx.scene.Node content) |
addUINode, createContentAchievements, createContentAudio, createContentControls, createContentCredits, createContentFeedback, createContentGameplay, createContentLoad, createContentVideo, fireContinue, fireDelete, fireExit, fireExitToMainMenu, fireLoad, fireLogout, fireMultiplayer, fireNewGame, fireResume, fireSave, switchMenuToactiveProperty, appendCSS, bindSize, clearCSS, clearEffect, getContentRoot, getEffect, getHeight, getRoot, getViewport, getWidth, setBackgroundColor, setBackgroundRepeat, setBackgroundRepeat, setCursor, setEffectpublic CCTRMenu(GameApplication app, MenuType type)
protected javafx.scene.Node createBackground(double width,
double height)
createBackground in class FXGLMenuprotected javafx.scene.Node createTitleView(String title)
createTitleView in class FXGLMenuprotected javafx.scene.Node createVersionView(String version)
createVersionView in class FXGLMenuprotected javafx.scene.Node createProfileView(String profileName)
createProfileView in class FXGLMenuprotected javafx.scene.Node createMenuBodyMainMenu()
protected javafx.scene.Node createMenuBodyGameMenu()
protected void switchMenuContentTo(javafx.scene.Node content)
switchMenuContentTo in class FXGLMenuprotected final javafx.scene.control.Button createActionButton(String name, Runnable action)
createActionButton in class FXGLMenuname - button nameaction - button actionprotected final javafx.scene.control.Button createContentButton(String name, Supplier<FXGLMenu.MenuContent> contentSupplier)
createContentButton in class FXGLMenuname - button namecontentSupplier - content supplierCopyright © 2018. All rights reserved.