Page 2 of 3

Re: Problem with the scrollview

Posted: Fri Dec 15, 2017 8:53 am
by Tony Li
Happy to help! Have a good day!

Re: Problem with the scrollview

Posted: Thu Feb 22, 2018 5:54 am
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

Re: Problem with the scrollview

Posted: Thu Feb 22, 2018 11:01 am
by Tony Li
I'll investigate this and reply back here later today.

Re: Problem with the scrollview

Posted: Thu Feb 22, 2018 9:16 pm
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.

Re: Problem with the scrollview

Posted: Fri Feb 23, 2018 1:18 am
by hapciupalit
Thank you very much, I'll give it a try in a few hours, but I'm sure it will work.

Re: Problem with the scrollview

Posted: Fri Feb 23, 2018 4:27 am
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

Re: Problem with the scrollview

Posted: Fri Feb 23, 2018 8:19 am
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.

Re: Problem with the scrollview

Posted: Fri Feb 23, 2018 10:34 am
by hapciupalit
Thanks a lot Tony.
Have a nice day

Re: Problem with the scrollview

Posted: Fri Feb 23, 2018 10:57 am
by Tony Li
Glad to help!

Re: Problem with the scrollview

Posted: Thu Mar 01, 2018 5:23 am
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