comparison options.lua @ 148:113dd7c86222

Update how LoadOnDemand modules are treated for 6.0. Blizzard API change, different return values. Adds finer-grained handling. Users who don't want to see a module at all can disable the module's "addon", and then later restore it from OL's option tab.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Wed, 07 Jan 2015 17:37:43 -0500
parents e1a90e398231
children 42dd3076baaf
comparison
equal deleted inserted replaced
147:e1a90e398231 148:113dd7c86222
173 w = mktoggle('history_ignore_xrealm', "Suppress history for cross-realm players", 173 w = mktoggle('history_ignore_xrealm', "Suppress history for cross-realm players",
174 stdw, 174 stdw,
175 [[Do not record anything in the History tab for players from other realms.]]) 175 [[Do not record anything in the History tab for players from other realms.]])
176 container:AddChild(w) 176 container:AddChild(w)
177 177
178 -- LOD plugins in all cases 178 do
179 w = mktoggle('display_disabled_LODs', "Include disabled plugins", stdw, 179 -- LOD plugins unloadable for reasons other than disabling
180 [[Show loadable plugins even if they've been disabled (and offer to enable them if clicked). Relog to take effect.]]) 180 local w_un = mktoggle('display_unusable_LODs', "Include unusable plugins", stdw,
181 container:AddChild(w) 181 [[Show plugins even if they are flagged for reasons besides simply being disabled. Relog to take effect.]])
182
183 -- LOD plugins disabled in the addons menu
184 w = mktoggle('display_disabled_LODs', "Include disabled plugins", stdw,
185 [[Show loadable plugins even if they've been disabled (and offer to enable them if clicked).]],
186 function (_w,_,value)
187 opts.display_disabled_LODs = value
188 w_un:SetDisabled(not opts.display_disabled_LODs)
189 addon.loot_clean = nil
190 addon.hist_clean = nil
191 addon:_gui_add_disabled_LOD_tabs()
192 end)
193
194 w_un:SetDisabled(not opts.display_disabled_LODs)
195 container:AddChild(w)
196 container:AddChild(w_un)
197 end
182 198
183 -- showing the "(from Rebroadcasterdude)" in the notes column 199 -- showing the "(from Rebroadcasterdude)" in the notes column
184 w = mktoggle('display_bcast_from', "Show rebroadcasting player", stdw, 200 w = mktoggle('display_bcast_from', "Show rebroadcasting player", stdw,
185 [[Include "from PlayerName" in the Notes column for loot that was broadcast to you. (Not included in forum output).]])--[[ 201 [[Include "from PlayerName" in the Notes column for loot that was broadcast to you. (Not included in forum output).]])--[[
186 function(_w,_e,value) 202 function(_w,_e,value)