bits of icelandic translation

This commit is contained in:
minjaesong
2021-09-18 16:07:21 +09:00
parent 43d9785db8
commit 9bec90ca52
7 changed files with 49 additions and 44 deletions

View File

@@ -485,7 +485,7 @@ public class App implements ApplicationListener {
fontGame = new GameFontBase(FONT_DIR, false, true, false,
Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest, false,
256, false
256, false, 0.5f, false
);
Lang.invoke();

View File

@@ -59,7 +59,6 @@ object Lang {
localesDir.listFiles().filter { it.isDirectory }.forEach { languageList.add(it.name) }
// temporary filter
languageList.remove("isIC")
languageList.remove("jakanaJP")
for (lang in languageList) {

View File

@@ -8,6 +8,7 @@ import com.badlogic.gdx.graphics.g2d.SpriteBatch
import com.badlogic.gdx.graphics.g2d.TextureRegion
import net.torvald.terrarum.App
import net.torvald.terrarum.CommonResourcePool
import net.torvald.terrarum.langpack.Lang
import net.torvald.terrarum.ui.Toolkit
import net.torvald.terrarum.ui.UICanvas
import net.torvald.terrarum.ui.UIItem
@@ -35,8 +36,8 @@ class UIKeyboardControlPanel : UICanvas() {
private val drawX = (App.scr.width - width) / 2
private val drawY = (App.scr.height - height) / 2
internal val kbx = (App.scr.width - width) / 2 + 61
internal val kby = (App.scr.height - height) / 2 + 95
internal val kbx = drawX + 61
internal val kby = drawY + 95
private val oneu = 28
private val onehalfu = 44
@@ -155,8 +156,12 @@ class UIKeyboardControlPanel : UICanvas() {
// Toolkit.drawBoxBorder(batch, drawX, drawY, width, height)
// batch.color = fillCol
// Toolkit.fillArea(batch, drawX, drawY, width, height)
uiItems.forEach { it.render(batch, camera) }
batch.color = Color.WHITE
val title = Lang["MENU_CONTROLS_KEYBOARD"]
App.fontGame.draw(batch, title, drawX.toFloat() + (width - App.fontGame.getWidth(title)) / 2, drawY.toFloat())
}
override fun doOpening(delta: Float) {

View File

@@ -13,7 +13,7 @@ object UITitleRemoConYaml {
*/
private val menuBase = """
- MENU_OPTIONS
- MENU_OPTIONS_GRAPHICS
- MENU_LABEL_GRAPHICS
- MENU_OPTIONS_CONTROLS : net.torvald.terrarum.modulebasegame.ui.UIKeyboardControlPanel
- MENU_LABEL_LANGUAGE : net.torvald.terrarum.modulebasegame.ui.UITitleLanguage
- MENU_MODULES : net.torvald.terrarum.ModOptionsHost