WoW:SecureActionButtonTemplate: Difference between revisions

Added warning due to broken lua code
(Added warning due to broken lua code)
Line 12: Line 12:
   </Attributes>
   </Attributes>
  </Button>
  </Button>
'''Using Lua''':
'''Using Lua''': (Warning: the following code does nothing)
  local btn = CreateFrame("Button", "myButton", UIParent, "SecureActionButtonTemplate");
  local btn = CreateFrame("Button", "myButton", UIParent, "SecureActionButtonTemplate");
  btn:SetAttribute("type", "action");
  btn:SetAttribute("type", "action");
Anonymous user