Mercurial > wow > reaction
comparison classes/ReBar.lua @ 12:2735edcf9ab7
Version 0.34
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Wed, 21 Mar 2007 00:13:27 +0000 |
| parents | f3a7bfebc283 |
| children | a805e4464237 |
comparison
equal
deleted
inserted
replaced
| 11:88df7235ad8b | 12:2735edcf9ab7 |
|---|---|
| 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") | |
| 85 | 84 |
| 86 -- ReBar is an Ace 2 class prototype object. | 85 -- ReBar is an Ace 2 class prototype object. |
| 87 ReBar = AceOO.Class("AceEvent-2.0", ReAnchor, ReAnchor.IAnchorable) | 86 ReBar = AceOO.Class("AceEvent-2.0", ReAnchor, ReAnchor.IAnchorable) |
| 88 | 87 |
| 89 | 88 |
| 180 self:SetPages(self.config.pages.n) | 179 self:SetPages(self.config.pages.n) |
| 181 self:ApplyAutoStanceSwitch() | 180 self:ApplyAutoStanceSwitch() |
| 182 self:ApplyAutoStealthSwitch() | 181 self:ApplyAutoStealthSwitch() |
| 183 self:RefreshPageControls() | 182 self:RefreshPageControls() |
| 184 end | 183 end |
| 185 | |
| 186 -- register page up/down buttons with ReBound for keybinding | |
| 187 ReBound:Register(self.upArrow) | |
| 188 ReBound:Register(self.downArrow) | |
| 189 | 184 |
| 190 -- add bar to anchorTargets list | 185 -- add bar to anchorTargets list |
| 191 table.insert(ReBar.anchorTargets, self) | 186 table.insert(ReBar.anchorTargets, self) |
| 192 end | 187 end |
| 193 | 188 |
