Update Epoch_dynamicMenu.sqf

Allows to create a tooltip by a code inside the config
This commit is contained in:
He-Man 2016-07-07 17:36:49 +02:00 committed by GitHub
parent 76785e1694
commit d6bc7a5e10

View File

@ -108,11 +108,21 @@ _checkConfigs = {
format ["%2 %1 call Epoch_dynamicMenu;",_arr + [(configName _x)],getText(_x >> "action")]
};
_tooltip = "";
_tooltipcode = getText(_x >> "tooltipcode"),;
if (_tooltipcode != "") then {
_tooltip = [] call compile _tooltipcode;
}
else {
_tooltip = getText(_x >> "tooltip");
};
_buttonSettings pushBack [
getText(_x >> "icon"),
getText(_x >> "tooltip"),
_tooltip,
_action
];
};
};
} forEach _configs;