Skip to content
VN_fnc_wm_getMousePos

VN_fnc_wm_getMousePos

  • 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

[] call VN_fnc_wm_getMousePos;

Parameters

ParameterTypeDefaultDescription
_CtrlCheckList Array[] each entry in that list, has the information about the used icons/functions
_selector_icons Array[] Icons
_selector_icons_0 String— path to selector Texture
_selector_icons_1 String— path to highlighted selector Texture

Return value

TYPE - Return description

Examples

[
_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;

Documented by Dscha.