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.
Offline
Are you talking about the browser window in Squeak?
Offline
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*
Offline
Just store lists in variables and show and hide them.
Offline
My BYOB browserhas always been open, for some reason.
Offline
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?
Offline
If you're trying to make a mod of byob, simply run BYOB Development.bat, shift+click File, and turn fill screen off
Offline
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
Offline
DigiTechs wrote:
Bump?
What do you mean by new methods?
Offline
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
Offline
DigiTechs wrote:
DOESN'T MATTER!
I found out how!
How?
I don't know!
Offline
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!
Offline
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.
Offline
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.
Offline
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.
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:
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'
Offline