Mercurial > wow > cyborg-mmo7
comparison RatPageModel.lua @ 29:e8a004a4177b
Merged the ProfileKeyBindings and WowCommands variables (they were pointing at the same value).
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Thu, 25 Apr 2013 01:31:06 +0000 |
parents | b7074b47cfc7 |
children | 6ce173840e68 |
comparison
equal
deleted
inserted
replaced
28:d18ce89b6d09 | 29:e8a004a4177b |
---|---|
119 function RatPageModel_methods:SetObjectOnButtonNoUpdate(button, mode, object) | 119 function RatPageModel_methods:SetObjectOnButtonNoUpdate(button, mode, object) |
120 -- CyborgMMO_DPrint("button = "..tostring(button).." mode = "..tostring(mode)) | 120 -- CyborgMMO_DPrint("button = "..tostring(button).." mode = "..tostring(mode)) |
121 self.data[mode][button] = object | 121 self.data[mode][button] = object |
122 | 122 |
123 if object then | 123 if object then |
124 object:SetBinding(CyborgMMO_WowCommands[((mode-1)*RAT7.BUTTONS)+button]) | 124 object:SetBinding(CyborgMMO_ProfileKeyBindings[((mode-1)*RAT7.BUTTONS)+button]) |
125 if("callback" == object.Type) then | 125 if("callback" == object.Type) then |
126 CyborgMMO_DPrint("trying to set texture") | 126 CyborgMMO_DPrint("trying to set texture") |
127 local slot = getglobal("CyborgMMO_MainPageSlotListSlot"..button) | 127 local slot = getglobal("CyborgMMO_MainPageSlotListSlot"..button) |
128 slot:SetNormalTexture(object.Texture) | 128 slot:SetNormalTexture(object.Texture) |
129 end | 129 end |
130 else | 130 else |
131 CyborgMMO_DPrint("clearing "..button) | 131 CyborgMMO_DPrint("clearing "..button) |
132 CyborgMMO_ClearBinding(CyborgMMO_WowCommands[((mode-1)*RAT7.BUTTONS)+button]) | 132 CyborgMMO_ClearBinding(CyborgMMO_ProfileKeyBindings[((mode-1)*RAT7.BUTTONS)+button]) |
133 end | 133 end |
134 end | 134 end |
135 | 135 |
136 function RatPageModel_methods:SetObjectOnButton(button, mode, object) | 136 function RatPageModel_methods:SetObjectOnButton(button, mode, object) |
137 self:SetObjectOnButtonNoUpdate(button, mode, object) | 137 self:SetObjectOnButtonNoUpdate(button, mode, object) |