2022-01-13 05:24:03 +01:00
|
|
|
/// @description init
|
|
|
|
#region window
|
|
|
|
//if(keyboard_check_pressed(vk_f12)) DEBUG = !DEBUG;
|
|
|
|
|
|
|
|
if(_cursor != CURSOR) {
|
|
|
|
window_set_cursor(CURSOR);
|
|
|
|
_cursor = CURSOR;
|
|
|
|
}
|
|
|
|
CURSOR = cr_default;
|
|
|
|
|
|
|
|
if((win_wp != WIN_W || win_hp != WIN_H) && (WIN_W > 1 && WIN_H > 1)) {
|
2022-11-01 03:06:03 +01:00
|
|
|
display_refresh();
|
2022-09-21 06:09:40 +02:00
|
|
|
|
|
|
|
renderAll();
|
2022-01-13 05:24:03 +01:00
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region focus
|
|
|
|
HOVER = noone;
|
|
|
|
|
|
|
|
if(PANEL_MAIN != 0)
|
|
|
|
PANEL_MAIN.stepBegin();
|
|
|
|
DIALOG_DEPTH_HOVER = 0;
|
|
|
|
|
|
|
|
with(_p_dialog) {
|
|
|
|
checkFocus();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region nodes
|
|
|
|
for(var i = 0; i < ds_list_size(NODES); i++) {
|
|
|
|
NODES[| i].stepBegin();
|
|
|
|
}
|
|
|
|
|
2022-01-25 04:05:30 +01:00
|
|
|
if(UPDATE & RENDER_TYPE.full) {
|
2022-01-13 05:24:03 +01:00
|
|
|
renderAll();
|
2022-01-25 04:05:30 +01:00
|
|
|
UPDATE = RENDER_TYPE.none;
|
|
|
|
} else if(UPDATE & RENDER_TYPE.partial) {
|
2022-11-14 03:16:15 +01:00
|
|
|
noti_warning("Update partial stack size to " + string(ds_stack_size(RENDER_STACK)));
|
2022-01-25 04:05:30 +01:00
|
|
|
renderUpdated();
|
|
|
|
UPDATE = RENDER_TYPE.none;
|
|
|
|
}
|
2022-01-13 05:24:03 +01:00
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region clicks
|
|
|
|
DOUBLE_CLICK = false;
|
|
|
|
if(mouse_check_button_pressed(mb_left)) {
|
|
|
|
if(dc_check > 0) {
|
|
|
|
DOUBLE_CLICK = true;
|
|
|
|
dc_check = 0;
|
|
|
|
} else {
|
|
|
|
dc_check = PREF_MAP[? "double_click_delay"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dc_check--;
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region step
|
|
|
|
if(array_length(action_last_frame) > 0) {
|
|
|
|
ds_stack_push(UNDO_STACK, action_last_frame);
|
|
|
|
ds_stack_clear(REDO_STACK);
|
|
|
|
}
|
|
|
|
action_last_frame = [];
|
|
|
|
#endregion
|