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:
minjaesong
2018-09-14 01:14:13 +09:00
parent b40af8e1b3
commit 6d4ac92133
31 changed files with 172 additions and 42 deletions

View File

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

View File

@@ -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) {

View File

@@ -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 {

View File

@@ -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