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

#926 2011-05-12 15:59:27

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

Re: ITopic: Welcome to your local block library!

You should add a newlink on the front page. How to add a block


You can now reach me on Twitter @johnnydean1_

Offline

 

#927 2011-05-12 17:13:41

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Question: when there is a block with code, do I just add the code After another code, from another block?

Offline

 

#928 2011-05-12 18:00:17

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

thebuilderdd wrote:

Question: when there is a block with code, do I just add the code After another code, from another block?

Not sure what you mean, if you mean when making a method which runs other methods  (say move ten steps turn to the left 5 degrees) you can do:

Code:

moveTenAndTurnFive
self forward: 10.
self turnLeft: 5

Can you explain?


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#929 2011-05-12 18:04:38

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

thebuilderdd wrote:

Question: when there is a block with code, do I just add the code After another code, from another block?

Not sure what you mean, if you mean when making a method which runs other methods  (say move ten steps turn to the left 5 degrees) you can do:

Code:

moveTenAndTurnFive
self forward: 10.
self turnLeft: 5

Can you explain?

Here is someones block code in other ops:

Code:

Code goes here

Now, I wanted to add someone elses block to other ops, like this:

Code:

block code

In the end, would it look like this?

Code:

Code goes here
block code

Is this how it works?

Offline

 

#930 2011-05-12 18:25:13

metagrosslord
Scratcher
Registered: 2011-01-11
Posts: 18

Re: ITopic: Welcome to your local block library!

I made a previous costume block.  Just to do away with the costume#-1.  The code is

Code:

self costumeIndex: self costumeIndex - 1

I honestly don't know if I'm missing something, but still.  May as well make use of my experiments.

Offline

 

#931 2011-05-12 18:43:18

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

thebuilderdd wrote:

Pecola1 wrote:

thebuilderdd wrote:

Question: when there is a block with code, do I just add the code After another code, from another block?

Not sure what you mean, if you mean when making a method which runs other methods  (say move ten steps turn to the left 5 degrees) you can do:

Code:

moveTenAndTurnFive
self forward: 10.
self turnLeft: 5

Can you explain?

Here is someones block code in other ops:

Code:

Code goes here

Now, I wanted to add someone elses block to other ops, like this:

Code:

block code

In the end, would it look like this?

Code:

Code goes here
block code

Is this how it works?

Do you mean if you name the method the same thing? If you name the method the same thing, it will replace the other one, not add on to it.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#932 2011-05-12 19:14:34

metagrosslord
Scratcher
Registered: 2011-01-11
Posts: 18

Re: ITopic: Welcome to your local block library!

I'm getting the hang of this now.  XD  Although I see a random position block has been created already, I don't see any blocks leading to the panther site, so credit to Zorket and Sparks for the original url opener.  I just adapted it for the panther site.

Code:

Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://pantherprogramming.weebly.com/']

Offline

 

#933 2011-05-12 19:27:55

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

metagrosslord wrote:

I'm getting the hang of this now.  XD  Although I see a random position block has been created already, I don't see any blocks leading to the panther site, so credit to Zorket and Sparks for the original url opener.  I just adapted it for the panther site.

Code:

Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://pantherprogramming.weebly.com/']

nice! I never thought of that.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#934 2011-05-12 19:36:42

metagrosslord
Scratcher
Registered: 2011-01-11
Posts: 18

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

metagrosslord wrote:

I'm getting the hang of this now.  XD  Although I see a random position block has been created already, I don't see any blocks leading to the panther site, so credit to Zorket and Sparks for the original url opener.  I just adapted it for the panther site.

Code:

Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://pantherprogramming.weebly.com/']

nice! I never thought of that.

Thanks!

Offline

 

#935 2011-05-12 20:29:29

metagrosslord
Scratcher
Registered: 2011-01-11
Posts: 18

Re: ITopic: Welcome to your local block library!

Okay, apparently no one actually posted a Panther motion block.  I guess I was looking at the wrong section.  I call it "go to random position."  Not much of a title.  So here's a random coordinate script:

Code:

self gotoX: (self randomFrom: -240 to: 240) y: (self randomFrom: -180 to: 180)

In retrospect, I suppose that is very similar to the scratch-based one.  Oh well.  I didn't even see that before I came up with it.   tongue

Offline

 

#936 2011-05-12 23:52:57

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

Re: ITopic: Welcome to your local block library!

metagrosslord wrote:

Okay, apparently no one actually posted a Panther motion block.  I guess I was looking at the wrong section.  I call it "go to random position."  Not much of a title.  So here's a random coordinate script:

Code:

self gotoX: (self randomFrom: -240 to: 240) y: (self randomFrom: -180 to: 180)

In retrospect, I suppose that is very similar to the scratch-based one.  Oh well.  I didn't even see that before I came up with it.   tongue

It is very similar. Let me go add that.
EDIT: Forgot we need Sparks. ^^

Last edited by scimonster (2011-05-12 23:55:37)

Offline

 

#937 2011-05-13 06:16:57

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Panther block 33 (<joined mesh?>)'s image is not working.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#938 2011-05-13 06:51:31

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Code:

('View %B blocks from the Block Library' #- #viewblocks:)

Code:

viewblocks: type 
    type = 'Motion' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700166#p700166'].
    type = 'Control' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700167#p700167'].
    type = 'Looks' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700169#p700169'].
    type = 'Sensing' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700171#p700171'].
    type = 'Sound' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700172#p700172'].
    type = 'Operators' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700176#p700176'].
    type = 'Pen' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700177#p700177'].
    type = 'Variables' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700179#p700179']

Code:

typeNames
    ^ #('Motion' 'Looks' 'Sound' 'Pen' 'Control' 'Sensing' 'Operators' 'Variables')

Scratch-Blocks»CommandBlockMorph»private»uncoloredArgMorphFor:

Code:

uncoloredArgMorphFor: t1 
    | t2 |
    t2 _ t1 at: 2.
    $a = t2 ifTrue: [^ AttributeArgMorph new choice: 'volume'].
    $b = t2 ifTrue: [^ BooleanArgMorph new].
    $c = t2 ifTrue: [^ ColorArgMorph new showPalette: true].
    $C = t2 ifTrue: [^ ColorArgMorph new showPalette: false].
    $d = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '0';
         menuSelector: #directionMenu].
    $D = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '48';
         menuSelector: #midiDrumMenu].
    $e = t2 ifTrue: [^ EventTitleMorph new].
    $f = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #mathFunctionNames;
         choice: 'sqrt'].
    $g = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #graphicEffectNames;
         choice: 'color'].
    $H = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #hookupSensorNames].
    $h = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #hookupBooleanSensorNames].
    $I = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #midiInstrumentMenu].
    $i = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #listIndexMenu].
    $k = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #keyNames;
         choice: 'space'].
    $L = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #listVarMenu].
    $l = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #costumeNames;
         choice: 'costume1'].
    $m = t2 ifTrue: [^ SpriteArgMorph new].
    $M = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #motorNames].
    $n = t2 ifTrue: [^ ExpressionArgMorph new numExpression: '10'].
    $N = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '60';
         menuSelector: #noteSelector].
    $s = t2 ifTrue: [^ ExpressionArgMorph new stringExpression: ''].
    $S = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #soundNames;
         choice: 'pop'].
    $v = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #varNamesMenu;
         choice: ''].
    $W = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #motorDirection].
    $x = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #sceneNames;
         choice: ''].
    $y = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #listIndexForDeleteMenu].
    $B = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #typeNames;
         choice: 'Motion'].
    ^ ExpressionArgMorph new numExpression: '10'

What it does: Opens that category of blocks in the Block Library.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#939 2011-05-13 06:55:41

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

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

Code:

('View %B blocks from the Block Library' #- #viewblocks:)

Code:

viewblocks: type 
    type = 'Motion' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700166#p700166'].
    type = 'Control' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700167#p700167'].
    type = 'Looks' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700169#p700169'].
    type = 'Sensing' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700171#p700171'].
    type = 'Sound' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700172#p700172'].
    type = 'Operators' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700176#p700176'].
    type = 'Pen' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700177#p700177'].
    type = 'Variables' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700179#p700179']

Code:

typeNames
    ^ #('Motion' 'Looks' 'Sound' 'Pen' 'Control' 'Sensing' 'Operators' 'Variables')

Scratch-Blocks»CommandBlockMorph»private»uncoloredArgMorphFor:

Code:

uncoloredArgMorphFor: t1 
    | t2 |
    t2 _ t1 at: 2.
    $a = t2 ifTrue: [^ AttributeArgMorph new choice: 'volume'].
    $b = t2 ifTrue: [^ BooleanArgMorph new].
    $c = t2 ifTrue: [^ ColorArgMorph new showPalette: true].
    $C = t2 ifTrue: [^ ColorArgMorph new showPalette: false].
    $d = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '0';
         menuSelector: #directionMenu].
    $D = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '48';
         menuSelector: #midiDrumMenu].
    $e = t2 ifTrue: [^ EventTitleMorph new].
    $f = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #mathFunctionNames;
         choice: 'sqrt'].
    $g = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #graphicEffectNames;
         choice: 'color'].
    $H = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #hookupSensorNames].
    $h = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #hookupBooleanSensorNames].
    $I = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #midiInstrumentMenu].
    $i = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #listIndexMenu].
    $k = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #keyNames;
         choice: 'space'].
    $L = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #listVarMenu].
    $l = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #costumeNames;
         choice: 'costume1'].
    $m = t2 ifTrue: [^ SpriteArgMorph new].
    $M = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #motorNames].
    $n = t2 ifTrue: [^ ExpressionArgMorph new numExpression: '10'].
    $N = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '60';
         menuSelector: #noteSelector].
    $s = t2 ifTrue: [^ ExpressionArgMorph new stringExpression: ''].
    $S = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #soundNames;
         choice: 'pop'].
    $v = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #varNamesMenu;
         choice: ''].
    $W = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #motorDirection].
    $x = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #sceneNames;
         choice: ''].
    $y = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #listIndexForDeleteMenu].
    $B = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #typeNames;
         choice: 'Motion'].
    ^ ExpressionArgMorph new numExpression: '10'

What it does: Opens that category of blocks in the Block Library.

2 problems with this:
1) %B is used by Pecola1 in his <[pen down?] for [Sprite1] block (though that was missed in the old one); you may want to change it.
2) It only opens the Scratch Blocks category; what if you want Panther or BYOB?

Offline

 

#940 2011-05-13 07:16:35

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Code:

('Ask %s' #r #askReport: #'What is your name?')

Code:

askReport: t1 
    ^ StringDialog ask: t1

Asks the input in a dialog box and reports it.

Code:

('Warn %s' #- #warn: 'Invalid input')

Code:

warn: t1 
    DialogBoxMorph warn: t1

Gives a pop-up window alerting the input. Useful if the user entered an invalid input, or just to report results.

Code:

('Pause' #- #pause)

Code:

pause
    DialogBoxMorph warn: 'Paused: click OK to continue'

Pauses the script until the user clicks OK.

Last edited by Hardmath123 (2011-05-13 07:25:22)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#941 2011-05-13 07:17:50

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Hardmath123 wrote:

Code:

('View %B blocks from the Block Library' #- #viewblocks:)

Code:

viewblocks: type 
    type = 'Motion' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700166#p700166'].
    type = 'Control' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700167#p700167'].
    type = 'Looks' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700169#p700169'].
    type = 'Sensing' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700171#p700171'].
    type = 'Sound' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700172#p700172'].
    type = 'Operators' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700176#p700176'].
    type = 'Pen' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700177#p700177'].
    type = 'Variables' ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?pid=700179#p700179']

Code:

typeNames
    ^ #('Motion' 'Looks' 'Sound' 'Pen' 'Control' 'Sensing' 'Operators' 'Variables')

Scratch-Blocks»CommandBlockMorph»private»uncoloredArgMorphFor:

Code:

uncoloredArgMorphFor: t1 
    | t2 |
    t2 _ t1 at: 2.
    $a = t2 ifTrue: [^ AttributeArgMorph new choice: 'volume'].
    $b = t2 ifTrue: [^ BooleanArgMorph new].
    $c = t2 ifTrue: [^ ColorArgMorph new showPalette: true].
    $C = t2 ifTrue: [^ ColorArgMorph new showPalette: false].
    $d = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '0';
         menuSelector: #directionMenu].
    $D = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '48';
         menuSelector: #midiDrumMenu].
    $e = t2 ifTrue: [^ EventTitleMorph new].
    $f = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #mathFunctionNames;
         choice: 'sqrt'].
    $g = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #graphicEffectNames;
         choice: 'color'].
    $H = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #hookupSensorNames].
    $h = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #hookupBooleanSensorNames].
    $I = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #midiInstrumentMenu].
    $i = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #listIndexMenu].
    $k = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #keyNames;
         choice: 'space'].
    $L = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #listVarMenu].
    $l = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #costumeNames;
         choice: 'costume1'].
    $m = t2 ifTrue: [^ SpriteArgMorph new].
    $M = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #motorNames].
    $n = t2 ifTrue: [^ ExpressionArgMorph new numExpression: '10'].
    $N = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '60';
         menuSelector: #noteSelector].
    $s = t2 ifTrue: [^ ExpressionArgMorph new stringExpression: ''].
    $S = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #soundNames;
         choice: 'pop'].
    $v = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #varNamesMenu;
         choice: ''].
    $W = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #motorDirection].
    $x = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #sceneNames;
         choice: ''].
    $y = t2 ifTrue: [^ ExpressionArgMorphWithMenu new numExpression: '1';
         menuSelector: #listIndexForDeleteMenu].
    $B = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #typeNames;
         choice: 'Motion'].
    ^ ExpressionArgMorph new numExpression: '10'

What it does: Opens that category of blocks in the Block Library.

2 problems with this:
1) %B is used by Pecola1 in his <[pen down?] for [Sprite1] block (though that was missed in the old one); you may want to change it.
Ok, what can I make it?
2) It only opens the Scratch Blocks category; what if you want Panther or BYOB?
I'll add separate blocks for those, because Panther and BYOB have different categories.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#942 2011-05-13 07:30:03

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

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

Code:

('Ask %s' #r #askReport: #'What is your name?')

Code:

askReport: t1 
    ^ StringDialog ask: t1

Asks the input in a dialog box and reports it.

Code:

('Warn %s' #- #warn: 'Invalid input')

Code:

warn: t1 
    DialogBoxMorph warn: t1

Gives a pop-up window alerting the input. Useful if the user entered an invalid input, or just to report results.

Code:

('Pause' #- #pause)

Code:

pause
    DialogBoxMorph warn: 'Paused: click OK to continue'

Pauses the script until the user clicks OK.

1) Did you base that off the Panther one?
2) I know ProgrammingFreak shared that, but it must have gotten missed; again.
3) Made by Sparks.
Sorry Hardmath123.

@Hardmath123:
1) I guess %B is OK since the other isn't in yet. ^^
2) OK.  smile

Offline

 

#943 2011-05-13 07:34:18

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

1) Did you base that off the Panther one?
2) I know ProgrammingFreak shared that, but it must have gotten missed; again.
3) Made by Sparks.
Sorry Hardmath123.

Hmmm, it's ok. I did look in the library before; I must've missed 3. No, 1 isn't based on the Panther one.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#944 2011-05-13 07:46:12

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

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

scimonster wrote:

1) Did you base that off the Panther one?
2) I know ProgrammingFreak shared that, but it must have gotten missed; again.
3) Made by Sparks.
Sorry Hardmath123.

Hmmm, it's ok. I did look in the library before; I must've missed 3. No, 1 isn't based on the Panther one.

Sparks didn't add it.  tongue

Offline

 

#945 2011-05-13 08:57:32

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Hardmath123 wrote:

scimonster wrote:

1) Did you base that off the Panther one?
2) I know ProgrammingFreak shared that, but it must have gotten missed; again.
3) Made by Sparks.
Sorry Hardmath123.

Hmmm, it's ok. I did look in the library before; I must've missed 3. No, 1 isn't based on the Panther one.

Sparks didn't add it.  tongue

So... can you add all, but only give me credit for 1?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#946 2011-05-13 09:10:41

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

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

scimonster wrote:

Hardmath123 wrote:


Hmmm, it's ok. I did look in the library before; I must've missed 3. No, 1 isn't based on the Panther one.

Sparks didn't add it.  tongue

So... can you add all, but only give me credit for 1?

Too busy.  tongue

Offline

 

#947 2011-05-13 09:26:18

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Hardmath123 wrote:

scimonster wrote:

Sparks didn't add it.  tongue

So... can you add all, but only give me credit for 1?

Too busy.  tongue

*sigh*  sad

You should have a way to 'queue' blocks to be added. You can just link the post in the queue, and less busy librarians can view the queue and update as they go.
Mockup:

Queue
These will be linked to the post where they were submit. They're currently linked to the Scratch homepage.
(digit (20) of PI) | Scratch | Motion | Quick update
([Paddle2See]'s password) | Panther | Sensing | Lengthy post
[delete this project] | BYOB | Control | Moderate update


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#948 2011-05-13 09:36:00

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

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

scimonster wrote:

Hardmath123 wrote:


So... can you add all, but only give me credit for 1?

Too busy.  tongue

*sigh*  sad

You should have a way to 'queue' blocks to be added. You can just link the post in the queue, and less busy librarians can view the queue and update as they go.
Mockup:

Queue
These will be linked to the post where they were submit. They're currently linked to the Scratch homepage.
(digit (20) of PI) | Scratch | Motion | Quick update
([Paddle2See]'s password) | Panther | Sensing | Lengthy post
[delete this project] | BYOB | Control | Moderate update

That's a cool idea.  smile
What do other Librarians think?

Offline

 

#949 2011-05-13 09:40:23

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

That's a cool idea.  smile
What do other Librarians think?

I like it.


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#950 2011-05-13 09:57:23

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

Board footer