this:SetMinMaxValues(0, 100);
this:SetValue(100);
NL_MouseEnteredFrame();
local member = this:GetParent().Unit;
NL_SetTooltipOwner(this:GetParent(), "ANCHOR_TOPLEFT");
GameTooltip:SetText( UnitHealth(member) .. "/" .. UnitHealthMax(member) );
NL_MouseLeftFrame();
GameTooltip:Hide();
NLMember_OnClick(arg1, this:GetParent());
this:SetMinMaxValues(0, 100);
this:SetValue(100);
NL_MouseEnteredFrame();
local member = this:GetParent().Unit;
NL_SetTooltipOwner(this:GetParent(), "ANCHOR_TOPLEFT");
GameTooltip:SetText( UnitMana(member) .. "/" .. UnitManaMax(member) );
NL_MouseLeftFrame();
GameTooltip:Hide();
NLMember_OnClick(arg1, this:GetParent());
if( this.Unit ) then
NL_UpdateAura( this.Unit );
NL_UpdateUnit( this.Unit );
end
this:SetHeight(26 + NLConfig.ShowHealth * 6 + NLConfig.ShowMana * 6);
this:SetWidth(NLConfig.FrameWidth);
this:SetBackdropColor(0, 0, 1, 0.5);
this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp", "Button4Up", "Button5Up");
NL_MouseEnteredFrame();
NLMember_OnEnter(this);
NL_MouseLeftFrame();
NLMember_OnLeave(this);
NLMember_OnClick(arg1, this);
if( arg1 == "LeftButton" ) then
this:StartMoving();
end
this:StopMovingOrSizing();
this:SetBackdropColor(0, 0, 1, 0.5);
this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
this:RegisterForDrag("LeftButtonDown");
NL_SetTooltipOwner(this, "ANCHOR_TOPLEFT");
GameTooltip:SetText(NL_MOVE_TOOLTIP);
GameTooltip:Hide();
if( arg1 == "LeftButton" ) then
GameTooltip:Hide();
this:StartMoving();
elseif( arg1 == "MiddleButton" ) then
NLHeaderMinimized:Show();
NL_MINIMIZED = true;
else
NLConfigNeedsFrame:Hide();
NLConfigFrame:Show();
end
this:StopMovingOrSizing();
NLHeaderMinimized:Hide();
this:SetWidth(NLConfig.FrameWidth);
this:SetBackdropColor(1, 0, 0, 0.5);
this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
NL_SetTooltipOwner(this, "ANCHOR_TOPLEFT");
GameTooltip:SetText(NL_MOVE_TOOLTIP_MINI);
GameTooltip:Hide();
if( arg1 == "MiddleButton" ) then
NLHeader:Show();
NL_MINIMIZED = false;
elseif( arg1 == "RightButton" ) then
NLConfigNeedsFrame:Hide();
NLConfigFrame:Show();
end
this:SetWidth(NLConfig.FrameWidth);
NLHeader:Hide();
NL_OnLoad();
NL_OnEvent(event, arg1);
NL_OnUpdate(arg1);