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

#1 2010-07-11 06:00:14

scratchycat625625
Scratcher
Registered: 2009-06-05
Posts: 17

GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Tons of people ask this question SO WE SHOULD MAKE A STICKY TO ANSWER IT.
Here's how.
1. Shift click the R in the Scratch logo (top left) and choose 'turn fill screen off'.
2. Middle click anywhere in scratch. At the bottom there should be pink text saying 'ScratchFrame'.
3. At the very top, 2nd from the left, there is a red icon. Click it and go to debug/inspect morph.
4. A window should open up. In the bottom frame, enter this code and replace (category) with your category name:

Code:

ScratchSkin at: #(category) put: (ScratchFrameMorph skinAt: #control).
ScratchSkin at: #(category)Over put: (ScratchFrameMorph skinAt: #controlOver).
ScratchSkin at: #(category)Pressed put: (ScratchFrameMorph skinAt: #controlPressed).

Highlight all the code, right click and press Do it.
5. Click anywhere on the grey and choose open/browser from that menu.
6. Go to Scratch-UI-Panes/ScratchViewerMorph/accessing/rebuildCategorySelectors. The 3rd line should look something like this:

Code:

t1 < #(#motion #control #looks #sensing #sound #operators #pen #variables ).

Add your new category to the end, so it looks like

Code:

t1 < #(#motion #control #looks #sensing #sound #operators #pen #variables #(new category) ).

Again, replace (new category) with your new category name.#
IF YOU WANT AN ODD NUMBER OF CATEGORIES, YOU NEED THIS CHANGE
If you need and odd number of categories, near the bottom there is code that says:

Code:

catButtonsExtent < 2 * t2 x + (3 * t9) @ (t1 size // 2 ...)

Change the t1 size // 2 to ((t1 size / 2) rounded...).
Right click on the code and press Accept.
7. Shift click on the R again and choose 'save image for end user'.
8. Open up scratch again and tadaa!
OPTIONAL: CUSTOM BLOCK COLOURS
I don't know how to change tab colours, but I do know how to change the colours for the blocks inside.
1. Exit fill screen mode and open up the browser again.
2.Go into Scratch-Objects/ScriptableScratchMorph AND CLICK THE CLASS BUTTON/block specs/blockColorFor:
3.Scroll down and put this code after the sensing bit:

Code:

'(category name)' = t1 ifTrue: [^ Color
    h:0
    s:0
    v:0].

As usual, replace (category name) with your new category name and replace HSV with a HSV colour code.
Hope this helps  smile


Plug 'n' play... How do they know my street name?

Offline

 

#2 2010-07-11 08:32:50

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Nice, I haven't seen a really good guide on this before.

(oh and did you read the new idea the Scratch team had about sticky-ing? here it is)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-07-11 08:39:01

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Tabs as in...


~ihaveamac - visit ihaveamac.net

Offline

 

#4 2010-07-11 08:43:30

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

ihaveamac wrote:

Tabs as in...

The categories....like Control, Motion, Sensing, etc.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#5 2010-07-11 10:03:09

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

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

A couple things:

1. You might want to encourage people to use the Scratch Source Code instead
2. In order to add new ScratchSkin items, open a class browser and navigate to "Scratch-UI-Panes"->"ScratchFrameMorph"->"class"->"scratch skin"->"readSkinFrom:"
Next, make sure you have the ScratchSkin folder (named exactly like that, available from the source code page) in the same folder as ScratchSource1.4.image. Add three .gifs to this: (your category).gif, (your category)Over.gif, and (your category)Pressed.gif
3. You can also make colors with (Color r:g:b:)
PS: Credits? ScratchReallyRocks (I think s/he did some of the stuff with the actual adding), me (for the odd number hack and adding images to the ScratchSkin), etc.

Oh no, my (Color r:g:b:) has turned into a smiley!

Last edited by nXIII (2010-07-11 10:03:40)


nXIII

Offline

 

#6 2010-07-11 14:00:11

scratchycat625625
Scratcher
Registered: 2009-06-05
Posts: 17

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

nXIII wrote:

A couple things:

1. You might want to encourage people to use the Scratch Source Code instead
2. In order to add new ScratchSkin items, open a class browser and navigate to "Scratch-UI-Panes"->"ScratchFrameMorph"->"class"->"scratch skin"->"readSkinFrom:"
Next, make sure you have the ScratchSkin folder (named exactly like that, available from the source code page) in the same folder as ScratchSource1.4.image. Add three .gifs to this: (your category).gif, (your category)Over.gif, and (your category)Pressed.gif
3. You can also make colors with (Color r:g:b smile
PS: Credits? ScratchReallyRocks (I think s/he did some of the stuff with the actual adding), me (for the odd number hack and adding images to the ScratchSkin), etc.

Oh no, my (Color r:g:b smile  has turned into a smiley!

In all the other tab colour definitions, the format uses HSV...


Plug 'n' play... How do they know my street name?

Offline

 

#7 2010-07-11 14:04:47

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

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

scratchycat625625 wrote:

nXIII wrote:

A couple things:

1. You might want to encourage people to use the Scratch Source Code instead
2. In order to add new ScratchSkin items, open a class browser and navigate to "Scratch-UI-Panes"->"ScratchFrameMorph"->"class"->"scratch skin"->"readSkinFrom:"
Next, make sure you have the ScratchSkin folder (named exactly like that, available from the source code page) in the same folder as ScratchSource1.4.image. Add three .gifs to this: (your category).gif, (your category)Over.gif, and (your category)Pressed.gif
3. You can also make colors with (Color r:g:b smile
PS: Credits? ScratchReallyRocks (I think s/he did some of the stuff with the actual adding), me (for the odd number hack and adding images to the ScratchSkin), etc.

Oh no, my (Color r:g:b smile  has turned into a smiley!

In all the other tab colour definitions, the format uses HSV...

You can use r:g:b:, it doesn't matter.


nXIII

Offline

 

#8 2010-07-11 19:44:56

Jakey22
Scratcher
Registered: 2008-12-28
Posts: 72

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

I got an error :
Message not understood: Over


http://www.imagebookers.com/gallery/d/2561-1/ubuntu-wallpaper.png http://bullylug.org/linux-penguin.jpg
My website       PENGUINS!!!!!!!!!!!!!!!!!!!!! randomness.

Offline

 

#9 2010-07-11 22:14:49

celloguy123
Scratcher
Registered: 2009-01-15
Posts: 100+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Thank you. I have been looking everywhere for a way to make new categories and now I can.
<when green flag clicked>
<forever>
<say[ thank you ]>
<end>

Last edited by celloguy123 (2010-07-11 22:15:46)


http://internetometer.com/image/33068.png

Offline

 

#10 2010-07-13 22:50:10

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Jakey22 wrote:

I got an error :
Message not understood: Over

Same here... How can we define it?


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#11 2010-07-14 10:52:21

scratchycat625625
Scratcher
Registered: 2009-06-05
Posts: 17

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Jwosty wrote:

Jakey22 wrote:

I got an error :
Message not understood: Over

Same here... How can we define it?

Make sure that all your spaces are in the right place, instead of

Code:

ScratchSkin at: #Other put: (ScratchFrameMorph skinAt: #control).
ScratchSkin at: #Other Over put: (ScratchFrameMorph skinAt: #controlOver).
ScratchSkin at: #Other Pressed put: (ScratchFrameMorph skinAt: #controlPressed).

put

Code:

ScratchSkin at: #Other put: (ScratchFrameMorph skinAt: #control).
ScratchSkin at: #OtherOver put: (ScratchFrameMorph skinAt: #controlOver).
ScratchSkin at: #OtherPressed put: (ScratchFrameMorph skinAt: #controlPressed).

OtherOver must have no spaces, otherwise it will think Over is a message.

Last edited by scratchycat625625 (2010-07-14 10:57:07)


Plug 'n' play... How do they know my street name?

Offline

 

#12 2010-07-18 00:15:08

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Ohh... Thanks!  smile


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#13 2010-07-20 09:14:07

soft319
Scratcher
Registered: 2008-02-19
Posts: 1000+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

you almost crashed meh image.

EDIT: the latest code gave me

Message not unserstood: Pressed

Last edited by soft319 (2010-07-20 09:18:47)


http://bluetetrarpg.web44.net/usercard/img.php?name=soft319

Offline

 

#14 2010-07-22 08:01:13

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Okay.... so I pressed Do it and exited the window, but it said "Changes have not been saved. Is it okay to cancel those changes?" I copied all the code. Do you have to keep the paratheses? I have to go to my cousins right now, so I can't test it.

Last edited by majormax (2010-07-22 08:19:08)

Offline

 

#15 2010-07-22 10:49:45

Zenith2582
Scratcher
Registered: 2010-03-20
Posts: 44

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

AWESOME! I've been trying to figure out how to do this without the source code! Can you make a tutorial on how to change the image at the top left corner permanently?


Gamespy ID: Wave1453 - Game I usually play: Civ 4
Yes, I got the idea from Greenboi.  tongue   lol  (And yes, this is WaveOSBeta)                            [link removed by moderator]< DO NOT CLICK. IT IS A RICKROLL. IT IS IMPOSSIBLE TO CLOSE.

Offline

 

#16 2010-07-22 13:44:49

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Zenith2582 wrote:

AWESOME! I've been trying to figure out how to do this without the source code! Can you make a tutorial on how to change the image at the top left corner permanently?

You just have to add your new image, then (If you're using normal Scratch) shift click where the 'R' would be and click 'Save image for end user,' or (If you're using the Source code) shift click 'file' then click 'save image for end user.'


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#17 2010-07-24 12:53:13

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

"Highlight all the code, right click and press Do it."

I press do it and this thing comes up

"6. Go to Scratch-UI-Panes/ScratchViewerMorph/accessing/rebuildCategorySelectors."

I cant find "rebuildCaregorySelectors"

Offline

 

#18 2010-07-28 11:40:37

celloguy123
Scratcher
Registered: 2009-01-15
Posts: 100+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

colorfusion wrote:

"Highlight all the code, right click and press Do it."

I press do it and this thing comes up

"6. Go to Scratch-UI-Panes/ScratchViewerMorph/accessing/rebuildCategorySelectors."

I cant find "rebuildCaregorySelectors"

In 1.4, rebuildCategorySelectors is in initialization, not accessing.


http://internetometer.com/image/33068.png

Offline

 

#19 2010-08-04 19:23:38

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

it doesn't work for me, it keeps saying things are undefined.

i'm using the scratch source code btw.


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#20 2010-09-30 08:19:20

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

How do I make it so it doesn't keep saying endOfBlockExpected_ all the time?
And howdo I find color codes?

Last edited by zorket (2010-10-15 20:08:09)


Marzipan11 must learn to not spoil

Offline

 

#21 2010-11-04 19:54:02

stickdude123
Scratcher
Registered: 2010-05-31
Posts: 100+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

i want this!


http://internetometer.com/imagesmall/34259.png http://www.mediafire.com/convkey/418e/lkb7wmv2n2k73rz5g.jpg         http://blocks.scratchr.org/API.php?user=stickdude123&amp;action=onlineStatus&amp;type=square

Offline

 

#22 2010-11-04 19:57:48

stickdude123
Scratcher
Registered: 2010-05-31
Posts: 100+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

this should be stickied


http://internetometer.com/imagesmall/34259.png http://www.mediafire.com/convkey/418e/lkb7wmv2n2k73rz5g.jpg         http://blocks.scratchr.org/API.php?user=stickdude123&amp;action=onlineStatus&amp;type=square

Offline

 

#23 2010-11-05 00:26:59

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

stickdude123 wrote:

this should be stickied

BOOP BOOP NECRO POST BOOP BOOP  tongue

And i dont think that...

And i dont think many people do..  tongue

Last edited by bbbeb (2010-11-05 00:27:07)


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#24 2010-12-19 12:52:27

wordMan
Scratcher
Registered: 2007-12-02
Posts: 82

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I have been trying to do this for MONTHS, and this is the FIRST guide that actually works!!!!!!!!!!!!!!  smile


http://www.danasoft.com/sig/1024tim.jpg

Offline

 

#25 2010-12-19 12:55:36

wordMan
Scratcher
Registered: 2007-12-02
Posts: 82

Re: GUIDE: MAKE NEW TABS IN SCRATCH (Please sticky)

Zenith2582 wrote:

AWESOME! I've been trying to figure out how to do this without the source code! Can you make a tutorial on how to change the image at the top left corner permanently?

You get out of full screen mode.  ALT click the image until it says Sketch under it. Click the pencil/pen gray button. Edit it. click okay. Save the scratch image. done! smile


http://www.danasoft.com/sig/1024tim.jpg

Offline

 

Board footer