mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-10 07:54:05 +09:00
fixed inverted shadow position on Han characters
This commit is contained in:
@@ -393,32 +393,32 @@ class GameFontBase(fontDir: String, val noShadow: Boolean = false, val flipY: Bo
|
|||||||
batch.draw(
|
batch.draw(
|
||||||
sheets[sheetID].get(sheetXY[0], sheetXY[1]),
|
sheets[sheetID].get(sheetXY[0], sheetXY[1]),
|
||||||
x + textBWidth[index] + 1 + offset,
|
x + textBWidth[index] + 1 + offset,
|
||||||
y +
|
y + (if (sheetID == SHEET_UNIHAN) // evil exceptions
|
||||||
if (sheetID == SHEET_UNIHAN) // evil exceptions
|
|
||||||
offsetUnihan
|
offsetUnihan
|
||||||
else if (sheetID == SHEET_CUSTOM_SYM)
|
else if (sheetID == SHEET_CUSTOM_SYM)
|
||||||
offsetCustomSym
|
offsetCustomSym
|
||||||
else 0
|
else
|
||||||
|
0) * if (flipY) 1 else -1
|
||||||
)
|
)
|
||||||
batch.draw(
|
batch.draw(
|
||||||
sheets[sheetID].get(sheetXY[0], sheetXY[1]),
|
sheets[sheetID].get(sheetXY[0], sheetXY[1]),
|
||||||
x + textBWidth[index] + offset,
|
x + textBWidth[index] + offset,
|
||||||
y + if (flipY) 1 else -1 +
|
y + (if (sheetID == SHEET_UNIHAN) // evil exceptions
|
||||||
if (sheetID == SHEET_UNIHAN) // evil exceptions
|
offsetUnihan + 1
|
||||||
offsetUnihan
|
|
||||||
else if (sheetID == SHEET_CUSTOM_SYM)
|
else if (sheetID == SHEET_CUSTOM_SYM)
|
||||||
offsetCustomSym
|
offsetCustomSym + 1
|
||||||
else 0
|
else
|
||||||
|
1) * if (flipY) 1 else -1
|
||||||
)
|
)
|
||||||
batch.draw(
|
batch.draw(
|
||||||
sheets[sheetID].get(sheetXY[0], sheetXY[1]),
|
sheets[sheetID].get(sheetXY[0], sheetXY[1]),
|
||||||
x + textBWidth[index] + 1 + offset,
|
x + textBWidth[index] + 1 + offset,
|
||||||
y + if (flipY) 1 else -1 +
|
y + (if (sheetID == SHEET_UNIHAN) // evil exceptions
|
||||||
if (sheetID == SHEET_UNIHAN) // evil exceptions
|
offsetUnihan + 1
|
||||||
offsetUnihan
|
|
||||||
else if (sheetID == SHEET_CUSTOM_SYM)
|
else if (sheetID == SHEET_CUSTOM_SYM)
|
||||||
offsetCustomSym
|
offsetCustomSym + 1
|
||||||
else 0
|
else
|
||||||
|
1) * if (flipY) 1 else -1
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user