Anyways I got it working now for the value text, how do I get it to show percentage as well? (I honestly can't find information on it so I'm sorry to bother you guys)
I imagine it's simply just make another frame for the text but rather than using "%d/%d" just use something else (not sure what though)
Lua Code:
local currentHealthPercent, maxHealthPercent = UnitHealth("player"), UnitHealthMax("player")
f.HealthPercentText:SetFormattedText("%d/%d", currentHealthPercent, maxHealthPercent)
--Updates the status bar to new health
local function update(self)
local unit = self.unit
--update health percentage text
local currentHealthPercent, maxHealthPercent = UnitHealth("player"), UnitHealthMax("player")
f.HealthPercentText:SetFormattedText("%d/%d", currentHealthPercent, maxHealthPercent)
--update health value text
local currentHealth, maxHealth = UnitHealth("player"), UnitHealthMax("player")
f.HealthText:SetFormattedText("%d/%d", currentHealth, maxHealth)
end
f:SetScript("OnEvent",update)
f:RegisterUnitEvent("UNIT_HEALTH",f.unit)
f:RegisterUnitEvent("UNIT_POWER",f.unit)