mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-27 07:26:33 +01:00
12 lines
312 B
Text
12 lines
312 B
Text
|
/// @description init
|
||
|
if !ready exit;
|
||
|
|
||
|
#region destroy
|
||
|
if(!dropper_active) {
|
||
|
if(!point_in_rectangle(mouse_mx, mouse_my, dialog_x, dialog_y, dialog_x + dialog_w, dialog_y + dialog_h)) {
|
||
|
if(destroy_on_click_out && mouse_check_button_pressed(mb_left))
|
||
|
instance_destroy(self);
|
||
|
}
|
||
|
doDrag();
|
||
|
}
|
||
|
#endregion
|