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

#1 2010-05-11 20:19:13

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Adding categories, what now?

I'm trying to add new block categories and I'm kind of stuck. I searched the forums for how to add categories, and I came up with this answer:

nXIII wrote:

You edit the 'rebuildCategorySelectors' message in ScratchViewerMorph. Just add something to the 'catList' temporary variable, but remember that it floors the length for the extent, meaning you need an even number of categories.

I followed this, but no visible changes happened and I don't know where to go from here. I have all the images I need for the buttons, but I don't know where to add them or how to make them appear with the rest of the categories. It's probably really obvious, but I still don't get it... can anyone help?  hmm

Last edited by hmnwilson (2010-05-11 20:20:34)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#2 2010-05-11 20:30:37

AmoebaMan
Scratcher
Registered: 2009-01-26
Posts: 500+

Re: Adding categories, what now?

I found that place, but when I tried to save the image, it gave me an error...


http://i942.photobucket.com/albums/ad269/RyanScathe/AmoebaMan.png

Offline

 

#3 2010-05-11 21:06:26

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

Re: Adding categories, what now?

You need to add items to the ScratchSkin

Last edited by nXIII (2010-05-11 21:06:33)


nXIII

Offline

 

#4 2010-05-11 23:21:55

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Adding categories, what now?

nXIII wrote:

You need to add items to the ScratchSkin

I just tried that, but it gave me an error:
http://www.freeimagehosting.net/uploads/bf675da3c9.png
I don't know what I'm doing wrong, I followed everything exactly.

Last edited by hmnwilson (2010-05-11 23:26:11)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#5 2010-05-12 08:26:19

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Adding categories, what now?

hmnwilson wrote:

nXIII wrote:

You need to add items to the ScratchSkin

I just tried that, but it gave me an error:
http://www.freeimagehosting.net/uploads/bf675da3c9.png
I don't know what I'm doing wrong, I followed everything exactly.

Try aSymbol instead of anSymbol

Offline

 

#6 2010-05-12 16:48:00

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

Re: Adding categories, what now?

ThePCKid wrote:

hmnwilson wrote:

nXIII wrote:

You need to add items to the ScratchSkin

I just tried that, but it gave me an error:
http://www.freeimagehosting.net/uploads/bf675da3c9.png
I don't know what I'm doing wrong, I followed everything exactly.

Try aSymbol instead of anSymbol

no... the problem is you didn't reload the scratchSkin.
Alt-click the ScratchFrame, inspect it, paste

Code:

self class readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

press Alt+d and wait


nXIII

Offline

 

#7 2010-05-12 17:23:29

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Adding categories, what now?

nXIII wrote:

ThePCKid wrote:

hmnwilson wrote:


I just tried that, but it gave me an error:
http://www.freeimagehosting.net/uploads/bf675da3c9.png
I don't know what I'm doing wrong, I followed everything exactly.

Try aSymbol instead of anSymbol

no... the problem is you didn't reload the scratchSkin.
Alt-click the ScratchFrame, inspect it, paste

Code:

self class readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

press Alt+d and wait

I did that, but it doesn't load the new ScratchSkin even though it was working before. Then when I try to open a new Scratch window, it gives me that error.

I've already looked through the error message, but I still don't know what's causing it.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#8 2010-05-12 17:36:30

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Adding categories, what now?

Same here!


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#9 2010-05-12 17:45:12

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

Re: Adding categories, what now?

waveOSBeta wrote:

Same here!

Um... is the ScratchSkin folder in the root directory?


nXIII

Offline

 

#10 2010-05-12 19:25:38

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Adding categories, what now?

nXIII wrote:

waveOSBeta wrote:

Same here!

Um... is the ScratchSkin folder in the root directory?

The ScratchSkin works perfectly when you take the new categories out of rebuildCategorySelectors, so that's not the problem...


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#11 2010-05-12 19:54:31

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

Re: Adding categories, what now?

hmnwilson wrote:

nXIII wrote:

waveOSBeta wrote:

Same here!

Um... is the ScratchSkin folder in the root directory?

The ScratchSkin works perfectly when you take the new categories out of rebuildCategorySelectors, so that's not the problem...

No, the ScratchSkin is embedded....


nXIII

Offline

 

Board footer