Pixel-Composer/objects/o_dialog_menubox/Step_1.gml

22 lines
489 B
Plaintext
Raw Normal View History

2024-04-08 07:13:46 +02:00
/// @description Insert description here
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;
}
if(submenu != noone && !instance_exists(submenu))
submenu = noone;
2024-09-11 11:56:41 +02:00
var hov = point_in(mouse_raw_x, mouse_raw_y);
if(instance_exists(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();