0.15.2
Many small fixes...
Bug fixes
lastOption
now works correctly onBatch
whether the underlying structure was aBatch.Combine
.- Support multiple newlines in
Text
(and thereforeInputField
) instances. - Plugin: Use of period (
.
) in a cell does not throw a number exception. - Plugin: Negative
Int
s andDouble
s 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 betweenCloneTiles
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. UsetoIncircle
ortoCircumcircle
instead.Rectangle
andBoundingBox
now haveresizeBy
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
andto
aliases are provided forstart
andend
.SceneUpdateFragment
now has awithLayers
method to replace the existing layers with another set.SceneUpdateFragment
now has amapLayers
method, for example if you want to set the magnification on all layers.- Added an alias to
QuickCache
undermutable.QuickCache
.QuickCache
is a handy type if you need to avoid recalculating values, but it's been hidden under themutable
package as a warning to tread carefully. Batch
: Addedlast
operation.Batch
: Addeddistint
anddistinctBy
operations.Batch
: AddedpadTo
operation.
Plugin Improvements
IndigoOptions
now supports antialiasing flag, defaults to false.- Generators:
embedText
now supports apresent
function simply of typeString => 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 wordnull
is assumed to be a string!). - Generators: Columns containing
null
values are typed as optional.
Full Changelog: v0.15.1...v0.15.2