flip the fani ui options, fixes issue 634.
This commit is contained in:
@@ -471,23 +471,23 @@ function UserPrefFancyUIBG()
|
|||||||
OneChoiceForAllPlayers = true,
|
OneChoiceForAllPlayers = true,
|
||||||
ExportOnChange = false,
|
ExportOnChange = false,
|
||||||
Choices = {
|
Choices = {
|
||||||
THEME:GetString('OptionNames','On'),
|
THEME:GetString('OptionNames','Off'),
|
||||||
THEME:GetString('OptionNames','Off')
|
THEME:GetString('OptionNames','On')
|
||||||
},
|
},
|
||||||
LoadSelections = function(self, list, pn)
|
LoadSelections = function(self, list, pn)
|
||||||
if ReadPrefFromFile("UserPrefFancyUIBG") ~= nil then
|
if ReadPrefFromFile("UserPrefFancyUIBG") ~= nil then
|
||||||
if GetUserPrefB("UserPrefFancyUIBG") then
|
if GetUserPrefB("UserPrefFancyUIBG") then
|
||||||
list[1] = true
|
|
||||||
else
|
|
||||||
list[2] = true
|
list[2] = true
|
||||||
|
else
|
||||||
|
list[1] = true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
WritePrefToFile("UserPrefFancyUIBG", true)
|
WritePrefToFile("UserPrefFancyUIBG", true)
|
||||||
list[1] = true
|
list[2] = true
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
SaveSelections = function(self, list, pn)
|
SaveSelections = function(self, list, pn)
|
||||||
local val = list[1] and true or false
|
local val = list[2] and true or false
|
||||||
WritePrefToFile("UserPrefFancyUIBG", val)
|
WritePrefToFile("UserPrefFancyUIBG", val)
|
||||||
MESSAGEMAN:Broadcast("PreferenceSet", { Message == "Set Preference" })
|
MESSAGEMAN:Broadcast("PreferenceSet", { Message == "Set Preference" })
|
||||||
THEME:ReloadMetrics()
|
THEME:ReloadMetrics()
|
||||||
|
|||||||
Reference in New Issue
Block a user