comparison ReAction.lua @ 53:7e09c02ae620

Pet Action support
author Flick <flickerstreak@gmail.com>
date Fri, 25 Apr 2008 20:35:55 +0000
parents c3c64e2def50
children 20003239af0b
comparison
equal deleted inserted replaced
52:c9df7866ff31 53:7e09c02ae620
326 self.callbacks:Fire("OnRenameBar", name, newname) 326 self.callbacks:Fire("OnRenameBar", name, newname)
327 end 327 end
328 end 328 end
329 end 329 end
330 330
331 function ReAction:RegisterDefaultBarConfig( name, config, isDefaultChoice ) 331 function ReAction:RegisterBarType( name, config, isDefaultChoice )
332 self.defaultBarConfig[name] = config 332 self.defaultBarConfig[name] = config
333 if isDefaultChoice then 333 if isDefaultChoice then
334 self.defaultBarConfigChoice = name 334 self.defaultBarConfigChoice = name
335 end 335 end
336 self:RefreshOptions() 336 self:RefreshOptions()
337 end 337 end
338 338
339 function ReAction:UnregisterDefaultBarConfig( name ) 339 function ReAction:UnregisterBarType( name )
340 self.defaultBarConfig[name] = nil 340 self.defaultBarConfig[name] = nil
341 if self.defaultBarConfigChoice == name then 341 if self.defaultBarConfigChoice == name then
342 self.defaultBarConfigChoice = nil 342 self.defaultBarConfigChoice = nil
343 end 343 end
344 self:RefreshOptions() 344 self:RefreshOptions()