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

#101 2013-02-28 12:26:51

Devloper123
Scratcher
Registered: 2011-11-27
Posts: 100+

Re: Modding Scratch VFAQ (very frequently asked Qs)

Thank you-Really helpful


http://i45.tinypic.com/2jafczs.gifAnd Dev! Sign up on this forum!i like the  tongue  emoticon

Offline

 

#102 2013-03-02 12:40:58

SFollis
Scratcher
Registered: 2012-03-04
Posts: 76

Re: Modding Scratch VFAQ (very frequently asked Qs)

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.


http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=image&num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=text&num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=views&num=1 views

Offline

 

#103 2013-03-04 20:44:32

co13
Scratcher
Registered: 2011-02-13
Posts: 72

Re: Modding Scratch VFAQ (very frequently asked Qs)

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


http://www.scratch.mit.edu/static/icons/buddy/722915_med.png?t=2013-04-20+10%3A22%3A33 Click image to go to my stuff SAVE SCRATCH 1.4 SITE

Offline

 

#104 2013-03-17 11:40:57

SFollis
Scratcher
Registered: 2012-03-04
Posts: 76

Re: Modding Scratch VFAQ (very frequently asked Qs)

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  sad


http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=image&num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=text&num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&action=projects&type=newest&return=views&num=1 views

Offline

 

#105 2013-03-17 14:56:07

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Modding Scratch VFAQ (very frequently asked Qs)

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

 

#106 2013-03-17 15:30:51

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

Re: Modding Scratch VFAQ (very frequently asked Qs)

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.


nXIII

Offline

 

#107 2013-03-17 15:39:42

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Modding Scratch VFAQ (very frequently asked Qs)

Still don't get how I'd make a

([measuring v] convert ( ) [unit 1 v] to [unit 2 v])
block.

Offline

 

#108 2013-03-17 15:42:56

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Modding Scratch VFAQ (very frequently asked Qs)

Sorry that the scratchblocks didn't work but I'm sure you can work out what it was meant to say.

Offline

 

#109 2013-03-18 12:43:43

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Modding Scratch VFAQ (very frequently asked Qs)

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

 

#110 2013-03-18 13:56:12

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Modding Scratch VFAQ (very frequently asked Qs)

I like to aim high, and I think I sort of get it.

Offline

 

#111 2013-03-18 14:11:19

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

Re: Modding Scratch VFAQ (very frequently asked Qs)

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.


nXIII

Offline

 

#112 2013-03-18 16:16:31

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Modding Scratch VFAQ (very frequently asked Qs)

Thanks nXIII, I didn't have the willpower to spend so much time on the answer!

Offline

 

#113 2013-03-22 09:14:20

beissera
New Scratcher
Registered: 2013-03-22
Posts: 1

Re: Modding Scratch VFAQ (very frequently asked Qs)

slt sa va

Offline

 

#114 2013-04-07 10:07:51

SFollis
Scratcher
Registered: 2012-03-04
Posts: 76

Re: Modding Scratch VFAQ (very frequently asked Qs)

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  tongue
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.


http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=text&amp;num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=views&amp;num=1 views

Offline

 

#115 2013-04-07 11:36:59

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: Modding Scratch VFAQ (very frequently asked Qs)

I've just come back to this and I get it now but how do I make a new sub-class of ChoiceArgMorph?

Offline

 

#116 2013-04-07 12:06:42

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Modding Scratch VFAQ (very frequently asked Qs)

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

 

Board footer