Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mikinho/ItemRack
Browse files Browse the repository at this point in the history
  • Loading branch information
mikinho committed May 7, 2020
2 parents 3ac6ecb + a00b769 commit 9ece293
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
24 changes: 11 additions & 13 deletions ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ItemRack = {}
local disable_delayed_swaps = nil -- temporary. change nil to 1 to stop attempting to delay set swaps while casting
local _

ItemRack.Version = "3.27"
ItemRack.Version = "3.30"

ItemRackUser = {
Sets = {}, -- user's sets
Expand Down Expand Up @@ -394,7 +394,6 @@ function ItemRack.InitCore()
ItemRack.CreateTimer("MenuMouseover",ItemRack.MenuMouseover,.25,1)
ItemRack.CreateTimer("TooltipUpdate",ItemRack.TooltipUpdate,1,1)
ItemRack.CreateTimer("CooldownUpdate",ItemRack.CooldownUpdate,1,1)
ItemRack.CreateTimer("CheckForMountedEvents",ItemRack.CheckForMountedEvents,.5,1)
ItemRack.CreateTimer("MinimapDragging",ItemRack.MinimapDragging,0,1)
ItemRack.CreateTimer("LocksChanged",ItemRack.LocksChanged,.2)
ItemRack.CreateTimer("MinimapShine",ItemRack.MinimapShineUpdate,0,1)
Expand Down Expand Up @@ -431,7 +430,6 @@ function ItemRack.InitCore()
-- ItemRackFrame:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED")
--end
ItemRack.StartTimer("CooldownUpdate")
ItemRack.StartTimer("CheckForMountedEvents")
ItemRack.MoveMinimap()
ItemRack.ReflectAlpha()
ItemRack.SetSetBindings()
Expand Down Expand Up @@ -1367,17 +1365,17 @@ function ItemRack.UpdateCombatQueue()
queue:Hide()
end
end
if PaperDollFrame:IsVisible() then
for i=1,19 do
queue = _G["Character"..ItemRack.SlotInfo[i].name.."Queue"]
if ItemRack.CombatQueue[i] then
queue:SetTexture(select(2,ItemRack.GetInfoByID(ItemRack.CombatQueue[i])))
queue:Show()
else
queue:Hide()
end

for i=1,19 do
queue = _G["Character"..ItemRack.SlotInfo[i].name.."Queue"]
if ItemRack.CombatQueue[i] then
queue:SetTexture(select(2,ItemRack.GetInfoByID(ItemRack.CombatQueue[i])))
queue:Show()
else
queue:Hide()
end
end

end

--[[ Tooltip ]]
Expand Down Expand Up @@ -2042,4 +2040,4 @@ function ItemRack.ProfileFuncs()
end
table.insert(TinyPadPages,info)
end
end
end
2 changes: 1 addition & 1 deletion ItemRack/ItemRack.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11302
## Interface: 11303
## Title: ItemRack
## Author: Gello - Updated for Classic by Rottenbeer
## SavedVariables: ItemRackSettings, ItemRackItems, ItemRackEvents
Expand Down
8 changes: 6 additions & 2 deletions ItemRack/ItemRackEvents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ end
function ItemRack.InitEvents()
ItemRack.LoadEvents()

ItemRack.CreateTimer("EventsBuffTimer",ItemRack.ProcessBuffEvent,.50)
ItemRack.CreateTimer("EventsZoneTimer",ItemRack.ProcessZoneEvent,.33)
ItemRack.CreateTimer("EventsBuffTimer",ItemRack.ProcessBuffEvent,.15)
ItemRack.CreateTimer("EventsZoneTimer",ItemRack.ProcessZoneEvent,.16)
ItemRack.CreateTimer("CheckForMountedEvents",ItemRack.CheckForMountedEvents,.5,1)

if ItemRackButton20Queue then
ItemRackButton20Queue:SetTexture("Interface\\AddOns\\ItemRack\\ItemRackGear")
Expand All @@ -216,6 +217,7 @@ end
function ItemRack.RegisterEvents()
local frame = ItemRackEventProcessingFrame
frame:UnregisterAllEvents()
ItemRack.StopTimer("CheckForMountedEvents")
ItemRack.ReflectEventsRunning()
if ItemRackUser.EnableEvents=="OFF" then
return
Expand Down Expand Up @@ -243,6 +245,8 @@ function ItemRack.RegisterEvents()
end
end
end
ItemRack.StartTimer("CheckForMountedEvents")

ItemRack.ProcessStanceEvent()
ItemRack.ProcessZoneEvent()
ItemRack.ProcessBuffEvent()
Expand Down
2 changes: 1 addition & 1 deletion ItemRackOptions/ItemRackOptions.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11302
## Interface: 11303
## Title: ItemRackOptions
## Notes: Load-On-Demand modules for ItemRack
## Dependencies: ItemRack, Blizzard_MacroUI
Expand Down

0 comments on commit 9ece293

Please sign in to comment.