load ui to inject remoCon contents to implement its own submenus

This commit is contained in:
minjaesong
2021-10-19 10:54:39 +09:00
parent 917fc04ad8
commit 8c692aa45e
38 changed files with 87 additions and 64 deletions

View File

@@ -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()
}