Page 1 of 1

Quest Menu WIndow

Posted: Tue Jan 16, 2018 4:41 pm
by CPL_Buddha
Hello,

So the quest log menu is giving me fits. I have 3 questions on it:

1. Where do I change the key used to activate the quest menu window. On the feature demo I used tab for the menu key. It pulls the quest log window up but the escape key still does the same. I want to reserve the escape key for my menu.

2. How do I completely disable the quest log menu window. So if I just want to use the quest tracker. I disabled the Generic Unity UI Quest Log Window. Yet escape still pulls it up.

3. Where do I edit the fonts, color etc. I was able to edit the quest log itself(so when I select Quest Log) but the menu itself remains unchanged.

Thanks in advance.

Re: Quest Menu WIndow

Posted: Tue Jan 16, 2018 6:36 pm
by Tony Li
Hi,
CPL_Buddha wrote: Tue Jan 16, 2018 4:41 pm1. Where do I change the key used to activate the quest menu window. On the feature demo I used tab for the menu key. It pulls the quest log window up but the escape key still does the same. I want to reserve the escape key for my menu.
I think you're talking about the FeatureDemo script, which was really just written to provide a basic main menu in the demo scenes. You don't have to use this script, and in fact I'd recommend against using it in a real game, although it's handy to get a prototype up and running quickly.

In the demo scenes (for example, Examples / Unity UI Examples / Generic UI Example Scene), there are three quest-related UIs:
  • FeatureDemo: Provides a quick-and-dirty main menu with a "Quest Log" button that opens the quest log window.
  • Dialogue Manager > Canvas > Generic Unity UI Quest Log Window: The actual quest log window.
  • Dialogue Manager > Canvas > Generic Unity UI Quest Tracker HUD: The quest tracker HUD in the upper right.
The quest log window doesn't have a key binding by default. You can open it by calling its Open() method (e.g., in a menu button's OnClick() event, or in a script just like FeatureDemo.cs does) or by adding a Quest Log Window Hotkey component.

If you want the Tab key to open the quest log window, try these steps:

1. (Optional:) Remove the FeatureDemo script.

2. Add a Quest Log Window Hotkey component to the Generic Unity UI Quest Log Window. Set the Key to Tab.

3. Generic Unity UI Quest Log Window has a Close Button in its hierarchy. This button has a UI Button Key Trigger component. Inspect the button, and change the Key to Tab. This way, the Tab key will toggle the quest log window on and off.
CPL_Buddha wrote: Tue Jan 16, 2018 4:41 pm2. How do I completely disable the quest log menu window. So if I just want to use the quest tracker. I disabled the Generic Unity UI Quest Log Window. Yet escape still pulls it up.
Assuming you're talking about the FeatureDemo script's main menu, you can just remove the FeatureDemo script from your scene.
CPL_Buddha wrote: Tue Jan 16, 2018 4:41 pm3. Where do I edit the fonts, color etc. I was able to edit the quest log itself(so when I select Quest Log) but the menu itself remains unchanged.
If you decide to keep the FeatureDemo script in your scene, its main menu uses the legacy OnGUI system. To change its appearance, you'll need to create/modify a GUI Skin and assign it to the script. In the example scenes, a GUI Skin named "Wheel2 Dialogue GUI Skin" is assigned.