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)
Create menu background.
|
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)
Create view for profile name.
|
protected javafx.scene.Node |
createTitleView(String title)
Create view for the app title.
|
protected javafx.scene.Node |
createVersionView(String version)
Create view for version string.
|
protected void |
switchMenuContentTo(javafx.scene.Node content)
Switches current active content to given.
|
addUINode, createContentAchievements, createContentAudio, createContentControls, createContentCredits, createContentFeedback, createContentGameplay, createContentLoad, createContentVideo, fireContinue, fireDelete, fireExit, fireExitToMainMenu, fireLoad, fireLogout, fireMultiplayer, fireNewGame, fireResume, fireSave, switchMenuToactiveProperty, addEventHandler, appendCSS, bindSize, clearCSS, clearEffect, fireEvent, getContentRoot, getEffect, getHeight, getRoot, getWidth, removeEventHandler, setCursor, setEffectpublic CCTRMenu(GameApplication app, MenuType type)
protected javafx.scene.Node createBackground(double width,
double height)
FXGLMenucreateBackground in class FXGLMenuwidth - width of the appheight - height of the appprotected javafx.scene.Node createTitleView(String title)
FXGLMenucreateTitleView in class FXGLMenutitle - app titleprotected javafx.scene.Node createVersionView(String version)
FXGLMenucreateVersionView in class FXGLMenuversion - version stringprotected javafx.scene.Node createProfileView(String profileName)
FXGLMenucreateProfileView in class FXGLMenuprofileName - profile user nameprotected javafx.scene.Node createMenuBodyMainMenu()
protected javafx.scene.Node createMenuBodyGameMenu()
protected void switchMenuContentTo(javafx.scene.Node content)
FXGLMenuswitchMenuContentTo in class FXGLMenucontent - menu contentprotected 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 © 2017. All rights reserved.