/trunk/TipTop
## 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 |
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"} |
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 |
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 |