self.hasItem = 1;
if ( self:GetAlpha() > 0 ) then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
if ( self.rewardType == "item" ) then
GameTooltip:SetQuestItem(self.type, self:GetID());
GameTooltip_ShowCompareItem(GameTooltip);
elseif ( self.rewardType == "spell" ) then
GameTooltip:SetQuestRewardSpell();
end
end
CursorUpdate(self);
GameTooltip:Hide();
ResetCursor();
CursorOnUpdate(self, elapsed);
if ( self.rewardType == "spell" ) then
if ( IsModifiedClick("CHATLINK") ) then
ChatEdit_InsertLink(GetQuestSpellLink());
end
else
HandleModifiedItemClick(GetQuestItemLink(self.type, self:GetID()));
end
QuestTitleButton_OnClick(self, button, down);
local factionGroup = UnitFactionGroup("player");
if ( factionGroup ) then
self.icon:SetTexture("Interface\\TargetingFrame\\UI-PVP-"..factionGroup);
self.icon:Show();
else
self.icon:Hide();
end