Mercurial > wow > reaction
comparison classes/ActionButton.lua @ 155:806a61b331a0
Pushed the state implementation into Bar
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 15 May 2009 22:38:19 +0000 |
parents | 42cade25d40d |
children | 799c6ea9da7b |
comparison
equal
deleted
inserted
replaced
154:df67685b340e | 155:806a61b331a0 |
---|---|
50 if idx and idx <= maxN then | 50 if idx and idx <= maxN then |
51 action = 120 + idx | 51 action = 120 + idx |
52 else | 52 else |
53 action = 0 | 53 action = 0 |
54 end | 54 end |
55 elseif page and state and page[state] then | 55 elseif state and settings[state] and settings[state].page then |
56 action = self:GetAttribute("action-"..page[state]) | 56 action = self:GetAttribute("action-"..settings[state].page) |
57 end | 57 end |
58 if action == nil then | 58 if action == nil then |
59 action = self:GetAttribute("default-action") | 59 action = self:GetAttribute("default-action") |
60 end | 60 end |
61 | 61 |