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

#1 2012-03-10 12:07:35

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Reloading the scratch skin

How do you reload the scratch skin? I have edited it, but how do you reload it?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#2 2012-03-10 13:03:10

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Reloading the scratch skin

Bump! I need help!


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#3 2012-03-10 13:46:36

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Reloading the scratch skin

You use:

Code:

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

Be sure to reload the whole frame, too (either by "Save image for end-user" or with the following)

Code:

World fullRepaintNeeded.
    viewerPane rebuildCategorySelectors.
    self updatePanes.
    self
        view: scriptsPane target
        tab: scriptsPane tabPane currentTab
        category: viewerPane currentCategory

http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#4 2012-03-10 17:56:40

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Reloading the scratch skin

jvvg wrote:

You use:

Code:

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

Be sure to reload the whole frame, too (either by "Save image for end-user" or with the following)

Code:

World fullRepaintNeeded.
    viewerPane rebuildCategorySelectors.
    self updatePanes.
    self
        view: scriptsPane target
        tab: scriptsPane tabPane currentTab
        category: viewerPane currentCategory

Where do you put that code?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#5 2012-03-10 18:51:42

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Reloading the scratch skin

In a menu item or block, or, you can put it in the workspace, highlight all of it, and click "Do it" or "Run" (I forget which).


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#6 2012-03-28 15:17:40

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Reloading the scratch skin

It causes an error and deletes the categories.


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#7 2012-03-28 16:36:45

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Reloading the scratch skin

In that case, there may be something wrong with the category selectors.

Try saving the image for end-user first, does that give you an error?


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#8 2012-03-28 20:58:25

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Reloading the scratch skin

It just closes Scratch, and when I open it nothing new happens


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#9 2012-03-28 21:03:11

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Reloading the scratch skin

Hmm, I guess there's something wrong with my code, as I took it straight out of my own mod (where it DOES work). Maybe there's some other important code around it...


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#10 2012-03-28 21:04:44

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Reloading the scratch skin

Are there any other codes?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#11 2012-03-28 21:07:35

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Reloading the scratch skin

I'm pretty sure the code is:

Code:

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

Note: that code is the same as above.
However, the skin must be in the ScratchSkin directory (in the working directory of the mod), and (this is probably where it messed up) it must have everything that is needed.

And after trying that code, save image for end user.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#12 2012-03-28 21:15:22

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Reloading the scratch skin

Btw, to get the code to upload to Mod Share, you need your mod accepted.
To do that, please post a request in the mod suggestion forum.
[/offtopic]


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#13 2012-04-22 18:16:01

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Reloading the scratch skin

Oh no! All the categories deleted, and it's stuck like that! O.O


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#14 2012-04-22 20:36:45

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Reloading the scratch skin

funelephant wrote:

Oh no! All the categories deleted, and it's stuck like that! O.O

Um, that's not good. Do you have a backup?


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

Board footer