public class GTAVMenu extends FXGLMenu
activePropertyFXGLMenu.MenuContent| Constructor and Description |
|---|
GTAVMenu(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 |
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.
|
protected void |
switchMenuTo(javafx.scene.Node menuBox)
Switches current active menu body to given.
|
addUINode, createContentAchievements, createContentAudio, createContentControls, createContentCredits, createContentFeedback, createContentGameplay, createContentLoad, createContentVideo, fireContinue, fireDelete, fireExit, fireExitToMainMenu, fireLoad, fireLogout, fireMultiplayer, fireNewGame, fireResume, fireSaveactiveProperty, appendCSS, bindSize, clearCSS, clearEffect, getContentRoot, getEffect, getHeight, getRoot, getViewport, getWidth, setCursor, setEffectpublic GTAVMenu(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 void switchMenuTo(javafx.scene.Node menuBox)
FXGLMenuswitchMenuTo in class FXGLMenumenuBox - parent node containing menu bodyprotected 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.