From bc7dc71ea4bfe66c1b9ac82d0b74381d34112261 Mon Sep 17 00:00:00 2001 From: Daniele Bartolini Date: Fri, 16 Jan 2026 18:50:41 +0100 Subject: [PATCH 1/2] tools: add tooltips to SpriteImportDialog --- tools/resource/sprite_resource.vala | 34 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/tools/resource/sprite_resource.vala b/tools/resource/sprite_resource.vala index d77909aec..013daa564 100644 --- a/tools/resource/sprite_resource.vala +++ b/tools/resource/sprite_resource.vala @@ -337,24 +337,24 @@ public class SpriteImportDialog : Gtk.Window // Slices. PropertyGrid cv; cv = new PropertyGrid(); - cv.add_row("Name", _unit_name); + cv.add_row("Name", _unit_name, "Name of the imported unit."); sprite_set.add_property_grid(cv, "Unit"); cv = new PropertyGrid(); - cv.add_row("Resolution", resolution); - cv.add_row("Cells", cells); - cv.add_row("Auto Size", cell_wh_auto); - cv.add_row("Cell", cell); - cv.add_row("Offset", offset); - cv.add_row("Spacing", spacing); - cv.add_row("Pivot", pivot); - cv.add_row("Collision", collision_enabled); + cv.add_row("Resolution", resolution, "Resolution of the source image."); + cv.add_row("Cells", cells, "Split the image into X columns and Y rows."); + cv.add_row("Auto Size", cell_wh_auto, "Compute the cell size automatically."); + cv.add_row("Cell", cell, "Size of each cell."); + cv.add_row("Offset", offset, "Starting offset of the cells."); + cv.add_row("Spacing", spacing, "Spacing between the cells."); + cv.add_row("Pivot", pivot, "Origin of the sprite."); + cv.add_row("Collision", collision_enabled, "Enable collision detection."); sprite_set.add_property_grid(cv, "Image"); // Sprite Renderer. cv = new PropertyGrid(); - cv.add_row("Layer", layer); - cv.add_row("Depth", depth); + cv.add_row("Layer", layer, "Sorting layer. Higher values makes the sprite appear in front."); + cv.add_row("Depth", depth, "Higher values make the sprite apper in front of other sprites in the same layer."); sprite_set.add_property_grid(cv, "Sprite Renderer"); // Collider. @@ -387,9 +387,9 @@ public class SpriteImportDialog : Gtk.Window cv = new PropertyGrid(); cv.row_homogeneous = false; - cv.add_row("Shape Type", shape_switcher); - cv.add_row("Mirror Cell", mirror_cell); - cv.add_row("Shape Data", shape); + cv.add_row("Shape Type", shape_switcher, "Shape to use as collider."); + cv.add_row("Mirror Cell", mirror_cell, "Compute the shape size based on the cell size."); + cv.add_row("Shape Data", shape, "Set the shape size manually."); sprite_set.add_property_grid(cv, "Collider"); mirror_cell.toggled.connect(() => { @@ -401,9 +401,9 @@ public class SpriteImportDialog : Gtk.Window // Actor. cv = new PropertyGrid(); - cv.add_row("Class", actor_class); - cv.add_row("Mass", mass); - cv.add_row("Lock Rotation", lock_rotation_z); + cv.add_row("Class", actor_class, "Actor class."); + cv.add_row("Mass", mass, "Actor physical mass."); + cv.add_row("Lock Rotation", lock_rotation_z, "Prevent the actor from rotating around the Z axis."); sprite_set.add_property_grid(cv, "Actor"); _previous_frame = new Gtk.Button.from_icon_name("go-previous-symbolic", Gtk.IconSize.LARGE_TOOLBAR); From 05fd8781de5e77ab24265bdc92772f79d1d526b9 Mon Sep 17 00:00:00 2001 From: Daniele Bartolini Date: Fri, 16 Jan 2026 19:03:06 +0100 Subject: [PATCH 2/2] tools: add tooltips to PreferencesDialog --- tools/level_editor/preferences_dialog.vala | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tools/level_editor/preferences_dialog.vala b/tools/level_editor/preferences_dialog.vala index d896f84c7..9c0ea6ec8 100644 --- a/tools/level_editor/preferences_dialog.vala +++ b/tools/level_editor/preferences_dialog.vala @@ -73,16 +73,16 @@ public class PreferencesDialog : Gtk.Window PropertyGrid cv; cv = new PropertyGrid(); cv.column_homogeneous = true; - cv.add_row("Grid", _grid_color_button); - cv.add_row("Grid (Disabled)", _grid_disabled_color_button); + cv.add_row("Grid", _grid_color_button, "Color of the grid."); + cv.add_row("Grid (Disabled)", _grid_disabled_color_button, "Color of the grid when disabled."); _document_set.add_property_grid(cv, "Grid"); cv = new PropertyGrid(); cv.column_homogeneous = true; - cv.add_row("X Axis", _axis_x_color_button); - cv.add_row("Y Axis", _axis_y_color_button); - cv.add_row("Z Axis", _axis_z_color_button); - cv.add_row("Selected", _axis_selected_color_button); + cv.add_row("X Axis", _axis_x_color_button, "Color of the X axis."); + cv.add_row("Y Axis", _axis_y_color_button, "Color of the Y axis."); + cv.add_row("Z Axis", _axis_z_color_button, "Color of the Z axis."); + cv.add_row("Selected", _axis_selected_color_button, "Color of any axes when selected."); _document_set.add_property_grid(cv, "Axes"); _gizmo_size_spin_button = new InputDouble(85, 10, 200); @@ -99,12 +99,12 @@ public class PreferencesDialog : Gtk.Window cv = new PropertyGrid(); cv.column_homogeneous = true; - cv.add_row("Size", _gizmo_size_spin_button); + cv.add_row("Size", _gizmo_size_spin_button, "Size of the gizmos in pixels."); _document_set.add_property_grid(cv, "Gizmo"); cv = new PropertyGrid(); cv.column_homogeneous = true; - cv.add_row("Theme", _theme_combo); + cv.add_row("Theme", _theme_combo, "Theme variant."); _document_set.add_property_grid(cv, "UI"); // Level page. @@ -113,7 +113,7 @@ public class PreferencesDialog : Gtk.Window cv = new PropertyGrid(); cv.column_homogeneous = true; - cv.add_row("Autosave (mins)", _level_autosave_spin_button); + cv.add_row("Autosave (mins)", _level_autosave_spin_button, "Automatically save the currently open level."); _viewport_set.add_property_grid(cv, "Level"); // Memory and limits page. @@ -124,10 +124,10 @@ public class PreferencesDialog : Gtk.Window cv = new PropertyGrid(); cv.column_homogeneous = true; - cv.add_row("Undo/Redo max size (MiB)", _undo_redo_max_size); - cv.add_row("Delete logs older than (days)", _log_delete_after_days); - cv.add_row("Console max lines", _console_max_lines); - cv.add_row("Thumbnail cache max size (MiB)", _thumbnail_cache_max_size); + cv.add_row("Undo/Redo max size (MiB)", _undo_redo_max_size, "Maximum size allowed for the undo system."); + cv.add_row("Delete logs older than (days)", _log_delete_after_days, "Delete logs older than this days old when the application starts."); + cv.add_row("Console max lines", _console_max_lines, "Maximum number of lines shown by the console."); + cv.add_row("Thumbnail cache max size (MiB)", _thumbnail_cache_max_size, "Maximum size allowed (on RAM) for the thumbnail cache."); _system_set.add_property_grid(cv, "Memory and Limits"); // External tools page. @@ -136,8 +136,8 @@ public class PreferencesDialog : Gtk.Window cv = new PropertyGrid(); cv.column_homogeneous = true; - cv.add_row("External Lua editor", _lua_external_tool_button); - cv.add_row("External image editor", _image_external_tool_button); + cv.add_row("External Lua editor", _lua_external_tool_button, "Program to use for opening Lua files."); + cv.add_row("External image editor", _image_external_tool_button, "Program to use for opening images."); _external_tools_set.add_property_grid(cv, "External Editors"); // Add pages.