-
Notifications
You must be signed in to change notification settings - Fork 740
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
Nametags - Adjustable colors settings #6641
Conversation
Also made the default colors lighter to make them easier to read
} else { | ||
_color = [[1, 1, 1, _alpha], [1, 0, 0, _alpha], [0, 1, 0, _alpha], [0, 0, 1, _alpha], [1, 1, 0, _alpha]] select ((["MAIN", "RED", "GREEN", "BLUE", "YELLOW"] find ([assignedTeam _target] param [0, "MAIN"])) max 0); | ||
_color = +([GVAR(nametagColorMain), GVAR(nametagColorRed), GVAR(nametagColorGreen), GVAR(nametagColorBlue), GVAR(nametagColorYellow)] select ((["MAIN", "RED", "GREEN", "BLUE", "YELLOW"] find ([assignedTeam _target] param [0, "MAIN"])) max 0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be multi-line
_color = +([GVAR(nametagColorMain), GVAR(nametagColorRed), GVAR(nametagColorGreen), GVAR(nametagColorBlue), GVAR(nametagColorYellow)] select ((["MAIN", "RED", "GREEN", "BLUE", "YELLOW"] find ([assignedTeam _target] param [0, "MAIN"])) max 0)); | |
_color = +( | |
[ | |
GVAR(nametagColorMain), | |
GVAR(nametagColorRed), | |
GVAR(nametagColorGreen), | |
GVAR(nametagColorBlue), | |
GVAR(nametagColorYellow) | |
] select ( | |
( | |
[ | |
"MAIN", "RED", "GREEN", "BLUE", "YELLOW" | |
] find ( | |
[assignedTeam _target] param [0, "MAIN"] | |
) | |
) max 0 | |
) | |
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe slightly less multiline would be enough. :D
7e8c0d3
to
3004e0e
Compare
|
||
[ | ||
QGVAR(nametagColorRed), "COLOR", | ||
["str_team_red"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe [format ["%1 %2",localize "str_team", localize "str_team_red"]],
so we get "Team Red"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was considering this but I'm not proficient enough in all the languages to know if the word order for that would be grammatically correct (for Finnish it would be reversed...)
Overall looks great and should really help people with color problems |
* Move hard coded nametag team colors to settings Also made the default colors lighter to make them easier to read * Added myself to contributors * Fixed Nametag to Name Tag * Optimized array copying * Moved team color settings to color subcategory and used vanilla localization strings * Split a long line into a more readable multiline solution
When merged this pull request will: