Pixel-Composer/objects/o_dialog_menubox/Step_1.gml
2024-09-13 17:29:19 +07:00

22 lines
489 B
Plaintext

/// @description Insert description here
if(item_sel_submenu) {
if(!instance_exists(item_sel_submenu))
item_sel_submenu = noone;
exit;
}
if(init_press_l) {
if(MOUSE_POOL.lrelease)
init_press_l = false;
exit;
}
if(submenu != noone && !instance_exists(submenu))
submenu = noone;
var hov = point_in(mouse_raw_x, mouse_raw_y);
if(instance_exists(submenu))
hov |= submenu.point_in(mouse_raw_x, mouse_raw_y);
_hovering_ch = hov;
if(!hov && MOUSE_POOL.lpress) instance_destroy();