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
Get Decker
Decker
A multimedia sketchbook
Status | In development |
Category | Tool |
Author | Internet Janitor |
Tags | 1-bit, decker, ditherpunk, Game engine, HyperCard, Painting, zine |
Accessibility | Color-blind friendly, High-contrast, Interactive tutorial |
More posts
- Decker 1.5127 days ago
- Decker 1.5055 days ago
- Decker 1.4976 days ago
- Decker 1.4897 days ago
- Decker 1.47Jul 26, 2024
- Decker 1.46Jul 05, 2024
- Decker 1.45Jun 28, 2024
- Decker 1.44Jun 07, 2024
- Decker 1.43May 24, 2024
- Decker 1.42May 10, 2024
Leave a comment
Log in with itch.io to leave a comment.