hpi-swa / sandblocks

A projectional editor for Squeak/Smalltalk.
MIT License
35 stars 3 forks source link

Live View of Permutations #136

Closed JoeAtHPI closed 10 months ago

JoeAtHPI commented 10 months ago

With a given setup, the newly added Live View builds several Morphs which each behave like a universe of the multiverse. This allows for simultaneous testing of interactive classes like games and see changes right next to one another.

https://github.com/hpi-swa/sandblocks/assets/33000454/ec944e65-c822-40c0-afd5-f65f26e3dc74

With the Live View come two new classes: 1) SBInputBroadcaster a special block which sends its events to all its registered listeners. As elements like Buttons only work by handling events with the cursor, a temporary HandMorph handles mouse events. Drag events are not supported as of now. 2) SBLiveView which offers a block for setup and generates a grid with a broadcaster and listeners. To resolve bindings and have consistent sizing, a few adjustments to SBExploriants have been made.

github-actions[bot] commented 10 months ago

Pull Request Test Coverage Report for Build 7196583907


Totals Coverage Status
Change from base Build 6983632022: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls
JoeAtHPI commented 10 months ago

@tom95 latest commit adds a synchronisation of all previews and ready for merge if you approve

https://github.com/hpi-swa/sandblocks/assets/33000454/1e1a4ff8-14a8-4388-84c6-46d7946a75a8