Releases: Alphish/gm-community-toolbox
Releases · Alphish/gm-community-toolbox
24.6.1
24.6.0
- String utilities
- string_contains - Created a function to check whether a given string contains the given substring.
- Array utilities: Basic operations
- array_empty - Created a function to check if an array is empty.
- array_clear - Created a function to clear arrays.
- array_push_ext - Created a function to push items from an array to another array.
- array_insert_ext - Created a function to insert items from an array into another array.
- Struct utilities
- struct_assign - Created a function to assign contents of one struct (or sequence of structs) to another.
- DS List utilities
- ds_list_create_from_array - Created a function to create a DS list from an array.
- ds_list_add_from_array - Created a function to add items to a DS list from an array.
- ds_list_to_array - Created a function to create an array from a DS list.
- ds_list_add_to_array - Created a function to add items to an array from a DS list.
- JSON utilities
- Collision utilities
- instance_position_top - Created a function to find the least-depth instance at the given position.
- instance_position_array - Created a function to populate an array with instances at the given position.
- instance_place_array - Created a function to populate an array with instances colliding with the caller's mask at the given position.
- collision_point_array - Created a function to populate an array with instances colliding with the given point.
- collision_circle_array - Created a function to populate an array with instances colliding with the given circle.
- collision_line_array - Created a function to populate an array with instances colliding with the given line.
- collision_rectangle_array - Created a function to populate an array with instances colliding with the given rectangle.
- collision_ellipse_array - Created a function to populate an array with instances colliding with the given ellipse.
- Drawing utilities: Settings
- draw_set_color_alpha - Created a function to set color and alpha at once.
- draw_set_align - Created a function to set horizontal and vertical text align at once.
- Drawing utilities: Shapes
- draw_arc - Created a function to draw an arc line.
- draw_circle_sector - Created a function to draw a circle sector shape (i.e. a pie slice).
- draw_circle_segment - Created a function to draw a circle segment shape (i.e. a bow).
- draw_ring - Created a function to draw a ring shape.
- draw_ring_arc - Created a function to draw a ring slice shape.
- Other utilities: Static initialization
- static_init - Created a function to initialize static variables of other functions.
- static_init_in_progress - Created a function to check if static variables initialization is in progress, in order to skip the non-static logic.
23.4.1
- Math utilities: Fixed step approach
- approach_angle - Tweaked the JSDocs.
- String utilities
- string_to_char_array - Tweaked the JSDocs.
- File utilities
- file_read_all_text - Tweaked the JSDocs.
- JSON utilities
23.4.0
- Math utilities: Euclidean division
- Math utilities: Fixed step approach
- approach - Created a function to approach a given target value by a fixed step.
- approach_angle - Created a function to approach a given angle by a fixed step.
- Math utilities: Linear interpolation
- lerp_angle - Created a function to approach a given angle by a given fraction.
- unlerp - Created a function to retrieve the interpolation amount for the given value and range.
- relerp - Created a function to convert a value in one range to a corresponding value in another range.
- String utilities
- string_to_char_array - Created a function to convert a string to an array of its characters.
- Array utilities: Number array statistics
- array_max - Created a function to find the lowest value in a numbers array.
- array_min - Created a function to find the greatest value in a numbers array.
- array_median - Created a function to find the median value in a numbers array.
- array_mean - Created a function to calculate the average value of the numbers array values.
- array_sum - Created a function to calculate the sum of the numbers array values.
- Array utilities: Retrieving random items
- array_get_random - Created a function to get a random value from an array.
- array_pop_random - Created a function to get and remove a random value from an array.
- File utilities
- file_read_all_text - Created a function to read file contents as a string.
- file_write_all_text - Created a function to replace file contents with a given string.
- JSON utilities
- Shader utilities
- shader_set_uniform_color - Created a function to easily pass colour parameters into shaders.
- Other utilities
- is_nullish - Created a function to check if the given value is nullish.
- is_defined - Created a function to check if the given value is defined (not nullish).