Make MarginContainer available with disable_advanced_gui=yes

Comparatively more advanced GUI nodes such as FlowContainer and
AspectRatioContainer are already available when building with
`disable_advanced_gui=yes`.

This increases binary size by about 8 KB for binaries compiled with
`disable_advanced_gui=yes` (Linux release export template with LTO enabled).
This commit is contained in:
Hugo Locurcio 2023-03-26 20:44:09 +02:00
parent 6ef2f358c7
commit 496a2ee1c7
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -385,6 +385,7 @@ void register_scene_types() {
GDREGISTER_CLASS(FlowContainer); GDREGISTER_CLASS(FlowContainer);
GDREGISTER_CLASS(HFlowContainer); GDREGISTER_CLASS(HFlowContainer);
GDREGISTER_CLASS(VFlowContainer); GDREGISTER_CLASS(VFlowContainer);
GDREGISTER_CLASS(MarginContainer);
OS::get_singleton()->yield(); // may take time to init OS::get_singleton()->yield(); // may take time to init
@ -419,7 +420,6 @@ void register_scene_types() {
GDREGISTER_CLASS(AcceptDialog); GDREGISTER_CLASS(AcceptDialog);
GDREGISTER_CLASS(ConfirmationDialog); GDREGISTER_CLASS(ConfirmationDialog);
GDREGISTER_CLASS(MarginContainer);
GDREGISTER_CLASS(SubViewportContainer); GDREGISTER_CLASS(SubViewportContainer);
GDREGISTER_CLASS(SplitContainer); GDREGISTER_CLASS(SplitContainer);
GDREGISTER_CLASS(HSplitContainer); GDREGISTER_CLASS(HSplitContainer);