Pixel-Composer/objects/o_dialog_menubox/Step_1.gml

12 lines
334 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-04-08 07:13:46 +02:00
var hov = point_in(mouse_mx, mouse_my);
2022-11-01 03:06:03 +01:00
2024-04-08 07:13:46 +02:00
for( var i = 0, n = array_length(children); i < n; i++ ) {
if(!instance_exists(children[i])) continue;
hov |= children[i].point_in(mouse_mx, mouse_my);
}
2022-11-01 03:06:03 +01:00
2024-04-08 07:13:46 +02:00
_hovering_ch = hov;
2024-08-10 07:30:41 +02:00
if(!hov && mouse_press(mb_left)) instance_destroy();