flip the fani ui options, fixes issue 634.

This commit is contained in:
AJ Kelly
2011-11-17 21:57:29 -06:00
parent 7b78e65a57
commit 81cd300e96
+6 -6
View File
@@ -471,23 +471,23 @@ function UserPrefFancyUIBG()
OneChoiceForAllPlayers = true,
ExportOnChange = false,
Choices = {
THEME:GetString('OptionNames','On'),
THEME:GetString('OptionNames','Off')
THEME:GetString('OptionNames','Off'),
THEME:GetString('OptionNames','On')
},
LoadSelections = function(self, list, pn)
if ReadPrefFromFile("UserPrefFancyUIBG") ~= nil then
if GetUserPrefB("UserPrefFancyUIBG") then
list[1] = true
else
list[2] = true
else
list[1] = true
end
else
WritePrefToFile("UserPrefFancyUIBG", true)
list[1] = true
list[2] = true
end
end,
SaveSelections = function(self, list, pn)
local val = list[1] and true or false
local val = list[2] and true or false
WritePrefToFile("UserPrefFancyUIBG", val)
MESSAGEMAN:Broadcast("PreferenceSet", { Message == "Set Preference" })
THEME:ReloadMetrics()