feat: modules moved and engine moved to submodule

This commit is contained in:
Jan van der Weide 2025-04-12 18:40:44 +02:00
parent dfb5e645cd
commit c33d2130cc
5136 changed files with 225275 additions and 64485 deletions

View file

@ -586,6 +586,8 @@ Sprite2DEditor::Sprite2DEditor() {
CanvasItemEditor::get_singleton()->add_control_to_menu_panel(options);
options->set_text(TTR("Sprite2D"));
options->set_flat(false);
options->set_theme_type_variation("FlatMenuButton");
options->get_popup()->add_item(TTR("Convert to MeshInstance2D"), MENU_OPTION_CONVERT_TO_MESH_2D);
options->get_popup()->add_item(TTR("Convert to Polygon2D"), MENU_OPTION_CONVERT_TO_POLYGON_2D);
@ -633,6 +635,7 @@ Sprite2DEditor::Sprite2DEditor() {
simplification->set_max(10.00);
simplification->set_step(0.01);
simplification->set_value(2);
simplification->set_accessibility_name(TTRC("Simplification"));
hb->add_child(simplification);
hb->add_spacer();
hb->add_child(memnew(Label(TTR("Shrink (Pixels):"))));
@ -641,6 +644,7 @@ Sprite2DEditor::Sprite2DEditor() {
shrink_pixels->set_max(10);
shrink_pixels->set_step(1);
shrink_pixels->set_value(0);
shrink_pixels->set_accessibility_name(TTRC("Shrink"));
hb->add_child(shrink_pixels);
hb->add_spacer();
hb->add_child(memnew(Label(TTR("Grow (Pixels):"))));
@ -649,6 +653,7 @@ Sprite2DEditor::Sprite2DEditor() {
grow_pixels->set_max(10);
grow_pixels->set_step(1);
grow_pixels->set_value(2);
grow_pixels->set_accessibility_name(TTRC("Grow"));
hb->add_child(grow_pixels);
hb->add_spacer();
update_preview = memnew(Button);
@ -684,6 +689,3 @@ Sprite2DEditorPlugin::Sprite2DEditorPlugin() {
//sprite_editor->options->hide();
}
Sprite2DEditorPlugin::~Sprite2DEditorPlugin() {
}