Pixel-Composer/objects/_p_dialog/Step_1.gml
2024-05-29 09:41:08 +07:00

22 lines
No EOL
451 B
Text

/// @description init
if(init_pressing && mouse_release(mb_left))
init_pressing = false;
if !ready exit;
if !active exit;
#region window control
if(sFOCUS) {
if(destroy_on_escape && keyboard_check_pressed(vk_escape) && checkClosable())
instance_destroy(self);
}
#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