comparison Localisation.lua @ 61:adba10dfa908

Implemented the "Defaults" button for the key bindings options subpage.
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Fri, 03 May 2013 23:24:58 +0000
parents cec87b651c10
children c22f1accec43
comparison
equal deleted inserted replaced
60:a710bedc1ec4 61:adba10dfa908
435 435
436 CyborgMMO_Mode = Modes[locale] or Modes[default_locale] 436 CyborgMMO_Mode = Modes[locale] or Modes[default_locale]
437 CyborgMMO_StringTable = StringTables[locale] or StringTables[default_locale] 437 CyborgMMO_StringTable = StringTables[locale] or StringTables[default_locale]
438 438
439 -- key bindings are saved and will be replaced by SavedVariables 439 -- key bindings are saved and will be replaced by SavedVariables
440 CyborgMMO_ProfileKeyBindings = DefaultKeyBindings[locale] or DefaultKeyBindings[default_locale] 440 CyborgMMO_DefaultKeyBindings = DefaultKeyBindings[locale] or DefaultKeyBindings[default_locale]
441 CyborgMMO_ProfileKeyBindings = {}
442 for k,v in pairs(CyborgMMO_DefaultKeyBindings) do
443 CyborgMMO_ProfileKeyBindings[k] = v
444 end
441 445
442 if locale ~= default_locale then 446 if locale ~= default_locale then
443 setmetatable(CyborgMMO_StringTable, {__index=StringTables[default_locale]}) 447 setmetatable(CyborgMMO_StringTable, {__index=StringTables[default_locale]})
444 end 448 end
445 449