Hello,
i have several questions about the menu system :
- is it possible to set the "appear type" to manual AND key ? In my case i would like that the player could open the diary ( a custom one, not the AC feature one) at any moment. So the best way is to set appear to "key". But i also would like to open the diary within custscenes. So i should use "manual".. is it possible to have both options available ?
- when the diary is open, the player can enter some text and i would like to run an AC at the same time ( speeches that can help the player ). So i can't pause the game when the diary is open. The only way i found to allow the player to move the mouse inside the diary and click inside is the "constrain" method ( i block left,right, up, down and change the free looking possibility). Is there a more elegant way to achieve my purpose ? ( my game is a 3d with free looking)
- i noticed that when the player have typed some text in the diary, even if the diary is closed, the game continue to record the player actions on keyboard. So the next time the player opens his diary to write something down, the diary is filled with "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzddsssssssszzzzzzzzzzzzz...". Is there a way to disable the text input when the diary is not active ?
- when the player enters a text in the diary, some other menus pop up because they re set to appear on "key" and unfortunately the text of the player contains these keys ( for example if the player type M in his text,
Appart this small issues, i really like the menu system and how flexible it is with the use of the global variables ! thanks a lot !
Comments
- is it possible to set the "appear type" to manual AND key ?
Whenever you need more control over when a Menu is shown, set it to Manual. The On Input Key behaviour can be recreated by defining an Active Input that runs an ActionList, when a key is pressed, that toggles the Menu's display. When you want to manually show it during Cutscenes, you can disable the Active Input using the Input: Toggle active Action. For more on this, see the Manual's "Active Inputs" chapter.- when the diary is open, the player can enter some text and i would like to run an AC at the same time ( speeches that can help the player ).
Both the Player: Constrain and Engine: Manage systems Actions are available methods of disabling "regular gameplay" - which one you use depends on what you want to temporarily disable. If by "more elegant" you mean not needing the player to click on the diary, the input box can be "selected" through scripting if your Menu is rendered with Unity UI:MenuInput myInput = PlayerMenus.GetElementWithName ("MyMenu", "MyInput") as MenuInput;
GameObject myInputObject = myInput.uiInput.gameObject;
KickStarter.playerMenus.SelectUIElement (myInputObject);
- Is there a way to disable the text input when the diary is not active ?
It should be automatic. What are your AC/Unity version numbers, and let's see a screenshot of the Menu's full properties as they appear in the Menu Manager.- when the player enters a text in the diary, some other menus pop up because they re set to appear on "key" and unfortunately the text of the player contains these keys
Again, you can switch to Active Inputs for full control over when/how the game responds to input key pressed. When the diary menu turns on, you can run an ActionList that disables all the other "toggle menu" active inputs.