PDA

View Full Version : questions about how to close disable the persentage of hud



hujiamin123
06-20-2007, 05:02 AM
....who can help me.....
according to the sticky
i just added
local function hudalpha()
if event == "UNIT_HEALTH" and arg1 ~= "player" then return end
for _,v in pairs( { Nurfed_hudplayer, Nurfed_hudtarget } ) do
if not UnitAffectingCombat("player") then
if not UnitName("target") then
if UnitHealth("player") == UnitHealthMax("player") then
v:SetAlpha(0.7)
else
v:SetAlpha(0.7)
end
else
v:SetAlpha(0.7)
end
else
v:SetAlpha(1.0)
end
end
end

local f=CreateFrame("FRAME")
f:RegisterEvent("PLAYER_REGEN_DISABLED")
f:RegisterEvent("PLAYER_REGEN_ENABLED")
f:RegisterEvent("UNIT_HEALTH")
f:RegisterEvent("PlAYER_TARGET_CHANGED")
f:SetScript("OnEvent", hudalpha )

,but nothing to change....

Tenten
06-20-2007, 09:49 AM
i dont understand your question....

if you want the hud to disappear when your ooc you change one of these numbers:

v:SetAlpha(0.7)

should be in the faq what number does what aswell :>

edit: and if you want it to be visible all the time, just delete all that text from the layout and after that import the layout once again

hujiamin123
06-21-2007, 12:03 AM
thanks tente.U know ....that the topic i post first cant be edit after i get it....

a67rhf7823jn8747==