mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update Epoch_dynamicMenu.sqf
Allows to create a tooltip by a code inside the config
This commit is contained in:
parent
76785e1694
commit
d6bc7a5e10
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user