Godot Version
4.4.1
Question
Less of a bug or “how do I fix this”, since the fix is rather obvious (just explicitely name the class, ie “LinedChildrenContainer” in this case), but I would like to understand why it happens
The class is being properly reconized and shows up when editing other codes. It’s extending Container, and is a custom container
Even when I explicitely set the node as being a LinedChildrenContainer (rather than instancing a generic Container and giving it the LinedChildrenContainer) it doesn’t work
Code as is:
get_theme_stylebox("panel", "LinedChildrenContainer")
How it should work, if it recognized my custom class corectly and I am not misunderstanding code:
get_theme_stylebox("panel")
Full function for reference:
func _draw() -> void: get_theme_stylebox("panel", "LinedChildrenContainer").draw(get_canvas_item(), Rect2(Vector2(), size))