Mercurial > wow > reaction
comparison modules/ReAction_Action/ReAction_Action.lua @ 93:567a885cdfad
- pet hotkey support
- fixed showgrid when in keybind mode for action buttons
- fixed a typo (bad 'self') in overlay.lua
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 17 Oct 2008 23:13:44 +0000 |
parents | 5f1d7a81317c |
children | ad49739d110d |
comparison
equal
deleted
inserted
replaced
92:5f1d7a81317c | 93:567a885cdfad |
---|---|
114 end | 114 end |
115 end | 115 end |
116 | 116 |
117 function module:LIBKEYBOUND_ENABLED(evt) | 117 function module:LIBKEYBOUND_ENABLED(evt) |
118 for _, h in pairs(self.handles) do | 118 for _, h in pairs(self.handles) do |
119 h:ShowGrid(true) | |
119 h:SetKeybindMode(true) | 120 h:SetKeybindMode(true) |
120 end | 121 end |
121 end | 122 end |
122 | 123 |
123 function module:LIBKEYBOUND_DISABLED(evt) | 124 function module:LIBKEYBOUND_DISABLED(evt) |
124 for _, h in pairs(self.handles) do | 125 for _, h in pairs(self.handles) do |
126 h:ShowGrid(false) | |
125 h:SetKeybindMode(false) | 127 h:SetKeybindMode(false) |
126 end | 128 end |
127 end | 129 end |
128 | 130 |
129 | 131 |
320 b:ShowGrid(mode) | 322 b:ShowGrid(mode) |
321 b:ShowActionIDLabel(mode) | 323 b:ShowActionIDLabel(mode) |
322 end | 324 end |
323 end | 325 end |
324 | 326 |
327 function Handle:ShowGrid(show) | |
328 for _, b in pairs(self.btns) do | |
329 b:ShowGrid(show) | |
330 end | |
331 end | |
332 | |
325 function Handle:SetKeybindMode(mode) | 333 function Handle:SetKeybindMode(mode) |
326 for _, b in pairs(self.btns) do | 334 for _, b in pairs(self.btns) do |
327 if mode then | 335 if mode then |
328 -- set the border for all buttons to the keybind-enable color | 336 -- set the border for all buttons to the keybind-enable color |
329 b.border:SetVertexColor(KB:GetColorKeyBoundMode()) | 337 b.border:SetVertexColor(KB:GetColorKeyBoundMode()) |