Default journal UI keycode

Announcements, support questions, and discussion for Quest Machine.
Post Reply
mroshaw
Posts: 96
Joined: Wed Jan 19, 2022 4:10 am

Default journal UI keycode

Post 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:
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Default journal UI keycode

Post 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.
mroshaw
Posts: 96
Joined: Wed Jan 19, 2022 4:10 am

Re: Default journal UI keycode

Post by mroshaw »

Got it. Thanks again Tony! I wanted to check, as you've included everything else (including the kitchen sink)! :)
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: Default journal UI keycode

Post 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.
Post Reply