UI Remote Controller reworked (now 90% less stupidity)

This commit is contained in:
minjaesong
2018-08-30 17:24:53 +09:00
parent e7a1a8ca85
commit 6c4c0214a1
25 changed files with 348 additions and 27 deletions

View File

@@ -14,6 +14,7 @@ import com.badlogic.gdx.graphics.g2d.SpriteBatch
*/
open class UIItemTextButton(
parentUI: UICanvas,
/** Stored text (independent to the Langpack) */
val labelText: String,
override var posX: Int,
override var posY: Int,
@@ -37,6 +38,7 @@ open class UIItemTextButton(
val defaultHighlightCol: Color = Color(0x00f8ff_ff)
}
/** Actually displayed text (changes with the app language) */
val label: String
get() = if (readFromLang) Lang[labelText] else labelText