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

Arsenal - don't lowercase displayName #9597

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions addons/arsenal/functions/fnc_attributeAddItems.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ if (_category == IDX_CAT_ALL) exitWith {
default {_cfgWeapons >> _x};
};

_displayName = toLower getText (_config >> "displayName");
_displayName = getText (_config >> "displayName");

// Add item if not filtered
if (_displayName regexMatch _filter || {_x regexMatch _filter}) then {
if (toLower _displayName regexMatch _filter || {_x regexMatch _filter}) then {
_index = _listbox lnbAddRow ["", _displayName, _modeSymbol];
_listbox lnbSetData [[_index, 1], _x];
_listbox lnbSetPicture [[_index, 0], getText (_config >> "picture")];
Expand Down Expand Up @@ -116,10 +116,10 @@ private _config = _cfgClass;
_config = [_cfgClass, _cfgMagazines] select (_x in _magazineMiscItems);
};

_displayName = toLower getText (_config >> _x >> "displayName");
_displayName = getText (_config >> _x >> "displayName");

// Add item if not filtered
if (_displayName regexMatch _filter || {_x regexMatch _filter}) then {
if (toLower _displayName regexMatch _filter || {_x regexMatch _filter}) then {
// Change symbol and alpha if item already selected
if (_x in _attributeItems) then {
_symbol = _modeSymbol;
Expand Down