Discuss Scratch

stasiu2015
Scratcher
67 posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

I'm making a 1.4 mod, and I'm making the About Scratch menu have all references to Scratch removed except for “Based on Scratch by the MIT Media Lab”, but when I open the System Browser and go to aboutScratch, when I try to edit it and press accept, it gives me various errors about the contents of the About menu like thinking some words are VARIABLES, how to fix it, and also how to change it's link in the Help menu and the window title, it's an IMAGE file also
Jonathan50
Scratcher
1000+ posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

You probably just made a syntax error; if you post your modified aboutScratch method here (in a [code] tag) and someone will be able to look at it

Also if you want to change what the menu item says from “About Scratch,” edit the method ScratchFrameMorph>>helpMenu:.
	menu add: 'About Scratch' action: #aboutScratch.
(it might say t1 rather than menu for you; then you should probably get the Scratch source code or Scratch.changes)

Last edited by Jonathan50 (Nov. 21, 2025 23:03:25)

stasiu2015
Scratcher
67 posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

aboutScratch

| dialogBox |
dialogBox _ DialogBoxMorph new
title: 'About S-Blocks';
withButtonsForYes: false no: false okay: true cancel: false.
dialogBox
message: 'S-Blocks 1.0, PROUDLY Based on Scratch from the MIT Media Lab'

Copyright © 2009 Massachusetts Institute of Technology.
All rights reserved.

Developed by the Lifelong Kindergarten Group at the MIT Media Lab,
with support from the National Science Foundation, Microsoft, Intel,
Nokia, and MIT Media Lab research consortia.

http://info.scratch.mit.edu/Source_Code
'
font: (ScratchFrameMorph getFont: #AboutScratch).

dialogBox getUserResponse.

also, I am using the source code

Last edited by stasiu2015 (Nov. 21, 2025 23:21:50)

Jonathan50
Scratcher
1000+ posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

stasiu2015 wrote:

		message: 'S-Blocks 1.0, PROUDLY Based on Scratch from the MIT Media Lab'
You just have one unnecessary apostrophe at the end of the line here. That closes the (multi-line) string literal.
stasiu2015
Scratcher
67 posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

It worked! and also how to change the entire scratch WINDOW title to S-Blocks
Maximouse
Scratcher
1000+ posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

stasiu2015 wrote:

and also how to change the entire scratch WINDOW title to S-Blocks
The code that sets the window title is in the updateProjectName method of ScratchFrameMorph.
stasiu2015
Scratcher
67 posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

Thank you!
btw its the .image file
stasiu2015
Scratcher
67 posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

Also, how to change the default text in the
(join [hello ] [world])
(letter () of [world])
(length of [world])
blocks
Maximouse
Scratcher
1000+ posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

stasiu2015 wrote:

Also, how to change the default text in the
(join [hello ] [world])
(letter () of [world])
(length of [world])
blocks
That's defined in the blockSpecs method of ScriptableScratchMorph.
stasiu2015
Scratcher
67 posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

Yes, but when I change it, it still says hello world
TweetytheBird93
Scratcher
20 posts

How to change window title and "About Scratch" menu and it's link in the Help menu in Scratch 1.4?

stasiu2015 wrote:

Yes, but when I change it, it still says hello world

They're both predefined arguments for the block specs in ScriptableScratchMorph (instance) > defaultArgsFor:

    #concatenate:with: = sel ifTrue: [
defaultArgs _ Array with: 'hello ' localized with: 'world' localized].

... (editor's note: irrelevant)

#letter:of: = sel ifTrue: [
defaultArgs _ Array with: 1 with: 'world' localized].

#stringLength: = sel ifTrue: [
defaultArgs _ Array with: 'world' localized].

If you want to change the ‘hello world’ arguments you'll have to change them within this function since these override the defined arguments in all three blockSpecs

Last edited by TweetytheBird93 (Dec. 15, 2025 16:34:16)

Powered by DjangoBB