Skip to content

Commit

Permalink
SOD 1.15.4 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Sep 27, 2024
1 parent ff57458 commit aae6598
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
7 changes: 5 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,10 @@
"MAX_ARENA_ENEMIES",
"RAID_CLASS_COLORS",
"ShowUIPanel",
"MAX_RAID_MEMBERS"
"MAX_RAID_MEMBERS",
"QueueStatusButton",
"WeeklyRewardsFrame",
"UIParentLoadAddOn"
],
"Lua.workspace.ignoreDir": [".vscode", "libs/*"],
"Lua.diagnostics.enable": true,
Expand All @@ -429,6 +432,6 @@
"utf8": "disable"
},
"Lua.workspace.library": [
"~\\.vscode\\extensions\\ketho.wow-api-0.17.4\\Annotations"
"~\\.vscode\\extensions\\ketho.wow-api-0.17.6\\Annotations"
]
}
34 changes: 25 additions & 9 deletions Modules/Minimap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,33 @@ local BaseSettings = {
}

local IsMouseOver = function()
local MouseFocus = GetMouseFocus()
if
MouseFocus
and not MouseFocus:IsForbidden()
and ((MouseFocus:GetName() == 'Minimap') or (MouseFocus:GetParent() and MouseFocus:GetParent():GetName() and MouseFocus:GetParent():GetName():find('Mini[Mm]ap')))
then
MouseIsOver = true
if GetMouseFoci then
for _, MouseFocus in ipairs(GetMouseFoci()) do
if
MouseFocus
and not MouseFocus:IsForbidden()
and ((MouseFocus:GetName() == 'Minimap') or (MouseFocus:GetParent() and MouseFocus:GetParent():GetName() and MouseFocus:GetParent():GetName():find('Mini[Mm]ap')))
then
return true
end
end

return false
else
MouseIsOver = false
local MouseFocus = GetMouseFocus()
if
MouseFocus
and not MouseFocus:IsForbidden()
and ((MouseFocus:GetName() == 'Minimap') or (MouseFocus:GetParent() and MouseFocus:GetParent():GetName() and MouseFocus:GetParent():GetName():find('Mini[Mm]ap')))
then
MouseIsOver = true
else
MouseIsOver = false
end
return MouseIsOver
end
return MouseIsOver
-- We really should not get here but, just in case
return true
end

local isFrameIgnored = function(item)
Expand Down
2 changes: 1 addition & 1 deletion SpartanUI_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11503
## Interface: 11504
## Title: Spartan|cffe21f1fUI
## Notes: User Interface combining elegant artwork with well designed features.
## Version: @project-version@
Expand Down

0 comments on commit aae6598

Please sign in to comment.