To create a SecureActionButton, simply create a button that inherits from the SecureActionButtonTemplate; to make the button instance useful, specify interesting attributes. This can be done in both XML, Lua and a mix of the two: Using XML: Using Lua: (Warning: the following code does nothing) local btn = CreateFrame("Button", "myButton", UIParent, "SecureActionButtonTemplate"); btn:SetAttribute("type", "action"); btn:SetAttribute("action", 1);
| Attributes | Values |
|---|
| rdfs:label
| - SecureActionButtonTemplate
|
| rdfs:comment
| - To create a SecureActionButton, simply create a button that inherits from the SecureActionButtonTemplate; to make the button instance useful, specify interesting attributes. This can be done in both XML, Lua and a mix of the two: Using XML: Using Lua: (Warning: the following code does nothing) local btn = CreateFrame("Button", "myButton", UIParent, "SecureActionButtonTemplate"); btn:SetAttribute("type", "action"); btn:SetAttribute("action", 1);
|
| dbkwik:wowwiki/pro...iPageUsesTemplate
| |
| abstract
| - To create a SecureActionButton, simply create a button that inherits from the SecureActionButtonTemplate; to make the button instance useful, specify interesting attributes. This can be done in both XML, Lua and a mix of the two: Using XML: Using Lua: (Warning: the following code does nothing) local btn = CreateFrame("Button", "myButton", UIParent, "SecureActionButtonTemplate"); btn:SetAttribute("type", "action"); btn:SetAttribute("action", 1);
|