Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions tools/level_editor/preferences_dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down
34 changes: 17 additions & 17 deletions tools/resource/sprite_resource.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(() => {
Expand All @@ -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);
Expand Down