View Single Post
03-12-19, 09:26 PM   #7
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
That's sort of it. ItemButtonTemplate is now the base widget ItemButton. It appears to have all the same elements (textures fontstrings etc.) using the same names and parent keys as the original template.

Instead of
Code:
<Button name="ContainerFrameItemButtonTemplate" inherits="ItemButtonTemplate" virtual="true"/>
you have
Code:
<ItemButton name="ContainerFrameItemButtonTemplate" mixin="ContainerFrameItemButtonMixin" virtual="true"/>
and to create the actual button you will
Code:
<ItemButton inherits="ContainerFrameItemButtonTemplate"/>
The lines with "virtual="true" means these are not real, created in-game widgets, they are just a set of instructions that can be used to make one or more real and identical widgets later on.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-12-19 at 10:14 PM.
  Reply With Quote