Modifying Quest Entry display style based on entry state

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ohheymatt
Posts: 6
Joined: Fri Jul 01, 2022 4:14 pm

Modifying Quest Entry display style based on entry state

Post 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!
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Modifying Quest Entry display style based on entry state

Post 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.
ohheymatt
Posts: 6
Joined: Fri Jul 01, 2022 4:14 pm

Re: Modifying Quest Entry display style based on entry state

Post 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!
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Modifying Quest Entry display style based on entry state

Post by Tony Li »

Thanks for mentioning the container. I intended to mention it and totally forgot. :oops: Glad you got it all figured out.
Post Reply