Quest Journal UI Icon for Spawned Player

Announcements, support questions, and discussion for Quest Machine.
Post Reply
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Quest Journal UI Icon for Spawned Player

Post by nathanj »

Hi Tony

Is there a way to dynamically assign a sprite for the Quest Jounral UI?

We have multiple spawned players the user can choose from and I would like to have the icon for the Quest Jounal UI display a unique image for each player. I could write a little script that when the player it searches for the Sprite component and adds the image but is there anything in the system that does this already? Sorry is I'm missing the obvious.

Thanks
Nathan
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Journal UI Icon for Spawned Player

Post by Tony Li »

That was an oversight. This patch addresses it: QM_1_1_5_Patch20190327.unitypackage

You'll still need a small script that sets the quest journal's image value. Example:

Code: Select all

FindObjectOfType<QuestJournal>().image = /* player's sprite */
There's also a new checkbox "Show Display Name In Heading". If ticked, it will change the text "Quest Journal" to the Quest Journal's Display Name value.
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: Quest Journal UI Icon for Spawned Player

Post by nathanj »

Thanks, tony
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Journal UI Icon for Spawned Player

Post by Tony Li »

Glad to help. Thanks for catching the bug!
Post Reply