Releases: mmower/rez
v1.6.10
Pass arbitrary expressions to component attributes using the {}
syntax a la Phoenix LiveView.
<.dialog cost={2+2}>
passes {cost: 4}
as assigns to the invocation of the dialog
component.
Removes Heredoc and Tracery grammar attribute types. In practice they never got used, also removes the bundled tracery.js.
v1.6.8
Updated to Elixir 1.17 and Erlang 27.7
Improvements to dependency checking when building initialization order
Fixes parsing of Heredocs and Dice with new die roll syntax ^r:
RezDieRoll now allows multiple die to explode
All tests running again
Re-implemented copy
Attributes with _die suffix auto-generate a _roll property
v1.6.6 - @elem
v1.6.5
v1.6.4
This update adds the following:
Adds $init_after: attribute that allows specifying a custom init order for elements
Dispatches document_loaded event on DOMContentLoaded
Calls to setAttribute() trigger on_set_attr
Stdlib: +Array#zip, +Array#min, +Array#max, +Math#perc, +RezBasicObject#unmap_attr
Stdlib: +Rez.D4, +Rez.D6, +Rez.D8, +Rez.D10, +Rez.D12, +Rez.D20, +Rez.D100
Stdlib: -Number#chance
v1.6.2 better initializers and dice support
v1.6.2
^i{} initializers now take an optional priority suffix so ^i:1{} will initialize before ^i:10{} allowing one initializer to depend upon the value of another initializer. Previously this was impossible. Priorities range from 1 to 10 with 10 being the default.
Advantage and Disadvantage have been added to RezDieRoll
. In addition a new convenience method Rez.makeDie() parses die specification strings to create the appropriate die roll object.
v1.6.1 More copying improvements
Validates @mixin's only provide functions and prototypes.
Making copies is more convenient.
Elements can be removed.
Improvements to stdlib
v1.6.0 — Mixins
Adds the @mixin element for sharing implementation between elements
v1.5.4 QoL updates
QoL fixes
No longer need to special case $player with $global: true
Stdlib: adds Number#round_to_nearest
^i{} initializer now implemented wrapped as immediate function
Adds RezDie#open_roll
Calling event handlers converts false into RezEvent.noop()
Adds events to RezGame for scene/end, scene/pause, and scene/resume
All Rez CSS classes now have a "rez-" prefix
Adds missing accessors
v1.5.3 minor improvements
Improves --write-obj-map
Adds Game on_scene_start event handler