Mercurial > wow > ouroloot
changeset 15:d8fee518ce5d
Avoid key binding errors, correct BoT tag.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Sun, 17 Jul 2011 17:40:00 +0000 |
parents | a91cd74d8df9 |
children | 5ee4edd24c13 |
files | abbreviations.lua core.lua |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/abbreviations.lua Fri Jul 01 19:29:35 2011 +0000 +++ b/abbreviations.lua Sun Jul 17 17:40:00 2011 +0000 @@ -3,7 +3,7 @@ addon.instance_abbrev = { -------- Cata ["Baradin Hold"] = "BH", - ["Bastion of Twilight"] = "BoT", + ["The Bastion of Twilight"] = "BoT", ["Blackwing Descent"] = "BWD", ["Throne of the Four Winds"] = "To4W", --["Firelands"] = "Firelands",
--- a/core.lua Fri Jul 01 19:29:35 2011 +0000 +++ b/core.lua Sun Jul 17 17:40:00 2011 +0000 @@ -373,11 +373,17 @@ end if opts.keybinding then + KeyBindingFrame_LoadUI() local btn = CreateFrame("Button", "OuroLootBindingOpen", nil, "SecureActionButtonTemplate") btn:SetAttribute("type", "macro") btn:SetAttribute("macrotext", "/ouroloot toggle") if SetBindingClick(opts.keybinding_text, "OuroLootBindingOpen") then - SaveBindings(GetCurrentBindingSet()) + -- a simple SaveBindings(GetCurrentBindingSet()) occasionally fails when GCBS + -- decides to return neither 1 nor 2 during load + local c = GetCurrentBindingSet() + if c == ACCOUNT_BINDINGS or c == CHARACTER_BINDINGS then + SaveBindings(c) + end else self:Print("Error registering '%s' as a keybinding, check spelling!", opts.keybinding_text) end @@ -903,7 +909,7 @@ g_loot = OuroLootSV self.popped = true self.dprint('flow', "restoring", #g_loot, "entries") - self:ScheduleTimer("Activate", 8, g_loot.threshold) + self:ScheduleTimer("Activate", 12, g_loot.threshold) -- FIXME printed could be too large if entries were deleted, how much do we care? self.sharder = g_loot.autoshard else @@ -1101,7 +1107,7 @@ local loot_entry_mt = { __index = function (e,key) if key == 'cols' then - pprint('mt', e.kind) + pprint('mt', e.kind, "key is", key) --tabledump(e) -- not actually that useful addon:_fill_out_eoi_data(1) end