WoWInterface SVN TipTop

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/TipTop
    from Rev 98 to Rev 99
    Reverse comparison

Rev 98 → Rev 99

TipTop.toc
2,7 → 2,7
## Title: TipTop
## Author: Seerah
## Notes: Tooltip enhancement
## Version: 2.14.4
## Version: 2.15
## SavedVariables: TipTopDB
## SavedVariablesPerCharacter: TipTopPCDB
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
TipTopOptions.lua
6,7 → 6,7
local positions = {"TOP", "TOPRIGHT", "TOPLEFT",
"BOTTOM", "BOTTOMRIGHT", "BOTTOMLEFT",
"RIGHT", "LEFT", "CENTER"}
local formats = {"100/100", "100%", "100/100 (100%)", "1.2k/1.2k"}
local formats = {"100/100", "100%", "100/100 (100%)", "1.2k/1.2k", "1.2k/1.2k (100%)"}
local fontFlags = {"None", "Outline", "Monochrome Outline"} --, "Monochrome"}
 
 
tiptop.lua
344,7 → 344,7
if per <= 100 then
ttHealth:SetFormattedText("%d / %d (%d%%)", hp, maxhp, per)
end
elseif db.textformat == "1.2k/1.2k" then
elseif db.textformat == "1.2k/1.2k" or db.textformat == "1.2k/1.2k (100%)" then
hpformat, maxhpformat = "%.1f", "%.1f"
if hp >= 1000000 then
hpmult, hpdiv = "m", 1000000
362,7 → 362,11
maxhpmult, maxhpdiv = "", 1
maxhpformat = "%d"
end
ttHealth:SetFormattedText(hpformat.."%s / "..maxhpformat.."%s", hp/hpdiv, hpmult, maxhp/maxhpdiv, maxhpmult)
if db.textformat == "1.2k/1.2k" then
ttHealth:SetFormattedText(hpformat.."%s / "..maxhpformat.."%s", hp/hpdiv, hpmult, maxhp/maxhpdiv, maxhpmult)
else
ttHealth:SetFormattedText(hpformat.."%s / "..maxhpformat.."%s (%d%%)", hp/hpdiv, hpmult, maxhp/maxhpdiv, maxhpmult, hp/maxhp*100)
end
end
end
end