Skip to content

Commit

Permalink
Fix wrong default font for nametags (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
diwako authored Oct 13, 2024
1 parent cb73f68 commit 041e1dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/nametags/settings.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ private _curCat = localize "STR_dui_cat_general";

private _curCat = "STR_dui_cat_fonts";

private _fontNameIndex = EGVAR(main,availableFonts) findIf {_x isEqualTo "RobotoCondensedBold"};
private _fontGroupIndex = EGVAR(main,availableFonts) findIf {_x isEqualTo "RobotoCondensedLight"};
[
QGVAR(fontName),
"LIST",
["STR_dui_nametags_nameFont", "STR_dui_nametags_nameFont_desc"],
[_cat, _curCat],
[EGVAR(main,availableFonts), EGVAR(main,availableFonts), 5],
[EGVAR(main,availableFonts), EGVAR(main,availableFonts), _fontNameIndex],
false
] call CBA_fnc_addSetting;

Expand All @@ -113,7 +115,7 @@ private _curCat = "STR_dui_cat_fonts";
"LIST",
["STR_dui_nametags_groupNameFont", "STR_dui_nametags_groupNameFont_desc"],
[_cat, _curCat],
[EGVAR(main,availableFonts), EGVAR(main,availableFonts), 6],
[EGVAR(main,availableFonts), EGVAR(main,availableFonts), _fontGroupIndex],
false
] call CBA_fnc_addSetting;

Expand Down

0 comments on commit 041e1dd

Please sign in to comment.