Godot Version
4.5
Question
I have a menu comprised of PanelContainers. The theme of the PanelContainer has the background set to slightly transparent:
However, when opening the menu, the background seems to double on itself, making itself less transparent. Not only that, but the second transparent layer is on the top, covering my texture button pointers (but not the buttons themselves). When you do any action in the menu (pressing any button), the second layer goes away.
The code for opening the menu only does this:
func show_menu() -> void:
get_tree().paused = true
self.visible = true
item_button.grab_focus()
I really don’t know what the issue might be here, since it was working properly before, but now it’s broken for some reason.
Are you items dynamically loaded, is there a chance you left a Test Panel on one of them?
1 Like
The items are dynamically loaded, but the item panel doesn’t experience the same issue. The item panel opens up separately after you press on the item button. The issue itself is with the panel that holds the item button and the stat button.
After some more testing, I did figure out that it apparently opens two panels that hold the item and stat buttons, but I have no idea why, because there is only one of them in my scene tree, and I don’t create them through code.
Try running running the scene and make the error happen then click back in to the editor while the game is running and click the remote button that would then be available, then find the second panel in the remote node tree. it will help you find where its coming from so you can back track how to get rid of it
1 Like
Thank you, I realized what the problem is! I set the menu scene to global, so it opened up twice when I opened the menu scene itself for testing. Thanks 
1 Like