Difference between revisions of "VN fnc wm init"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Created page with "{{Function |v= 1.00 |author=Dscha |a= |e= |g1= wheelmenu |d= <pre>- initilization of the Wheelmenu (aka: Start this monstrosity!) - Set up all Selectors with Icons, Colors...")
 
 
Line 95: Line 95:
 
|r1d=
 
|r1d=
  
|x1= <code>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"]]
+
|x1= <code>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 ] ]
+
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 ] ]
  
 
[
 
[

Latest revision as of 20:56, 4 May 2022

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Dscha
Argument(s): n/a
Effect(s): unknown

Description

- 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

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
_iconList: Array - (Optional, default []) 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: Boolean - (Optional, default FALSE) Spawn (TRUE) or Call (FALSE)
_3: Array - (Optional, default []) No description
_3_0: COLOR - Colorcode Array - Selector - Normal
Return value
Nothing

Examples

Example 1
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;