Mercurial > wow > reaction
comparison classes/ReBar.lua @ 10:f3a7bfebc283
Version 0.33
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Tue, 20 Mar 2007 21:37:38 +0000 |
| parents | c05fd3e18b4f |
| children | 2735edcf9ab7 |
comparison
equal
deleted
inserted
replaced
| 9:650f75d08952 | 10:f3a7bfebc283 |
|---|---|
| 79 if playerClass == "PRIEST" and GetNumShapeshiftForms() > 1 then | 79 if playerClass == "PRIEST" and GetNumShapeshiftForms() > 1 then |
| 80 nStancePages.PRIEST = 2 | 80 nStancePages.PRIEST = 2 |
| 81 end | 81 end |
| 82 | 82 |
| 83 local AceOO = AceLibrary("AceOO-2.0") | 83 local AceOO = AceLibrary("AceOO-2.0") |
| 84 local ReBound = AceLibrary("ReBound-1.0") | |
| 84 | 85 |
| 85 -- ReBar is an Ace 2 class prototype object. | 86 -- ReBar is an Ace 2 class prototype object. |
| 86 ReBar = AceOO.Class("AceEvent-2.0", ReAnchor, ReAnchor.IAnchorable) | 87 ReBar = AceOO.Class("AceEvent-2.0", ReAnchor, ReAnchor.IAnchorable) |
| 87 | 88 |
| 88 | 89 |
| 181 self:ApplyAutoStealthSwitch() | 182 self:ApplyAutoStealthSwitch() |
| 182 self:RefreshPageControls() | 183 self:RefreshPageControls() |
| 183 end | 184 end |
| 184 | 185 |
| 185 -- register page up/down buttons with ReBound for keybinding | 186 -- register page up/down buttons with ReBound for keybinding |
| 186 if ReBound then | 187 ReBound:Register(self.upArrow) |
| 187 ReBound:AddKeybindTarget(self.upArrow) | 188 ReBound:Register(self.downArrow) |
| 188 ReBound:AddKeybindTarget(self.downArrow) | |
| 189 end | |
| 190 | 189 |
| 191 -- add bar to anchorTargets list | 190 -- add bar to anchorTargets list |
| 192 table.insert(ReBar.anchorTargets, self) | 191 table.insert(ReBar.anchorTargets, self) |
| 193 end | 192 end |
| 194 | 193 |
