comparison ReAction.lua @ 227:741c4f9b251e

Better handling of new profiles
author Flick
date Mon, 21 Mar 2011 11:10:23 -0700
parents 19fd228d9241
children 98114c158e62
comparison
equal deleted inserted replaced
226:76932cdb3d57 227:741c4f9b251e
53 -- your regular buttons in the same location. If you do this, and don't 53 -- your regular buttons in the same location. If you do this, and don't
54 -- bother to hide your buttons, they'll obscure some parts of the vehicle bar. 54 -- bother to hide your buttons, they'll obscure some parts of the vehicle bar.
55 VehicleMenuBar:SetFrameLevel(VehicleMenuBar:GetFrameLevel()+3) 55 VehicleMenuBar:SetFrameLevel(VehicleMenuBar:GetFrameLevel()+3)
56 56
57 self.callbacks = LibStub("CallbackHandler-1.0"):New(self) 57 self.callbacks = LibStub("CallbackHandler-1.0"):New(self)
58
58 LKB.RegisterCallback(self,"LIBKEYBOUND_ENABLED") 59 LKB.RegisterCallback(self,"LIBKEYBOUND_ENABLED")
59 LKB.RegisterCallback(self,"LIBKEYBOUND_DISABLED") 60 LKB.RegisterCallback(self,"LIBKEYBOUND_DISABLED")
60 LKB.RegisterCallback(self, "LIBKEYBOUND_MODE_COLOR_CHANGED","LIBKEYBOUND_ENABLED") 61 LKB.RegisterCallback(self, "LIBKEYBOUND_MODE_COLOR_CHANGED","LIBKEYBOUND_ENABLED")
62
63 -- see Profile.lua for these callback implementations
64 self.db.RegisterCallback(self,"OnProfileChanged")
65 self.db.RegisterCallback(self,"OnProfileCopied","OnProfileChanged")
66 self.db.RegisterCallback(self,"OnNewProfile")
67 self.db.RegisterCallback(self,"OnProfileReset", "OnNewProfile")
68
61 self:RegisterEvent("PLAYER_REGEN_DISABLED") 69 self:RegisterEvent("PLAYER_REGEN_DISABLED")
70
62 self:InitializeOptions() 71 self:InitializeOptions()
63 end 72 end
64 73
65 function ReAction:OnEnable() 74 function ReAction:OnEnable()
66 self:InitializeBars() 75 self:InitializeBars()