Page 1 of 1

Quest Journal UI Icon for Spawned Player

Posted: Tue Mar 26, 2019 10:37 pm
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

Re: Quest Journal UI Icon for Spawned Player

Posted: Wed Mar 27, 2019 9:50 am
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.

Re: Quest Journal UI Icon for Spawned Player

Posted: Wed Mar 27, 2019 10:38 pm
by nathanj
Thanks, tony

Re: Quest Journal UI Icon for Spawned Player

Posted: Wed Mar 27, 2019 11:01 pm
by Tony Li
Glad to help. Thanks for catching the bug!