Decker 1.12


Decker v1.12 introduces Contraptions and Prototypes, a mechanism for supporting user-created custom widgets.

New Features

Prototypes are definitions of custom widgets, which may be used to create any number of instances, called "contraptions". From the "inside", a prototype is very much like a small card, with widgets and a drawable background. From the "outside", a contraption behaves much like the built-in widgets; a single unit with editable properties and the ability to emit events to trigger user scripts. Contraptions can be highly general and reusable, or specific to your project. The updated Guided Tour includes several examples:


Prototypes can be imported from other decks via the Font/DA Mover or by copying and pasting contraptions from one deck to another. Decker includes a full suite of editing tools for defining prototypes:


If a prototype is resizable, its background will use 9-slice scaling. Among other applications, this can be useful for creating purely decorative contraptions to simplify the construction of new cards and reduce file size:


For more details, refer to the Custom Widgets section of the manual.

  • Introduced "widget.offset", which gives the position of the top-left corner of the widget in screen coordinates. This is important for comparing the position of widgets that are nested inside a contraption to the screen coordinates provided by the "pointer" interface.
  • Introduced "widget.animated". When truthy, this requests that the widget be sent a "view[]" event once per frame. This is generally useful for making "self-contained" animated or live-updating widgets on a card, and essential for having animation within contraptions.

Fixes (Native and Web):

  • "card.image" is now always eagerly hydrated at the card size, preventing some issues with programmatically pasting into newly-created cards.
  • Card backgrounds are not serialized if they are fully blank (pattern 0), for a modest savings in file size.

Fixes (Native):

  • Native Decker will no longer complain about unsaved changes when closing a locked deck.
  • Corrected a crash when canceling the import deck modal while in an empty directory.
  • The read["image"] function now supports .JPG/.PNG/.BMP images in addition to .GIF, as originally intended.

Files

Decker-1.12-mac.zip 1 MB
Feb 24, 2023
Decker-1.12-win.zip 1 MB
Feb 24, 2023
lilt-1.12 APE executable 952 kB
Feb 24, 2023

Get Decker

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.