Skip to content

Slab v0.8.0

Compare
Choose a tag to compare
@coding-jackalope coding-jackalope released this 06 Aug 18:16
· 122 commits to master since this release

This release adds new features as well as addressing issues reported since the last release. Below is a list of highlighted changes made since the last release. Thanks to the many contributions from the community which have been merged in as well. For a more detailed list of changes, refer to the commit history.

Custom Mouse Cursor

The mouse cursor can now be changed to use an image instead of the system default cursors. This is done through the SetCustomMouseCursor function. The ClearCustomMouseCursor function will clear the custom cursor and revert back to using the system mouse cursor. By passing nil to SetCustomMouseCursor, the cursor can be hidden.

Directory Navigation Breadcrumbs

slab_file_dialog_breadcrumbs

The file dialog has clickable navigation at the top of the dialog. Each component of the path can now be navigated to by clicking on the label.

PushID/PopID

This allows developers to set custom IDs for controls. This is useful for label controls, which uses the text as the ID, but if similar labels exist, the PushID/PopID functionality will allow for differentiation.

Changes

  • [Mouse] Allow customizing screen to slab transforms. (#80)(@idbrii)
  • [Slider] Support drawing as a bar or handle. (#79)(@idbrii)
  • Convert all Input verification to simpler style. (#78)(@idbrii)
  • [SlabTest] Pass nil for missing arg Step. (#77)(@idbrii)
  • [Tree] Render triangles as images instead of a polygon.
  • [API] Allow calls to 'Draw' if 'Update' has not been called. This is useful for developers running a custom love.run function which utilizes fixed updates. (#74)
  • [Separator] Slab.Separator() have wrong position in layout. (#73)
  • [Window] Added 'ConstrainPosition' option. This keeps the moving window's position constrained to the Love viewport. (#72)
  • [Input] Enable key repeat when control is focused. Disable when focus is lost. (#65)
  • Fix Window ResetLayout not resetting Size. (#67)(@Dude112113)
  • Added image with rect overlay option. (#70)(#71)(@flamendless)
  • Fix FFI undefined symbol stat64 by falling back to syscall. (#62)(@Matthew-Allen)
  • Fixed OnMouseMoved not calling MouseMovedFn. (#66)(@Dude112113)
  • [Menu] 'BeginMenu' and 'ContextMenuWindow' missing top rounded corners. (#63)
  • [ColorPicker] Optional alpha value passing and return value use int instead of string. (#69)(@flamendless)
  • [CheckBox] Added 'Disabled' option to disable user interaction with this widget.
  • [Window] Vertical alignment support with titles within the title bar. Title frame editable height.
  • [Window] Title alignment (left, center, right).