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:
@ -108,11 +108,21 @@ _checkConfigs = {
|
|||||||
format ["%2 %1 call Epoch_dynamicMenu;",_arr + [(configName _x)],getText(_x >> "action")]
|
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 [
|
_buttonSettings pushBack [
|
||||||
getText(_x >> "icon"),
|
getText(_x >> "icon"),
|
||||||
getText(_x >> "tooltip"),
|
_tooltip,
|
||||||
_action
|
_action
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} forEach _configs;
|
} forEach _configs;
|
||||||
|
Reference in New Issue
Block a user