Skip to content

0.15.2

Compare
Choose a tag to compare
@davesmith00000 davesmith00000 released this 26 Nov 21:27
· 139 commits to main since this release

Many small fixes...

Bug fixes

  • lastOption now works correctly on Batch whether the underlying structure was a Batch.Combine.
  • Support multiple newlines in Text (and therefore InputField) instances.
  • Plugin: Use of period (.) in a cell does not throw a number exception.
  • Plugin: Negative Ints and Doubles are correctly recognised.
  • Plugin: Generators can handle trailing quotes.
  • Camera.LookAt behaves correctly with different levels / combinations or global + layer magnification.
  • Camera.LookAt does no produce gaps between CloneTiles due to rounding errors.

General Improvements

  • Text can now have it's letter space and line height set.
  • Rectangle.toCircle deprecated - Disambiguation of whether the circle is inside or outside the rectangle. Use toIncircle or toCircumcircle instead.
  • Rectangle and BoundingBox now have resizeBy methods for relative sizing.
  • Canvas name is now simply the parent ID plus a -canvas suffix, to make CSS work easier by removing the square brackets.
  • Friendly mouse event extractors - the mouse event extractors now only extracts the common case of the position field (e.g. case MouseEvent.onClick(position) => ???) instead of all 8-10 fields, and all other properties need to be accessed from a reference to the event.
  • LineSegment from and to aliases are provided for start and end.
  • SceneUpdateFragment now has a withLayers method to replace the existing layers with another set.
  • SceneUpdateFragment now has a mapLayers method, for example if you want to set the magnification on all layers.
  • Added an alias to QuickCache under mutable.QuickCache. QuickCache is a handy type if you need to avoid recalculating values, but it's been hidden under the mutable package as a warning to tread carefully.
  • Batch: Added last operation.
  • Batch: Added distint and distinctBy operations.
  • Batch: Added padTo operation.

Plugin Improvements

  • IndigoOptions now supports antialiasing flag, defaults to false.
  • Generators: embedText now supports a present function simply of type String => String that allows you to transform any arbitrary file contents into Scala code, to be included as a source file in your game.
  • Generators: Trailing delimiters are supported.
  • Generators: Empty cells are seen as null values (the word null is assumed to be a string!).
  • Generators: Columns containing null values are typed as optional.

Full Changelog: v0.15.1...v0.15.2