Mercurial > wow > reaction
comparison classes/ReAction_PetActionDisplay.lua @ 10:f3a7bfebc283
Version 0.33
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Tue, 20 Mar 2007 21:37:38 +0000 |
parents | c05fd3e18b4f |
children |
comparison
equal
deleted
inserted
replaced
9:650f75d08952 | 10:f3a7bfebc283 |
---|---|
167 elseif f then | 167 elseif f then |
168 f:Hide() | 168 f:Hide() |
169 end | 169 end |
170 end | 170 end |
171 | 171 |
172 function RAPAD:DisplayHotkey(txt) | 172 function RAPAD:DisplayHotkey(txt,button) |
173 self.frames.hotkey:SetText(string.upper(txt or "")) | 173 if button == nil or button == "LeftButton" then |
174 -- only left-button hotkeys supported | |
175 self.frames.hotkey:SetText(string.upper(txt or "")) | |
176 end | |
174 end | 177 end |
175 | 178 |
176 function RAPAD:DisplayInUse( inUse ) | 179 function RAPAD:DisplayInUse( inUse ) |
177 self.frames.button:SetChecked( inUse and 1 or 0 ) | 180 self.frames.button:SetChecked( inUse and 1 or 0 ) |
178 end | 181 end |