mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-19 12:15:31 +02:00
Merge pull request #973 from hernan0078/options/cancel-through-strings
OPTIONS: route CANCEL through Strings so a translation mod can reach it
This commit is contained in:
@@ -585,8 +585,14 @@ function OptionsMenu:update(dt)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function OptionsMenu:draw()
|
function OptionsMenu:draw()
|
||||||
|
-- Through Strings, like every other label on this menu. CANCEL is
|
||||||
|
-- appended AFTER the rows hook (see the header), which is what keeps a mod
|
||||||
|
-- from orphaning the exit -- but it also means a translation mod never sees
|
||||||
|
-- this string, and cannot: there is no row for it to rewrite. So the one
|
||||||
|
-- word a Spanish player could not read on a fully translated OPTIONS menu
|
||||||
|
-- was the way out of it.
|
||||||
OptionRows.draw(self.game, self.rows, self.index, self.scroll or 0,
|
OptionRows.draw(self.game, self.rows, self.index, self.scroll or 0,
|
||||||
"CANCEL", #self.rows + 1)
|
Strings("CANCEL"), #self.rows + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
return OptionsMenu
|
return OptionsMenu
|
||||||
|
|||||||
Reference in New Issue
Block a user