mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
load ui to inject remoCon contents to implement its own submenus
This commit is contained in:
@@ -11,8 +11,8 @@ object UITitleRemoConYaml {
|
||||
*
|
||||
* The class must be the UICanvas
|
||||
*/
|
||||
private val menuBase = """
|
||||
- MENU_LABEL_NEW_GAME : net.torvald.terrarum.modulebasegame.ui.UIProxyNewRandomGame
|
||||
val menuBase = """
|
||||
- MENU_MODE_SINGLEPLAYER : net.torvald.terrarum.modulebasegame.ui.UILoadDemoSavefiles
|
||||
- MENU_OPTIONS
|
||||
- MENU_LABEL_GRAPHICS : net.torvald.terrarum.modulebasegame.ui.GraphicsControlPanel
|
||||
- MENU_OPTIONS_CONTROLS : net.torvald.terrarum.modulebasegame.ui.UIKeyboardControlPanel
|
||||
@@ -26,18 +26,25 @@ object UITitleRemoConYaml {
|
||||
- MENU_LABEL_QUIT
|
||||
"""
|
||||
|
||||
private val menuWithSavefile = """
|
||||
val menuWithSavefile = """
|
||||
- MENU_LABEL_CONTINUE : net.torvald.terrarum.modulebasegame.ui.UIProxyLoadLatestSave
|
||||
- MENU_IO_LOAD : net.torvald.terrarum.modulebasegame.ui.UILoadDemoSavefiles
|
||||
- MENU_LABEL_NEW_WORLD
|
||||
- MENU_LABEL_RETURN"""
|
||||
|
||||
private val menuNewGame = """
|
||||
"""
|
||||
|
||||
val menuNewGame = """
|
||||
"""
|
||||
|
||||
val injectedMenuSingleCharSel = """
|
||||
- CONTEXT_CHARACTER_NEW
|
||||
- MENU_LABEL_RETURN
|
||||
"""
|
||||
|
||||
val injectedMenuSingleWorldSel = """
|
||||
- CONTEXT_WORLD_NEW
|
||||
- MENU_LABEL_RETURN
|
||||
"""
|
||||
|
||||
operator fun invoke(hasSave: Boolean) =
|
||||
//Yaml((if (hasSave) menuWithSavefile else menuNewGame) + menuBase).parse()
|
||||
Yaml((if (true) menuWithSavefile else menuNewGame) + menuBase).parse()
|
||||
// Yaml((if (hasSave) menuWithSavefile else menuNewGame) + menuBase).parse()
|
||||
Yaml(menuBase).parse()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user