WoWInterface SVN TipTop

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 87 to Rev 88
    Reverse comparison

Rev 87 → Rev 88

trunk/TipTop/tiptop.lua
317,14 → 317,14
ttHealth:SetFormattedText("%d / %d", hp, maxhp)
elseif db.textformat == "100%" then
per = (hp/maxhp) * 100
--if per >= 0 then --gives funny negative numbers when tooltip fades
if per <= 100 then --gives maxhp of 1 sometimes when tooltip fades?
ttHealth:SetFormattedText("%d%%", per)
--end
end
elseif db.textformat == "100/100 (100%)" then
per = (hp/maxhp) * 100
--if per >= 0 then
if per <= 100 then
ttHealth:SetFormattedText("%d / %d (%d%%)", hp, maxhp, per)
--end
end
elseif db.textformat == "1.2k/1.2k" then
hpformat, maxhpformat = "%.1f", "%.1f"
if hp >= 1000000 then
trunk/TipTop/TipTop.toc
2,7 → 2,7
## Title: TipTop
## Author: Seerah
## Notes: Tooltip enhancement
## Version: 2.11
## Version: 2.11.1
## SavedVariables: TipTopDB
## SavedVariablesPerCharacter: TipTopPCDB
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets