This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#51 2010-03-28 11:17:33

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

markyparky56 wrote:

nXIII wrote:

markyparky56 wrote:

Still not working...
*sigh*

Though this time i did get this:

By the way, I'll point out WHAT is wrong...

showOrHideList: t1 show: t2
| t3 t4 t5 |
Supposed to have a parenthesis here: ( self listVarNames includes: t1)
IfFalse: supposed to be ifFalse: [^ self].
t3 _ lists at: t1.
t2
ifTrue: [(t4 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t4 addMorph: t3]]
ifFalse: [t3 delete].
(t5 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ self].
t5 viewerPane categoryChanged: 'variables supposed to have a quote sign here: '

Still nothing. I dont see whats wrong!  sad

Any ideas?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#52 2010-03-28 13:37:30

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

nXIII wrote:

LS97 wrote:

nXIII wrote:

Great ideas!
One note: for the 'stretch' reporter use 'size' because it reports the x scale!
I'll work on them after I finish a couple other things!

great thanks. another idea is a (for me) vital 'bounce off (sprite) when touching it'. and enabled mesh... i had to re-enable it once i'd used your image. and if size reports x, could you make a Y reporter? and instead of change size change Ystrech? another useful block is to add symbols to the letter options, and fix the glitch that special keys dont work with the yellow 'when X key pressed' reporter block. and last but not at all least, (it's the hardest) make a 'take picture and add it to the [sprite] costumes' and a 'record sound and add it to the [sprite] sounds'.

i know it's a heck lot of work, but do what you can  smile  i would greatly appreciate it!
______
LS97 'Now Minutes Ago'

Wait - the YELLOW 'when X key pressed' block?!
And my mesh IS enabled...

yes, the yellow hat block from the control category <when[]key pressed> doesnt work with all the special charachters you put (shift, backspace, etc). and never mind about mesh, i can always change it again! and btw, could you add a 'delete' key too?
Thanks!
______
LS97 'Now Minutes Ago'

Last edited by LS97 (2010-03-29 10:52:22)

Offline

 

#53 2010-03-28 14:03:08

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

LS97 wrote:

nXIII wrote:

LS97 wrote:


great thanks. another idea is a (for me) vital 'bounce off (sprite) when touching it'. and enabled mesh... i had to re-enable it once i'd used your image. and if size reports x, could you make a Y reporter? and instead of change size change Ystrech? another useful block is to add symbols to the letter options, and fix the glitch that special keys dont work with the yellow 'when X key pressed' reporter block. and last but not at all least, (it's the hardest) make a 'take picture and add it to the [sprite] costumes' and a 'record sound and add it to the [sprite] sounds'.

i know it's a heck lot of work, but do what you can  smile  i would greatly appreciate it!
______
LS97 'Now Minutes Ago'

Wait - the YELLOW 'when X key pressed' block?!
And my mesh IS enabled...

yes, the yellow reporter block from the control category [blocks]<when[]key pressed>[/blocks] doesnt work with all the special charachters you put (shift, backspace, etc). and never mind about mesh, i can always change it again! and btw, could you add a 'delete' key too?
Thanks!
______
LS97 'Now Minutes Ago'

Please dont put a fake signature in when you already have one.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#54 2010-03-28 14:26:28

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

LS97 wrote:

nXIII wrote:

LS97 wrote:

great thanks. another idea is a (for me) vital 'bounce off (sprite) when touching it'. and enabled mesh... i had to re-enable it once i'd used your image. and if size reports x, could you make a Y reporter? and instead of change size change Ystrech? another useful block is to add symbols to the letter options, and fix the glitch that special keys dont work with the yellow 'when X key pressed' reporter block. and last but not at all least, (it's the hardest) make a 'take picture and add it to the [sprite] costumes' and a 'record sound and add it to the [sprite] sounds'.

i know it's a heck lot of work, but do what you can  smile  i would greatly appreciate it!
______
LS97 'Now Minutes Ago'

Wait - the YELLOW 'when X key pressed' block?!
And my mesh IS enabled...

yes, the yellow reporter block from the control category <when[]key pressed>[/blocks] doesnt work with all the special charachters you put (shift, backspace, etc). and never mind about mesh, i can always change it again! and btw, could you add a 'delete' key too?
Thanks!
______
LS97 'Now Minutes Ago'

The special characters should work, but I can't add a delete key...
By the way, that's called a hat block.

Last edited by nXIII (2010-03-28 14:29:25)


nXIII

Offline

 

#55 2010-03-29 10:53:19

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

oh well never mind about the delete key! and thanks for correcting me... i didnt know what a hat block was before

Offline

 

#56 2010-03-29 11:21:39

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

LS97 wrote:

oh well never mind about the delete key! and thanks for correcting me... i didnt know what a hat block was before

Think of it like a hat for the scripts.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#57 2010-04-06 18:59:32

yoshidude56
Scratcher
Registered: 2010-01-12
Posts: 100+

Re: The Elusive Show/Hide List Blocks

nXIII wrote:

I have worked for a while and finally the elusive show/hide list blocks are in my possession!
Here's what ya gotta do:

Important Note:
GirWaffles64 discovered that this will only work on a Mac if the indentations are deleted.

#0: Turn fill screen off and open a browser
Open Scratch and hold shift while clicking the loop of the 'R' in the Scratch logo (the one in the top-right corner). Select 'turn fill screen off', then click in the whitespace that comes up. Select 'open...', then 'browser'.
#1: Add the showOrHideList:show: Method
Select the path 'Scratch-Objects/ScriptableScratchMorph/list ops' and copy/paste the following into the bottom panel: (Note: use Alt + V to paste in Squeak)

showOrHideList: t1 show: t2
    | t3 t4 t5 |
    (self listVarNames includes: t1)
        ifFalse: [^ self].
    t3 _ lists at: t1.
    t2
        ifTrue: [(t4 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t4 addMorph: t3]]
        ifFalse: [t3 delete].
    (t5 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ self].
    t5 viewerPane categoryChanged: 'variables'

Press Alt + S to save it.
#2: Add the showList: and hideList: Methods
Click 'list ops' again and paste the following into the bottom panel:

showList: t1
    | t2 |
    self showOrHideList: t1 show: true.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: true]

Press Alt + S to save it, then click 'list ops' a third time and paste the following into the bottom panel:

hideList: t1
    | t2 |
    self showOrHideList: t1 show: false.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: false]

Press Alt + S.
#3: Add the correct blockSpecs
Click the 'class' button under the second-from-the-left panel and select 'block specs/blockSpecs'. Paste the following before the last two parenthesis:

('show list %L' #- #showList:) ('hide list %L' #- #hideList:)

Press Alt + S and save the image (using the shift-click menu) in end-user mode.
Next time you navigate to the variable blocks page, two shiny new blocks will be there!

NOTE: I have found that the argument will not (by default) show the first list. If I find a way to fix this problem, I will post an update here.

Scratch On!

You can also use a sprite to cover the list, but yeah, a block would be great.


http://i46.tinypic.com/2ut2ir4.png

Offline

 

#58 2010-04-09 05:45:46

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

Can anybody make a record block?

For use with the microphone?

Last edited by johnnydean1 (2010-04-09 05:46:08)


You can now reach me on Twitter @johnnydean1_

Offline

 

#59 2010-04-09 05:49:45

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

johnnydean1 wrote:

Can anybody make a record block?

For use with the microphone?

This isn't really the place, try here: http://scratch.mit.edu/forums/viewtopic.php?id=31200 But like the take picture block someone made (Can't remember who) it'll likely only bring up the record part:
http://img130.imageshack.us/img130/6365/soundrecorder.png


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#60 2010-04-09 05:52:37

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

I have a take a picture block if you want it!


You can now reach me on Twitter @johnnydean1_

Offline

 

#61 2010-04-09 06:39:09

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: The Elusive Show/Hide List Blocks

I noticed that if you put this:

('show list %L' #- #showList: 'list') ('hide list %L' #- #hideList: 'list')

instead of this:

('show list %L' #- #showList:) ('hide list %L' #- #hideList:)

you can make the block display the word 'list' in the block by default, instead of there being 'a' in the block.

I stiumbled accross this while trying to get the dropdown box of lists in the block to display the list you created by default, instead of the 'a'


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#62 2010-04-09 16:42:34

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

Why Is Everyone Saying It Won't Work? It Works For Me! YOU ARE MAKING ERRORS PEOPLE!!!!!!!!!!!!  mad

Offline

 

#63 2010-05-01 03:56:25

scoreman
Scratcher
Registered: 2009-10-03
Posts: 14

Re: The Elusive Show/Hide List Blocks

How can I add new block ops?

Offline

 

#64 2010-05-01 10:16:21

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

Sperry wrote:

I noticed that if you put this:

('show list %L' #- #showList: 'list') ('hide list %L' #- #hideList: 'list')

instead of this:

('show list %L' #- #showList:) ('hide list %L' #- #hideList:)

you can make the block display the word 'list' in the block by default, instead of there being 'a' in the block.

I stiumbled accross this while trying to get the dropdown box of lists in the block to display the list you created by default, instead of the 'a'

Oh, yea, well, there is a way to make it display the first list, but I won't go into that... haven't opened Panther up for today yet.


nXIII

Offline

 

#65 2010-05-16 14:24:37

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

Do we press enter? Or do we paste with no spaces at all?

Offline

 

#66 2010-05-25 11:39:37

electrified123
Scratcher
Registered: 2009-11-22
Posts: 100+

Re: The Elusive Show/Hide List Blocks

nXIII wrote:

I have worked for a while and finally the elusive show/hide list blocks are in my possession!
Here's what ya gotta do:

Important Note:
GirWaffles64 discovered that this will only work on a Mac if the indentations are deleted.

#0: Turn fill screen off and open a browser
Open Scratch and hold shift while clicking the loop of the 'R' in the Scratch logo (the one in the top-right corner). Select 'turn fill screen off', then click in the whitespace that comes up. Select 'open...', then 'browser'.
#1: Add the showOrHideList:show: Method
Select the path 'Scratch-Objects/ScriptableScratchMorph/list ops' and copy/paste the following into the bottom panel: (Note: use Alt + V to paste in Squeak)

showOrHideList: t1 show: t2
    | t3 t4 t5 |
    (self listVarNames includes: t1)
        ifFalse: [^ self].
    t3 _ lists at: t1.
    t2
        ifTrue: [(t4 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t4 addMorph: t3]]
        ifFalse: [t3 delete].
    (t5 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ self].
    t5 viewerPane categoryChanged: 'variables'

Press Alt + S to save it.
#2: Add the showList: and hideList: Methods
Click 'list ops' again and paste the following into the bottom panel:

showList: t1
    | t2 |
    self showOrHideList: t1 show: true.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: true]

Press Alt + S to save it, then click 'list ops' a third time and paste the following into the bottom panel:

hideList: t1
    | t2 |
    self showOrHideList: t1 show: false.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: false]

Press Alt + S.
#3: Add the correct blockSpecs
Click the 'class' button under the second-from-the-left panel and select 'block specs/blockSpecs'. Paste the following before the last two parenthesis:

('show list %L' #- #showList:) ('hide list %L' #- #hideList:)

Press Alt + S and save the image (using the shift-click menu) in end-user mode.
Next time you navigate to the variable blocks page, two shiny new blocks will be there!

NOTE: I have found that the argument will not (by default) show the first list. If I find a way to fix this problem, I will post an update here.

Scratch On!

i know the problem at the end you have to put after the code at the end 1 or 'list' i looked at the other block codes how they do it and i tried 'list' and it didnt quite work so i guess not maybe 1

Last edited by electrified123 (2010-05-25 11:42:04)


http://i47.tinypic.com/5nrzmp.jpg check out my stuff ~ If You Really Thought i would think what you thought, than you must think i think what you thought i would think at the time you thought i was thinking what you thought

Offline

 

#67 2010-05-25 14:04:03

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

electrified123 wrote:

nXIII wrote:

I have worked for a while and finally the elusive show/hide list blocks are in my possession!
Here's what ya gotta do:

Important Note:
GirWaffles64 discovered that this will only work on a Mac if the indentations are deleted.

#0: Turn fill screen off and open a browser
Open Scratch and hold shift while clicking the loop of the 'R' in the Scratch logo (the one in the top-right corner). Select 'turn fill screen off', then click in the whitespace that comes up. Select 'open...', then 'browser'.
#1: Add the showOrHideList:show: Method
Select the path 'Scratch-Objects/ScriptableScratchMorph/list ops' and copy/paste the following into the bottom panel: (Note: use Alt + V to paste in Squeak)

showOrHideList: t1 show: t2
    | t3 t4 t5 |
    (self listVarNames includes: t1)
        ifFalse: [^ self].
    t3 _ lists at: t1.
    t2
        ifTrue: [(t4 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t4 addMorph: t3]]
        ifFalse: [t3 delete].
    (t5 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ self].
    t5 viewerPane categoryChanged: 'variables'

Press Alt + S to save it.
#2: Add the showList: and hideList: Methods
Click 'list ops' again and paste the following into the bottom panel:

showList: t1
    | t2 |
    self showOrHideList: t1 show: true.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: true]

Press Alt + S to save it, then click 'list ops' a third time and paste the following into the bottom panel:

hideList: t1
    | t2 |
    self showOrHideList: t1 show: false.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: false]

Press Alt + S.
#3: Add the correct blockSpecs
Click the 'class' button under the second-from-the-left panel and select 'block specs/blockSpecs'. Paste the following before the last two parenthesis:

('show list %L' #- #showList:) ('hide list %L' #- #hideList:)

Press Alt + S and save the image (using the shift-click menu) in end-user mode.
Next time you navigate to the variable blocks page, two shiny new blocks will be there!

NOTE: I have found that the argument will not (by default) show the first list. If I find a way to fix this problem, I will post an update here.

Scratch On!

i know the problem at the end you have to put after the code at the end 1 or 'list' i looked at the other block codes how they do it and i tried 'list' and it didnt quite work so i guess not maybe 1

um... I kind of posted this like a year ago, I know how to make it actually display a user-created list by default. Like in Panther.


nXIII

Offline

 

#68 2011-01-22 12:36:06

legomany3448
Scratcher
Registered: 2010-08-30
Posts: 36

Re: The Elusive Show/Hide List Blocks

yoshidude56 wrote:

nXIII wrote:

I have worked for a while and finally the elusive show/hide list blocks are in my possession!
Here's what ya gotta do:

Important Note:
GirWaffles64 discovered that this will only work on a Mac if the indentations are deleted.

#0: Turn fill screen off and open a browser
Open Scratch and hold shift while clicking the loop of the 'R' in the Scratch logo (the one in the top-right corner). Select 'turn fill screen off', then click in the whitespace that comes up. Select 'open...', then 'browser'.
#1: Add the showOrHideList:show: Method
Select the path 'Scratch-Objects/ScriptableScratchMorph/list ops' and copy/paste the following into the bottom panel: (Note: use Alt + V to paste in Squeak)

showOrHideList: t1 show: t2
    | t3 t4 t5 |
    (self listVarNames includes: t1)
        ifFalse: [^ self].
    t3 _ lists at: t1.
    t2
        ifTrue: [(t4 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t4 addMorph: t3]]
        ifFalse: [t3 delete].
    (t5 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ self].
    t5 viewerPane categoryChanged: 'variables'

Press Alt + S to save it.
#2: Add the showList: and hideList: Methods
Click 'list ops' again and paste the following into the bottom panel:

showList: t1
    | t2 |
    self showOrHideList: t1 show: true.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: true]

Press Alt + S to save it, then click 'list ops' a third time and paste the following into the bottom panel:

hideList: t1
    | t2 |
    self showOrHideList: t1 show: false.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: false]

Press Alt + S.
#3: Add the correct blockSpecs
Click the 'class' button under the second-from-the-left panel and select 'block specs/blockSpecs'. Paste the following before the last two parenthesis:

('show list %L' #- #showList:) ('hide list %L' #- #hideList:)

Press Alt + S and save the image (using the shift-click menu) in end-user mode.
Next time you navigate to the variable blocks page, two shiny new blocks will be there!

NOTE: I have found that the argument will not (by default) show the first list. If I find a way to fix this problem, I will post an update here.

Scratch On!

You can also use a sprite to cover the list, but yeah, a block would be great.

With the whole default value argument thing, I just told it to show a blank list menu.  (Like on BYOB)  wink


¿uʍop-ǝpısdn pɐǝɹ noʎ uɐɔ
Click here to get EPIC custom blocks on Scratch!

Offline

 

#69 2011-01-22 12:39:43

legomany3448
Scratcher
Registered: 2010-08-30
Posts: 36

Re: The Elusive Show/Hide List Blocks

markyparky56 wrote:

johnnydean1 wrote:

Can anybody make a record block?

For use with the microphone?

This isn't really the place, try here: http://scratch.mit.edu/forums/viewtopic.php?id=31200 But like the take picture block someone made (Can't remember who) it'll likely only bring up the record part:
http://img130.imageshack.us/img130/6365 … corder.png

The block does work...and I have it.  It won't be on the dropdown menu of sounds when you are programming, but you can use a number.  Like, whenever you add a new sound, change a variable by 1 so that you know how many sounds there are so far.  Then, thell the computer to

<play sound[ <{ # of sounds }>
or
<play sound[ <{ # of sounds }> ]and wait>
Hope it helps!   wink

Last edited by legomany3448 (2011-01-22 12:40:08)


¿uʍop-ǝpısdn pɐǝɹ noʎ uɐɔ
Click here to get EPIC custom blocks on Scratch!

Offline

 

#70 2011-01-26 07:19:12

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

Thank you nXIII. I was trying to make these by copying the variable stuff, but didn't know about the showOrHideList:show: method.

Offline

 

#71 2011-01-31 02:05:57

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

These work, but when it is clicked in the block pallet, it goes back to the top of the pallet. It is OK sometimes, but I have 15 variables which take up the whole thing. Is there a way to fix this?

Offline

 

#72 2011-07-09 19:44:30

tpaley
Scratcher
Registered: 2011-05-22
Posts: 100+

Re: The Elusive Show/Hide List Blocks

It doesn't work upon uploading


http://i49.tinypic.com/2z82h3d.gif

Offline

 

#73 2011-07-12 19:42:33

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: The Elusive Show/Hide List Blocks

tpaley wrote:

It doesn't work upon uploading

it's not suppost to. you can't use custom blocks in scratch projects on the website.

Offline

 

#74 2012-08-12 07:42:27

chocobubble0
New Scratcher
Registered: 2012-08-11
Posts: 1

Re: The Elusive Show/Hide List Blocks

{Scratchblocks}
  When GF clicked
  Say [Sorry for disturbing, but I'm testing] for (5) secs
  End
[/scratchblocks]

Offline

 

#75 2012-12-16 16:22:26

ke1235
Scratcher
Registered: 2010-03-07
Posts: 56

Re: The Elusive Show/Hide List Blocks

when you open a project using these in 2.0 the show up like the show and hide blocks in 2.0

Offline

 

Board footer