Thread: oUF ALZA help
View Single Post
06-27-10, 11:59 AM   #1
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations
Join Date: May 2009
Posts: 176
oUF ALZA help

This is the health portion of oUF ALZA's code:
Code:
    local hp = CreateFrame("StatusBar", nil, self)
    hp:SetStatusBarTexture(settings.texture)
    hp.frequentUpdates = true
    hp:SetPoint("TOPRIGHT")
    hp:SetPoint("TOPLEFT")
    hp:SetHeight(s.ManaBarHeight==0 and s.Height or (s.Height - s.ManaBarHeight - 1))

    local hpbg = hp:CreateTexture(nil, "BACKGROUND")
    hpbg:SetTexture(settings.texture)
    hpbg:SetAllPoints(hp)

    local hpp = MakeFS(hp)
    if(unit=="player") then
        hpp:SetPoint("BOTTOMRIGHT", hp, "TOPRIGHT", 2, 3)
    elseif(unit=="target" or unit=="pet") then
        hpp:SetPoint("BOTTOMLEFT", hp, "TOPLEFT", -2, 3)
    end

    hp.bg = hpbg
    hp.value = hpp
    self.Health = hp
    self.OverrideUpdateHealth = OverrideUpdateHealth
In game, it ends up looking like what it does on the oUF ALZA download page. I don't understand what is making the current health green, and no matter what I try, I can't hide the maximum health text on the player frame (in white). Changing the settings for anything seems to alter them both. My goal is just to show current health. Any suggestions?
  Reply With Quote