Commit graph

14 commits

Author SHA1 Message Date
Simon Hausmann
1e683de64d Simplify Rust Timer API
Don't require the caller to Box the closure. With the assumption that
the majority of callers *want* the closure to be boxed (i.e. it's not
already boxed), the API becomes easier to use.
2020-12-04 10:57:19 +01:00
Simon Hausmann
7047856d4e Replace FooRc with Foo and without ComponentHandle in examples and tests 2020-12-03 08:13:24 +01:00
Simon Hausmann
08b8a8cb83 Port the examples away from the ComponentHandle based API 2020-12-03 08:13:15 +01:00
Simon Hausmann
4c5e43c919 Move the plaster font into a sub-directory on its own
Otherwise it might look like the example is under the OFL license :)
2020-11-27 15:44:53 +01:00
Simon Hausmann
2472eb51f0 Add the plaster font to plaster theme of the slide puzzle
For regular builds this is done by adding Rust API that allows
registering a font, and for the web the font is installed into the
browser using JavaScript API.

This is an initial approach to just add this ability. It might make
sense to introduce a syntax in the `.60` file to allow for the
registration of fonts and letting the compiler generate code that
performs this embedding and registration automatically.
2020-11-27 14:29:56 +01:00
Olivier Goffart
2d6751a87a Puzzle: stop the auto-play when resetting 2020-11-23 13:41:48 +01:00
Olivier Goffart
807dbb3c00 Puzzle: Kick animation
Also support timer that can be cancelled from the timer event
2020-11-23 13:38:44 +01:00
Simon Hausmann
9283a43d3e Small typo fixes 2020-11-20 16:19:00 +01:00
Olivier Goffart
280414b556 slide_puzzle: Thumb up icon when winning 2020-11-16 13:30:48 +01:00
Olivier Goffart
0672f4b3cd Expose Timer API to rust API
And use it in the puzzle demo to implement the auto play mode
2020-11-16 12:17:02 +01:00
Olivier Goffart
69aa4cb03b Make the puzzle solvable 2020-11-13 16:52:40 +01:00
Olivier Goffart
01356bde33 Some more logic got the sliding puzzle 2020-11-12 12:59:18 +01:00
Olivier Goffart
8f362ead43 Missing license header 2020-11-10 15:12:25 +01:00
Olivier Goffart
270e1b3e5b Start experimenting with the sliding puzzle example 2020-11-10 14:30:36 +01:00