Pixel-Composer/objects/o_dialog_menubox/Step_1.gml

20 lines
420 B
Text
Raw Normal View History

2024-04-08 12:13:46 +07:00
/// @description Insert description here
event_inherited();
2022-11-01 09:06:03 +07:00
2024-09-11 16:56:41 +07:00
if(item_sel_submenu) {
if(!instance_exists(item_sel_submenu))
item_sel_submenu = noone;
exit;
2024-04-08 12:13:46 +07:00
}
2024-09-11 16:56:41 +07:00
2024-09-12 10:08:48 +07:00
if(init_press_l) {
if(MOUSE_POOL.lrelease)
init_press_l = false;
exit;
}
2024-09-11 16:56:41 +07: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 10:08:48 +07:00
2024-04-08 12:13:46 +07:00
_hovering_ch = hov;
2024-09-12 10:08:48 +07:00
if(!hov && MOUSE_POOL.lpress) instance_destroy();