Commit Graph
7 Commits
Author SHA1 Message Date
GarboMuffin 83d72053a7 Fix repeated util.yield() in interpreted addon blocks 2022-11-12 11:33:44 -06:00
GarboMuffin 30a47a2b39 Allow addon blocks to be hidden 2022-11-12 01:09:25 -06:00
GarboMuffin c7309b96ab Remove addon block color parameters
The parameters didn't work in the way that you would expect. Only the
values provided in the first call to addAddonBlock would do anything,
and this gives a false impression that this will color the blocks in the
editor. Color options may be re-added in the future as part of a more
significant API update.
2022-11-12 01:08:09 -06:00
GarboMuffin 0fd98a6ac5 Allow addon block callback to return a Promise 2022-11-12 01:08:09 -06:00
GarboMuffin 4eafaf573b Reimplement addon blocks with the compatibility layer
callAddonBlock is removed. executeInCompatibilityLayer is used instead.
Notably this makes all the block utility control flow work in the compiler.
2022-11-12 01:08:09 -06:00
GarboMuffin a1904b022b Replace addAddonBlock callback 2nd argument with BlockUtility
Documentation says it should be BlockUtility but in reality it was
something that mimicked a Thread.
This is a breaking change.
2022-11-12 00:07:17 -06:00
GarboMuffin 688b257f7c Add tests for addAddonBlock 2022-11-11 23:33:43 -06:00