Skip to content
Open
Show file tree
Hide file tree
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: 8 additions & 0 deletions addons/ui/fnc_initDisplayRemoteMissions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,21 @@ private _fnc_storeMapMissions = {_this spawn {isNil { // delay a frame
params ["_ctrlMaps"];
private _display = ctrlParent _ctrlMaps;
private _ctrlMissions = _display displayCtrl IDC_SERVER_MISSION;
private _map = _ctrlMaps lbData lbCurSel _ctrlMaps;

private _missions = [];
for "_i" from 0 to (lbSize _ctrlMissions - 1) do {
private _name = _ctrlMissions lbText _i;
with uiNamespace do {
_name = _name call CBA_fnc_decodeURL;
};
if (profileNamespace getVariable [QGVAR(hideMissionWorldSuffix), false]) then {
private _nameArray = _name splitString ".";
if (count _nameArray > 1 && {_nameArray select -1 == _map}) then {
_nameArray deleteAt [-1];
_name = _nameArray joinString ".";
};
};

private _value = _ctrlMissions lbValue _i;
private _data = _ctrlMissions lbData _i;
Expand Down
25 changes: 22 additions & 3 deletions addons/ui/initSettings.inc.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
private _category = [LELSTRING(main,DisplayName), LLSTRING(Category)];

[
QGVAR(StorePasswords), "LIST",
[LLSTRING(StoreServerPasswords), LLSTRING(StoreServerPasswordsTooltip)],
[LELSTRING(main,DisplayName), LLSTRING(Category)],
_category,
[[1, 0, -1], [
[LLSTRING(SavePasswords), LLSTRING(SavePasswordsTooltip)],
[LLSTRING(DoNotSavePasswords), LLSTRING(DoNotSavePasswordsTooltip)],
Expand All @@ -22,7 +24,7 @@
QGVAR(notifyLifetime),
"SLIDER",
[LLSTRING(NotifyLifetime), LLSTRING(NotifyLifetimeTooltip)],
[LELSTRING(main,DisplayName), LLSTRING(Category)],
_category,
[1, 10, 4, 1], // default value
2 // global
] call CBA_fnc_addSetting;
Expand All @@ -31,7 +33,24 @@
QGVAR(autoExpandOptions),
"CHECKBOX",
LLSTRING(AutoExpandOptions),
[LELSTRING(main,DisplayName), LLSTRING(Category)],
_category,
true,
2
] call CBA_fnc_addSetting;

[
QGVAR(hideMissionWorldSuffix),
"CHECKBOX",
[LLSTRING(HideMissionWorldSuffix), LLSTRING(HideMissionWorldSuffixTooltip)],
_category,
false,
2,
{
if (_this) then {
profileNamespace setVariable [QGVAR(hideMissionWorldSuffix), _this];
} else {
profileNamespace setVariable [QGVAR(hideMissionWorldSuffix), nil];
};
saveProfileNamespace;
}
] call CBA_fnc_addSetting;
8 changes: 8 additions & 0 deletions addons/ui/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@
<Chinesesimp>当连接到服务器时将不保存密码。已保存的密码将不自动填写。</Chinesesimp>
<Turkish>Çok oyunculu bir sunucuya girerken şifreler kaydedilmez. Zaten kayıtlı olan şifreler otomatik olarak doldurulmaz.</Turkish>
</Key>
<Key ID="STR_CBA_UI_HideMissionWorldSuffix">
<English>Hide mission world name suffix</English>
<Russian>Убрать название мира у миссий</Russian>
</Key>
<Key ID="STR_CBA_UI_HideMissionWorldSuffixTooltip">
<English>Hide world name suffix in multiplayer mission list.</English>
<Russian>Убрать суффикс с названием мира в списке миссий в многопользовательской игре.</Russian>
</Key>
<Key ID="STR_CBA_UI_LobbyManager">
<English>Lobby Manager</English>
<Czech>Manažer lobby</Czech>
Expand Down