comparison ActionButton.lua @ 286:77609bfa804e stable

Merge 1.1 beta 8 to stable
author Flick
date Sat, 11 Jun 2011 10:57:00 -0700
parents 4e325f1ea6e1
children 276165a0e860
comparison
equal deleted inserted replaced
272:71d1a5e47e72 286:77609bfa804e
1 local addonName, addonTable = ... 1 local _, ns = ...
2 local ReAction = addonTable.ReAction 2 local ReAction = ns.ReAction
3 local L = ReAction.L 3 local L = ReAction.L
4 local _G = _G 4 local _G = _G
5 local CreateFrame = CreateFrame 5 local CreateFrame = CreateFrame
6 local format = string.format 6 local format = string.format
7 local IsUsableAction = IsUsableAction 7 local IsUsableAction = IsUsableAction
192 192
193 ReAction.Button.Action = Action 193 ReAction.Button.Action = Action
194 ReAction:RegisterBarType(Action, true) 194 ReAction:RegisterBarType(Action, true)
195 195
196 function Action:New( config, bar, idx, idHint ) 196 function Action:New( config, bar, idx, idHint )
197 local name = format("ReAction_%s_Action_%d",bar:GetName(),idx) 197 self = Super.New(self, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" )
198
199 self = Super.New(self, name, config, bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" )
200 self.barConfig = bar:GetConfig() 198 self.barConfig = bar:GetConfig()
201 199
202 local f = self:GetFrame() 200 local f = self:GetFrame()
203 local barFrame = bar:GetFrame() 201 local barFrame = bar:GetFrame()
204 202