-
Notifications
You must be signed in to change notification settings - Fork 739
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b5e9a06
Move hard coded nametag team colors to settings
zharf 7c88ed0
Added myself to contributors
zharf ded32ce
Fixed Nametag to Name Tag
zharf c201f6d
Optimized array copying
zharf 3004e0e
Moved team color settings to color subcategory and used vanilla local…
zharf 33b9879
Split a long line into a more readable multiline solution
zharf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ Drill <[email protected]> | |
Dudakov aka [OMCB]Kaban <[email protected]> | ||
Drofseh <[email protected]> | ||
Dslyecxi <[email protected]> | ||
Eclipser <[email protected]> | ||
ElTyranos | ||
eRazeri | ||
evromalarkey <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ PREP_RECOMPILE_START; | |
#include "XEH_PREP.hpp" | ||
PREP_RECOMPILE_END; | ||
|
||
#include "initSettings.sqf" | ||
|
||
ADDON = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// CBA Settings [ADDON: ace_nametags]: | ||
|
||
[ | ||
QGVAR(defaultNametagColor), "COLOR", | ||
[LSTRING(DefaultNametagColor)], | ||
[format ["ACE %1", localize LSTRING(Module_DisplayName)], localize "str_a3_rscdisplaygameoptions_buttongui"], | ||
[0.77, 0.51, 0.08, 1], | ||
false, // isGlobal | ||
{[QGVAR(defaultNametagColor), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(nametagColorMain), "COLOR", | ||
["str_team_main"], | ||
[format ["ACE %1", localize LSTRING(Module_DisplayName)], localize "str_a3_rscdisplaygameoptions_buttongui"], | ||
[1.00, 1.00, 1.00, 1], | ||
false, // isGlobal | ||
{[QGVAR(nametagColorMain), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(nametagColorRed), "COLOR", | ||
["str_team_red"], | ||
[format ["ACE %1", localize LSTRING(Module_DisplayName)], localize "str_a3_rscdisplaygameoptions_buttongui"], | ||
[1.00, 0.67, 0.67, 1], | ||
false, // isGlobal | ||
{[QGVAR(nametagColorRed), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(nametagColorGreen), "COLOR", | ||
["str_team_green"], | ||
[format ["ACE %1", localize LSTRING(Module_DisplayName)], localize "str_a3_rscdisplaygameoptions_buttongui"], | ||
[0.67, 1.00, 0.67, 1], | ||
false, // isGlobal | ||
{[QGVAR(nametagColorGreen), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(nametagColorBlue), "COLOR", | ||
["str_team_blue"], | ||
[format ["ACE %1", localize LSTRING(Module_DisplayName)], localize "str_a3_rscdisplaygameoptions_buttongui"], | ||
[0.67, 0.67, 1.00, 1], | ||
false, // isGlobal | ||
{[QGVAR(nametagColorBlue), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(nametagColorYellow), | ||
"COLOR", | ||
["str_team_yellow"], | ||
[format ["ACE %1", localize LSTRING(Module_DisplayName)], localize "str_a3_rscdisplaygameoptions_buttongui"], | ||
[1.00, 1.00, 0.67, 1], | ||
false, // isGlobal | ||
{[QGVAR(nametagColorYellow), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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...)