WoW:API GetTitleText: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API GetTitleText to API GetTitleText without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
;:'''Description''' | ;:'''Description''' | ||
;When | ;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''' | ||
| Line 16: | Line 16: | ||
;:DEFAULT_CHAT_FRAME:AddMessage(GetTitleText()) | ;:DEFAULT_CHAT_FRAME:AddMessage(GetTitleText()) | ||
;end | ;end | ||
Latest revision as of 04:46, 15 August 2023
← WoW API < GetTitleText
- 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