minor fixes

This commit is contained in:
minjaesong
2025-01-15 20:39:44 +09:00
parent 15e3276f46
commit 1b69d74291
2 changed files with 6 additions and 5 deletions

Binary file not shown.

View File

@@ -22,7 +22,7 @@ class UIItemRedeemCodeArea(
) : UIItem(parentUI, initialX, initialY) { ) : UIItem(parentUI, initialX, initialY) {
private val CELL_W = 16 private val CELL_W = 16
private val CELL_H = 22 private val CELL_H = 24
override val width = textCols * CELL_W override val width = textCols * CELL_W
override val height = textRows * CELL_H override val height = textRows * CELL_H
@@ -85,6 +85,7 @@ class UIItemRedeemCodeArea(
Toolkit.drawBoxBorder(batch, posX, posY, width, height) Toolkit.drawBoxBorder(batch, posX, posY, width, height)
// draw cells // draw cells
batch.color = Toolkit.Theme.COL_INACTIVE
for (y in 0 until textRows) { for (y in 0 until textRows) {
for (x in 0 until textCols) { for (x in 0 until textCols) {
batch.draw(inputFormTiles.get(if (x == 0) 0 else if (x == textCols - 1) 2 else 1, 0), batch.draw(inputFormTiles.get(if (x == 0) 0 else if (x == textCols - 1) 2 else 1, 0),
@@ -99,9 +100,9 @@ class UIItemRedeemCodeArea(
for (x in 0 until textCols) { for (x in 0 until textCols) {
BigAlphNum.draw( BigAlphNum.draw(
batch, batch,
"${inputText[y * textRows + x]}", "${inputText.getOrElse(y * textRows + x) { 'A' }}",
posX + CELL_W * x + 2f, posX + CELL_W * x + 2f,
posY + CELL_H * y + 3f posY + CELL_H * y + 4f
) )
} }
} }