Mercurial > wow > kbf
comparison KBF.lua @ 24:1954ee573a37
tighten up the spacing on the bar text
| author | Chris Mellon <arkanes@gmai.com> |
|---|---|
| date | Mon, 25 Oct 2010 17:18:15 -0500 |
| parents | b284fd451972 |
| children | 69f46450ef82 |
comparison
equal
deleted
inserted
replaced
| 23:b284fd451972 | 24:1954ee573a37 |
|---|---|
| 109 self:BindBarToWeaponEnchant(tempEnchant, 17) | 109 self:BindBarToWeaponEnchant(tempEnchant, 17) |
| 110 end | 110 end |
| 111 self:UpdateBarExpirationTime(tempEnchant) | 111 self:UpdateBarExpirationTime(tempEnchant) |
| 112 buffCount = buffCount + 1 | 112 buffCount = buffCount + 1 |
| 113 end | 113 end |
| 114 -- there's also a third temp enchant for thrown weapons, which the | |
| 115 -- current SAH doesn't support at all. | |
| 116 -- Since I can't insert bars into the flow, can't support this | |
| 117 -- until I either go to multiple secure headers & figure out how to position them | |
| 118 -- or blizz fixes SAH | |
| 114 | 119 |
| 115 -- debuffs | 120 -- debuffs |
| 116 -- Since debuffs aren't cancellable, don't need to use the secure header | 121 -- Since debuffs aren't cancellable, don't need to use the secure header |
| 117 -- for them. This could be rewritten to support useful features like | 122 -- for them. This could be rewritten to support useful features like |
| 118 -- sorting & scaling and stuff. Honestly, should at least be alphabetical. | 123 -- sorting & scaling and stuff. Honestly, should at least be alphabetical. |
| 323 -- timer text | 328 -- timer text |
| 324 bar.timertext:SetFontObject(GameFontHighlight) | 329 bar.timertext:SetFontObject(GameFontHighlight) |
| 325 bar.timertext:SetFont(GameFontHighlight:GetFont()) | 330 bar.timertext:SetFont(GameFontHighlight:GetFont()) |
| 326 bar.timertext:SetHeight(height) | 331 bar.timertext:SetHeight(height) |
| 327 bar.timertext:SetWidth(timertextwidth) | 332 bar.timertext:SetWidth(timertextwidth) |
| 328 bar.timertext:SetPoint("LEFT", bar.statusbar, "LEFT", 0, 0) | 333 bar.timertext:SetPoint("LEFT", bar.statusbar, "LEFT", 2, 0) |
| 329 bar.timertext:SetJustifyH("RIGHT") | 334 bar.timertext:SetJustifyH("LEFT") |
| 330 bar.timertext:SetText("time") | 335 bar.timertext:SetText("time") |
| 331 bar.timertext:SetTextColor(timertextcolor[1], timertextcolor[2], timertextcolor[3], timertextcolor[4]) | 336 bar.timertext:SetTextColor(timertextcolor[1], timertextcolor[2], timertextcolor[3], timertextcolor[4]) |
| 332 | 337 |
| 333 -- and the label text | 338 -- and the label text |
| 334 bar.text:SetFontObject(GameFontHighlight) | 339 bar.text:SetFontObject(GameFontHighlight) |
| 335 bar.text:SetFont(GameFontHighlight:GetFont()) | 340 bar.text:SetFont(GameFontHighlight:GetFont()) |
| 336 bar.text:SetHeight(height) | 341 bar.text:SetHeight(height) |
| 337 bar.text:SetWidth((width - timertextwidth) *.9) | 342 bar.text:SetPoint("LEFT", bar.timertext, "RIGHT", 0, 0) |
| 338 bar.text:SetPoint("RIGHT", bar.statusbar, "RIGHT", 0, 0) | 343 bar.text:SetPoint("RIGHT", bar.statusbar, "RIGHT", 0, 0) |
| 339 bar.text:SetJustifyH("LEFT") | 344 bar.text:SetJustifyH("LEFT") |
| 340 bar.text:SetText("text") | 345 bar.text:SetText("text") |
| 341 bar.text:SetTextColor(textcolor[1], textcolor[2], textcolor[3], textcolor[4]) | 346 bar.text:SetTextColor(textcolor[1], textcolor[2], textcolor[3], textcolor[4]) |
| 342 return bar | 347 return bar |
