Conversation
|
see #2157, this is a duplicate |
|
@Brackets-Coder Thanks for the note! I checked #2157 and it’s closed (never merged). This PR is a fresh implementation, up-to-date, and all required checks are passing. If you still see any overlap concerns, I’m happy to adjust scope or follow preferred guidelines. |
|
Added documentation at docs/juanluber/stage-ui.md. |
Sorry, wrong PR. This is a duplicate of #2158 |
@Brackets-Coder ¡Gracias por la aclaración! No conocía el #2158. Si los responsables del mantenimiento prefieren un único PR para esta función, con gusto seguiré sus preferencias: Si prefieren continuar con este PR, puedo seguir iterando aquí. Si prefieren mantener el #2158 como el PR canónico, puedo cerrarlo y volver a enviar las mejoras pertinentes en la forma que prefieran. |
@Brackets-Coder Thanks for clarifying! I wasn’t aware of #2158. If maintainers prefer a single PR for this feature, I’m happy to follow their preference: If they’d rather continue with this PR, I can keep iterating here. If they’d rather keep #2158 as the canonical PR, I can close this PR and re-submit the relevant improvements in whatever form they prefer. |
@Brackets-Coder Thanks for the clarification! I wasn’t aware of #2158. I took a look and it seems to cover a similar idea, but it has been open since June 2025. This PR is a fresh, up-to-date implementation, passes all required checks, and includes documentation and automatic cleanup when the project stops. If the maintainers prefer having a single PR for this feature, I’m happy to follow their preference: If they’d rather continue with this PR, I can keep iterating here. If they’d rather keep #2158 as the canonical PR, I can close this one and resubmit the relevant improvements in whatever form they prefer. |
I understand the overlap with #2158 (DOM overlays). This PR is focused on stage-aligned UI controls and differs in a few key ways: Stage + size as first-class primitives: controls are created with Scratch stage coordinates and width/height (x, y, w, h) directly. |
|
See #2271. While there aren't specific guidelines, the unspoken rule is to let all duplicates have an equal chance of merging. We "prioritize" older pull requests, but all developer's opinions are equally valued. I'll mark this as a duplicate there, and I'd encourage you to collaborate on #2158 if you can and are willing. |
|
|
@Brackets-Coder Thanks for the explanation! That makes sense. |
|
Don't feel obligated to close, but if @samllea1 wants to collaborate then go ahead |
Stage UI adds simple DOM-based UI controls over the stage (input, textarea, button, checkbox, select, radio). Controls are positioned using stage coordinates and can be shown/hidden, focused, removed, and queried for current value.
Tested:
Loaded in TurboWarp editor; blocks appear under “Stage UI”.
Created each control type and verified positioning, show/hide, remove, focus.
Verified event hats trigger correctly.
Verified UI is cleared when the project stops (Stop button).