Releases: kemonologic/fuwafuwa
Releases · kemonologic/fuwafuwa
1.2.0
A guide to updating projects to 1.2.0 is here, but existing code should continue to work as-is for now.
- Added
timer_stop
, allowing a timer to be halted and its progress reset simultaneously - Added new argument to
timer_set_script
, allowing execution of scripts on resume (fuwaevent.onResume
) and pause/stop (fuwaevent.onHalt
) - You can now remove scripts previously assigned to a timer (in
timer_set_script
, setexecuteScript
to -1 and optionally specify the event to clear, default beingfuwaevent.onComplete
) timer_unpause
has been renamed totimer_resume
timer_create_paused
has been renamed totimer_create_stopped
timer_get_paused
has been renamed totimer_get_halted
- Internal:
RESTARTED_THIS_FRAME
has been renamed toREPEATED_THIS_FRAME
(internal) and updated references to it - Internal: Updated script
fuwa_script_called
1.1.4
- Scripts attached to timers now fire before the next node is chosen, allowing those timers to (e.g.) pick up on new nodes appended by the script
- Sequence duration is now properly updated whenever functions like
timer_set_duration
are called - these returned stale values for functions liketimer_get_sequence_duration
before - Sequence durations are now consistently stored as internal units and converted to external units in the relevant functions. This caused inconsistent behavior when checking sequence duration before
- Small fix to internal script
1.1.3
- Fix missing reference on autodestroy GC fast path
1.1.2
- Fix typo in new
timer_unpause
optional argument
1.1.1
- Changed the method by which timers are offset when unpaused to prevent weird stuff from happening on raw/ease value checks, etc
- Add optional
clearRestartFlag
argument totimer_unpause
, allowing bypassingtimer_check
returningtrue
on manually restarted timers
1.1.0
- Add
argumentArray
parameter totimer_set_script
so that it's actually useful! - Fixed typo in config
1.0.0
- Added timer sequences, and modified existing functions to accept timer sequences (e.g.
timer_create
can now take an array as the first argument) - Completely overhauled garbage collection & removed GC on timer_check since many timers will be reused, etc
- Fixed
overridePingpong
flag in raw/ease value functions - Cleaned up documentation
- Added some utility scripts
GMS 2.3+ occasionally may completely wipe some functions on import for unknown reasons. If this happens, try importing again and it should be fixed.
0.3.1
- Add ping-pong support (
timer_get_pingpong
/timer_set_pingpong
) - Fix minor value caching bug for ease/raw values
0.3.0
- Getters/setters are now in timer units, so (for example) a timer set for 5 seconds will now return 5 (s) and not 5000 (ms) when checking its total duration with
timer_get_duration
. For the legacy behavior (everything in ms/frames), enable_FUWA_OPTIONS_USE_BASE_UNITS
in_fuwa_config
- Deprecated
time.start
enum - do a find/replace fortime.start.
->time.
if upgrading from prior versions. (don't skip the dot!!!) timer_get_numfinished
now returns the correct value- Store the normalized progress value to skip recalculating it when unnecessary
- Added
timer_get_unit_string
to return the unit as a string, with optional argument to turn off indication of framelocked units - Added
timer_get_ease_type_string
to return the ease type as a string - Updated test project
0.2.9.1
Fix occasional issue with deactivating timers too early causing non-repeating timers not to fire