RaidClassButton_OnLoad(self);
RaidPulloutButton_OnDragStart(RaidPullout_GeneratePulloutFrame(self.fileName, self.class));
--Do not pass self here. We want to stop the currently moving frame and not the class frame (which isn't actually moving) RaidPulloutStopMoving();
RaidClassButton_OnEnter(self, motion);
GameTooltip:Hide();
self:SetFrameLevel(self:GetFrameLevel() + 1); RaidGroupButton_OnLoad(self:GetParent());
GameTooltip:Hide();
local rank = self:GetParent().rank; local voice = self:GetParent().voice; -- Sets the Leader/Assistant Tooltip if ( rank ) then GameTooltip:SetOwner(self, "ANCHOR_LEFT"); if ( rank == 2 ) then GameTooltip:SetText(RAID_LEADER, nil, nil, nil, nil, 1); elseif ( rank == 1 ) then GameTooltip:SetText(RAID_ASSISTANT, nil, nil, nil, nil, 1); end if ( voice == 2 ) then GameToolTip:AddLine("("..MUTED..")", HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); end else GameTooltip:Hide(); end
local role = self:GetParent().role; -- Sets the Main Tank/Assist Tooltip if ( role ) then GameTooltip:SetOwner(self, "ANCHOR_LEFT"); if ( role == "MAINTANK" ) then GameTooltip:SetText(MAIN_TANK, nil, nil, nil, nil, 1); elseif ( role == "MAINASSIST" ) then GameTooltip:SetText(MAIN_ASSIST, nil, nil, nil, nil, 1); end else GameTooltip:Hide(); end
-- Sets the Master Looter Tooltip if ( self:GetParent().loot ) then GameTooltip:SetOwner(self, "ANCHOR_LEFT"); GameTooltip:SetText(MASTER_LOOTER, nil, nil, nil, nil, 1); else GameTooltip:Hide(); end
RaiseFrameLevelByTwo(self);
self:SetFrameLevel(self:GetFrameLevel() + 1); RaidGroupButton_OnLoad(self);
if ( button == "RightButton" ) then RaidGroupButton_ShowMenu(self); else SecureUnitButton_OnClick(self, button); end
if ( IsRaidLeader() or IsRaidOfficer() ) then if ( IsShiftKeyDown() ) then self.keypressed = "1"; RaidPulloutButton_OnDragStart(RaidPullout_GeneratePulloutFrame(self.name, nil)); else RaidGroupButton_OnDragStart(self); self.keypressed = nil; end else RaidPulloutButton_OnDragStart(RaidPullout_GeneratePulloutFrame(self.name, nil)); end
if ( IsRaidLeader() or IsRaidOfficer() ) then if ( self.keypressed ) then RaidPulloutStopMoving(); else RaidGroupButton_OnDragStop(self); end else RaidPulloutStopMoving(); end
RaidGroupButton_OnEnter(self); if ( RaidFrame:IsMouseOver() ) then GameTooltip:AddLine("\n"); if ( IsRaidLeader() or IsRaidOfficer() ) then GameTooltip:AddLine(TOOLTIP_RAID_SHIFT_TIP, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); else GameTooltip:AddLine(TOOLTIP_RAID_DRAG_TIP, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); end GameTooltip:Show(); end
GameTooltip:Hide();
self:RegisterForDrag("LeftButton");
RaidPulloutButton_OnDragStart(RaidPullout_GeneratePulloutFrame(self:GetParent():GetID()));
RaidPulloutStopMoving();
RaidPulloutStopMoving();
_G[self:GetName().."Label"]:SetText(GROUP.." "..self:GetID());
if ( self:GetCenter() > GetScreenWidth()/2 ) then GameTooltip:SetOwner(self, "ANCHOR_LEFT"); else GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); end

local filter; if ( self:GetParent():GetParent().showBuffs ) then if ( GetCVarBool("showCastableBuffs") ) then filter = "HELPFUL|RAID"; else filter = "HELPFUL"; end else if ( GetCVarBool("showDispelDebuffs") ) then filter = "HARMFUL|RAID"; else filter = "HARMFUL"; end end GameTooltip:SetUnitAura(self:GetParent().unit, self:GetID(), filter);
GameTooltip:Hide();
if ( UnitIsConnected(self.unit) ) then UnitFrameHealthBar_OnValueChanged(self, value); end
self:SetFrameLevel(self:GetFrameLevel()+2);
--UnitFrameHealthBar_OnValueChanged(self, value);
TargetUnit(self:GetParent().unit.."target");
self:SetFrameLevel(self:GetFrameLevel()-1); self:SetBackdropBorderColor(0.5, 0.5, 0.5); self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b); self:SetAlpha(0.7);
TargetUnit(self:GetParent().unit.."targettarget");
TargetUnit(self:GetParent():GetParent().unit.."targettarget");
--UnitFrameHealthBar_OnValueChanged(self, value);
TargetUnit(self:GetParent().unit.."targettarget");
RaidPulloutButton_OnLoad(self);
RaidGroupButton_OnEnter(self:GetParent());
GameTooltip:Hide();
VoiceChat_OnUpdate(self, elapsed);
RaiseFrameLevelByTwo(self);
RaidPulloutButton_OnEvent(self, event, ...);
local prefix = self:GetName(); self.healthbar = _G[prefix.."HealthBar"]; self.manabar = _G[prefix.."ManaBar"]; self.threatIndicator = _G[prefix.."ThreatIndicator"]; self.nameLabel = _G[prefix.."Name"]; self.clearButton = _G[prefix.."ClearButton"]; self.speaker = _G[prefix.."Speaker"]; self.vehicleIndicator = _G[prefix.."VehicleIndicator"];
RaidPulloutDropDown_OnLoad(self);
self:SetBackdropBorderColor(0.5, 0.5, 0.5); self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b); self:SetAlpha(0.7);
self:RegisterEvent("RAID_ROSTER_UPDATE"); self:RegisterEvent("UNIT_PET"); self:RegisterEvent("UNIT_NAME_UPDATE"); self:RegisterEvent("READY_CHECK"); self:RegisterEvent("READY_CHECK_CONFIRM"); self:RegisterEvent("READY_CHECK_FINISHED"); self:RegisterForDrag("LeftButton"); self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); self.label = _G[self:GetName() .. "Name"]; self.buttons = {};
RaidPullout_OnEvent(self, event, ...);
self:SetFrameStrata("DIALOG"); self:StartMoving();
RaidPulloutStopMoving(self);
if (button == "RightButton") then ToggleDropDownMenu(1, nil, _G[self:GetName().."DropDown"]); end
self:StopMovingOrSizing(); self:SetFrameStrata("BACKGROUND");
ShowUIPanel(LFRParentFrame);
DoReadyCheck(); PlaySound("UChatScrollButton");
RaidGroupFrame_OnLoad();