local tooltip = _G[QuestInfoFrame.tooltip]; if ( tooltip ) then tooltip:SetOwner(self, "ANCHOR_RIGHT"); if ( self.rewardType == "item" ) then if ( QuestInfoFrame.questLog ) then tooltip:SetQuestLogItem(self.type, self:GetID()); else tooltip:SetQuestItem(self.type, self:GetID()); end GameTooltip_ShowCompareItem(tooltip); elseif ( self.rewardType == "spell" ) then if ( QuestInfoFrame.questLog ) then tooltip:SetQuestLogRewardSpell(); else tooltip:SetQuestRewardSpell(); end end end
if ( IsModifiedClick() ) then if ( self.rewardType == "spell" ) then if ( IsModifiedClick("CHATLINK") ) then if ( QuestInfoFrame.questLog ) then ChatEdit_InsertLink(GetQuestLogSpellLink()); else ChatEdit_InsertLink(GetQuestSpellLink()); end end else if ( QuestInfoFrame.questLog ) then HandleModifiedItemClick(GetQuestLogItemLink(self.type, self:GetID())); else HandleModifiedItemClick(GetQuestItemLink(self.type, self:GetID())); end end else if ( QuestInfoFrame.chooseItems ) then QuestInfoItem_OnClick(self); end end
if ( QuestInfoFrame.tooltip ) then _G[QuestInfoFrame.tooltip]:Hide(); ResetCursor(); end
SmallMoneyFrame_OnLoad(self); MoneyFrame_SetType(self, "STATIC");
self.material = "Parchment";
MoneyFrame_OnLoad(self); MoneyFrame_SetType(self, "STATIC");