Mercurial > wow > reaction
comparison Bar.lua @ 288:d931fa418e17
Merge LBF fix to default
| author | Flick |
|---|---|
| date | Fri, 01 Jul 2011 14:32:17 -0700 |
| parents | 0ea325e616ab f2ed8a8e2320 |
| children | 0cb6a9944497 |
comparison
equal
deleted
inserted
replaced
| 287:0ea325e616ab | 288:d931fa418e17 |
|---|---|
| 372 local s = cfg.spacing or 4 | 372 local s = cfg.spacing or 4 |
| 373 return r,c,s | 373 return r,c,s |
| 374 end | 374 end |
| 375 | 375 |
| 376 function Bar:SetButtonGrid(r,c,s) | 376 function Bar:SetButtonGrid(r,c,s) |
| 377 local cfg = self.config | |
| 378 r = r or cfg.btnRows | |
| 379 c = c or cfg.btnColumns | |
| 380 s = s or cfg.spacing | |
| 377 if r > 0 and c > 0 and s > 0 then | 381 if r > 0 and c > 0 and s > 0 then |
| 378 local cfg = self.config | |
| 379 cfg.btnRows = r | 382 cfg.btnRows = r |
| 380 cfg.btnColumns = c | 383 cfg.btnColumns = c |
| 381 cfg.spacing = s | 384 cfg.spacing = s |
| 382 end | 385 end |
| 383 self.buttonClass:SetupBar(self) | 386 self.buttonClass:SetupBar(self) |
