Mercurial > wow > cyborg-mmo7
comparison RatPageModel.lua @ 1:a4e2eaf9cad9
Initial Fixes for ticket 1: Added a menu to the interface options page to allow the syncing of the addon to the mouse profile. This should resolve i8n issues
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Wed, 23 May 2012 08:26:07 +0000 |
parents | bf9220814fb5 |
children | d186f8cd5000 |
comparison
equal
deleted
inserted
replaced
0:bf9220814fb5 | 1:a4e2eaf9cad9 |
---|---|
109 self.SetObjectOnButtonNoUpdate = function(button, mode, object) | 109 self.SetObjectOnButtonNoUpdate = function(button, mode, object) |
110 --msg("button = "..tostring(button).." mode = "..tostring(mode)) | 110 --msg("button = "..tostring(button).." mode = "..tostring(mode)) |
111 self.Data[mode][button] = object; | 111 self.Data[mode][button] = object; |
112 | 112 |
113 if(nil ~= object) then | 113 if(nil ~= object) then |
114 object.SetBinding(WowCommands[GetLocale()][((mode-1)*RAT7.BUTTONS)+button]); | 114 object.SetBinding(WowCommands[((mode-1)*RAT7.BUTTONS)+button]); |
115 if("callback" == object.Type) then | 115 if("callback" == object.Type) then |
116 msg("trying to set texture") | 116 msg("trying to set texture") |
117 local slot = getglobal("defaultPageSlot"..button); | 117 local slot = getglobal("defaultPageSlot"..button); |
118 slot:SetNormalTexture(object.Texture) | 118 slot:SetNormalTexture(object.Texture) |
119 end | 119 end |
120 else | 120 else |
121 msg("clearing "..button) | 121 msg("clearing "..button) |
122 WowObject.ClearBinding(WowCommands[GetLocale()][((mode-1)*RAT7.BUTTONS)+button]) | 122 WowObject.ClearBinding(WowCommands[((mode-1)*RAT7.BUTTONS)+button]) |
123 end | 123 end |
124 end | 124 end |
125 | 125 |
126 self.SetObjectOnButton = function(button, mode, object) | 126 self.SetObjectOnButton = function(button, mode, object) |
127 self.SetObjectOnButtonNoUpdate(button, mode, object); | 127 self.SetObjectOnButtonNoUpdate(button, mode, object); |