BIS fnc displayName: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=") |
(Added configOf example) |
||
(16 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
|gr1= Configs | |gr1= Configs | ||
| Return given class displayName value. Return base class name if displayName not defined. | |descr= Return given class displayName value. Return base class name if displayName not defined. | ||
|s1=[config] call [[BIS_fnc_displayName]] | |s1= [config] call [[BIS_fnc_displayName]] | ||
|p1= config: [[Config]] - config path | |p1= config: [[Config]] - config path | ||
|r1=[[String]] - displayName, else [[configName]] | |r1= [[String]] - displayName, else [[configName]] | ||
|x1= < | |x1= <sqf>private _myDisplayName = [configFile >> "CfgVehicles" >> typeOf vehicle player] call BIS_fnc_displayName;</sqf> | ||
|x2= <sqf>private _myDisplayName = [configOf player] call BIS_fnc_displayName; // Since Arma 3 2.00</sqf> | |||
|seealso= [[configName]] | |seealso= [[configName]] | ||
}} | }} | ||
Latest revision as of 20:47, 12 March 2024
Description
- Description:
- Return given class displayName value. Return base class name if displayName not defined.
- Execution:
- call
- Groups:
- Configs
Syntax
- Syntax:
- [config] call BIS_fnc_displayName
- Parameters:
- config: Config - config path
- Return Value:
- String - displayName, else configName
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- configName
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note