Merge pull request #14455 from RayKoopa/remove_layer_flyout_label
Remove physics / render layer flyout label.
This commit is contained in:
commit
45f7fc46f8
1 changed files with 1 additions and 10 deletions
|
@ -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 a new issue