comparison classes/ActionButton.lua @ 223:c4b134512c50

Move RegisterBarType from modules to button classes
author Flick <flickerstreak@gmail.com>
date Mon, 22 Nov 2010 10:25:18 -0800
parents a4e7475633b3
children 158c9299185b
comparison
equal deleted inserted replaced
222:d08a74e86c96 223:c4b134512c50
185 }, 185 },
186 186
187 barType = L["Action Bar"] 187 barType = L["Action Bar"]
188 }, 188 },
189 { __index = Super } ) 189 { __index = Super } )
190
190 ReAction.Button.Action = Action 191 ReAction.Button.Action = Action
192 ReAction:RegisterBarType(Action, true)
191 193
192 function Action:New( idx, barConfig, bar, idHint ) 194 function Action:New( idx, barConfig, bar, idHint )
193 local name = format("ReAction_%s_Action_%d",bar:GetName(),idx) 195 local name = format("ReAction_%s_Action_%d",bar:GetName(),idx)
194 196
195 self = Super.New(self, name, barConfig.buttons[idx], bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" ) 197 self = Super.New(self, name, barConfig.buttons[idx], bar, idx, "SecureActionButtonTemplate, ActionButtonTemplate" )