mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
font update; ui remocon fix; save doc elaboration
UI RemoCon fix: RemoCon will no longer widen to the screen width when being used
This commit is contained in:
@@ -23,7 +23,9 @@ open class UIRemoCon(treeRepresentation: QNDTreeNode<String>) : UICanvas() {
|
||||
private var remoConTray: UIRemoConElement // this remocon is dynamically generated
|
||||
private var currentRemoConContents = treeRepresentation
|
||||
|
||||
override var width = remoConWidth
|
||||
override var width: Int
|
||||
get() = remoConWidth // somehow NOT making this constant causes a weird issue
|
||||
set(value) {} // where the remocon widens to screen width
|
||||
override var height: Int
|
||||
get() = remoConTray.height
|
||||
set(value) {}
|
||||
|
||||
@@ -10,7 +10,7 @@ import net.torvald.terrarum.langpack.Lang
|
||||
import net.torvald.terrarum.ui.UICanvas
|
||||
import net.torvald.terrarum.ui.UIItemTextButtonList
|
||||
|
||||
class UITitleRemoConLanguage(val superMenu: UICanvas) : UICanvas() {
|
||||
class UITitleLanguage : UICanvas() {
|
||||
|
||||
val menuLabels = arrayOf(
|
||||
"MENU_LABEL_RETURN"
|
||||
@@ -59,6 +59,7 @@ class UITitleRemoConLanguage(val superMenu: UICanvas) : UICanvas() {
|
||||
|
||||
override fun updateUI(delta: Float) {
|
||||
textArea.update(delta)
|
||||
println("should be printing indefinitely")
|
||||
}
|
||||
|
||||
override fun renderUI(batch: SpriteBatch, camera: Camera) {
|
||||
@@ -62,7 +62,7 @@ import net.torvald.terrarum.ui.UIItemTextButtonList
|
||||
|
||||
|
||||
private val remoConCredits = UITitleRemoConCredits(this)
|
||||
private val remoConLanguage = UITitleRemoConLanguage(this)
|
||||
private val remoConLanguage = UITitleLanguage(this)
|
||||
private val remoConModules = UITitleModules(this)
|
||||
|
||||
init {
|
||||
|
||||
@@ -6,10 +6,12 @@ import java.util.*
|
||||
|
||||
object UITitleRemoConYaml {
|
||||
|
||||
// YAML indent with a space, separate label and class with " : " verbatim!
|
||||
// YAML indent with a space, separate label and class with " : " (\x20\x3A\x20)
|
||||
|
||||
val menus = """
|
||||
- MENU_MODE_SINGLEPLAYER
|
||||
- MENU_MODE_SINGLEPLAYER : net.torvald.terrarum.modulebasegame.ui.UITitleCharactersList
|
||||
- CONTEXT_CHARACTER_NEW
|
||||
- CONTEXT_CHARACTER_DELETE
|
||||
- MENU_LABEL_RETURN
|
||||
- MENU_MODE_MULTIPLAYER
|
||||
- MENU_LABEL_RETURN
|
||||
@@ -20,7 +22,7 @@ object UITitleRemoConYaml {
|
||||
- MENU_LABEL_RETURN
|
||||
- MENU_MODULES : net.torvald.terrarum.modulebasegame.ui.UITitleModules
|
||||
- MENU_LABEL_RETURN
|
||||
- MENU_LABEL_LANGUAGE
|
||||
- MENU_LABEL_LANGUAGE : net.torvald.terrarum.modulebasegame.ui.UITitleLanguage
|
||||
- MENU_LABEL_RETURN
|
||||
- MENU_LABEL_CREDITS : net.torvald.terrarum.modulebasegame.ui.UITitleCredits
|
||||
- MENU_LABEL_CREDITS : net.torvald.terrarum.modulebasegame.ui.UITitleCredits
|
||||
|
||||
Reference in New Issue
Block a user