Page 1 of 1
Modifying Quest Entry display style based on entry state
Posted: Sun Jul 10, 2022 8:28 pm
by ohheymatt
I would like to change the appearance of Quest Entries in the Quest Tracker HUD depending on the state of the entry. For example, changing the text color or adding a checkbox. Is there a built-in way to do this or do I need to do some customization? Thanks!
Re: Modifying Quest Entry display style based on entry state
Posted: Sun Jul 10, 2022 9:05 pm
by Tony Li
Hi,
It's built in. Take a look at the Basic Standard Quest Tracker HUD for an example. It has a Quest Track Template with two children: Quest Description and Quest Entry Description, both of which serve as templates. When the tracker HUD updates its display, it instantiates copies of these templates and updates their content for the quest it's showing.
You can create additional children for entries in the success and failure states, and assign them to the Quest Track Template GameObject's Standard UI Quest Track Template component > Alternate Entry Descriptions section.
Re: Modifying Quest Entry display style based on entry state
Posted: Sun Jul 10, 2022 9:55 pm
by ohheymatt
That worked perfectly. Worth noting that I needed to add an Entry Container reference for the StandardUIQuestTracker to actually consider entry states, but that was quite easy. Thanks once again Tony!
Re: Modifying Quest Entry display style based on entry state
Posted: Mon Jul 11, 2022 8:09 am
by Tony Li
Thanks for mentioning the container. I intended to mention it and totally forgot.
Glad you got it all figured out.