diff --git a/addons/ui/fnc_initDisplayRemoteMissions.sqf b/addons/ui/fnc_initDisplayRemoteMissions.sqf
index 144416030..bd02cbb95 100644
--- a/addons/ui/fnc_initDisplayRemoteMissions.sqf
+++ b/addons/ui/fnc_initDisplayRemoteMissions.sqf
@@ -144,6 +144,7 @@ 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 {
@@ -151,6 +152,13 @@ private _fnc_storeMapMissions = {_this spawn {isNil { // delay a frame
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;
diff --git a/addons/ui/initSettings.inc.sqf b/addons/ui/initSettings.inc.sqf
index b9ff6213c..96a71e0e8 100644
--- a/addons/ui/initSettings.inc.sqf
+++ b/addons/ui/initSettings.inc.sqf
@@ -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)],
@@ -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;
@@ -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;
diff --git a/addons/ui/stringtable.xml b/addons/ui/stringtable.xml
index f0edaa496..5fc0cb339 100644
--- a/addons/ui/stringtable.xml
+++ b/addons/ui/stringtable.xml
@@ -156,6 +156,14 @@
当连接到服务器时将不保存密码。已保存的密码将不自动填写。
Çok oyunculu bir sunucuya girerken şifreler kaydedilmez. Zaten kayıtlı olan şifreler otomatik olarak doldurulmaz.
+
+ Hide mission world name suffix
+ Убрать название мира у миссий
+
+
+ Hide world name suffix in multiplayer mission list.
+ Убрать суффикс с названием мира в списке миссий в многопользовательской игре.
+
Lobby Manager
Manažer lobby