When using the common activatable widget stack in common UI, I am getting problems when pushing and removing activatable widgets from the stack. Particularly, I am trying to push a pause menu to the screen.
It seems like when removing or deactivating widgets, they don’t actually fully reset and keep some properties which mess with how the UI works.
The first time I push the activatable widget to the stack, everything works as expected. However if I remove it, and add it again, multiple things break. For example, the first time the menu is pushed, it automatically switches to UI input mode and shows the cursor. The second time this doesn’t happen.
Also, in my pause menu, I have a common activatable widget switcher, and a corresponding common tab list to hold the tab buttons. When pushing the menu for the second time, the buttons that were previously there show up again, in addition to a new set of identical buttons (the old ones don’t work).
My master widget containing the widget stack looks like this:
And here is the pause menu (called context menu in this case):
I have also tried using Construct instead of On Activated, with the same results.
I have verified that the Destruct event is called when removing the pause menu widget.
Here is my hierarchy in the pause menu:
Here is a demonstration:
Any help is appreciated.