Creating a new subtitle popup
I made great progress on the custom quest in the quest list. I got all the functions working in the Journal and haven't given up on getting the UI quest tracker to find it. Thought I'd ask a "quick" one in another area.
Looking at http://esodata.uesp.net/current/src/...itles.lua.html, why isn't making a new subtitle as easy as calling: Lua Code:
in the code? What is the "best" way to show a custom NPC subtitle? Should I add a fake NPC conversation to the NPC chat tab? I noticed that ZO_Alert has a nice and tidy: Lua Code:
TIA Again. |
Whenever a NPC is talking, the game fires a EVENT_SHOW_SUBTITLE. The subtitle manager listens to this event and displays the subtitle whenever the event is fired (see line 87 of your linked source).
The subtitle manager displays the subtitle by calling OnShowSubtitle, so I'd call that function: Lua Code:
|
Thanks. Worked perfectly and annoyed me at it's simplicity. ;-)
|
All times are GMT -6. The time now is 01:41 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI