WoWInterface SVN kRestack

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 18 to Rev 19
    Reverse comparison

Rev 18 → Rev 19

kRestack/kRestack.toc
1,6 → 1,6
## Interface: 30100
## Title: kRestack
## Version: 1.0.2a
## Version: 1.0.3
## Author: Katae of Anvilmar
## Notes: Addon for all of your restacking needs.
## X-Embeds: CallbackHandler-1.0, LibStub
kRestack/changelog.txt
1,3 → 1,6
1.0.3 -- 2009-05-23
- Removed auto-stacking from the TRADE_SHOW event.
 
1.0.2a -- 2009-05-22
- Added missing label text for LDB plugin.
 
kRestack/kRestack.lua
46,7 → 46,7
--[[ watching some events ]]
local atBank, atVault
local f = CreateFrame("frame")
local events = { "ADDON_LOADED", "BANKFRAME_OPENED", "BANKFRAME_CLOSED", "LOOT_OPENED", "TRADE_SHOW", "GUILDBANKFRAME_OPENED", "GUILDBANKFRAME_CLOSED" }
local events = { "ADDON_LOADED", "BANKFRAME_OPENED", "BANKFRAME_CLOSED", "LOOT_OPENED", "GUILDBANKFRAME_OPENED", "GUILDBANKFRAME_CLOSED" }
for _, r in pairs(events) do f:RegisterEvent(r) end
f:SetScript("OnEvent", function(_, e)
--[[ ldb stuff ]]
54,10 → 54,10
menu[3].disabled = false
elseif e == events[3] then
menu[3].disabled = true
elseif e == events[6] then
elseif e == events[5] then
local _, _, isViewable, canDeposit = GetGuildBankTabInfo(GetCurrentGuildBankTab())
if IsGuildLeader() or (isViewable and canDeposit) then menu[4].disabled = false end
elseif e == events[7] then
elseif e == events[6] then
menu[4].disabled = true
end
if e == events[1] then
68,14 → 68,14
if AutoRestack.guild == nil then AutoRestack.guild = false end
elseif AutoRestack.bank and e == events[2] then
kRestack("bank", true)
elseif AutoRestack.bags and (e == events[4] or e == events[5]) then
elseif AutoRestack.bags and e == events[4] then
kRestack("bags", true)
elseif AutoRestack.guild and e == events[6] then
elseif AutoRestack.guild and e == events[5] then
kRestack("guild", true)
end
end)
 
--[[ hooking auto-stacking to togglebackpack and guild bank tab switching ]]
--[[ hooking auto-stacking to ToggleBackpack and guild vault tab switching ]]
local oToggleBackpack = ToggleBackpack
ToggleBackpack = function()
if AutoRestack.bags then kRestack("bags", true) end