CT_ActionButton_Update();
this:SetFrameLevel(1);
CT_ActionButton_OnEvent(event);
CT_ActionButton_OnClick();
if ( ( not CT_HotbarButtons_Locked and ( ( strsub( this:GetName(), 1, 3 ) ~= "CT3" and strsub( this:GetName(), 1, 3 ) ~= "CT4" ) or CT_Sidebar_ButtonInUse(this) ) ) or IsShiftKeyDown() ) then
if ( (not ActionLockButton) or (ActionLockButton and (not ActionLockButton.isLocked)) ) then
PickupAction(CT_ActionButton_GetPagedID(this));
CT_ActionButton_UpdateState();
end
end
if ( ( strsub( this:GetName(), 1, 3 ) ~= "CT3" and strsub( this:GetName(), 1, 3 ) ~= "CT4" ) or CT_Sidebar_ButtonInUse(this) ) then
PlaceAction(CT_ActionButton_GetPagedID(this));
CT_ActionButton_UpdateState();
end
if ( ( strsub( this:GetName(), 1, 3 ) ~= "CT3" and strsub( this:GetName(), 1, 3 ) ~= "CT4" ) or CT_Sidebar_ButtonInUse(this) ) then
CT_ActionButton_SetTooltip();
end
CT_ActionButton_OnUpdate(arg1);
ActionButton_OnLoad();
this:RegisterEvent("PLAYER_ENTERING_WORLD");
this:RegisterEvent("PLAYER_LEAVING_WORLD");
CT_GlobalFrame_OnUpdate(arg1);
this.updateCDC = 0;
this.elapsed = 0;
this.update = 0;
this:RegisterEvent("UNIT_PET");
this:RegisterEvent("PLAYER_ENTERING_WORLD");
this:RegisterEvent("VARIABLES_LOADED");
this:RegisterEvent("PARTY_MEMBERS_CHANGED");
for i = 1, 12, 1 do
getglobal("ActionButton" .. i).showgrid = 2;
end
if ( event == "PARTY_MEMBERS_CHANGED" or ( event == "UNIT_PET" and arg1 == "player" ) ) then
CT_CheckPartyMove();
elseif ( event == "PLAYER_ENTERING_WORLD" ) then
CT_BarMod_EnteredWorld = 1;
if ( CT_BarMod_RequiresScalingUpdate ) then
CT_BarMod_SetCCScaling(CT_BarMod_RequiresScalingUpdate);
end
CT_BarMod_UpdateAllHotkeys();
else
CT_BarMod_CheckRotations();
end
this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
this:SetOwner(WorldFrame, "ANCHOR_NONE");
if ( this.scale ) then
this:SetScale(this.scale);
end
this:SetBackdropColor(0, 0, 1, 0.3);
this:SetBackdropBorderColor(0, 0, 1, 0.3);