mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
484 B
Plaintext
20 lines
484 B
Plaintext
|
/**
|
||
|
* fn_getIcon_f.sqf
|
||
|
* @Descr: Grab an icon from the CSE Icon collection
|
||
|
* @Author: Glowbal
|
||
|
*
|
||
|
* @Arguments: [name STRING]
|
||
|
* @Return: STRING Path to icon. Returns empty path if icon does not exist
|
||
|
* @PublicAPI: true
|
||
|
*/
|
||
|
|
||
|
#define CSE_ICON_PATH "cse\cse_gui\radialmenu\data\icons\"
|
||
|
|
||
|
private ["_iconName","_return"];
|
||
|
_iconName = [_this, 0, "",[""]] call bis_fnc_param;
|
||
|
if (_iconName == "") then {
|
||
|
_iconName = "icon_cse";
|
||
|
};
|
||
|
_return = CSE_ICON_PATH + _iconName + ".paa";
|
||
|
|
||
|
_return
|