2022-01-13 05:24:03 +01:00
|
|
|
/// @description init
|
2024-05-29 04:41:08 +02:00
|
|
|
if(init_pressing && mouse_release(mb_left))
|
|
|
|
init_pressing = false;
|
|
|
|
|
2023-09-29 02:13:17 +02:00
|
|
|
if !ready exit;
|
|
|
|
if !active exit;
|
2022-01-13 05:24:03 +01:00
|
|
|
|
2023-02-28 09:43:01 +01:00
|
|
|
#region window control
|
|
|
|
if(sFOCUS) {
|
2023-09-15 20:12:02 +02:00
|
|
|
if(destroy_on_escape && keyboard_check_pressed(vk_escape) && checkClosable())
|
2024-09-13 10:09:19 +02:00
|
|
|
instance_destroy();
|
2022-01-13 05:24:03 +01:00
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region resize
|
2024-09-11 09:54:40 +02:00
|
|
|
if(window != noone) {
|
2024-09-11 11:56:41 +02:00
|
|
|
dialog_w = winwin_get_width_safe(window);
|
|
|
|
dialog_h = winwin_get_height_safe(window);
|
2024-09-11 09:54:40 +02:00
|
|
|
}
|
|
|
|
|
2022-01-13 05:24:03 +01:00
|
|
|
if(_dialog_h != dialog_h || _dialog_w != dialog_w) {
|
|
|
|
_dialog_h = dialog_h;
|
|
|
|
_dialog_w = dialog_w;
|
|
|
|
|
|
|
|
if(onResize != -1) onResize();
|
|
|
|
}
|
2024-09-11 09:54:40 +02:00
|
|
|
#endregion
|
|
|
|
|