Skip to content

Commit

Permalink
Show worldnames as tooltips on map list
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Mar 19, 2022
1 parent 05e5c81 commit 391c1dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/ui/fnc_initDisplayRemoteMissions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,17 @@ private _fnc_findMissions = {

_display setVariable [QGVAR(stockMissions), _stockMissions];

// Show worldnames for maps
// Show worldnames as tooltips on map list
private _mapNames = createHashMap;
{
private _worldName = configName _x;
private _description = getText (configFile >> "CfgWorlds" >> _worldName >> "description");
_mapNames set [_description, _worldname];
} forEach (configProperties [configfile >> "CfgWorldList", "isClass _x"]);

for "_index" from 0 to ((lbSize _ctrlMaps) - 1) do {
private _description = _ctrlMaps lbText _index;
private _worldName = _mapNames getOrDefault [_description, ""];
_ctrlMaps lbSetText [_index, format ["%1 [%2]", _description, _worldName]];
_ctrlMaps lbSetTooltip [_index, _worldName];
};

lbSort _ctrlMaps;
Expand Down

0 comments on commit 391c1dd

Please sign in to comment.