Skip to content
VN_fnc_wm_init

VN_fnc_wm_init

  • initilization of the Wheelmenu (aka: Start this monstrosity!)
  • Set up all Selectors with Icons, Colors, Functions. Depending on the amount of Vars given to it (example)
  • autoadjusting the WM, depending on the amount of Entrys
  • Min: 2 Entrys
  • Max: 10 Entrys

Syntax

[
    _iconList,
    _n,
    _0,
    _1,
    _2,
    _2_0,
    _2_1,
    _2_2,
    _3,
    _3_0,
    _3_1,
    _4,
    _4_0,
    _4_1,
    _isModule
] call VN_fnc_wm_init;

Parameters

ParameterTypeDefaultDescription
_iconList Array[] List of Items/Vars to be added to the Menu
_n Array— Parameters
_0 Number— Path to Icon normal
_1 Array— Path to Icon Highlighted (if desired)
_2 Array— No description
_2_0 Array— Params to send over to the functions
_2_1 String— Which function to call/spawn
_2_2 BooleanFALSE Spawn (TRUE) or Call (FALSE)
_3 Array[] No description
_3_0 COLOR— Colorcode Array - Selector - Normal
_3_1 COLOR— Colorcode Array - Selector - highlighted
_4 Array[] No description
_4_0 COLOR— Colorcode Array - Icon - Normal
_4_1 COLOR— Colorcode Array - Icon - highlighted
_isModule BooleanFALSE Loaded via Module or not, so it selects the proper “close functions” (using the Key bound in the VN Keyhandler)

Examples

MINIMAL:	["vn\ui_f_vietnam\ui\wheelmenu\img\handsignals\ui_wm_selector_hand_001_ca.paa", "",	[ ["vn_handsignal_freeze","Text for centerCtrl"],	"vn_fnc_playGesture"] ]
		FULL:		["vn\ui_f_vietnam\ui\wheelmenu\img\handsignals\ui_wm_selector_hand_001_ca.paa", "",	[ ["vn_handsignal_freeze","Text for centerCtrl"],	"vn_fnc_playGesture", false],[ _color_selector, _color_selector_hl ],	[ _color_icon, _color_icon_hl ] ]

		[
			[
				[
					"\vn\ui_f_vietnam\ui\wheelmenu\img\ui_icon_a_ca.paa",
					"",
					[
						["gestureFreeze","Text for centerCtrl"],
						"vn_fnc_playGesture",
						FALSE
					],
					[
						[0,0,0,0],
						[0,0,0,0]
					],
					[
						[0,0,0,0],
					[0,0,0,0]
					]
				],
				... repeat
			]
		] call vn_fnc_wm_init;

Documented by Dscha.