2022-12-16 09:18:09 +01:00
|
|
|
/// @description
|
2024-02-15 14:23:26 +01:00
|
|
|
var ev_id = async_load[? "id"];
|
2023-02-14 05:32:32 +01:00
|
|
|
var ev_type = async_load[? "event_type"];
|
|
|
|
|
2024-07-01 06:23:46 +02:00
|
|
|
switch(ev_type) {
|
|
|
|
|
|
|
|
case "file_drop_start" :
|
|
|
|
FILE_DROPPING = [];
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "file_drop" :
|
|
|
|
array_push(FILE_DROPPING, async_load[?"filename"]);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "file_drop_end" :
|
2024-07-22 10:21:57 +02:00
|
|
|
_FILE_DROPPED = true;
|
2024-07-01 06:23:46 +02:00
|
|
|
FILE_IS_DROPPING = false;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "file_drag_over" :
|
|
|
|
FILE_IS_DROPPING = true;
|
|
|
|
FILE_DROPPING_X = async_load[? "x"] - window_get_x();
|
|
|
|
FILE_DROPPING_Y = async_load[? "y"] - window_get_y();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "file_drag_leave" :
|
|
|
|
FILE_IS_DROPPING = false;
|
|
|
|
break;
|
2022-12-16 09:18:09 +01:00
|
|
|
}
|