comparison ReAction.lua @ 231:158c9299185b

Fix button type config lookup
author Flick
date Tue, 22 Mar 2011 11:35:04 -0700
parents 98114c158e62
children 0e20f65375d5
comparison
equal deleted inserted replaced
230:98114c158e62 231:158c9299185b
303 end 303 end
304 ManageBlizzFrame(VehicleMenuBar, self.db.profile.options.hideBlizzardVehicleBar) 304 ManageBlizzFrame(VehicleMenuBar, self.db.profile.options.hideBlizzardVehicleBar)
305 end 305 end
306 306
307 function ReAction:RegisterBarType( class, isDefault ) 307 function ReAction:RegisterBarType( class, isDefault )
308 local name = class:GetBarType() 308 local name = class:GetButtonTypeID()
309 self.barTypes[name] = class 309 self.barTypes[name] = class
310 if isDefault then 310 if isDefault then
311 self.defaultBarType = name 311 self.defaultBarType = name
312 end 312 end
313 self:RefreshEditor() 313 self:RefreshEditor()