1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-27 05:10:26 +00:00

Attempt to fix openmw issue #7906

l10n name is taken not from the ActionInfo/TriggerInfo's 'key' param,
but from the 'l10n' param when making the inputBinding setting renderer
This commit is contained in:
trav5 2024-04-06 23:07:11 +02:00
parent 8e1d790919
commit b0008d22e6

View file

@ -102,7 +102,7 @@ I.Settings.registerRenderer('inputBinding', function(id, set, arg)
local info = inputTypes[arg.type][arg.key] local info = inputTypes[arg.type][arg.key]
if not info then print(string.format('inputBinding: %s %s not found', arg.type, arg.key)) return end if not info then print(string.format('inputBinding: %s %s not found', arg.type, arg.key)) return end
local l10n = core.l10n(info.key) local l10n = core.l10n(info.l10n)
local name = { local name = {
template = I.MWUI.templates.textNormal, template = I.MWUI.templates.textNormal,