WoW:API GetQuestLogPushable

From AddOn Studio
Revision as of 17:03, 12 February 2005 by WoWWiki>Myrathi
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GetQuestLogPushable -Documentation by Myrathi-

Returns true if the currently loaded quest in the quest window is able to be shared with other players.

GetQuestLogPushable();

Arguments
none

Returns
Boolean

Example
 -- Determine whether the selected quest is pushable or not
 if ( GetQuestLogPushable() and GetNumPartyMembers() > 0 ) then
   QuestFramePushQuestButton:Enable();
 else
   QuestFramePushQuestButton:Disable();
 end
Result
true | false

Description
Returns true if the currently loaded quest in the quest window is able to be shared with other players ("pushable" simply meaning "sharable").
To initiate pushing of a quest, see QuestLogPushQuest().


Code sample taken from \Interface\FrameXML\QuestLogFrame.lua:42 (#4150)

Template:WoW API