two minor issues

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
nivlekius
Posts: 105
Joined: Thu Feb 28, 2019 4:39 pm

two minor issues

Post by nivlekius »

Hello again,

I'll just jump right in. The first issue is I want to be able to hide certain quests in the finished quests section of the journal. I don't want the user to see all of the quests from the tutorial.

Also, when using the hotkey script for opening the journal, the cursor disappears when closing the window. I haven't tried opening it through code yet, although I do know how to do so.

Thanks
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: two minor issues

Post by Tony Li »

Hi,
nivlekius wrote: Fri Mar 08, 2019 5:47 pmThe first issue is I want to be able to hide certain quests in the finished quests section of the journal. I don't want the user to see all of the quests from the tutorial.
Add a Boolean field named "Visible":
Image
Set it false if you want to hide the quest, true if you want to show it.

Set it false when you no longer want the quest to show in the quest log window:
Image
(Quest Fields)
nivlekius wrote: Fri Mar 08, 2019 5:47 pmAlso, when using the hotkey script for opening the journal, the cursor disappears when closing the window. I haven't tried opening it through code yet, although I do know how to do so.
If you have ticked Unlock Cursor While Open, then when the quest log window opens it will record the previous cursor state and then show the cursor. When the quest log window closes, it will restore the previous cursor state.

If it's not behaving this way for you -- perhaps due to some other asset or script in your project -- you can untick this and handle it yourself. The quest log window has OnOpen() and OnClose() events that you can hook into.
nivlekius
Posts: 105
Joined: Thu Feb 28, 2019 4:39 pm

Re: two minor issues

Post by nivlekius »

awesome, thanks a lot. Uhm the cursor thing went away on it's own after I saved the quest journal UI as a prefab, which I hadn't done previously. I'm not sure if that caused that but I'll know what to do if it reappears. Thanks again.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: two minor issues

Post by Tony Li »

Glad to help!
Post Reply