Pixel-Composer/objects/o_dialog_palette/Step_1.gml

21 lines
480 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @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
#region resize
if(_dialog_h != dialog_h || _dialog_w != dialog_w) {
_dialog_h = dialog_h;
_dialog_w = dialog_w;
if(onResize != -1) onResize();
}
#endregion