mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
Remove layer flyout label.
This commit is contained in:
parent
20a566d63a
commit
cae50c7f1d
@ -430,24 +430,19 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
|
||||
|
||||
} else if (hint == PROPERTY_HINT_LAYERS_2D_PHYSICS || hint == PROPERTY_HINT_LAYERS_2D_RENDER || hint == PROPERTY_HINT_LAYERS_3D_PHYSICS || hint == PROPERTY_HINT_LAYERS_3D_RENDER) {
|
||||
|
||||
String title;
|
||||
String basename;
|
||||
switch (hint) {
|
||||
case PROPERTY_HINT_LAYERS_2D_RENDER:
|
||||
basename = "layer_names/2d_render";
|
||||
title = "2D Render Layers";
|
||||
break;
|
||||
case PROPERTY_HINT_LAYERS_2D_PHYSICS:
|
||||
basename = "layer_names/2d_physics";
|
||||
title = "2D Physics Layers";
|
||||
break;
|
||||
case PROPERTY_HINT_LAYERS_3D_RENDER:
|
||||
basename = "layer_names/3d_render";
|
||||
title = "3D Render Layers";
|
||||
break;
|
||||
case PROPERTY_HINT_LAYERS_3D_PHYSICS:
|
||||
basename = "layer_names/3d_physics";
|
||||
title = "3D Physics Layers";
|
||||
break;
|
||||
}
|
||||
|
||||
@ -469,11 +464,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
|
||||
|
||||
show();
|
||||
|
||||
value_label[0]->set_text(title);
|
||||
value_label[0]->show();
|
||||
value_label[0]->set_position(Vector2(4, 4) * EDSCALE);
|
||||
|
||||
checks20gc->set_position(Vector2(4, 4) * EDSCALE + Vector2(0, value_label[0]->get_size().height + 4 * EDSCALE));
|
||||
checks20gc->set_position(Vector2(4, 4) * EDSCALE);
|
||||
checks20gc->set_size(checks20gc->get_minimum_size());
|
||||
|
||||
set_size(Vector2(4, 4) * EDSCALE + checks20gc->get_position() + checks20gc->get_size());
|
||||
|
Loading…
Reference in New Issue
Block a user