Mercurial > wow > cyborg-mmo7
comparison RatPageModel.lua @ 52:da98db8191f5
Removed special code for callbacks (it was not necessary, and will conflict with the upcoming dual-spec support).
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Fri, 03 May 2013 23:24:11 +0000 |
parents | fb81254bd7b8 |
children |
comparison
equal
deleted
inserted
replaced
51:fb81254bd7b8 | 52:da98db8191f5 |
---|---|
85 return self.objects[self.mode][button] | 85 return self.objects[self.mode][button] |
86 end | 86 end |
87 end | 87 end |
88 | 88 |
89 function RatPageModel_methods:SetObjectOnButtonNoUpdate(button, mode, object) | 89 function RatPageModel_methods:SetObjectOnButtonNoUpdate(button, mode, object) |
90 -- CyborgMMO_DPrint("button = "..tostring(button).." mode = "..tostring(mode)) | |
91 self.objects[mode][button] = object | 90 self.objects[mode][button] = object |
92 | |
93 if object then | 91 if object then |
94 object:SetBinding(CyborgMMO_ProfileKeyBindings[((mode-1)*RAT7.BUTTONS)+button]) | 92 object:SetBinding(CyborgMMO_ProfileKeyBindings[((mode-1)*RAT7.BUTTONS)+button]) |
95 if "callback" == object.type then | |
96 CyborgMMO_DPrint("trying to set texture") | |
97 local slot = getglobal("CyborgMMO_MainPageSlotListSlot"..button) | |
98 slot:SetNormalTexture(object.texture) | |
99 end | |
100 else | 93 else |
101 CyborgMMO_ClearBinding(CyborgMMO_ProfileKeyBindings[((mode-1)*RAT7.BUTTONS)+button]) | 94 CyborgMMO_ClearBinding(CyborgMMO_ProfileKeyBindings[((mode-1)*RAT7.BUTTONS)+button]) |
102 end | 95 end |
103 end | 96 end |
104 | 97 |