Skip to content

Useful GML Scripts Next 7.0.0

Choose a tag to compare

@mstop4 mstop4 released this 15 Aug 21:19
· 64 commits to main since this release

Library Changes

  • Entire library has be refactored to satisfy most Feather code checks. Issue that could not be fixed have been ignored with directives.
  • Deprecated functions and components have been removed:
    • Delta time alarm manager - superseded by Time Sources
    • interpolate_rgb - superseded by merge_colour
    • concat - superseded by string_concat and string_concat_ext
    • split_string - superseded by string_split
  • Objects renamed from obj_* to obj_ugmls_*
  • Script are now prefixed with scr_ugmls
  • Global variables are now prefixed with ugmls_ after global.
  • Menu functions no longer have redundant prefixes indicating what type of menu they operating on, e.g. instead of having the names column_menu_add_selectable and grid_menu_add_selectable, both functions are now simply named add_selectable
    • The one exception are the *_menu_init functions
  • Column and Nested menus now store their menu items in an array instead of a DS List
    • Grid menus still store theirs in a DS Grid
  • Control Manager now stores Players in an array instead of a DS List
  • get_bindings now returns -1 instead of noone if an invalid _control_type is passed into it.
  • get_control_state now returns false instead of noone if an invalid _control_state is passed into it.
  • reset_all_bindings in ControlManagerPlayer renamed to clear_all_bindings
  • pad_string_width now takes a _font argument instead of using the current font.
  • Added to option to provide a callback and arguments to the gamepad discovery mode.
  • Fixed issues with draw_circle_meter and draw_curved_meter where the drawing origin point (_x, _y) were being ignored.

Library Changes from v6.0.0

  • TweenLimitMode has been renamed TWEEN_LIMIT_MODE
  • Fixed bug in handling key config items in grid menus
  • Fixed bug in array_is_subset
  • Fixed bug with wrap
  • Fixed a bug where pressing right on the D-pad did not register as pressing any button on a gamepad
  • Callbacks are now passed to menu items by assigning the on_*_func keys in their configs the actual functions themselves rather than their names as strings.
    • Depending on how your callbacks were written, this could be a breaking change, as the new system may cause the scope of the callback to change.
  • Gamepad connection status tracking moved from Control Manager demo to the Control Manager itself.
  • Menu Item types has been renamed to type and changed from a DS List to a single string.
  • Added Valued Selectables menu items. These work like a regular Selectable, but also has a value field like a Spinner. However, unlike the Spinner, the user cannot change the value themselves, it must be done programmatically via the set_value function.
  • Added scroll arrows to Spinner menu to distinguish it from Valued Selectable items.
  • Added rgb_hex_string_to_real