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

#368 show colors in color drop down #369

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

devo1929
Copy link
Contributor

@devo1929 devo1929 commented Sep 12, 2022

Decreased width of color drop down allows for increase of width of player name and side. Color drop down is now the same width as team and start drop downs.

Moved the "Random" label to an INI key.

image

@github-actions
Copy link

github-actions bot commented Sep 12, 2022

Nightly build for this pull request:

  • artifacts.zip
    This comment is automatic and is meant to allow guests to get latest automatic builds without registering. It is updated on every successful build.

@@ -17,6 +18,10 @@ public class MultiplayerColor

private static List<MultiplayerColor> colorList;

private static string randomColorLabel;

private static readonly string RandomColorDefaultLabel = "Random".L10N("UI:Main:RandomSide");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
private static readonly string RandomColorDefaultLabel = "Random".L10N("UI:Main:RandomSide");
private static readonly string RandomColorDefaultLabel = "Random".L10N("UI:Main:RandomColor");

And also considering making this a readonly property to prevent L10N being called before loading the translation table (although it should works without being a property as long as the class is initialized after L10N initialized but it is not straightforward enough).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I understand. It is currently readonly. Are you saying it shouldn't be readonly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch on the incorrect string.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I understand. It is currently readonly. Are you saying it shouldn't be readonly?

No. I mean changing = to =>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahhhhh, I got it. Will do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

@SadPencil SadPencil left a comment

Choose a reason for hiding this comment

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

LGTM

@Rampastring
Copy link
Member

Seeing the gap between the dropdown border and the color, it might be best if either a custom dropdown control was added that got rid of the gap, or I made the gap customizable in XNAUI.

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.

None yet

3 participants