X Tutup
Skip to content

Add System and Trade Route Bookmark Interface#6154

Merged
sturnclaw merged 11 commits intopioneerspacesim:masterfrom
sturnclaw:system-bookmarks
Jun 12, 2025
Merged

Add System and Trade Route Bookmark Interface#6154
sturnclaw merged 11 commits intopioneerspacesim:masterfrom
sturnclaw:system-bookmarks

Conversation

@sturnclaw
Copy link
Member

Surprisingly, we don't have a feature request for this one.

This PR extends the work done recently on the SectorMap interface to add a new Bookmarks tab, allowing the player to bookmark interesting systems, add custom notes to their bookmarks, and bookmark trade routes between systems (with a Trade Computer installed).

(Pardon the missing cursor in these screenshots...)

Screenshot From 2025-06-10 18-05-42

Screenshot From 2025-06-10 18-08-13

Screenshot From 2025-06-10 18-05-32

This PR has been somewhat extensively tested to ensure it works correctly during hyperspace, etc. but more testing is as always appreciated. I intend to merge this sometime in the next few days unless I receive significant review feedback.

sturnclaw added 11 commits June 10, 2025 17:23
…ffset

- GlyphButton is used to draw icons. It should not attempt to align with other text, as it does not render text.
- ui.textEllipsis() clips text and renders an ellipsis when the text runs out of the available content region.
- ui.alignToLineHeight() now takes a proportion parameter, which controls the vertical position of the aligned text.
- ui.sameLine can take a negative pos_x parameter, which is interpreted as an offset from the right-side content region edge. The spacing) parameter is also interpreted as an offset from the right edge in this mode.
- These styles are meant to encapsulate common push/pop operations used to achieve a consistent look and feel across the UI.
- Technically these could be part of the theme, however they operate on the level of semantic color names and as such are theme-invariant.
- Supports setting size and centered position via parameters on the window object.
- Can apply an optional style when rendering.
- Prevent errors during the modal render function from cascading up the stack.
- Allows UI.Module objects to be used transparently as sidebar modules by calling their update() function before rendering.
- Handle an exclusive module being default-active (e.g. after a hot-reload.
- Update type information for UI.Sidebar.Module to include default-active state.
- Bookmarked systems are displayed in a new sidebar tab on the sector map.
- Custom notes can be associated with bookmarks.
- Systems as well as individual bodies in those systems can be bookmarked.
- Support for displaying trade-route bookmarks is also provided, though the system-econ-view has not yet been updated.
- With the deprecation of the color argument to Imgui::Image, our old icon rendering was affected.
- Available with trade computer installed, for all commodities that aren't illegal in both the source and destination systems.
- That's it.
@sturnclaw sturnclaw merged commit 091c2d5 into pioneerspacesim:master Jun 12, 2025
4 checks passed
@sturnclaw sturnclaw deleted the system-bookmarks branch June 12, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup