/trunk/TipTop
## Title: TipTop |
## Author: Seerah |
## Notes: Tooltip enhancement |
## Version: 2.19.1 |
## Version: 2.19.2 |
## SavedVariables: TipTopDB |
## SavedVariablesPerCharacter: TipTopPCDB |
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets |
end |
local hp = hp or UnitHealth("mouseover") |
if db.textformat == "100/100" then |
ttHealth:SetFormattedText("%d / %d", hp, maxhp) |
hp = tostring(hp) |
maxhp = tostring(maxhp) |
ttHealth:SetFormattedText("%s / %s", hp, maxhp) |
elseif db.textformat == "100%" then |
per = (hp/maxhp) * 100 |
if per <= 100 then --gives maxhp of 1 sometimes when tooltip fades? |