Skip to content

Commit

Permalink
Update for 1.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Sep 25, 2024
1 parent 088a4d9 commit 283838d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ jobs:
fetch-depth: 0

- uses: BigWigsMods/packager@v2
with:
args: -S
19 changes: 18 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@
"NUM_BANKBAGSLOTS",
"SELL_PRICE",
"SetTooltipMoney",
"WOW_PROJECT_WRATH_CLASSIC"
"WOW_PROJECT_WRATH_CLASSIC",
"WOW_PROJECT_ID",
"WOW_PROJECT_CLASSIC"
],
"Lua.runtime.version": "Lua 5.1",
"Lua.runtime.builtin": {
"basic": "disable",
"debug": "disable",
"io": "disable",
"math": "disable",
"os": "disable",
"package": "disable",
"string": "disable",
"table": "disable",
"utf8": "disable"
},
"Lua.workspace.library": [
"~\\.vscode\\extensions\\ketho.wow-api-0.17.6\\Annotations"
]
}
10 changes: 9 additions & 1 deletion Compat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ local function SetPrice(tt, count, item)
VP:SetPrice(tt, false, "Compat", count, item, true)
end

local function GetMouseFoc()
if GetMouseFoci then
return GetMouseFoci()[1]
elseif GetMouseFocus then
return GetMouseFocus()
end
end

function VP:IsShown(frame)
return frame and frame:IsVisible() and frame:IsMouseOver()
end
Expand Down Expand Up @@ -53,7 +61,7 @@ GameTooltip:HookScript("OnTooltipSetItem", function(tt)
elseif AtlasLoot and VP:IsShown(_G["AtlasLoot_GUI-Frame"]) then
SetPrice(tt)
else -- Chatter, Prat: check for active chat windows
local mouseFocus = GetMouseFocus()
local mouseFocus = GetMouseFoc()
if mouseFocus and mouseFocus:GetObjectType() == "FontString" then
for i = 1, FCF_GetNumActiveChatFrames() do
if _G["ChatFrame"..i]:IsMouseOver() then
Expand Down
3 changes: 1 addition & 2 deletions VendorPrice.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
## Interface: 40400
## Interface-Classic: 11502
## Interface: 11504, 40400
## Version: @project-version@
## Title: Vendor Price
## Notes: Displays the price of an item when not at a vendor
Expand Down

0 comments on commit 283838d

Please sign in to comment.