Add files via upload
This commit is contained in:
@@ -790,7 +790,37 @@ local function CreateAHUI()
|
||||
local bd = cPanel.borderColor or { 0.55, 0.42, 0.22, 1 }
|
||||
ahPanel:SetBackdropColor(bg[1], bg[2], bg[3], bg[4])
|
||||
ahPanel:SetBackdropBorderColor(bd[1], bd[2], bd[3], bd[4])
|
||||
ahPanel:SetFrameStrata("HIGH")
|
||||
ahPanel:SetFrameStrata("MEDIUM") -- AH is DIALOG strata; keep panel below it
|
||||
ahPanel:SetToplevel(false)
|
||||
|
||||
-- Draggable panel (only while AH is open)
|
||||
ahPanel:SetMovable(true)
|
||||
ahPanel:EnableMouse(true)
|
||||
ahPanel:RegisterForDrag("LeftButton")
|
||||
ahPanel:SetClampedToScreen(true)
|
||||
ahPanel:SetScript("OnDragStart", function()
|
||||
if AuctionFrame and AuctionFrame:IsVisible() then
|
||||
this:StartMoving()
|
||||
this.isMoving = true
|
||||
end
|
||||
end)
|
||||
ahPanel:SetScript("OnDragStop", function()
|
||||
if this.isMoving then
|
||||
this:StopMovingOrSizing()
|
||||
this.isMoving = false
|
||||
local point, _, relPoint, x, y = this:GetPoint()
|
||||
RelationshipsAuctionPriceDB.panelPos = {
|
||||
point = point, relPoint = relPoint, x = x, y = y,
|
||||
}
|
||||
end
|
||||
end)
|
||||
|
||||
-- Restore saved position (if any), otherwise keep the AH-anchored default
|
||||
local savedPos = RelationshipsAuctionPriceDB and RelationshipsAuctionPriceDB.panelPos
|
||||
if savedPos and savedPos.point then
|
||||
ahPanel:ClearAllPoints()
|
||||
ahPanel:SetPoint(savedPos.point, UIParent, savedPos.relPoint, savedPos.x, savedPos.y)
|
||||
end
|
||||
|
||||
-- Scan button
|
||||
local cBtn = C.scanButton or {}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
## Title: Relationships Auction Price
|
||||
## Notes: AH scanner + tooltip prices (highest to lowest) for Octowow. Supports a shared PriceData.lua for transfers.
|
||||
## Author: Relationship
|
||||
## Version: 1.0
|
||||
## Version: 1.1
|
||||
## SavedVariables: RelationshipsAuctionPriceDB, RAP_SHARED_DATA_EXPORT
|
||||
|
||||
PriceData.lua
|
||||
|
||||
Reference in New Issue
Block a user