Unity UI quest entries?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Unity UI quest entries?

Post by Arcanor »

How are quest entries intended to be used with the new Unity UI? I see that the documentation for the legacy Unity GUI shows variables for GUI Styles for each of the quest entry statuses, but how can I do that using the new UnityUIQuestLogWindow? Is this a feature that you decided to drop, and so I will need to create a custom subclass?

As it stands, I can get my quest entries to show in the quest log and HUD, but they all look the same no matter what the Entry_1_Status is set to. I'd like to be able to use an alternate coloring/font/size/bold/italic or something depending on the state of each entry, in both the quest Log and the HUD.
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
User avatar
Tony Li
Posts: 21634
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity UI quest entries?

Post by Tony Li »

Just my poor artistic judgment. Fortunately I know how to program, so I'm not entirely useless. :-)

I had thought that a single style would look best, but I definitely see your point that different styles for each state would be useful. While I'm fixing the other issue, I'll also add this capability. To give you the most flexibility, I'll add fields for Success Entry Description and Failure Entry Description. When an entry is in the success state, it will use the Success Entry Description and hide the Entry Description and Failure Entry Description.

I'll also do the same for the overall quest description field.
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Re: Unity UI quest entries?

Post by Arcanor »

Fantastic, thanks again Tony! Useless? Not hardly!
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
User avatar
Tony Li
Posts: 21634
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unity UI quest entries?

Post by Tony Li »

I'm running behind on some final touches on Makinom integration, so I released 1.5.6-beta1 for customers who are waiting for updates to the core system. You can download it from the customer download page. Unity UI quest log windows and quest tracker HUDs now support different styles for success and failure states. There are example prefabs in Prefabs/Unity UI Prefabs/Generic. The names end in "...Styled".
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

Re: Unity UI quest entries?

Post by Arcanor »

Thanks so much Tony. I'll let you know if I have any problems with the beta.
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
Post Reply