Hey, I have a problem with closing a widget (Pause Menu) with the same key i opened it. I wanted to make 2 Options to close it: First one is the Resume Button which is working great and then theres pressing the same key again and this is not working
ResumeButton:
Open/Close Blueprint:
Does it do anything when the button is pressed? It may be as simple as selecting the input action event you have and going to the datils panel to enable it to work when game is paused (i dont remember the exact wording but it will be something like execute on paused. It should be near the top)
And no it doesnt go to the True Part of the Branch no matter what i press.
Norishou
(Norishou)
April 29, 2018, 7:44am
5
It is because if you have a blueprint this gets paused and if you press the key it doesnt do anything because it is paused.
And how can i unpause it?
Norishou
(Norishou)
April 29, 2018, 11:47am
7
Only if you press on the key event and check the box execute when paused.
The Input Mode needs to be Ui and Game
Norishou
(Norishou)
April 29, 2018, 1:33pm
8
But if you close it with a button in a widget the flipflop tries to close it again when you press it.
Joanis
(Joanis)
April 29, 2018, 1:09pm
9
Did you fix it? or still searching for a solution?
Joanis
(Joanis)
April 29, 2018, 1:14pm
10
If you want to Open and Close a widget using the same button, all you need to do is just put a Flip Flop, atleast that’s how i do it.
Correct, once pressed = open the widget, press it again = close it…and so on.
Joanis
(Joanis)
April 29, 2018, 1:39pm
12
What you want is when you click a button some widget to popup, and when you press it again to close and go so on? Right?
Norishou
(Norishou)
April 29, 2018, 2:05pm
15
Bit wants also a Button in the Widget to close it
Norishou
(Norishou)
April 29, 2018, 2:22pm
17
Yes Look at the Pictures at the top.
Joanis
(Joanis)
April 29, 2018, 2:37pm
18
But it works, doesen’t it?
Norishou
(Norishou)
April 29, 2018, 2:53pm
19
This works but the key event doesnt work because he probably didnt check the box or did change the Input Mode
Well there are still problems:
With a FlipFlop you have to press The button 2 times after you close it (with my current Resume Button)
Its still not working
But thanks for your help, I didnt noticed that someone answered this post so Im a little bit late