Hi everyone.
I’m trying to make a menu who is toggled with a keyboard touch.
I saw some tutos on the web but I can’t find the right way to do that.
I created a bp_game mode, a bp_hud within a bp_widget with 2 buttons: “Resume” and “Quit”. Exactly like in the HUD Example from the market place.
How to toggle it with the keyboard?
I’m sure there’s a way to do that but I can’t find anything…
Can you help me?
Thanks…
Create a second widget and set his design
then add on first widget a button where you call the other one. ( remove self (usual widget) from viewport and add second one to viewport in binded event function )
and do the same but inverted on the second one to come back.
Exactly the same than show first widget and resume but dedicated to differents targets.
Hi Fen,
Sorry, I don’t understand… (but maybe my english level is to poor…)
Here is a screenshot of what I did. I can launch my “Menu1” by pressing the "L’ touch, but I can’t hidden it by pressing the same “L” key.
There isn’t a node (or anything way) that would allow this?
meaning that you have to create widget and variable for each widget but add to viewport only the main on tab event. And remove it on others but add new one.
The upon “begin play” widget is not in the same use so don’t take care about it.
to find "cast to " never use exe wire but value wire (the not white one ^^)
Thanks a lot Fen for the example, i was searching for 2 days how to make my menu disappear with the same key it appeared !
I was missing the “isValid” node and some logic in my BP