mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 21:14:04 +09:00
RemoCons fully working; also fixed my stupidity
This commit is contained in:
@@ -33,6 +33,7 @@ class UITitleRemoConRoot : UICanvas() {
|
||||
private val menubar = UIItemTextButtonList(
|
||||
this,
|
||||
menuLabels,
|
||||
0, menubarOffY,
|
||||
this.width, this.height,
|
||||
textAreaWidth = this.width,
|
||||
readFromLang = true,
|
||||
@@ -51,8 +52,8 @@ class UITitleRemoConRoot : UICanvas() {
|
||||
|
||||
|
||||
init {
|
||||
remoConLanguage.setPosition(0, menubarOffY)
|
||||
remoConCredits.setPosition(0, menubarOffY)
|
||||
remoConLanguage.setPosition(0, 0)
|
||||
remoConCredits.setPosition(0, 0)
|
||||
|
||||
|
||||
|
||||
@@ -62,10 +63,10 @@ class UITitleRemoConRoot : UICanvas() {
|
||||
|
||||
////////////////////////////
|
||||
|
||||
|
||||
uiItems.add(menubar)
|
||||
|
||||
|
||||
|
||||
// attach listeners
|
||||
menubar.buttons[menuLabels.indexOf("MENU_LABEL_LANGUAGE")].clickOnceListener = { _, _, _ ->
|
||||
this.setAsClose()
|
||||
|
||||
Reference in New Issue
Block a user