mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 04:30:01 +00:00
mirrortimers: make them movable
unlock: only substring frame name if starts with pf
This commit is contained in:
committed by
Shagu
parent
ecbccbaeda
commit
4acef543b4
+4
-1
@@ -76,7 +76,10 @@ pfUI:RegisterModule("unlock", function ()
|
||||
frame.drag.text:SetAllPoints(frame.drag)
|
||||
frame.drag.text:SetPoint("CENTER", 0, 0)
|
||||
frame.drag.text:SetFontObject(GameFontWhite)
|
||||
local label = (strsub(frame:GetName(),3))
|
||||
local label = frame:GetName()
|
||||
-- Check if the frame name starts with pf if so remove it
|
||||
local startsWithPf = string.sub(label, 1, string.len("pf")) == "pf"
|
||||
if startsWithPf then label = (strsub(frame:GetName(),3)) end
|
||||
if frame.drag:GetHeight() > (2 * frame.drag:GetWidth()) then
|
||||
label = strvertical(label)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user