Pixel-Composer/objects/_p_dialog/Step_1.gml

19 lines
382 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
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())
2023-02-28 09:43:01 +01:00
instance_destroy(self);
2022-01-13 05:24:03 +01:00
}
#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