Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GetMouseFocus and update for 1.15.4 #5

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1305,10 +1305,16 @@ function ItemRack.WriteMenuCooldowns()
end

function ItemRack.MenuMouseover()
local frame = GetMouseFocus()
local frame = nil
local frameName = nil
local frameVisible = nil
local IRmouseOverFrame = nil
if GetMouseFocus then
frame = GetMouseFocus()
elseif GetMouseFoci then
local mouseFoci = GetMouseFoci()
frame = mouseFoci[1] or nil
end
if frame then frameName = frame:GetName() end
if frame then frameVisible = frame:IsVisible() end
if frameName then IRmouseOverFrame = ItemRack.MenuMouseoverFrames[frameName] end
Expand Down
2 changes: 1 addition & 1 deletion ItemRack/ItemRack.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11502, 40400
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-TBC: 20504
## Interface-Wrath: 30403
## Interface-Cata: 40400
Expand Down
2 changes: 1 addition & 1 deletion ItemRackOptions/ItemRackOptions.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11502, 40400
## Interface-Classic: 11502
## Interface-Classic: 11504
## Interface-TBC: 20504
## Interface-Wrath: 30403
## Interface-Cata: 40400
Expand Down