Difference between revisions of "VN fnc wm getMousePos"
Jump to navigation
Jump to search
(Created page with "{{Function |v= 1.00 |author=Dscha |a= |e= |g1= wheelmenu |d= <pre>- get mousePosition and check it's coordinates if it's inside of a zone - if mouse inside: - set sel...") |
|||
Line 10: | Line 10: | ||
|d= <pre>- get mousePosition and check it's coordinates if it's inside of a zone | |d= <pre>- get mousePosition and check it's coordinates if it's inside of a zone | ||
− | + | - if mouse inside: | |
− | + | - set selected Function and Icon for usage in Eventhandler: "vn_fnc_wm_EH_MouseBUp" | |
− | + | - else: | |
− | + | - reset everything to default | |
− | + | - Set/Update of variable "vn_wm_SelectedFunction" & "vn_wm_SelectedIcon"</pre> | |
− | |||
|s= [] call [[VN_fnc_wm_getMousePos]]; | |s= [] call [[VN_fnc_wm_getMousePos]]; | ||
Line 43: | Line 42: | ||
|x1= <code>[ | |x1= <code>[ | ||
− | + | _CtrlCheckList, //More details in "vn_fnc_wm_init" | |
− | + | [ | |
− | + | "\vn\ui_f_vietnam\ui\wheelmenu\img\ui_wm_selector_1_cal.paa", | |
− | + | "\vn\ui_f_vietnam\ui\wheelmenu\img\ui_wm_selector_1_hit_cal.paa" | |
− | + | ] | |
− | + | ] call vn_fnc_wm_getMousePos;</code> | |
}} | }} |
Latest revision as of 20:52, 4 May 2022
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Dscha |
|
Description
- get mousePosition and check it's coordinates if it's inside of a zone - if mouse inside: - set selected Function and Icon for usage in Eventhandler: "vn_fnc_wm_EH_MouseBUp" - else: - reset everything to default - Set/Update of variable "vn_wm_SelectedFunction" & "vn_wm_SelectedIcon"
Syntax
- Syntax
- [] call VN_fnc_wm_getMousePos;
- Parameters
- _CtrlCheckList: Array - (Optional, default
[]
) each entry in that list, has the information about the used icons/functions - _selector_icons: Array - (Optional, default
[]
) Icons - _selector_icons_0: String - path to selector Texture
- _selector_icons_1: String - path to highlighted selector Texture
- Return value
- TYPE - Return description
Examples
- Example 1
[ _CtrlCheckList, //More details in "vn_fnc_wm_init" [ "\vn\ui_f_vietnam\ui\wheelmenu\img\ui_wm_selector_1_cal.paa", "\vn\ui_f_vietnam\ui\wheelmenu\img\ui_wm_selector_1_hit_cal.paa" ] ] call vn_fnc_wm_getMousePos;