mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add tooltip for StyleBoxPreview grid button
This commit is contained in:
parent
93d2706930
commit
77df31bc12
1 changed files with 1 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ StyleBoxPreview::StyleBoxPreview() {
|
|||
grid_preview = memnew(Button);
|
||||
// This theme variation works better than the normal theme because there's no focus highlight.
|
||||
grid_preview->set_theme_type_variation("PreviewLightButton");
|
||||
grid_preview->set_tooltip_text(TTRC("Toggle margins preview grid."));
|
||||
grid_preview->set_toggle_mode(true);
|
||||
grid_preview->connect(SceneStringName(toggled), callable_mp(this, &StyleBoxPreview::_grid_preview_toggled));
|
||||
grid_preview->set_pressed(grid_preview_enabled);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue