Thank you-Really helpful
Offline
machinespray wrote:
LS97 wrote:
2. Adding categories
- edit the skin first: copy the files called control, controlPressed, controlOver and paste them with the names yourcategory, yourcategoryOver, yourcategorypressed.
- use any graphics editing software to change the color of the buttons (optional)
- load the skin (see chapter 1)
- in the scratch browser (see shift-click-r in wiki), go to Scratch-UI-Panes, ScratchViewerMorph, all, rebuildCategorySelectors.
- you'll see a list with all of the existing category names. add yours (add 2 or 4).How do you add blocks to the categories???
goto blockspecs, after variables, do
'(your new category name)' than put blockspec here. add codes normally.
Offline
SFollis wrote:
machinespray wrote:
LS97 wrote:
2. Adding categories
- edit the skin first: copy the files called control, controlPressed, controlOver and paste them with the names yourcategory, yourcategoryOver, yourcategorypressed.
- use any graphics editing software to change the color of the buttons (optional)
- load the skin (see chapter 1)
- in the scratch browser (see shift-click-r in wiki), go to Scratch-UI-Panes, ScratchViewerMorph, all, rebuildCategorySelectors.
- you'll see a list with all of the existing category names. add yours (add 2 or 4).How do you add blocks to the categories???
goto blockspecs, after variables, do
'(your new category name)' than put blockspec here. add codes normally.
I already found that actual page section. Nothing works for me when adding new tabs. I'm making my mod off the actual scratch1.4 See HELP!!!!!! Before continuing reading please see the link I just gave you. Please help me make categories in the actual scratch1.4. I need it for the categories I mentioned in the link. After I make a few more blocks for those categories, my mod will be finished. SFollis, is there another way to add categories? I don't mind adding it manually as long as its quick enough, and it works. Thanks-co13
Offline
co13 wrote:
SFollis wrote:
machinespray wrote:
How do you add blocks to the categories???goto blockspecs, after variables, do
'(your new category name)' than put blockspec here. add codes normally.I already found that actual page section. Nothing works for me when adding new tabs. I'm making my mod off the actual scratch1.4 See HELP!!!!!! Before continuing reading please see the link I just gave you. Please help me make categories in the actual scratch1.4. I need it for the categories I mentioned in the link. After I make a few more blocks for those categories, my mod will be finished. SFollis, is there another way to add categories? I don't mind adding it manually as long as its quick enough, and it works. Thanks-co13
thats the only way, sorry
Offline
Does anyone know how to make what Icall 'conditional dropdown lists' (I don't know hat they're actually called). As in two dropdown lits where one affects the other, or one dropdown list which changes depending upon a value inputted into the block. E.g. a conversion block where you select what you're measuring from a dropdown list and then the other changes to have only the measurements of list 1. I know this isn't about adding categories, but it is about modding scratch.
NB: I've also got a problem with the skin in that even if I download a new one and add the icons for my new categories, if I add any more and try to add categorioes, it comes up with an error. Any help with either problem is appreciated.
Offline
shadowmouse wrote:
Does anyone know how to make what Icall 'conditional dropdown lists' (I don't know hat they're actually called). As in two dropdown lits where one affects the other, or one dropdown list which changes depending upon a value inputted into the block. E.g. a conversion block where you select what you're measuring from a dropdown list and then the other changes to have only the measurements of list 1. I know this isn't about adding categories, but it is about modding scratch.
Check out AttributeArgMorph.
Offline
Still don't get how I'd make a
([measuring v] convert ( ) [unit 1 v] to [unit 2 v])block.
Offline
Sorry that the scratchblocks didn't work but I'm sure you can work out what it was meant to say.
Offline
You'll have to look into making a subclass/copy of AttributeArgMorph to suit your needs.
It's not exactly the standard of the average Squeaker on these forums, but if you have about 5 times the experience of the average you should understand what nXIII means.
Offline
I like to aim high, and I think I sort of get it.
Offline
nXIII wrote:
Check out AttributeArgMorph.
To elaborate:
AttributeArgMorph is a subclass of ChoiceArgMorph (which is the class for all enumerated [drop-down] arguments).
It only has one method, so we should probably look there.
options
"Answer my set of attributes."
| target |
((owner isKindOf: CommandBlockMorph) and:
[owner selector = #getAttribute:of:]) ifFalse: [^ #()]. "Return if the argument's parent is not a block or has the wrong selector."
(target := (owner argumentAt: 2) evaluate) ifNil: [^ #()]. "Evaluate the second argument in the parent block"
"Do something with it"
(target isKindOf: ScriptableScratchMorph) ifFalse: [^ #()].
target varNames size > 0
ifTrue: [^ target attributeNames, #(-), target varNames]
ifFalse: [^ target attributeNames].
Copy that into a new ChoiceArgMorph subclass, change the blue parts, and do whatever you want in the green part.
Offline
Thanks nXIII, I didn't have the willpower to spend so much time on the answer!
Offline
LS97 wrote:
Thanks nXIII, I didn't have the willpower to spend so much time on the answer!
lol same
shadowmouse wrote:
Still don't get how I'd make a
([measuring v] convert (10) [unit 1 v] to [unit 2 v])block.
weird! it didn't work
REASON: it thinks it is a variable, not a reporter block
<[measuring v] convert (10) [unit 1 v] to [unit 2 v]>That is what you want.
Offline
I've just come back to this and I get it now but how do I make a new sub-class of ChoiceArgMorph?
Offline
shadowmouse wrote:
I've just come back to this and I get it now but how do I make a new sub-class of ChoiceArgMorph?
The easiest way is to bring up the context menu in the ChoiceArgMorph class pane and select create subclass template or something. That will make a class and ask you to fill in the name of the new class.
Offline