Mercurial > wow > buffalo2
comparison ObjectiveStyle.lua @ 17:c33497b116d6
ObjectiveStyle
- statusbg and titlebg will respect the spacing value
| author | Nenue |
|---|---|
| date | Tue, 05 Apr 2016 00:44:25 -0400 |
| parents | 880828018bf4 |
| children | d1812fb10ae6 |
comparison
equal
deleted
inserted
replaced
| 16:880828018bf4 | 17:c33497b116d6 |
|---|---|
| 378 print(frame.status and (frame.status:GetStringHeight() + (frame.status.spacing or 0)*2) or 0) | 378 print(frame.status and (frame.status:GetStringHeight() + (frame.status.spacing or 0)*2) or 0) |
| 379 if frame.status then | 379 if frame.status then |
| 380 print('status ', frame.statusHeight, normalSettings.status.Indent, 0, 'statusbg', frame.statusHeight) | 380 print('status ', frame.statusHeight, normalSettings.status.Indent, 0, 'statusbg', frame.statusHeight) |
| 381 frame.status:SetWidth(frame.width) | 381 frame.status:SetWidth(frame.width) |
| 382 frame.status:SetPoint('LEFT', frame, 'LEFT', normalSettings.status.Indent, 0) | 382 frame.status:SetPoint('LEFT', frame, 'LEFT', normalSettings.status.Indent, 0) |
| 383 frame.status:SetPoint('TOP', frame, 'TOP', 0, -frame.status.spacing) | |
| 383 --frame.status:SetHeight(frame.statusHeight) | 384 --frame.status:SetHeight(frame.statusHeight) |
| 384 if frame.statusbg then | 385 if frame.statusbg then |
| 385 frame.statusbg:SetHeight(frame.statusHeight) | 386 |
| 387 frame.statusbg:SetHeight(frame.statusHeight + frame.status.spacing * 2) | |
| 386 frame.statusbg:SetWidth(frame.width) | 388 frame.statusbg:SetWidth(frame.width) |
| 387 end | 389 end |
| 388 end | 390 end |
| 389 if frame.title then | 391 if frame.title then |
| 390 print('title ',frame.titleHeight, normalSettings.title.Indent, 'titlebg',frame.titleHeight) | 392 print('title ',frame.titleHeight, normalSettings.title.Indent, 'titlebg',frame.titleHeight) |
| 391 frame.title:SetPoint('LEFT', frame, 'LEFT', normalSettings.title.Indent) | 393 frame.title:SetPoint('LEFT', frame, 'LEFT', normalSettings.title.Indent) |
| 394 frame.title:SetPoint('TOP', frame, 'TOP', 0, -frame.title.spacing) | |
| 392 frame.title:SetWidth(frame.width) | 395 frame.title:SetWidth(frame.width) |
| 393 if frame.titlebg then | 396 if frame.titlebg then |
| 394 frame.titlebg:SetHeight(frame.titleHeight) | 397 frame.titlebg:SetHeight(frame.titleHeight + frame.title.spacing * 2) |
| 395 frame.titlebg:SetWidth(frame.width) | 398 frame.titlebg:SetWidth(frame.width) |
| 396 end | 399 end |
| 397 end | 400 end |
| 398 frame:SetSize(frame.width, frame.height) | 401 frame:SetSize(frame.width, frame.height) |
| 399 print('sizing frame', frame.width, frame.height) | 402 print('sizing frame', frame.width, frame.height) |
