BIS fnc configViewer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (-_-)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Splendid™ Config Viewer. |= Description
| Splendid™ Config Viewer. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [parent, cfg, showOk, onSelect, onAdd, header] call [[BIS_fnc_configViewer]] |= Syntax
| [parent, cfg, showOk, onSelect, onAdd, header] call [[BIS_fnc_configViewer]] |SYNTAX=


|p1= parent: [[Display]] - (Optional, default mission display) parent display |= Parameter 1
|p1= parent: [[Display]] - (Optional, default mission display) parent display |= Parameter 1
Line 26: Line 26:
| [[Array]]
| [[Array]]
* when OK button is not displayed, empty array is returned
* when OK button is not displayed, empty array is returned
* else, an array of currently selected entries in format [class ([[Config]]), param ([[String]])] is returned. |= Return value
* else, an array of currently selected entries in format [class ([[Config]]), param ([[String]])] is returned. |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 32: Line 32:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[BIS_fnc_animViewer]], [[BIS_fnc_help]] |= See also
| [[BIS_fnc_animViewer]], [[BIS_fnc_help]] |SEEALSO=
}}
}}



Revision as of 11:26, 7 April 2019

Hover & click on the images for description

Description

Description:
Splendid™ Config Viewer.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[parent, cfg, showOk, onSelect, onAdd, header] call BIS_fnc_configViewer
Parameters:
parent: Display - (Optional, default mission display) parent display
cfg: Config - (Optional, default all configs) root config
showOk: Boolean - (Optional, default false) true to display OK button. Script will then wait until viewer is closed and return selected class and param
onSelect: Code - (Optional, default {}) executed upon selecting a class. Must return String, which will be shown as structured text instead of params.
onAdd: Code - (Optional, default {}) executed upon adding a class to list. Returned value (STRING) is item text. Empty string will skip the item.
header: String - (Optional, default "%1") custom header. Use %1 to refer to original name ("Splendid Config Viewer")
Return Value:
Array
  • when OK button is not displayed, empty array is returned
  • else, an array of currently selected entries in format [class (Config), param (String)] is returned.

Examples

Example 1:
call BIS_fnc_configViewer;

Additional Information

See also:
BIS_fnc_animViewerBIS_fnc_help

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