Page 1 of 1
two minor issues
Posted: Fri Mar 08, 2019 5:47 pm
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
Re: two minor issues
Posted: Fri Mar 08, 2019 6:48 pm
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":
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:
(
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.
Re: two minor issues
Posted: Fri Mar 08, 2019 7:41 pm
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.
Re: two minor issues
Posted: Fri Mar 08, 2019 8:17 pm
by Tony Li
Glad to help!