Hi, does anyone know how I can make my Scratch mod create a list when a new project is created?
Offline
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
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)
Offline
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
workPane createListNamed: 'list name'
Last edited by nathanprocks (2013-01-10 20:22:46)
Offline