WoWInterface - View Single Post - 8.1.5 ItemButtonTemplate Changes
View Single Post
02-02-19, 11:33 AM   #1
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