From 8284143cc3621f698acf507da8db9d79e6239776 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Thu, 28 Aug 2008 00:22:16 +0000 Subject: [PATCH] Better tooltip formatting git-svn-id: svn://svn.wowinterface.com/oUF_Experience-227/trunk@6 f81be506-7a38-4956-9b9f-d707db2888a5 --- oUF_Experience/oUF_Experience.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/oUF_Experience/oUF_Experience.lua b/oUF_Experience/oUF_Experience.lua index 01cc1d2..1fea3b7 100644 --- a/oUF_Experience/oUF_Experience.lua +++ b/oUF_Experience/oUF_Experience.lua @@ -1,15 +1,16 @@ local function CreateTooltip(self) local min, max = UnitXP('player'), UnitXPMax('player') - GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT") + GameTooltip:SetOwner(self, "ANCHOR_CURSOR") if(GetXPExhaustion()) then - GameTooltip:AddLine(format('Rested XP left: %s', GetXPExhaustion())) + GameTooltip:AddLine(format('|cffffffffRested XP remaining:|r %s', GetXPExhaustion())) GameTooltip:AddLine(' ') end - GameTooltip:AddLine(format('Percentage through: %s%%', floor(min / max * 100))) - GameTooltip:AddLine(format('Percentage left: %s%%', floor((max - min) / max * 100))) - GameTooltip:AddLine(format('Bars through: %s', floor(min / max * 20))) - GameTooltip:AddLine(format('Bars left: %s', floor((max - min) / max * 20))) + GameTooltip:AddLine(format('|cffffffffRemaining XP to go:|r %s', floor(max - min))) + GameTooltip:AddLine(format('|cffffffffPercentage through:|r %s%%', floor(min / max * 100))) + GameTooltip:AddLine(format('|cffffffffPercentage to go:|r %s%%', floor((max - min) / max * 100))) + GameTooltip:AddLine(format('|cffffffffBars through:|r %s', floor(min / max * 20))) + GameTooltip:AddLine(format('|cffffffffBars to go:|r %s', floor((max - min) / max * 20))) GameTooltip:Show() end -- 1.7.9.5