Re-download to fix problems.
Offline
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
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!
what code do we use to add the files
Offline
This guide looks really good! I've yet to see a better one for explaining how to add tabs. If you want to make it better, and worthy of a sticky, why not edit your first post to include some of the excellent information given in the replies? You could also think about dividing the tutorial into steps, providing screenshots and maybe include a guide on how to rename (and even recolour) existing catagories so people can replace catagories that already exist or remove them entirely! Keep up the good work!
Offline
scratchycat625625 wrote:
Jwosty wrote:
Jakey22 wrote:
I got an error :
Message not understood: OverSame 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.
you crashed and broke my mod i just had to restore it!
Offline
To change the colour of the tab, edit the image in the ScratchSkin folder.
Offline
I like it, great.
Offline
soft319 wrote:
you almost crashed meh image.
EDIT: the latest code gave me
Message not unserstood: Pressed
EDIT: i edited the code and it gave me:
Person naughty: soft319
Fixed.
Offline
THIS NEEDS TO BE ITopic'd! IT IS THE ONLY ONE THAT EVER WORKS ON THE FIRST TRY, COOLSTUF PLEASE?!?!?!?
Offline
I got an error and the categorys dissappeard!
Last edited by rdococ (2011-04-14 11:36:23)
Offline
Doesn't want to work in 1.3.1 Source.
Offline
scratchycat625625 wrote:
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
I did everything correctly. BUT NOW ALL THE BUTTONS TO OPEN CATEGORIES ARE GONE!!! GOSH! YOU TOTTALY MESSED UP MY SCRATCH!!
Offline
what version of scratch were you using in the first tutorial and how can I get it?
[blocks]
<when green flag clicked>
<forever>
<say[ ?!?!?!
[/blocks]
Offline
Hey GP1 can I help with your mod? I posted a comment on ur site! please reply to this post!
Offline
eclown wrote:
Hey GP1 can I help with your mod? I posted a comment on ur site! please reply to this post!
yes yes yes yes yes yes yes yes yes yes. Go to the Kitcat forums, I posted a reply to your post.
Offline
Did I really write this?
Something like 1 year later, and I've completely forgotten Squeak XD
Offline
the button sits underneath the frame! how do i fix that?
Offline
Help! It won't work! It won't accept (do it) the first codes!
Offline
me22 wrote:
What does middle click mean?
Well, first of all, you necroposted. Which means you posted on a topic that is more then 6 months old.
But to answer your question, he just means right click.
Offline
joletole wrote:
me22 wrote:
What does middle click mean?
Well, first of all, you necroposted. Which means you posted on a topic that is more then 6 months old.
But to answer your question, he just means right click.
Actually, middle-click is when you press the scroll wheel down. (Just like any other mouse button). Some mice or touch-pads don't have a middle button, so right-clicking or Alt-clicking may work. On my laptop, I use Ubuntu and right-clicking gets annoying when I turn fill-screen off and I try to right-click something in Scratch. (I have to hold the left button down for a couple of seconds instead.)
Offline
majormax wrote:
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.
Nice button majormax. Where did u get it?
Offline