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?
Last edited by hmnwilson (2010-05-11 20:20:34)
Offline
nXIII wrote:
You need to add items to the ScratchSkin
I just tried that, but it gave me an error:
I don't know what I'm doing wrong, I followed everything exactly.
Last edited by hmnwilson (2010-05-11 23:26:11)
Offline
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
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
self class readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')
press Alt+d and wait
Offline
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, pasteCode:
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.
Offline
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...
Offline
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....
Offline