ACE3/TO_MERGE/cse/gui/radialmenu/fn_getIcon_f.sqf
Thomas Kooi db6f30fcc9 Added cse_gui source
Does not include the Icon pack. When using the UI it may throw up some missing .paa file errors. Replacements will need to be found if we want to use those.
2015-01-12 23:23:51 +01:00

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