Skip to content

Commit 320c587

Browse files
committed
Add tooltip text to Polygon3DEditor buttons
1 parent f418603 commit 320c587

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/plugins/polygon_3d_editor_plugin.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -535,12 +535,14 @@ Polygon3DEditor::Polygon3DEditor() {
535535

536536
button_create = memnew(Button);
537537
button_create->set_theme_type_variation(SceneStringName(FlatButton));
538+
button_create->set_tooltip_text(TTR("Create Polygon"));
538539
add_child(button_create);
539540
button_create->connect(SceneStringName(pressed), callable_mp(this, &Polygon3DEditor::_menu_option).bind(MODE_CREATE));
540541
button_create->set_toggle_mode(true);
541542

542543
button_edit = memnew(Button);
543544
button_edit->set_theme_type_variation(SceneStringName(FlatButton));
545+
button_edit->set_tooltip_text(TTR("Edit Polygon"));
544546
add_child(button_edit);
545547
button_edit->connect(SceneStringName(pressed), callable_mp(this, &Polygon3DEditor::_menu_option).bind(MODE_EDIT));
546548
button_edit->set_toggle_mode(true);

0 commit comments

Comments
 (0)