Closed Arnklit closed 11 months ago
try like this: DebugMenu.get_node("DebugMenu").style = DebugMenu.get_node("DebugMenu").Style.VISIBLE_COMPACT
Thanks for the report! Consolidating in https://github.com/godot-extended-libraries/godot-debug-menu/issues/15, which was fixed by https://github.com/godot-extended-libraries/godot-debug-menu/pull/16 but isn't present in a tagged release yet.
The addon is working well with the F3 shortcut, but I tried to make an on screen button to toggle it but calling the DebugMenu.style is for some reason causing the "Invalid get index 'style' (on base: 'CanvasLayer')" error.
The singleton is loaded and everything seems to be working, so why it's retuning a CanvasLayer instead of a script instance is beyond me.
Using Godot 4.1.2.stable. I'll update if I figure out what causes it.