[SOLVED] Quest Icon

Announcements, support questions, and discussion for Quest Machine.
Post Reply
mschoenhals
Posts: 118
Joined: Thu Dec 19, 2019 7:38 am

[SOLVED] Quest Icon

Post by mschoenhals »

Hi,
I see in the demo that a quest icon can appear next to a quest. However, when I enter a Icon in the Quest Info panel, it doesn't appear in the journal. How do I activate the quest icon?
Thanks in advance.
Last edited by mschoenhals on Wed Feb 26, 2020 8:38 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Icon

Post by Tony Li »

Hi,

Which quest icon are you referring to?

For the journal, you may need to add an Icon Quest Content element to the quest's Journal Text. I'll be able to provide more details when I know which icon you're referring to.
mschoenhals
Posts: 118
Joined: Thu Dec 19, 2019 7:38 am

Re: Quest Icon

Post by mschoenhals »

When the quest offer is made (from Quest Giver). Is that possible?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Icon

Post by Tony Li »

Hi,

There are 2 ways you can do this without scripting:

1. If you want to show the icon in the journal UI's quest details section, inspect the quest's main info. In States > Active > Journal Text, add an Icon. (In the example journal UI, the quest details section is on the right side.)

(Disregard: 2. If you want to show the icon in the quest selection section (the left side) without scripting, you'll need to add it to the quest title as a TextMesh Pro <sprite> tag. Then you can unassign the icon from the quest's icon field. In the next version, I'll add an option to show the quest's icon in the quest selection section.)
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Icon

Post by Tony Li »

Sorry, I totally forgot that this has been a feature since version 1.0. Chalk it up to a pre-morning-coffee answer. :oops:

The journal UI's Active Quest Name Template and Completed Quest Name Template GameObjects have an Icon field:

iconUI.png
iconUI.png (11.03 KiB) Viewed 613 times

The example journal UI that ships with Quest Machine simply doesn't have a UI Image assigned to it. If you assign one, it will show the quest's icon.
Post Reply