Quantcast WoWInterface - View Single Post - 8.1.5 ItemButtonTemplate Changes
View Single Post
03-13-19, 11:50 AM   #10
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,115
It's complaining about gwPaperDollBagSlotButton1 not having a key called IconBorder. I can't see from the code supplied what you used to create gwPaperDollBagSlotButton1 (and presumably others).

My guess is you have something like:
Lua Code:
  1. <Button name="gwPaperDollBag" ....>
  2.         <Button name="$parentSlotButton1" inherits="GwPaperDollBagItem" ...>
  3.                 ....
  4.         </Button>
  5.         <Button name="$parentSlotButton2" inherits="GwPaperDollBagItem" ...>
  6.                 ....
  7.         </Button>
  8.         <Button name="$parentSlotButton3" inherits="GwPaperDollBagItem" ...>
  9.                 ....
  10.         </Button>
  11.     ...
  12. </Button>
Where it should be:
Lua Code:
  1. <Button name="gwPaperDollBag" ....>
  2.         <ItemButton name="$parentSlotButton1" inherits="GwPaperDollBagItem" ...>
  3.                 ....
  4.         </ItemButton>
  5.         <ItemButton name="$parentSlotButton2" inherits="GwPaperDollBagItem" ...>
  6.                 ....
  7.         </ItemButton>
  8.         <ItemButton name="$parentSlotButton3" inherits="GwPaperDollBagItem" ...>
  9.                 ....
  10.         </ItemButton>
  11.     ...
  12. </Button>

The base widget specified for creating the actual widget overwrites the base widget specified in the template it inherits.

Lua Code:
  1. <Frame name="SomeTemplate" virtual="true">
  2.     ...
  3. </Frame>
  4.  
  5. <Button name="B1" inherits="SomeTemplate"> --creates a plain Button
  6. <ItemButton name="B1" inherits="SomeTemplate"> --creates an ItemButton
Even though SomeTemplate is based on a Frame.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote