Replies: 2 comments 5 replies
-
Yeah, the "player" that the Leopard website generates and provides for running a project is really bare bones. I think we'd like to support both of these. The "stop" button can't be added yet because we don't support the "stop all" block, which the button would presumably make use of. See #124. Then again, I don't know how restarts are currently handled (i.e. clicking the green flag again)... @adroitwhiz mentioned having an idea about throwing an exception to cancel at any point, but that was a year and a half ago, so not sure if the details are still clear on that. The "full screen" button I'm not too sure about blockers for — obviously it means rendering the stage at a higher resolution (if you don't want vector graphics to look super grainy), without actually changing the stage's internal dimensions (the space is still 480x360 units, only rendered higher). See #26 for discussion here. More practically, what are the contexts where we expect the fullscreen button to be used? I imagine most students/users are coding using Code Sandbox, so their project is already "framed" inside one quarter or so of that IDE, and the fullscreen button would make it huge while they're presenting it, not editing it. I think a full screen button is perfect for them. For people who are editing at the same time as viewing, and just want a bigger stage, "full screen" is pretty much useless. Unless they happen to have a second monitor! I think for them a "fit stage to window" mode would be the most useful. This is kind of like Scratch's own fullscreen mode, in that it doesn't literally take your browser fullscreen, but it does cause the stage to use as much space as is available. In Leopard that doesn't take you out of editing, because editing space (Code Sandbox, or a text editor) is altogether outside of the "window" that Leopard is framed within. Right now we don't change stage scaling at all and I wonder what the reasoning is behind that, really. But I do want to avoid just changing the default (i.e. making it "fit stage to window" instead of "don't scale stage") without considering the impact that it'll have on everyone working with Leopard. I'm also not super familiar with Code Sandbox, but I would assume it works by reloading the preview window every time you make (or view) a change? If this is the case, it's important to note that making any edit will probably kick the user out of fullscreen mode, because pages can't start in fullscreen (entering fullscreen has to be a response to a user interaction). It wouldn't prevent "fit stage to window" from working [even in another tab... even if that tab is in fullscreen!], but we would have to make sure that state (if it's a user-selected choice) is preserved across page reloads, so the user doesn't have to click "best fit please" every time they make a change to their code. |
Beta Was this translation helpful? Give feedback.
-
One of the things I've been playing around with in my free time is a dedicated Leopard code editor that meshes together the conventions of JavaScript editing with the conventions of Scratch. This feels like a feature that lives right at that boundary, so I'm wondering if some combination of...
...would give the best experience? |
Beta Was this translation helpful? Give feedback.
-
The fact that the project starts immediately after translation and there is no stop button is kind of annoying when using Leopard during lessons with students. Can a stop button be added?
Also a full screen button could be nice. Now I first press the button to move the stage to a new tab and then use the magnification features of the browser, but, again, doing it during the lessons is now ideal.
Beta Was this translation helpful? Give feedback.
All reactions