Mercurial > wow > ouroloot
diff options.lua @ 100:a57133ee3c9b
- Allow event callbacks using the standard CallbackHandler scheme. Add
a debug.callback flag with usual semantics.
- Fire an initial set of events. This will take experimentation.
- If restoring g_loot, set metatables on previous entries also.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Mon, 30 Jul 2012 19:25:46 +0000 |
parents | 966d06c8d9c9 |
children | f7162a1cadc7 |
line wrap: on
line diff
--- a/options.lua Sun Jul 29 23:12:18 2012 +0000 +++ b/options.lua Mon Jul 30 19:25:46 2012 +0000 @@ -522,7 +522,12 @@ w:SetDisabled(not addon.DEBUG_PRINT) end w:SetValue(v) - w:SetCallback("OnValueChanged", function(_w,event,value) addon.debug[d] = value end) + w:SetCallback("OnValueChanged", function(_w,event,value) + addon.debug[d] = value + if d == "comm" then + addon.is_guilded = _G.IsInGuild() + end + end) grp:AddChild(w) end container:AddChild(grp) @@ -805,7 +810,9 @@ --[[ -PLUGIN is the module table itself. +PLUGIN is the module table itself. (This does not actually have to be + a plugin created with :[Constrained]NewModule, as long as it has a + GetName method and other parameters here are used appropriately.) PARENT is nil to register in the tree list directly. TEXT is either the text to display in the tree list, or nil to use the moduleName field out of PLUGIN (not :GetName()).