Pixel-Composer/objects/o_dialog_menubox/Step_1.gml

20 lines
420 B
Plaintext
Raw Normal View History

2024-04-08 07:13:46 +02:00
/// @description Insert description here
event_inherited();
2022-11-01 03:06:03 +01:00
2024-09-11 11:56:41 +02:00
if(item_sel_submenu) {
if(!instance_exists(item_sel_submenu))
item_sel_submenu = noone;
exit;
2024-04-08 07:13:46 +02:00
}
2024-09-11 11:56:41 +02:00
2024-09-12 05:08:48 +02:00
if(init_press_l) {
if(MOUSE_POOL.lrelease)
init_press_l = false;
exit;
}
2024-09-11 11:56:41 +02:00
var hov = point_in(mouse_raw_x, mouse_raw_y);
if(submenu) hov |= submenu.point_in(mouse_raw_x, mouse_raw_y);
2024-09-12 05:08:48 +02:00
2024-04-08 07:13:46 +02:00
_hovering_ch = hov;
2024-09-12 05:08:48 +02:00
if(!hov && MOUSE_POOL.lpress) instance_destroy();