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

#1 2012-11-01 15:35:55

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Breaking into the BYOB Object Brower?

How would you do it? I'm trying to modify BYOB to add two panther blocks (show list [] and hide list []) but I can't as I cant find the developer menu for BYOB. If someone could show me where it is, it would be helpful.


I'm back.
Maybe.

Offline

 

#2 2012-11-01 15:41:41

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Breaking into the BYOB Object Brower?

Are you talking about the browser window in Squeak?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3 2012-11-01 15:54:01

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

mythbusteranimator wrote:

Are you talking about the browser window in Squeak?

Yes. The Sqeak Object Browser. Like in Panther when you edit a built-in block, the window that pops up.

DARN 60SEC RULE!
*facepalm*
*facepalm 2*


I'm back.
Maybe.

Offline

 

#4 2012-11-01 16:54:09

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

Help?


I always get the 60sec rule on this thread... UGH?


I'm back.
Maybe.

Offline

 

#5 2012-11-01 17:06:06

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

Re: Breaking into the BYOB Object Brower?

DigiTechs wrote:

I always get the 60sec rule on this thread... UGH?

That's because you double-post.

@Q: Use the elements editor and enable programmer facilities.


nXIII

Offline

 

#6 2012-11-01 17:06:59

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Breaking into the BYOB Object Brower?

Just store lists in variables and show and hide them.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#7 2012-11-01 17:16:52

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Breaking into the BYOB Object Brower?

My BYOB browserhas always been open, for some reason.  hmm


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#8 2012-11-01 17:20:56

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

nXIII wrote:

DigiTechs wrote:

I always get the 60sec rule on this thread... UGH?

That's because you double-post.

@Q: Use the elements editor and enable programmer facilities.

How do I do that?


I'm back.
Maybe.

Offline

 

#9 2012-11-01 17:31:34

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Breaking into the BYOB Object Brower?

If you're trying to make a mod of byob, simply run BYOB Development.bat, shift+click File, and turn fill screen off


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#10 2012-11-01 17:35:23

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

I've tried BYOB Development.bat, but it didn't work..


I'm back.
Maybe.

Offline

 

#11 2012-11-01 17:38:45

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

SJRCS_011 wrote:

If you're trying to make a mod of byob, simply run BYOB Development.bat, shift+click File, and turn fill screen off

I GOT IT! Ignore my above post, BYOB was just being stupid. It's Shift+RIGHTCLICK Edit


I'm back.
Maybe.

Offline

 

#12 2012-11-01 17:42:42

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

Now, how do I add new methods (I'm a complete newbie to this..)


I'm back.
Maybe.

Offline

 

#13 2012-11-02 11:45:34

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

Bump?


I'm back.
Maybe.

Offline

 

#14 2012-11-02 11:51:40

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Breaking into the BYOB Object Brower?

DigiTechs wrote:

Bump?

What do you mean by new methods?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#15 2012-11-02 12:06:08

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

mythbusteranimator wrote:

DigiTechs wrote:

Bump?

What do you mean by new methods?

Well, in the blockspecs, they reference the methods, for the ones I want, they are:

showList: t1
self showOrHideList: t1 show: true

and

hideList: t1
self showOrHideList: t1 show: false

I want to know how to add those methods to Scratch-Objects->ScriptableScratchMorph->list ops


I'm back.
Maybe.

Offline

 

#16 2012-11-02 12:08:42

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

DOESN'T MATTER!
I found out how!


I'm back.
Maybe.

Offline

 

#17 2012-11-02 12:09:23

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Breaking into the BYOB Object Brower?

DigiTechs wrote:

DOESN'T MATTER!
I found out how!

How?
I don't know!


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#18 2012-11-02 12:21:42

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

mythbusteranimator wrote:

DigiTechs wrote:

DOESN'T MATTER!
I found out how!

How?
I don't know!

Edit an existing method, such as 'lists' - change the title and contents of it, then press 'accept'. It will make a new method!


I'm back.
Maybe.

Offline

 

#19 2012-11-02 12:24:28

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Breaking into the BYOB Object Brower?

DigiTechs wrote:

mythbusteranimator wrote:

DigiTechs wrote:

DOESN'T MATTER!
I found out how!

How?
I don't know!

Edit an existing method, such as 'lists' - change the title and contents of it, then press 'accept'. It will make a new method!

can you make a few quick snapshots or something? I have never been able to add the method.  sad


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#20 2012-11-02 14:11:32

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Breaking into the BYOB Object Brower?

mythbusteranimator wrote:

DigiTechs wrote:

mythbusteranimator wrote:


How?
I don't know!

Edit an existing method, such as 'lists' - change the title and contents of it, then press 'accept'. It will make a new method!

can you make a few quick snapshots or something? I have never been able to add the method.  sad


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#21 2012-11-02 14:31:07

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Breaking into the BYOB Object Brower?

mythbusteranimator wrote:

DigiTechs wrote:

mythbusteranimator wrote:


How?
I don't know!

Edit an existing method, such as 'lists' - change the title and contents of it, then press 'accept'. It will make a new method!

can you make a few quick snapshots or something? I have never been able to add the method.  sad

Ok, but you'll have to click the links...

STEPS FOR ADDING BLOCKS INTO BYOB:

1) Open up BYOB in Development mode (Use BYOB Development.BAT!)
2) Shift Click the Edit menu, press "Turn fill screen off".
3) Now open the browser. Direct yourself to the place in this image:
https://raw.github.com/DigiTechs/Pictur … rowser.gif
4) Now, in the code below, find your desired category and add the blockspecs. Mine would look somewhat like this:
'variables' ('show list %L' #- #showList:) ('hide list %L' #- #hideList:)
5) Now, after you have added those, direct yourself to the place in this image:
https://raw.github.com/DigiTechs/Pictur … owser2.gif
6) I added my block into 'list ops', but if you want control blocks - I don't know where they are. Anyway, go into your block's type ops. In there, go into the last one, and then for the title, change it for your 2nd #arg thingy's name - so I would name it:
showList: t1
or
hideList: t1
7) Now for the body. Change this to what you want your block to do. For me, I do this:
self showOrHideList: t1 show: true
or
self showOrHideList: t1 show: false
8) If you want to do the show/hide list blocks like me, you need an extra class. First, right click and press accept on your new block method. It will create a new one.
For creating show/hide list blocks, open up the method and change it so it looks like this:

Code:

showOrHideList: t1 show: t2 
showOrHideList: t1 show: t2 
   | t3 t4 t5 |
   t4 _ self ownerThatIsA: ScratchStageMorph.
   (self listVarNames includes: t1)
       ifTrue: [t3 _ lists at: t1]
       ifFalse: 
           [t4 ifNil: [^ self].
           (t4 listVarNames includes: t1)
               ifTrue: [t3 _ t4 lists at: t1]
               ifFalse: [^ self]].
   t2
       ifTrue: [t4 addMorph: t3]
       ifFalse: [t3 delete].
   (t5 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ self].
   t5 viewerPane categoryChanged: 'variables'

I'm back.
Maybe.

Offline

 

Board footer