I am having a hard time understanding widgets. My team tasked me to look at UI for our little game we are making. They gave me a task where I have to hide 3 button widgets when pressing another button widget. These button widgets are all a part of one widget called “TestWidget”. The TestWidget is added to the viewport when launching the game. You can see one button in the corner and three buttons next to it. The button in the corner is supposed to hide these three buttons and show them when pressing it again. I am trying to figure out how to do this through blueprints. The corner button widget doesn’t have any logic in itself, but it has a button component. The same goes for the three others. Is there a way how I could make the corner button communicate with the TestWidget to hide and show the three other button widgets according to the input?
If I understood my assignment correctly, I should implement all logic in the TestWidget event graph. That to me, sounds quite tricky, if not impossible. Am I required to put logic into the button component inside the button widget to hide/show other widgets (for instance calling for a custom event inside TestWidget)?
I am now trying to hide the buttons by interacting with anything else but the button. Much like what a lot of mobile games have, for example by having a “Close” button, but instead of pressing that, pressing just anywhere on the screen would hide the pop-up. How could I go about that?