Pixel-Composer/objects/o_dialog_menubox/Step_1.gml
2024-08-10 12:30:41 +07:00

12 lines
334 B
Plaintext

/// @description Insert description here
event_inherited();
var hov = point_in(mouse_mx, mouse_my);
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);
}
_hovering_ch = hov;
if(!hov && mouse_press(mb_left)) instance_destroy();