WoW:API GetQuestLogPushable: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 35: Line 35:


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


----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API Functions|GetQuestLogPushable]]
[[Category:API Quest Functions|GetQuestLogPushable]]

Revision as of 06:05, 4 January 2006

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