Page 1 of 1

[SOLVED] Quest Icon

Posted: Sun Feb 23, 2020 10:10 am
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.

Re: Quest Icon

Posted: Sun Feb 23, 2020 10:30 am
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.

Re: Quest Icon

Posted: Sun Feb 23, 2020 7:22 pm
by mschoenhals
When the quest offer is made (from Quest Giver). Is that possible?

Re: Quest Icon

Posted: Sun Feb 23, 2020 7:46 pm
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.)

Re: Quest Icon

Posted: Mon Feb 24, 2020 8:13 pm
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 617 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.