View Single Post
02-26-19, 09:09 AM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
The shards are added to the Shards table. Given the complexity of the shard template I'm not sure a crude "flip"will work for everything but...

Lua Code:
  1. -- Inverts all child textures of a frame.
  2. local function yInvertAllTextures(Frame)
  3.     for _, Region in pairs({ Frame:GetRegions() }) do
  4.         if Region:IsObjectType("Texture") then yInvertTexture(Region) end
  5.     end
  6.     for i=1, #Frame.Shards do
  7.         for _, Region in pairs({ Frame.Shards[i]:GetRegions() }) do
  8.             if Region:IsObjectType("Texture") then yInvertTexture(Region) end
  9.         end
  10.     end
  11. end
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote