Mercurial > wow > reaction
comparison Bar.lua @ 94:39265b16d208
Fixed handling of pet buttons past 10
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Fri, 17 Oct 2008 23:46:30 +0000 |
| parents | 7cabc8ac6c16 |
| children | 890e4c4ab143 |
comparison
equal
deleted
inserted
replaced
| 93:567a885cdfad | 94:39265b16d208 |
|---|---|
| 160 cfg.spacing = s | 160 cfg.spacing = s |
| 161 end | 161 end |
| 162 ReAction:RefreshBar(self) | 162 ReAction:RefreshBar(self) |
| 163 end | 163 end |
| 164 | 164 |
| 165 function Bar:ClipNButtons( n ) | |
| 166 local cfg = self.config | |
| 167 local r = cfg.btnRows or 1 | |
| 168 local c = cfg.btnColumns or 1 | |
| 169 | |
| 170 cfg.btnRows = ceil(n/c) | |
| 171 cfg.btnColumns = min(n,c) | |
| 172 end | |
| 173 | |
| 165 function Bar:GetName() | 174 function Bar:GetName() |
| 166 return self.name | 175 return self.name |
| 167 end | 176 end |
| 168 | 177 |
| 169 function Bar:GetFrame() | 178 function Bar:GetFrame() |
