X Tutup
Skip to content

Draw sector map labels with ImGui.#5247

Merged
impaktor merged 1 commit intopioneerspacesim:masterfrom
Gliese852:sectormap-labels
Sep 27, 2021
Merged

Draw sector map labels with ImGui.#5247
impaktor merged 1 commit intopioneerspacesim:masterfrom
Gliese852:sectormap-labels

Conversation

@Gliese852
Copy link
Contributor

Add polymorphic type SectorView::Label, for displaying different types of labels.
Implement two types of labels - for stars and for factions.
Add highlight colors to the theme.

ezgif-6-f06bb82c43b3

Copy link
Member

@sturnclaw sturnclaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes, some major changes. I haven't reviewed absolutely everything, but this should be most of the major change-required areas.

If I had to sum up the entire review in one useless phrase it would be "prefer writing idiomatic code" - use our types and functions, don't nest anonymous structs for namespacing (and as I write that I realize my input code is guilty), and try to minimize control flow scopes - rather than create a new block wrapped in {}, see if you can invert the logic to avoid the extra indent and new block.

@sturnclaw
Copy link
Member

Thanks for poking me @fluffyfreak - I've been chipping away at this review for a few days now, just haven't had the time or energy to finish it 😄

@fluffyfreak
Copy link
Contributor

@Web-eWorks wasn't a poke just found I had a few minutes for reviews and "filing" work 😁

@Gliese852
Copy link
Contributor Author

Force-pushed because I forgot to check with clang.

@impaktor
Copy link
Member

Looks like there's one change requested left? (and fixes to be squashed.)

Copy link
Member

@sturnclaw sturnclaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good @Gliese852! Thanks for putting up with all of my stylistic and control flow pedantry as usual!

Add polymorphic type SectorView::Label, for displaying different types of labels.
Implement two types of labels - for stars and for factions.
Add highlight colors to the theme.
@Gliese852
Copy link
Contributor Author

Squashed all the fix-commits

@impaktor impaktor merged commit 65c3784 into pioneerspacesim:master Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup