diff --git a/bin/resources/app/api/shared/replace-v2.gml b/bin/resources/app/api/shared/replace-v2.gml index 953ff262..45ad14d5 100644 --- a/bin/resources/app/api/shared/replace-v2.gml +++ b/bin/resources/app/api/shared/replace-v2.gml @@ -454,7 +454,7 @@ tilemap_set(tilemap_element_id:layer_tilemap,tiledata:tilemap_data,cell_x:int,ce tilemap_set_at_pixel(tilemap_element_id:layer_tilemap,tiledata:tilemap_data,x:number,y:number)->bool tileset_get_texture(tileset:tileset)->texture -tileset_get_uvs(tileset:tileset)->int[] +tileset_get_uvs(tileset:tileset)->number[] tileset_get_name(tileset:tileset)->string tilemap_get_tileset(tilemap_element_id:layer_tilemap)->tileset diff --git a/bin/resources/app/api/shared/replace-v23.gml b/bin/resources/app/api/shared/replace-v23.gml index af492014..ec75df5d 100644 --- a/bin/resources/app/api/shared/replace-v23.gml +++ b/bin/resources/app/api/shared/replace-v23.gml @@ -190,7 +190,7 @@ is_debug_overlay_open()->bool is_mouse_over_debug_overlay()->bool is_keyboard_used_debug_overlay()->bool show_debug_log(enable:bool)->void -debug_event(string:string,silent:bool)->struct // TODO ResourceCounts and DumpMemory structs +debug_event(string:string,?silent:bool)->struct // TODO ResourceCounts and DumpMemory structs debug_get_callstack(?maxDepth:int)->string[] dbg_view(name:string,visible:bool,?x:number,?y:number,?width:number,?height:number)->debug_view @@ -211,7 +211,7 @@ dbg_checkbox(ref_or_array:debug_reference|debug_reference[],?label dbg_colour(ref_or_array:debug_reference|debug_reference[],?label:string)£->void dbg_color(ref_or_array:debug_reference|debug_reference[],?label:string)$->void dbg_button(label:string,callback_ref:T|debug_reference,?width:number,?height:number)->void -dbg_sprite_button(label:string,callback_ref:T|debug_reference,sprite_ref_or_array:debug_reference|debug_reference[],index_ref_or_array:debug_reference|debug_reference[],?width:number,?height:number,?xoffset:number,?yoffset:number,?widthSprite:number,?heightSprite:number)->void +dbg_sprite_button(callback_ref:T|debug_reference,sprite_ref_or_array:debug_reference|debug_reference[],index_ref_or_array:debug_reference|debug_reference[],?width:number,?height:number,?xoffset:number,?yoffset:number,?widthSprite:number,?heightSprite:number)->void dbg_same_line()->void dbg_add_font_glyphs(filename_ttf:string,?size:number,?font_range:int)->void ref_create(context:instance|struct|debug_reference|debug_reference,name:string|debug_reference,?index:int)->debug_reference @@ -332,6 +332,9 @@ window_set_showborder(show:bool)->void window_get_showborder()->bool window_enable_borderless_fullscreen(enable:bool)->void window_get_borderless_fullscreen()->bool +window_minimise()£->void +window_minimize()$->void +window_restore()->void window_mouse_set_locked(enable:bool)->void window_mouse_get_locked()->bool window_mouse_get_delta_x()->number @@ -362,6 +365,8 @@ audio_sound_get_loop_end(index:sound|sound_instance)->number audio_sync_group_is_paused(sync_group_id:sound_sync_group)->bool +audio_throw_on_error(enable:bool)->void + audio_group_get_gain(groupId:audio_group)->number audio_group_get_assets(groupId:audio_group)->sound[] audio_sound_get_audio_group(index:sound|sound_instance)->audio_group @@ -428,7 +433,7 @@ font_enable_effects(ind:font, enable:bool, ?params:font_effect_params|struct)->v #region 9.6 script_execute_ext(ind:script,?args:any[],?offset:int=0,?num_args:int=args_length-offset)->any -method_call(method:T,args:any[],?offset:int=0,?num_args:int=args_length-offset)->any +method_call(method:T,?args:any[],?offset:int=0,?num_args:int=args_length-offset)->any #endregion @@ -586,6 +591,7 @@ ps_mode_burst#:particle_mode ////////////// matrix_transform_vertex(matrix:number[], x:number, y:number, z:number, ?w:number)->number[] +matrix_inverse(matrix:number[])->number[] os_ps4#:os_type os_ps5#:os_type @@ -600,6 +606,10 @@ event_data*:ds_map tm_systemtiming#:display_timing_method +draw_enable_svg_aa(enable:bool)!->void +draw_set_svg_aa_level(aa_level:number)!->void +draw_get_svg_aa_level()!->number + stencilop_keep#:gpu_stencilop stencilop_zero#:gpu_stencilop stencilop_replace#:gpu_stencilop @@ -678,6 +688,7 @@ network_connect_nonblocking#:network_connect_type network_connect_active#:network_connect_type network_connect_passive#:network_connect_type +buffer_write(buffer:buffer, type:buffer_type, value:buffer_auto_type)->buffer_write_error buffer_get_surface(buffer:buffer, source_surface:surface, offset:int)->void buffer_get_surface_depth(buffer:buffer, source_surface:surface, offset:int)->bool buffer_set_surface(buffer:buffer, dest_surface:surface, offset:int)->void @@ -686,6 +697,9 @@ buffer_set_used_size(buffer:buffer,size:int)->void buffer_copy_stride(src_buffer:buffer, src_offset:int, src_size:int, src_stride:int, src_count:int, dest_buffer:buffer, dest_offset:int, dest_stride:int)->void buffer_surface_copy&:any +buffer_error_general#:buffer_write_error +buffer_error_out_of_space#:buffer_write_error +buffer_error_invalid_type#:buffer_write_error gp_axis_acceleration_x#:gamepad_button gp_axis_acceleration_y#:gamepad_button @@ -1296,7 +1310,7 @@ flexpanel_delete_node(node:flexpanel_node, ?recursive:bool)->void flexpanel_node_insert_child(parent:flexpanel_node, node:flexpanel_node, index:int)->void flexpanel_node_remove_child(parent:flexpanel_node, child:flexpanel_node)->void flexpanel_node_remove_all_children(parent:flexpanel_node)->void -flexpanel_node_get_num_children(parent:flexpanel_node)->void +flexpanel_node_get_num_children(parent:flexpanel_node)->int flexpanel_node_get_child(parent:flexpanel_node, index_or_name:int|string)->flexpanel_node|undefined flexpanel_node_get_child_hash(parent:flexpanel_node, index_or_name:int|string)->flexpanel_node|undefined flexpanel_node_get_parent(child:flexpanel_node)->flexpanel_node|undefined @@ -1306,7 +1320,7 @@ flexpanel_node_set_name(node:flexpanel_node, name:string)->void flexpanel_node_set_data(node:flexpanel_node, struct:struct)->void flexpanel_node_get_struct(node:flexpanel_node)->flexpanel_data flexpanel_calculate_layout(node:flexpanel_node, width:number|undefined, height:number|undefined, direction:flexpanel_direction_type)->void -flexpanel_node_layout_get_position(node:flexpanel_node, ?relative:bool)->flexpanel_position +flexpanel_node_layout_get_position(node:flexpanel_node, ?relative:bool)->flexpanel_layout flexpanel_node_style_get_align_content(node:flexpanel_node)->flexpanel_justify_type flexpanel_node_style_get_align_items(node:flexpanel_node)->flexpanel_align_type flexpanel_node_style_get_align_self(node:flexpanel_node)->flexpanel_align_type diff --git a/bin/resources/app/api/shared/replace.gml b/bin/resources/app/api/shared/replace.gml index 3a7bdac2..9e0c277f 100644 --- a/bin/resources/app/api/shared/replace.gml +++ b/bin/resources/app/api/shared/replace.gml @@ -896,13 +896,13 @@ draw_vertex(x:number,y:number)->void draw_vertex_colour(x:number,y:number,col:int,alpha:number)£->void draw_vertex_color(x:number,y:number,col:int,alpha:number)$->void draw_primitive_end()->void -sprite_get_uvs(spr:sprite,subimg:int)->int[] +sprite_get_uvs(spr:sprite,subimg:int)->number[] font_get_uvs(font:font)->font[] sprite_get_texture(spr:sprite,subimg:int)->texture font_get_texture(font:font)->texture texture_get_width(texid:texture)->int texture_get_height(texid:texture)->int -texture_get_uvs(texid:texture)->int[] +texture_get_uvs(texid:texture)->number[] draw_primitive_begin_texture(kind:primitive_type,texid:texture)->void draw_vertex_texture(x:number,y:number,xtex:number,ytex:number)->void draw_vertex_texture_colour(x:number,y:number,xtex:number,ytex:number,col:int,alpha:number)£->void diff --git a/bin/resources/app/api/shared/types-v23.gml b/bin/resources/app/api/shared/types-v23.gml index d0b32ff1..bd304f2d 100644 --- a/bin/resources/app/api/shared/types-v23.gml +++ b/bin/resources/app/api/shared/types-v23.gml @@ -113,6 +113,8 @@ typedef video_format : uncompareable; feathername: Struct.Zip; typedef zip_object; +typedef buffer_write_error : int; + typedef physics_hitpoint : struct; feathername: Constant.SendOption @@ -257,7 +259,7 @@ typedef flexpanel_unit_type : uncompareable; feathername: Enum.flexpanel_direction typedef flexpanel_direction_type : string; -typedef flexpanel_position : struct; +typedef flexpanel_layout : struct; feathername: Enum.flexpanel_justify typedef flexpanel_justify_type : string; diff --git a/bin/resources/app/api/v23/extra.gml b/bin/resources/app/api/v23/extra.gml index 4271a48f..a0f331c6 100644 --- a/bin/resources/app/api/v23/extra.gml +++ b/bin/resources/app/api/v23/extra.gml @@ -530,7 +530,7 @@ RTL?:flexpanel_direction_type flexpanel_direction#:flexpanel_direction_enum -??flexpanel_position +??flexpanel_layout left?:number top?:number width?:number @@ -613,4 +613,4 @@ relative?:flexpanel_position absolute?:flexpanel_position static?:flexpanel_position -flexpanel_position_type#:flexpanel_gutter_enum \ No newline at end of file +flexpanel_position_type#:flexpanel_position_enum \ No newline at end of file diff --git a/bin/resources/app/api/v23/fnames b/bin/resources/app/api/v23/fnames index 80001580..284e188c 100644 --- a/bin/resources/app/api/v23/fnames +++ b/bin/resources/app/api/v23/fnames @@ -757,7 +757,7 @@ dbg_checkbox(dbgRefOrArrayOfDbgRef,[label],...) dbg_colour(dbgRefOrArrayOfDbgRef,[label],...)£ dbg_color(dbgRefOrArrayOfDbgRef,[label],...)$ dbg_button(label,dbgRef,[width],[height]...) -dbg_sprite_button(label,dbgRef,dbgRefSprite,dbgRefSpriteIndex,[width],[height],[xoffset],[yoffset],[widthSprite],[heightSprite]...) +dbg_sprite_button(dbgRef,dbgRefSprite,dbgRefSpriteIndex,[width],[height],[xoffset],[yoffset],[widthSprite],[heightSprite]...) dbg_same_line() dbg_add_font_glyphs( filenameTTF,[size],[fontRange]... ) ref_create(dbgrefOrStruct,dbgrefOrName,[index],...) @@ -1256,6 +1256,9 @@ window_get_caption() window_set_cursor(curs) window_enable_borderless_fullscreen(enable) window_get_borderless_fullscreen() +window_minimise()£ +window_minimize()$ +window_restore() cr_default# cr_none# cr_arrow# @@ -1409,6 +1412,7 @@ audio_sync_group_debug(sync_group_id) audio_sync_group_is_playing(sync_group_id) audio_sync_group_is_paused(sync_group_id) audio_debug(enable) +audio_throw_on_error(enable) audio_group_load( groupId ) audio_group_unload( groupId ) @@ -1680,7 +1684,7 @@ path_shift(ind,xshift,yshift) script_execute(ind,arg0,arg1,...) script_execute_ext(ind,[array],[offset=0],[num_args=array_length(array)-offset],...) -method_call(method,array,[offset=0],[num_args=array_length(array)-offset],...) +method_call(method,[array],[offset=0],[num_args=array_length(array)-offset],...) // section 9.8 @@ -1828,7 +1832,7 @@ ds_type_priority# ds_stack_create() ds_stack_destroy(id) ds_stack_clear(id) -ds_stack_copy(id,source) +ds_stack_copy(destination,source) ds_stack_size(id) ds_stack_empty(id) ds_stack_push(id,value,...) @@ -1842,7 +1846,7 @@ ds_stack_read(id,str,...) ds_queue_create() ds_queue_destroy(id) ds_queue_clear(id) -ds_queue_copy(id,source) +ds_queue_copy(destination,source) ds_queue_size(id) ds_queue_empty(id) ds_queue_enqueue(id,value,...) @@ -1857,7 +1861,7 @@ ds_queue_read(id,str,...) ds_list_create() ds_list_destroy(id) ds_list_clear(id) -ds_list_copy(id,source) +ds_list_copy(destination,source) ds_list_size(id) ds_list_empty(id) ds_list_add(id,value,...) @@ -1882,7 +1886,7 @@ ds_list_set(id,pos,value) ds_map_create() ds_map_destroy(id) ds_map_clear(id) -ds_map_copy(id,source) +ds_map_copy(destination,source) ds_map_size(id) ds_map_empty(id) ds_map_add(id,key,value) @@ -1916,7 +1920,7 @@ ds_map_set(id,key,value) ds_priority_create() ds_priority_destroy(id) ds_priority_clear(id) -ds_priority_copy(id,source) +ds_priority_copy(destination,source) ds_priority_size(id) ds_priority_empty(id) ds_priority_add(id,value,priority) @@ -1934,7 +1938,7 @@ ds_priority_read(id,str,...) ds_grid_create(w,h) ds_grid_destroy(id) -ds_grid_copy(id,source) +ds_grid_copy(destination,source) ds_grid_resize(id,w,h) ds_grid_width(id) ds_grid_height(id) @@ -2132,6 +2136,7 @@ matrix_build_projection_perspective(width,height,znear,zfar) matrix_build_projection_perspective_fov(fov_y,aspect,znear,zfar) matrix_multiply(matrix,matrix) matrix_transform_vertex(matrix, x, y, z, [w]) +matrix_inverse(matrix) matrix_stack_push(...) matrix_stack_pop() @@ -2253,6 +2258,9 @@ draw_enable_drawevent(enable) draw_enable_swf_aa(enable)! draw_set_swf_aa_level(aa_level)! draw_get_swf_aa_level()! +draw_enable_svg_aa(enable)! +draw_set_svg_aa_level(aa_level)! +draw_get_svg_aa_level()! draw_texture_flush() draw_flush() @@ -3004,6 +3012,9 @@ buffer_surface_copy& buffer_seek_start# buffer_seek_relative# buffer_seek_end# +buffer_error_general# +buffer_error_out_of_space# +buffer_error_invalid_type#