View Single Post
12-06-22, 02:56 AM   #16
ngen33r
A Murloc Raider
Join Date: Dec 2022
Posts: 5
Can anyone explain where to add these "patches" to get an addon to stop showing the errors?

Originally Posted by Xrystal View Post
I'm not sure if this still works in 10.0 yet, haven't delved into this addon much yet.

But this was a template I set up for my frames to inherit from in my MagePorts addon. I did have a built in backdropInfo table in use when I first used it but then they appear to have removed it so I created my own.

Lua Code:
  1. <Frame name = "XMP_BackdropTemplate" inherits = "BackdropTemplate" virtual = "true">
  2.  
  3. vvvvvvvvvv New Backdrop XML Code ( as of 9.0 ) vvvvvvvv
  4.  
  5.     <KeyValues>
  6.         <KeyValue key="backdropInfo" value="XRYSTAL_BACKDROP_TOOLTIP_16_16_5555" type="global"/>
  7.         <KeyValue key="backdropColor" value="BLACK" type="global"/>
  8.         <KeyValue key="backdropBorderColor" value="WHITE" type="global"/>
  9.     </KeyValues>  
  10.  
  11. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  12.  
  13.   vvvvvvv Old Backdrop XML Code vvvvvvvv    
  14.         <!--Backdrop
  15.             bgFile="Interface\Tooltips\UI-Tooltip-Background.png"
  16.             edgeFile="Interface\Tooltips\UI-Tooltip-Border.png"
  17.             tile="true" >
  18.             <EdgeSize val="12"/>
  19.             <TileSize val="16"/>
  20.             <BackgroundInsets left="5" right="5" top="5" bottom="5"/>
  21.             <Color r = "1" g = "1" b = "0" a = "1" />
  22.             <BorderColor r = "0" g = "1" b = "1" a = "1" />
  23.         </Backdrop-->>             
  24. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  25.     </Frame>

Lua Code:
  1. XRYSTAL_BACKDROP_TOOLTIP_16_16_5555 = {
  2.     bgFile = "Interface\Tooltips\UI-Tooltip-Background",
  3.     edgeFile = "Interface\Tooltips\UI-Tooltip-Border",
  4.     tile = true,
  5.     tileEdge = true,
  6.     tileSize = 16,
  7.     edgeSize = 16,
  8.     insets = { left = 5, right = 5, top = 5, bottom = 5 },
  9. };
  Reply With Quote