VN_fnc_wm_getMousePos

From Savage Game Design Wiki
Revision as of 20:52, 4 May 2022 by Slow (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Dscha
Argument(s): n/a
Effect(s): unknown

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;