Skip to content

Releases: Alphish/gm-community-toolbox

24.6.1

14 Dec 13:31
Compare
Choose a tag to compare
  • JSON utilities

24.6.0

27 Nov 19:55
Compare
Choose a tag to compare
  • 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
  • JSON utilities
    • json_load - Added the filter and raw parameters to additionally process parsed values.
    • json_save - Added the filter parameter to preprocess values before stringifying.
  • 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
  • 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

19 Aug 12:05
Compare
Choose a tag to compare

23.4.0

19 Aug 06:23
880d373
Compare
Choose a tag to compare
  • Math utilities: Euclidean division
    • eucdiv - Created a function to calculate the quotient of an Euclidean division.
    • eucmod - Created a function to calculate the remainder of an 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
  • 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
  • JSON utilities
    • json_load - Created a function to read a JSON value from a file.
    • json_save - Created a function to write a given value to a JSON file.
  • Shader utilities
  • 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).