WoW:API GetTitleText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
--[[User:Mesoonic|Mesoonic]] 05:51, 24 Mar 2005 (EST)
--[[User:Mesoonic|Mesoonic]] 05:51, 24 Mar 2005 (EST)
;:'''Description'''
;:'''Description'''
;When uou select an NPC who offers a quest, you use this function
;When you select an NPC who offers a quest, you use this function
;to obtain the quest name even before it is accepted
;to obtain the quest name even before it is accepted
;:'''Example'''
;:'''Example'''

Revision as of 16:48, 15 September 2005

--Mesoonic 05:51, 24 Mar 2005 (EST)

Description
When you select an NPC who offers a quest, you use this function
to obtain the quest name even before it is accepted
Example
function MesoonicUI_OnLoad()
this
RegisterEvent("QUEST_DETAIL")
end
function MesoonicUI_OnEvent()
if (event == "QUEST_DETAIL") then
MesoonicUI_DisplayQuestName()
end
end
function MesoonicUI_DisplayQuestName()
DEFAULT_CHAT_FRAME
AddMessage(GetTitleText())
end