Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Singleplayer Crew Setup UI Refactor #14539

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jade-Harleyy
Copy link

This PR aims to improve the look of the singleplayer crew setup UI, and add some functionality.
Aside from the visual changes, job variants can now be selected like in multiplayer.

Preview:
image

Copy link
Collaborator

@Regalis11 Regalis11 left a comment

Choose a reason for hiding this comment

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

There's an enormous amount of code duplication here, see comment

if (!tooltip.IsNullOrEmpty())
{
GUIComponent.DrawToolTip(spriteBatch, tooltip, tooltipRect);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems to be mostly copypasted from NetLobbyScreen. Don't repeat yourself - the same code shouldn't exist in multiple places, this could for example be moved to a separate method used by both the server lobby and the single player campaign setup.

@Regalis11 Regalis11 added Feature request Request a new feature to be added Code Programming task labels Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Programming task Feature request Request a new feature to be added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants