EDIT:
PLEASE CLOSE
So me getting frustrated with having to return on scratch everytime I made a new menu (don't ask), I decided to try adding an initialize button to the file menu. I aadded this to the filemenu code.
t2 add: 'Restart' action: #initialize.
It sort of works, but there is a few weird bugs. There is a picture of the old scratch in the back, and you have to enter/exit user mode to fix it. It also has a few other bugs, any help?
Last edited by gbear605 (2011-05-09 16:58:46)
Offline
Well, those so called "bugs" probably aren't bugs at all! Look at the actual initialize method that you are calling, and see if there is a different function that does what you want.
Tip: Also, you should probably quit using the compiled code. Head on over to http://info.scratch.mit.edu/Source_Code to get the beautiful, clean source! If you'd like to find out what this is, check out this article. Hope this helps!
Google it.
Offline
Jwosty wrote:
Well, those so called "bugs" probably aren't bugs at all! Look at the actual initialize method that you are calling, and see if there is a different function that does what you want.
Tip: Also, you should probably quit using the compiled code. Head on over to http://info.scratch.mit.edu/Source_Code to get the beautiful, clean source! If you'd like to find out what this is, check out this article. Hope this helps!![]()
I do use the source code, I was just hoping that this would work.
Offline
MathWizz wrote:
Try doing this:
Code:
restart self owner replaceSubmorph: self by: ((ScratchFrameMorph new) fillScreenOn)and in your menu:
Code:
t2 add: 'Restart' action: #restart.
hat is good, however, you might want it to delete the old frameMorph. Let me see what I can do...
Offline
MathWizz wrote:
Try doing this:
Code:
restart self owner replaceSubmorph: self by: ((ScratchFrameMorph new) fillScreenOn)and in your menu:
Code:
t2 add: 'Restart' action: #restart.
Thanks, it worked.
CLOSING TOPIC
Offline