Page 1 of 1

Default journal UI keycode

Posted: Mon Jan 24, 2022 7:10 am
by mroshaw
I'm really lowering the bar with this question, but my brain is fried! Is there configuration or a default in one of the QM components that shows the journal UI? Or should I code something myself?

I'm so sorry for such a basic, dumb question! :lol:

Re: Default journal UI keycode

Posted: Mon Jan 24, 2022 8:46 am
by Tony Li
Hi,

You can add a UI Button to your scene, add a Quest Journal Button component to it, and configure the Button's OnClick() UnityEvent to call QuestJournalButton.ToggleJournalUI or ShowJournalUI.

If you want to map a key or other input as a hotkey, add a UI Button Key Trigger to it.

Re: Default journal UI keycode

Posted: Mon Jan 24, 2022 6:01 pm
by mroshaw
Got it. Thanks again Tony! I wanted to check, as you've included everything else (including the kitchen sink)! :)

Re: Default journal UI keycode

Posted: Mon Jan 24, 2022 8:23 pm
by Tony Li
Glad to help! You can also show/toggle the journal UI by calling the QuestJournal component's QuestJournal.ToggleJournal() or ShowJournalUI() methods.