Skip to content

0.6.4

Latest
Compare
Choose a tag to compare
@shdwcat shdwcat released this 13 Oct 22:29

New Features

YuiScript

  • You can now refer to GM functions/scripts/objects/assets by using ~asset_name, example:

    on_click: ~yui_log('button clicked!')

    (in the case of scripts/functions you must do this rather than how it was in previous versions, see section below)
    This replaces the previous |gm_object method of referring to game objects (currently still allowed but will generate a warning).
    This also works for referring to sprites from background or sprite properties of YUI elements -- in the future you will need to use this method!

  • YUI now logs which functions/scripts/assets you use to datafiles/logs/yui_asset_use_log.csv
    In the future this will help with building a whitelist for what is allowed to be called from .yui files, to avoid tampering
    (If you're using a git repo make sure to add datafiles/logs/ to your .gitignore file!)

  • The 'infix call operator' >> has been replaced by |> (though both are currently allowed)
    https://github.com/shdwcat/yui-vs-code-support/ extension will be updated in the near future to recognize these changes

Fixes

  • Fixed miscellaneous minor crashes

⚠ Breaking(ish) change

  • Calling scripts/functions from .yui files must use the new ~ syntax described above
    If you really don't want to update your files right now, you can toggle the macro YUI_ALLOW_UNSAFE_FUNCTION_CALLS to true
    BUT that macro will go away in a future version!

Full Changelog: 0.6.3...0.6.4