Skip to content

Commit 9ad7f55

Browse files
committed
Merge pull request #102760 from Giganzo/csg-toolbar-tooltips
Add tooltip text to Polygon3DEditor buttons
2 parents 78f1918 + 030d63e commit 9ad7f55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/plugins/polygon_3d_editor_plugin.cpp

Lines changed: 2 additions & 0 deletions
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(TTRC("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(TTRC("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)