scratchfoundation / scratch-gui

Graphical User Interface for creating and running Scratch 3.0 projects.
https://scratchfoundation.github.io/scratch-gui/develop/
BSD 3-Clause "New" or "Revised" License
4.46k stars 3.56k forks source link

Say Block For Stage #944

Open TheBrokenRail opened 6 years ago

TheBrokenRail commented 6 years ago

Curent Behavior

Say Bubble Appears In Top-Left corner of the screen.

Requested Behavior

An ask input appears, but instead of a text box it is just text with an ok button.

Why

It will make displaying messages easier.

Grinthy commented 6 years ago

Uhh, you're not making sense to me. So, correct me if I'm wrong, but lemme try to summarize:

Thanks, -- Ryan

Kenny2github commented 6 years ago

@Grinthy no, what the user is saying is:

What currently happens

a "say" bubble appears in the top left corner

What is being requested

the box used for "ask" blocks appears, but without the text input, and with just the "ok" button on the right.

radioblahaj commented 6 years ago

I don't think that this should be addded because a say blockk and a text in the background will look werid. Thats why you can add text in a backdrop. @CosmicWebServices

TheBrokenRail commented 6 years ago

Heres a Concept Image

Current

current

Proposed

proposed

sjhuang26 commented 6 years ago

This seems like a good idea. It would make things easier for beginners.

But why need the check mark? If I understand correctly, this is a "say ----- for () seconds" block for the stage, and normal speech bubbles don't have check marks. The message could simply automatically disappear after the specified number of seconds.

radioblahaj commented 6 years ago

Acutully, i chanve my mind. It looks good. :D

mrjacobbloom commented 6 years ago

This could also apply to hidden sprites

Kenny2github commented 6 years ago

@mrjacobbloom currently hidden sprites don't say anything though... if this were to apply to hidden sprites, then it would break some projects.

williamjallen commented 6 years ago

Maybe we could have a "Say" block similar to the Scratch 2.0 "Ask and Wait" block that displays a generic message that is unrelated to any object.

radioblahaj commented 6 years ago

@dalearn good idea.

williamjallen commented 6 years ago

@redmangospros but if we do that, should we put the "Ask and Wait" block back in to complement it? Was there any discussion on its removal initially?

radioblahaj commented 6 years ago

On removal I'm not sure. I think we could put the ask and wait back into component.

williamjallen commented 6 years ago

It appears that I had an old version or something. It's in there in the latest version

kyleplo commented 6 years ago

Well, this actually sound like the JavaScript alert, confirm and prompt functions. For alert, you could use @TheBrokenRail 's idea: alert For confirm, you could use this: confirm And prompt would be like the current "ask" block Sorry, my image editing skills are bad.

radioblahaj commented 6 years ago

@kyleplo I argge with your idea and change of @TheBrokenRail. @dalearn Thanks for classifying that you have a old Version

CosmicWebServices commented 6 years ago

No longer confused... good idea... maybe an extension? btw kinda off topic will there be an extension API open to the public?

radioblahaj commented 6 years ago

I think we need a scratch team member to answer yoir question of a extestion api to pybilc. So i will call @thisandagain.

I cpuld deplovp a extestion with help though as ypu said cosmic. But i will need help. Though this could ve added in the scratch blocks without the need of a extestion

TheBrokenRail commented 6 years ago

Here's a demo implementation of the feature I made: https://github.com/TheBrokenRail/scratch-gui/tree/say-stage which depends on https://github.com/TheBrokenRail/scratch-vm/tree/say-stage

thisandagain commented 6 years ago

I like this idea @TheBrokenRail. I'll make sure we discuss it the next time we look at the feature backlog.

radioblahaj commented 6 years ago

Great.

CosmicWebServices commented 6 years ago

@kyleplo what would a confirm block look like?

kyleplo commented 6 years ago

@CosmicWebServices confirm

radioblahaj commented 6 years ago

Cool, But Why Add The Ask Text () Block, when you can just use yes or no, ask and wait or bnumber.

Grinthy commented 6 years ago

This thing exploded.

radioblahaj commented 6 years ago

Lol

apple502j commented 5 years ago

@thisandagain This is not a suggestion, but a bug:

(To repro: just share the love.

thisandagain commented 5 years ago

@apple502j The "bug" part of this (deviation from 2.0) is being tracked here: https://github.com/LLK/scratch-render/issues/373

This was originally created as a feature request to add this functionality so I prefer we keep this issue open and focused on that.

TheBrokenRail commented 3 years ago

Any update on this?

Samq64 commented 2 years ago

For the original suggestion, I think something like @TheBrokenRail's implementation would work well if it was a bit smaller and also worked for sprites, but it should probably be separate from the say block. Maybe something like this?

display block

For @kyleplo's suggestion, I like the idea of making the ask block a drop-down, but I'm not sure the second answer block. Maybe a better idea since the ask system will likely be changed quite a bit already if this gets implemented is to also implement this Scratch forum suggestion which turns the ask block into a reporter and removes (or hides) the answer reporter, that way no new blocks are needed and one is removed without taking away any functionality. It would also be nice if you could ask for different types of data through the drop-down like in the image below.

ask block reporters