mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-12 16:40:00 +00:00
api: option to hide textures in striptextures
This commit is contained in:
+7
-2
@@ -489,9 +489,14 @@ end
|
|||||||
-- [ StripTextures ]
|
-- [ StripTextures ]
|
||||||
-- Strips all textures off a frame.
|
-- Strips all textures off a frame.
|
||||||
-- 'frame' [frame] the frame that should be stripped.
|
-- 'frame' [frame] the frame that should be stripped.
|
||||||
function pfUI.api.StripTextures(frame)
|
function pfUI.api.StripTextures(frame, hide)
|
||||||
for i,v in ipairs({frame:GetRegions()}) do
|
for i,v in ipairs({frame:GetRegions()}) do
|
||||||
if v.SetTexture then v:SetTexture(nil) end
|
if v.SetTexture then
|
||||||
|
v:SetTexture(nil)
|
||||||
|
if hide then
|
||||||
|
v:Hide()
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user