Discuss Scratch

src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

What I am sugestion is a block that makes a dialog box
Dialog Box type [OK Only v] text () title ()
There, you can choose between NOT ALL THE CONSTANTS but:
OK only
Yes No Cancel
Yes No
Retry Cancel
Input (has a field where you can enter text that will be set as dialog box answer and a OK button to close)
Critical (Has a error symbol at the side)
Question (Has a question mark at the side)
Information ( has a I at the side)
All the others (like Yes No) describe buttons. Question, Critical and Information have just a OK button.
To prevent user form spamming dialog boxxxxxxes around the screen, you can only have 10 at a time and not drag them out of the Scratch Editor or player. The block should be maybe sensing or maybe an extension
Also, there should be a
(Dialog Box answer)
(Not a variable but sensing or extension blocks)
Also to keep it more intuitive for kids, when for example yes is chosen the dialog box answer will be set to yes, not 6 (For OK OK too and not 1 and for the others too)

Last edited by src4443 (May 5, 2022 13:23:53)

7salad3salad
Scratcher
1000+ posts

VBScript - like Dialog Boxes

I believe you can use the
say [ ]
block on an invisible sprite if you want to make a dialog box.
historical_supa
Scratcher
1000+ posts

VBScript - like Dialog Boxes

Where would the dialogue box go and how would it look like?

Besides from that, I think this is a good idea, since it's not easy to code it yourself. Maybe this could use arrow keys or the mouse/clicking to determine the answer. Mockups:
set mode to [typewriter v] :: extension // Options would be typewriter (with a typewriter effect) and normal (no typewriter effect).
dialog box with text [] with type [OK v] :: extension
dialog answer :: extension reporter
I can see many uses for this!

Last edited by historical_supa (May 5, 2022 23:20:12)

src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

7salad3salad wrote:

I believe you can use the
say [ ]
block on an invisible sprite if you want to make a dialog box.
It cannot have buttons like yes or no and the
ask [] and wait
looks just to bad
7salad3salad
Scratcher
1000+ posts

VBScript - like Dialog Boxes

src4443 wrote:

7salad3salad wrote:

I believe you can use the
say [ ]
block on an invisible sprite if you want to make a dialog box.
It cannot have buttons like yes or no and the
ask [] and wait
looks just to bad
Still, text engines exist.
You can try and use some by -Rex- and just add your own buttons.
src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

7salad3salad wrote:

src4443 wrote:

7salad3salad wrote:

I believe you can use the
say [ ]
block on an invisible sprite if you want to make a dialog box.
It cannot have buttons like yes or no and the
ask [] and wait
looks just to bad
Still, text engines exist.
You can try and use some by -Rex- and just add your own buttons.
It's still hard to style and you cannot drag it around.
m3rdpower
Scratcher
29 posts

VBScript - like Dialog Boxes

It would be more easy, but as every one else says you can use the
say []
k0d3rrr
Scratcher
1000+ posts

VBScript - like Dialog Boxes

historical_supa wrote:

Mockups:
set mode to [typewriter v] :: extension // Options would be typewriter (with a typewriter effect) and normal (no typewriter effect).
dialog box with text [] with type [] :: extension
dialog answer :: extension
Probably also:
(answer:: extension) // Returns the previous value entered. (E.g. "Hello world")
historical_supa
Scratcher
1000+ posts

VBScript - like Dialog Boxes

k0d3rrr wrote:

historical_supa wrote:

Mockups:
set mode to [typewriter v] :: extension // Options would be typewriter (with a typewriter effect) and normal (no typewriter effect).
dialog box with text [] with type [] :: extension
dialog answer :: extension
Probably also:
(answer:: extension) // Returns the previous value entered. (E.g. "Hello world")
Oh wait, I forgot to make it a reporter. Darn it.
src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

MRTsystems wrote:

???
InternetExplorer8
Scratcher
100+ posts

VBScript - like Dialog Boxes

I support it would be really useful in my opinion and I'd personally use it for my game Sharp Clicker, I think it would help a lot!
Silicobra
New Scratcher
100+ posts

VBScript - like Dialog Boxes

How would those dialog boxes look like??

Dude, those typos…

Last edited by Silicobra (May 5, 2022 15:24:47)

k0d3rrr
Scratcher
1000+ posts

VBScript - like Dialog Boxes

Silicobra wrote:

How would those dialog boxes look like??

Dude, those typos…
You know the classic Windows dialog boxes that say “Critical error”, or “Warning”, or something like that?

That's what's being suggested here, but for Scratch.
src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

bumpity bump
src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

k0d3rrr wrote:

Silicobra wrote:

How would those dialog boxes look like??

Dude, those typos…
You know the classic Windows dialog boxes that say “Critical error”, or “Warning”, or something like that?

That's what's being suggested here, but for Scratch.
Yes ( @Silicobra )
src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

bump
src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

bump!!!!!
Silicobra
New Scratcher
100+ posts

VBScript - like Dialog Boxes

ummm, bump!

Last edited by Silicobra (May 12, 2022 05:00:01)

src4443
Scratcher
57 posts

VBScript - like Dialog Boxes

bump
ScratchCat1038
Scratcher
1000+ posts

VBScript - like Dialog Boxes

Extremely bad mockup:

Powered by DjangoBB