mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
font bug sorta fixed, new splash: warning health and safety
Former-commit-id: f79503873f57e781480fa742ed1a058becb6c7a1 Former-commit-id: daeeed816b339958786746c3717670c724676a44
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package net.torvald.terrarum
|
||||
|
||||
import net.torvald.imagefont.GameFontWhite
|
||||
import net.torvald.terrarum.langpack.Lang
|
||||
import org.newdawn.slick.Font
|
||||
import org.newdawn.slick.GameContainer
|
||||
import org.newdawn.slick.Graphics
|
||||
@@ -20,6 +21,8 @@ class StateFontTester : BasicGameState() {
|
||||
canvas = Graphics(1024, 1024)
|
||||
|
||||
gameFont = GameFontWhite()
|
||||
|
||||
Terrarum.gameLocale = "fiFI"
|
||||
}
|
||||
|
||||
override fun update(gc: GameContainer, game: StateBasedGame, delta: Int) {
|
||||
@@ -28,7 +31,21 @@ class StateFontTester : BasicGameState() {
|
||||
|
||||
override fun render(gc: GameContainer, game: StateBasedGame, g: Graphics) {
|
||||
g.font = gameFont
|
||||
g.drawString(textToPrint, 10f, 10f)
|
||||
|
||||
val text = arrayOf(
|
||||
Lang["APP_WARNING_HEALTH_AND_SAFETY"],
|
||||
"",
|
||||
"90’ 10’ 20” 50 cm",
|
||||
"",
|
||||
"",
|
||||
Lang["MENU_LABEL_PRESS_ANYKEY_CONTINUE"],
|
||||
"DGB금융지주의 자회사. 대구광역시에서 쓰는 교통카드인 원패스와 탑패스 그리고 만악의 근원 대경교통카드를 판매 및 정산하고 있다. 본사는",
|
||||
"Atlantic Records, it features production from Nick Hexum of 311, Tony Kanal of No Doubt, and Sublime producer Paul Leary."
|
||||
)
|
||||
|
||||
for (i in 0..text.size - 1) {
|
||||
g.drawString(text[i], 10f, 10f + (g.font.lineHeight * i))
|
||||
}
|
||||
}
|
||||
|
||||
override fun getID(): Int = Terrarum.SCENE_ID_TEST_FONT
|
||||
|
||||
Reference in New Issue
Block a user