VN_fnc_wm_getMousePos
Jump to navigation
Jump to search
← 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;