Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GetChildrenTree
- local f = CreateFrame("Frame")
- f:SetScript("OnEvent",function()
- GetChildrenTree(UIParent)
- end)
- f:RegisterEvent("PLAYER_ENTERING_WORLD")
- function GetChildrenTree(Parent)
- if Parent:GetChildren() then
- for _, Child in pairs({Parent:GetChildren()}) do
- for _,r in pairs({Child:GetRegions()}) do
- if r:GetObjectType() == "Texture" then
- r:SetVertexColor(0.2,0.2,0.2) -- 1.0 = 100% light, 0.0 = 100% dark, 0.2 = 20% brightness
- end
- end
- GetChildrenTree(Child)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement