restart required label

This commit is contained in:
minjaesong
2021-10-06 14:54:40 +09:00
parent 5e867f7db3
commit 0b07e642b1
27 changed files with 56 additions and 28 deletions

View File

@@ -32,7 +32,8 @@ class GraphicsControlPanel : UICanvas() {
private val options = arrayOf(
arrayOf("fx_dither", "Dither"),
arrayOf("fx_backgroundblur", "Blur"),
arrayOf("fx_streamerslayout", Lang["MENU_OPTION_STREAMERS_LAYOUT"])
arrayOf("fx_streamerslayout", Lang["MENU_OPTION_STREAMERS_LAYOUT"]),
arrayOf("usevsync", Lang["MENU_OPTIONS_VSYNC"]+"*")
)
private val togglers = options.mapIndexed { index, strings ->
@@ -70,6 +71,7 @@ class GraphicsControlPanel : UICanvas() {
App.fontGame.draw(batch, strings[1], drawX + panelgap.toFloat(), drawY + panelgap + index * (20f + linegap))
}
uiItems.forEach { it.render(batch, camera) }
App.fontGame.draw(batch, "* ${Lang["MENU_LABEL_RESTART_REQUIRED"]}", drawX + panelgap.toFloat(), drawY + height - panelgap - App.fontGame.lineHeight)
if (App.getConfigBoolean("fx_streamerslayout")) {
val xstart = App.scr.width - App.scr.chatWidth