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 frombackground
orsprite
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 adddatafiles/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 macroYUI_ALLOW_UNSAFE_FUNCTION_CALLS
totrue
BUT that macro will go away in a future version!
Full Changelog: 0.6.3...0.6.4