comparison options.lua @ 116:fc2ff128835a

- Reset the 'clean' markers on all default-function option toggles. - Fix a long-standing FIXME: Move all lib-scrollingtable and other "display-only" data out of g_loot entries and into their own subclass- style table; feed that to ST's SetData instead. No more 'cols'.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Thu, 16 Aug 2012 17:11:57 -0400
parents 289c7667adab
children a88d485123b8
comparison
equal deleted inserted replaced
115:289c7667adab 116:fc2ff128835a
78 w:SetLabel(label) 78 w:SetLabel(label)
79 if opt then 79 if opt then
80 w:SetValue(opts[opt]) 80 w:SetValue(opts[opt])
81 w:SetCallback("OnValueChanged", opt_func or (function(_w,event,value) 81 w:SetCallback("OnValueChanged", opt_func or (function(_w,event,value)
82 opts[opt] = value 82 opts[opt] = value
83 addon.loot_clean = nil
84 addon.hist_clean = nil
83 end)) 85 end))
84 end 86 end
85 return w 87 return w
86 end 88 end
87 89
178 [[Show loadable plugins even if they've been disabled (and offer to enable them if clicked). Relog to take effect.]]) 180 [[Show loadable plugins even if they've been disabled (and offer to enable them if clicked). Relog to take effect.]])
179 container:AddChild(w) 181 container:AddChild(w)
180 182
181 -- showing the "(from Rebroadcasterdude)" in the notes column 183 -- showing the "(from Rebroadcasterdude)" in the notes column
182 w = mktoggle('display_bcast_from', "Show rebroadcasting player", stdw, 184 w = mktoggle('display_bcast_from', "Show rebroadcasting player", stdw,
183 [[Include "from PlayerName" in the Notes column for loot that was broadcast to you. (Not included in forum output).]], 185 [[Include "from PlayerName" in the Notes column for loot that was broadcast to you. (Not included in forum output).]])--[[
184 function(_w,_e,value) 186 function(_w,_e,value)
185 opts.display_bcast_from = value 187 opts.display_bcast_from = value
186 addon.loot_clean = nil 188 addon.loot_clean = nil
187 end) 189 end)]]
188 container:AddChild(w) 190 container:AddChild(w)
189 191
190 -- prefilling g_uniques with history 192 -- prefilling g_uniques with history
191 w = mktoggle('precache_history_uniques', "Prescan for faster handling", stdw, 193 w = mktoggle('precache_history_uniques', "Prescan for faster handling", stdw,
192 [[See description under +Help -- Handy Tips -- Prescanning> for instructions.]]) 194 [[See description under +Help -- Handy Tips -- Prescanning> for instructions.]])