Discuss Scratch

blob8108
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

Does anyone know where in the code it decides whether an argument will accept a reporter or not?
Search for this, maybe? https://github.com/nathan/visual/issues/1#issuecomment-37357948

tosh · slowly becoming a grown-up adult and very confused about it
nXIII
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

Does anyone know where in the code it decides whether an argument will accept a reporter or not? I'm trying to make it so all %m arguments will take reporters.
There's a constant called menusThatAcceptReporters in ScriptsPane::dropCompatible.

EDIT: severely ninja'd.

Last edited by nXIII (April 9, 2014 22:06:49)


nXIII · GitHub
blob8108
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

nXIII wrote:

severely ninja'd.
Then again, I was linking you anyway, so…

tosh · slowly becoming a grown-up adult and very confused about it
djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

nXIII wrote:

djdolphin wrote:

Does anyone know where in the code it decides whether an argument will accept a reporter or not? I'm trying to make it so all %m arguments will take reporters.
There's a constant called menusThatAcceptReporters in ScriptsPane::dropCompatible.

EDIT: severely ninja'd.
Thanks, I've updated the swf.

!
9kiwi9
Scratcher
100+ posts

Coyote - Scratch 2.0 Mod

Could you make it when you double-click a reporter, it shows the value like in 1.4?
9kiwi9
Scratcher
100+ posts

Coyote - Scratch 2.0 Mod

Maybe a
(amount of clones::control)
block?
djdolphin
Scratcher
1000+ posts

Coyote - Scratch 2.0 Mod

9kiwi9 wrote:

Could you make it when you double-click a reporter, it shows the value like in 1.4?
That would be sort of difficult to implement. I'm lucky if I don't crash Scratch immediately when I make an edit.

9kiwi9 wrote:

Maybe a
(amount of clones::control)
block?
Sure, but would it report the total number of clones in the project or the number of clones of the current sprite?

!
9kiwi9
Scratcher
100+ posts

Coyote - Scratch 2.0 Mod

djdolphin wrote:

9kiwi9 wrote:

Could you make it when you double-click a reporter, it shows the value like in 1.4?
That would be sort of difficult to implement. I'm lucky if I don't crash Scratch immediately when I make an edit.

9kiwi9 wrote:

Maybe a
(amount of clones::control)
block?
Sure, but would it report the total number of clones in the project or the number of clones of the current sprite?
In the sprite.

Powered by DjangoBB

Standard | Mobile