Skip to content

Useful GML Scripts 2.5.0

Compare
Choose a tag to compare
@mstop4 mstop4 released this 13 Nov 04:42
· 57 commits to main since this release
  • Added "on confirm" callback support for Menu Spinners.

  • "On change" callbacks now support three addtional parameters:

    • _index - the updated index
    • _value - the updated value
    • _delta - how the index changed (-1 or 1)
  • Functions that add items to menus (e.g. *_menu_add_*) now return the newly added item.

  • References to the parent menu add to all Menu Items.

  • *_menu_get_item_by_index and *_menu_get_item_by_label added to Column and Grid menus.

  • Improved Grid Menu navigation.

  • Fixed "on change" and "cursor move" SFX playing at the same time when moving cursor left or right in a Grid Menu.

  • Adjusted vertical alignment of menu cursor with menu items. Cursor sprites now requires Middle Left origin points instead of Top Left.

  • Add a WIP menu switching system, allowing you to fade one menu out and then fade in another.

  • Added new parameter to DynamicValue constructor: stop_outside_range. If set to true, the DynamicValue's delta will be automatically set to 0 when falls outside the range of min_v to max_v, before the value is limited.

  • Renamed clamp_mode parameter in DynamicValue constructor to limit_mode

  • Added obj_text_object component. Draws text according to the instance's sprite properties, e.g. image_angle, image_scale, etc.

  • Fixed "Y" key in Control Manager demo.