PDA

View Full Version : twin dragon hud



Qrion
09-26-2007, 09:46 AM
hi,

i dunno but is it possible to make the hud go fade away when out of combat ?

in a previous nurfed ui (package) before TBC there was a hud like that one time
and that twin dragon hud did fade away but this one seem to miss the option for that :D


and one other question that phoenix hud where can i download that one if i click on the link it
says fily not found :(


greets

Qrion

elderbre
09-26-2007, 11:31 AM
Add this under hudplayer


events = {
"PLAYER_ENTERING_WORLD",
"PLAYER_REGEN_DISABLED", --Alphasettings
"PLAYER_REGEN_ENABLED", --Alphasettings
"UNIT_HEALTH", --Alphasettings
"UNIT_MANA", --Alphasettings
"PLAYER_TARGET_CHANGED", --Alphasettings
},
OnEvent = [[
--AlphaSettings
if (event == "UNIT_HEALTH" or event == "UNIT_MANA") and arg1 ~= "player" then return end
if not UnitAffectingCombat("player") then
if not UnitName("target") then
if (UnitHealth("player") == UnitHealthMax("player")) and (UnitMana("player") == UnitManaMax("player")) then
Nurfed_hudplayer:SetAlpha(0.7) --full, ooc, no target
Nurfed_hudtarget:SetAlpha(0.7)
else
Nurfed_hudplayer:SetAlpha(0.7) -- ooc, no target, NOT FULL
Nurfed_hudtarget:SetAlpha(0.7)
end
else
Nurfed_hudplayer:SetAlpha(0.7) -- OCC, Target
Nurfed_hudtarget:SetAlpha(0.7)
end
else
Nurfed_hudplayer:SetAlpha(1.0) -- IC
Nurfed_hudtarget:SetAlpha(1.0)
end
--MouseWheel Off, only entering world event
if(event == "PLAYER_ENTERING_WORLD") then
Nurfed_hudplayer:EnableMouseWheel(false)
Nurfed_hudtarget:EnableMouseWheel(false)
end
]],

a67rhf7823jn8747==