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

#1 2013-01-09 08:46:36

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Creating a list when a new project is created.

Hi, does anyone know how I can make my Scratch mod create a list when a new project is created?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#2 2013-01-09 11:51:13

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

Re: Creating a list when a new project is created.

What do you mean "add a new list"?
Scratch lists can be added using the method "addList: listName" on a sprite for local lists and the stage for global lists.

Offline

 

#3 2013-01-09 21:23:15

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Creating a list when a new project is created.

LS97 wrote:

What do you mean "add a new list"?
Scratch lists can be added using the method "addList: listName" on a sprite for local lists and the stage for global lists.

I know that already, but how can I run that from Scratch-UI-Panes\ScratchFrameMorph\menu/button actions\newScratchProject? I want it to autmatically create a list when a project is created.

EDIT: Also, I want it to be created on the stage.

Last edited by nathanprocks (2013-01-09 22:21:55)


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#4 2013-01-10 02:41:07

kelvin067
New Scratcher
Registered: 2013-01-07
Posts: 1

Re: Creating a list when a new project is created.

nice post..

Offline

 

#5 2013-01-10 08:21:55

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Creating a list when a new project is created.

Bump!


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#6 2013-01-10 16:04:00

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

Re: Creating a list when a new project is created.

Isn't it just

workPane addList: 'whatever'

?


nXIII

Offline

 

#7 2013-01-10 18:53:51

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Creating a list when a new project is created.

nXIII wrote:

Isn't it just

workPane addList: 'whatever'

?

Yeah, but I want it to make the list when a new project is created (Scratch-UI-Panes\ScratchFrameMorph\menu/button actions\newScratchProject). I can't figure out how to do it.

EDIT: Don't worry, I got it to work. I used

Code:

workPane createListNamed: 'list name'

Last edited by nathanprocks (2013-01-10 20:22:46)


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

Board footer