Scrolling the text

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Scrolling the text

Post by Kole90 »

Hi Tony.

So I've read through forum posts trying to find exactly what I need, but I just found variations of the thing that I require. I'm trying to implement the scrolling chat of Subsurface Circular game, and I used this example for it:

http://www.pixelcrushers.com/download/5222/

Problem with this version is that PC's answers can also be scrolled up and down, and my idea is to scroll just the conversation between you and the npc, and for available answers to always be visible even when you start scrolling. This seemed like a simple task in the editor but no matter how I tried to unparent the "Response Button Container" and transfer it I could not seem to succeed. At the end I just duplicated the "Scroll Rect" component and deleted the "Conversation Log Panel" from the copy, and from the original disabled "Response Button Container" component but this seems like a bad way to do it. It seems like Dialogue System is accessing all these components through script and changing them in runtime, I think that's why I have trouble rearranging it as I see fit. Sorry for my long rumble but I just wanted to be as detailed as I could of my problem.

Thank you again for your help.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Scrolling the text

Post by Tony Li »

Hi,

I'll put together an example scene and reply back today.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Scrolling the text

Post by Tony Li »

Here's an example scene: SubsurfaceSimilar_2017-11-13.unitypackage

EDIT: Updated example that smooth-scrolls: SubsurfaceSimilar_2018-05-22.unitypackage

It uses the TemplatedConversationLogUI script, which was recently updated to use some new properties in the upcoming version 1.7.7, so you'll need to import the dialogue UI scripts that will be in 1.7.7: DialogueSystem_UnityUI_2017-11-11.unitypackage

(Please download and import both packages.)

The scene is in Dialogue System Examples / Subsurface Similar Example. It looks like this:

Image

The "Murderer" focus button appears at a certain point in the conversation.
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Re: Scrolling the text

Post by Kole90 »

Wow Tony didn't want to make you go through too much trouble, I really appreciate it though! Will check this out as soon as I can and get back to you!

Getting this error when I import the new UI scripts:

Code: Select all

Assets/Dialogue System/Scripts/Supplemental/UI/Dialogue UI/UnityUISubtitleControls.cs(140,30): error CS0506: `PixelCrushers.DialogueSystem.UnityUISubtitleControls.ShowSubtitle(PixelCrushers.DialogueSystem.Subtitle)': cannot override inherited member `PixelCrushers.DialogueSystem.AbstractUISubtitleControls.ShowSubtitle(PixelCrushers.DialogueSystem.Subtitle)' because it is not marked virtual, abstract or override
Though I was on my friends computer and he didn't use Dialogue System for a while, it might be that his version is outdated, will try on my when I come home.
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Scrolling the text

Post by Tony Li »

Hi,

I wonder if your friend may have customized his version of the scripts or something. Anyway, please let me know how it works on your computer. I tested it using version 1.7.6.
User avatar
Kole90
Posts: 43
Joined: Wed Nov 08, 2017 4:51 am

Re: Scrolling the text

Post by Kole90 »

Hey Tony, sorry for such a late response I thought I've responded back... This is working and thank you very much for it. My friend was using Version 1.6.7 of DS when he got the error and he said he did not customize scripts. Hope that will be of any help. ;)

Just one question, I see that you created Quest Tracker HUD object, do I need that for this conversation? Are quests related to this example in any way?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Scrolling the text

Post by Tony Li »

Kole90 wrote: Tue Nov 21, 2017 4:11 amJust one question, I see that you created Quest Tracker HUD object, do I need that for this conversation? Are quests related to this example in any way?
I only included it to provide an example of using the quest tracker HUD. If you don't want to use a quest tracker HUD, you can omit it.
Post Reply