Quantcast 8.1.5 ItemButtonTemplate Changes - WoWInterface
Thread Tools Display Modes
02-02-19, 11:33 AM   #1
thomasjohnshannon
A Theradrim Guardian
 
thomasjohnshannon's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 65
8.1.5 ItemButtonTemplate Changes

In 8.1.5 they changed how the item button template works. Instead of being a virtual button that is inherited it is now a new widget type that can be created directly.

Old Way

local button = CreateFrame("Button", "ButtonNameHere"..id, ParentFrame, "ItemButtonTemplate");

New Way

local button = CreateFrame("ItemButton", "ButtonNameHere"..id, ParentFrame, "OptionalTemplateHere");
__________________
Thomas aka Urnn
  Reply With Quote

WoWInterface » PTR » PTR API and Graphics Changes » 8.1.5 ItemButtonTemplate Changes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off