Pixel-Composer/objects/_addon_custom/Destroy_0.gml

16 lines
470 B
Text
Raw Normal View History

2023-05-03 21:42:17 +02:00
/// @description
if(!ready) exit;
var runResult = lua_call(thread, "destroy");
array_remove(ANIMATION_PRE, animationPreStep);
array_remove(ANIMATION_POST, animationPostStep);
var arr = variable_struct_get_names(context_menus);
2023-07-25 20:12:40 +02:00
for( var i = 0, n = array_length(arr); i < n; i++ ) {
2023-05-03 21:42:17 +02:00
var _call = ds_map_try_get(CONTEXT_MENU_CALLBACK, arr[i], []);
for( var j = array_length(_call) - 1; j >= 0; j-- ) {
if(_call[j]._addon == self)
array_delete(_call, j, 1);
}
}