Skip to content

Commit

Permalink
Merge pull request #1321 from CBATeam/listShowValue
Browse files Browse the repository at this point in the history
Settings - Show raw values in tooltip for list settings
  • Loading branch information
PabstMirror authored Apr 18, 2020
2 parents cfbd4ca + 247ea41 commit 8e744b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/settings/fnc_gui_settingList.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ private _lbData = [];
_tooltip = localize _tooltip;
};

if (_tooltip isEqualTo "") then {
_tooltip = str _x;
} else {
_tooltip = _tooltip + endl + str _x;
};

private _index = _ctrlList lbAdd _label;
_ctrlList lbSetTooltip [_index, _tooltip];
_lbData set [_index, _x];
Expand Down

0 comments on commit 8e744b0

Please sign in to comment.