Problem with the scrollview

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with the scrollview

Post by Tony Li »

Happy to help! Have a good day!
hapciupalit
Posts: 24
Joined: Tue Nov 28, 2017 10:04 am

Re: Problem with the scrollview

Post by hapciupalit »

I got stuck again. I'm trying to integrate this quest menu with the adventure creator. I created a new menu with AC and then whenever I try to open it the alpha on the canvas groups are on 0. So the first thing to do it was creating a script that would call Open() on the TwoPanelQuestLogWindow object. Now I got the canvas group alpha on 1, but the "Quest Log Window Main Panel" it's still disabled.
Is there any other solution around? I also checked your youtube channel, but could not find any solution

Thank you
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with the scrollview

Post by Tony Li »

I'll investigate this and reply back here later today.
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with the scrollview

Post by Tony Li »

Hi,

This scene is built on top of TwoPanelQuestLogWindow example and Adventure Creator:

TwoPanelQuestLogWindow_AC_Addon_2018-02-22.unitypackage

NOTE: It imports a custom action in Assets / Adventure Creator / Scripts / Actions!

Before playing it, inspect ACExample_ManagerPackage and click "Assign managers".

How it's set up:

1. Moved the quest log window to its own canvas that AC can control.

2. Unticked the quest log window's Pause While Open checkbox. Let AC handle pausing.

3. Set up the menu in AC. Since this is a simple example, I only hooked up the Close button! But I think that's the only button that needs to be hooked up in AC, unless you've added others.

3a. I added a custom AC action and actionlist asset to call the quest log window's Open() method.
The menu's "ActionList when turn on" uses this actionlist asset.

The custom AC action and actionlist are the key. They tell the quest log window to activate its elements, update its content, and play its "show" animation.
hapciupalit
Posts: 24
Joined: Tue Nov 28, 2017 10:04 am

Re: Problem with the scrollview

Post by hapciupalit »

Thank you very much, I'll give it a try in a few hours, but I'm sure it will work.
hapciupalit
Posts: 24
Joined: Tue Nov 28, 2017 10:04 am

Re: Problem with the scrollview

Post by hapciupalit »

I just tested the asset, but the only problem is that if in the MenuTab of AC I check the "Pause game when enabled", I get a black screen instead of the Quest Log, maybe I did something wrong when importing, but could you try to see if in your case it's working?
However in the case I don't check that box it's working.

*I also do not open the Quest Tab from the menu, but from the outside

Thank you
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with the scrollview

Post by Tony Li »

Check the quest log window's Animator component. If the Update Mode is set to Normal, change it to Unscaled Time. This will allow the fade-in animation to play while the game is paused.
hapciupalit
Posts: 24
Joined: Tue Nov 28, 2017 10:04 am

Re: Problem with the scrollview

Post by hapciupalit »

Thanks a lot Tony.
Have a nice day
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with the scrollview

Post by Tony Li »

Glad to help!
hapciupalit
Posts: 24
Joined: Tue Nov 28, 2017 10:04 am

Re: Problem with the scrollview

Post by hapciupalit »

Hey again. Because of the job I didn't had the time to try your suggestion, but the update mode was already set.

Here is a video where you can see my problem, maybe you can understand it better then I do.
https://www.youtube.com/watch?v=X1TZ-9Z ... e=youtu.be

Thank you and sorry for bothering you too much
Post Reply