mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-20 20:50:21 +02:00
i18n: route SummaryMenu stat labels through Strings()
The ATTACK/DEFENSE/SPEED/SPECIAL labels on the status screen were drawn literally; wrap them like the other UI so a language mod can translate them. Behavior-neutral for the base game (Strings identity without a catalog).
This commit is contained in:
@@ -146,7 +146,7 @@ function SummaryMenu:draw()
|
|||||||
}
|
}
|
||||||
for i, s in ipairs(stats) do
|
for i, s in ipairs(stats) do
|
||||||
local y = 72 + (i - 1) * 16
|
local y = 72 + (i - 1) * 16
|
||||||
Font.draw(s[1], 8, y)
|
Font.draw(Strings(s[1]), 8, y)
|
||||||
Font.draw(("%3d"):format(s[2]), 48, y + 8)
|
Font.draw(("%3d"):format(s[2]), 48, y + 8)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user