Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Releases: vladdeSV/gm_extensions

v1.2.0

26 Dec 21:05
Compare
Choose a tag to compare

Changes

  • string_*(...) functions now assume first character index is at 1.
  • log(...), no long comma-separates arguments.
  • _unittests.gml, updated accordingly to other changes in this release.

Fixes

  • Renamed real_within_exlusive(...) -> real_within_exclusive(...) (typo).
  • Optimized array_swap_item(...) if index1 and index2 are the same.
  • Ensured array_height(array) checking if argument array is array.
  • Add unittests for ds_list_swap_item(...).
  • extractor.d complains if non-misc function do not have unittests.
  • assert(...) optional argument properly documented.
  • array_append(...), removed incorrect documentation.
  • Amount of scripts in the README.md.

Added

  • Added Marketplace link in README.md.
  • array_filter(array, script), returns array of items, where the items passed through the script returns true (if script(array[n]) == true).
  • array_2d_of(...), possibility to create 2D array. All aguments must be of type array (1D).
  • Unittests for all non-misc functions.

v1.1.1

20 Aug 14:32
Compare
Choose a tag to compare

Fixes

  • array_swap_item(...) now calls _gme_arguments(...) correctly. #2

v1.1.0

18 Aug 20:04
Compare
Choose a tag to compare

Huge release πŸŽ‰πŸŽ‰! Lots of changes, read with caution πŸ˜‰

Changed

  • Renamed array_create -> array_of, due to recent GameMaker update.
  • Renamed array_copy -> array_clone, due to recent GameMaker update.
  • array_split(array, value), now returns 2D array instead of array of string.
  • Swapping functions have their names changed to minimize confusion. *_swap(...) -> *_swap_item(...).
  • Most array_*(...) functions modified original array.
  • array_*(...) functions which modify arrays by reference have the array argument prefixed with an &, eg. array_reverse(&array).
  • real_is_*(number) can take in non-numbers, but will return false.
  • Removed deep variable in array_expand(...).

Added

  • array_is_1d(array), returns true if is 1D array, else false.
  • array_sort(array), sorts numbers ascendingly, strings alphabetically.
  • array_replace(array, index, value), replaces array[index] with value.
    • array_replace(array, height, index, value), for 2D arrays.
  • array_swap_item(array, index1, index2), swaps values at index1 and index2 in array.
    • array_swap_item(array, height, index1, index2), for 2D arrays.
  • ternary(comparison, true_value, false_value), if comparison is true, returns true_value, else false_value.
    • Compromise for comparison ? true_value : false_value.
  • string_split(string, separator), returns array of string, where each item are the values of string split by separator.
  • string_slice(string, from, to), returns a portion of string (string[from .. to]), where from is inclusive and to is exclusive. First character has index 0.
  • string_substring(string, from, length), returns length amount of characters in string from from.
  • string_find(source, find, [nth = 1]), returns position of nth occurrence of find in string.

Removed

  • array_equal(array1, array2), use default GML array_equals(var1, var2) instead.
  • object_destroy(id), use with(instance) instance_destroy(); instead.

Fixes

  • type_of(variable) now supports data structures (ds_*).
  • array_at(height, index) now appends correctly.
  • log(...) now properly displays text.

Minor

  • Change: extensions_gme -> _gme.
  • Fix: Clarified many parameters in functions.

v1.0.1

11 May 19:56
Compare
Choose a tag to compare

Changes

  • array_at(array, height, index) overload not available in REFERENCE.md, fixes #1.
  • Added extension_gme, which is inteded to provide gm_extensions specific functions.
    • Functions with optional arguments, or overloads should use new function _gme_arguments(script, argument_count, count, counts...).
  • For //params: , optional arguments are now surrounded with [ ].
  • assert(...) now properly stops code.
  • Fixed newlines in REFERENCE.md.

v1.0.0

09 May 16:41
Compare
Choose a tag to compare

πŸŽ‰ 🎈 πŸŽ‚

Horray! The first release of GameMaker 1.4 Library Extensions is live!

This release is primarily aimed at arrays, and such, most functionality is about arrays. Take a look at the reference for a quick overview of which functions exists!