BIS fnc showRespawnMenuDisableItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.60|= Game version |eff= global |=...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 5: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|1.60|= Game version
 
|eff= global |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A'' |= Description
| Limits respawn loadout or role for [[Arma 3 Respawn: New Respawn Screen|new respawn screen]].
* Only role or only loadout can be limited at one moment, if there is limit for both, then only role uses limit.
*  If the limit definition for role is called multiple times with different numbers, then the highest number is used.
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_showRespawnMenuDisableItem]]; --> |= Syntax
| [<mode>,<uiControl>,<item>,<message>] call [[BIS_fnc_showRespawnMenuDisableItem]]; |= Syntax
|p1= |= Parameter 1
 
|p1= '''mode''': [[String]] - Available options are ''disable'', ''enable'' and ''state''
|p2= '''uiControl''': [[Control]] - List in which should be item disabled/enabled (for more info see comments)
|p3= '''item''': [[Number]] or [[String]] - Index or name of item in the list
|p4= '''message''': [[String]] - (Optional) Message shown when disabled item is selected


| |= Return value
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
 
|x1= <code></code> |=  
|x1= <code><nowiki>[</nowiki>"disable",uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlRoleList",2,"Restricted for this part of mission!"] [[call]] [[BIS_fnc_showRespawnMenuDisableItem]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[BIS_fnc_addRespawnInventory]], [[BIS_fnc_addRespawnPosition]], [[Arma 3 Respawn: New Respawn Screen]] |= See also


}}
}}
Line 32: Line 40:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Respawn|{{uc:showRespawnMenuDisableItem}}]]
[[Category:Function Group: Respawn|{{uc:addRespawnInventory}}]]
[[Category:Functions|{{uc:showRespawnMenuDisableItem}}]]
[[Category:Functions|{{uc:addRespawnInventory}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:showRespawnMenuDisableItem}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:addRespawnInventory}}]]

Revision as of 10:58, 25 May 2016

Hover & click on the images for description

Description

Description:
Limits respawn loadout or role for new respawn screen.
  • Only role or only loadout can be limited at one moment, if there is limit for both, then only role uses limit.
  • If the limit definition for role is called multiple times with different numbers, then the highest number is used.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[<mode>,<uiControl>,<item>,<message>] call BIS_fnc_showRespawnMenuDisableItem;
Parameters:
mode: String - Available options are disable, enable and state
uiControl: Control - List in which should be item disabled/enabled (for more info see comments)
item: Number or String - Index or name of item in the list
message: String - (Optional) Message shown when disabled item is selected
Return Value:
Return value needed

Examples

Example 1:
["disable",uiNamespace getVariable "BIS_RscRespawnControlsMap_ctrlRoleList",2,"Restricted for this part of mission!"] call BIS_fnc_showRespawnMenuDisableItem;

Additional Information

See also:
BIS_fnc_addRespawnInventoryBIS_fnc_addRespawnPositionArma 3 Respawn: New Respawn Screen

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

Notes

Bottom Section