You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
729 B
20 lines
729 B
local SLE, T, E, L, V, P, G = unpack(ElvUI_SLE)
|
|
|
|
local S = E.Skins
|
|
local _G = _G
|
|
|
|
local function LoadSkin()
|
|
hooksecurefunc('PawnUI_InventoryPawnButton_Move', function()
|
|
if _G.PawnUI_InventoryPawnButton then
|
|
if PawnCommon.ButtonPosition == PawnButtonPositionRight then
|
|
_G.PawnUI_InventoryPawnButton:ClearAllPoints()
|
|
_G.PawnUI_InventoryPawnButton:SetPoint('BOTTOMRIGHT', _G.PaperDollFrame, 'BOTTOMRIGHT', 0, 0)
|
|
elseif PawnCommon.ButtonPosition == PawnButtonPositionLeft then
|
|
_G.PawnUI_InventoryPawnButton:ClearAllPoints()
|
|
_G.PawnUI_InventoryPawnButton:SetPoint('BOTTOMLEFT', _G.PaperDollFrame, 'BOTTOMLEFT', 0, 0)
|
|
end
|
|
end
|
|
end)
|
|
end
|
|
|
|
S:AddCallbackForAddon('Pawn', 'Pawn', LoadSkin)
|
|
|