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

#1 2010-08-05 19:50:04

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

XO Mode

Just one simple question: What is XO mode?


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#2 2010-08-05 19:55:30

terminator68
Scratcher
Registered: 2008-02-26
Posts: 1000+

Re: XO Mode

Hmm, is this in scratch? Do you mean IO mode?


--------------------Scratcher since '08--------------------
http://images1.wikia.nocookie.net/__cb20110314152018/mlpfanart/images/5/5d/Applejack_chewing.gif

Offline

 

#3 2010-08-05 20:21:07

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: XO Mode

terminator68 wrote:

Hmm, is this in scratch? Do you mean IO mode?

No, It is in the Source code.

For example, follow this path:

Code:

Scratch-UI-Panes >> ScratchFrameMorph >> scratch skin >> readSkinFrom:

in the class side and you will find:

Code:

readSkinFrom: aDirectory
    "Read the Forms for my skin from the given directory and store them in myskin dictionary."
    "When in XO mode, entries in ScratchSkinXO override the corresponding entries in ScratchSkin."
    "self readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')"

    | dict img i xoDict |
    dict _ Dictionary new.
    xoDict _ Dictionary new.
    aDirectory fileNames do: [:fn |
        Cursor read showWhile: [
            img _ [Form fromFileNamed: (aDirectory fullNameFor: fn)] ifError: [nil]].
        img ifNotNil: [
            i _ fn findLast: [:c | c = $.].
            i = 0 ifFalse: [fn _ fn copyFrom: 1 to: i - 1].
            (fn asLowercase endsWith: '_xo')
                ifTrue: [xoDict at: (fn copyFrom: 1 to: fn size - 3) asSymbol put: img]
                ifFalse: [dict at: fn asSymbol put: img]]].
    ScratchSkin _ dict.
    ScratchSkinXO _ xoDict.

    img _ ScratchSkin at: #scriptsPaneTexture ifAbsent: [nil].
    (img notNil and: [img depth ~= 32]) ifTrue: [
        ScratchSkin at: #scriptsPaneTexture put: (img asFormOfDepth: 32)].

(Just and example; XO mode is mentioned in other places too)


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#4 2010-08-05 21:17:40

terminator68
Scratcher
Registered: 2008-02-26
Posts: 1000+

Re: XO Mode

Hmm. Sorry I don't know  sad .


--------------------Scratcher since '08--------------------
http://images1.wikia.nocookie.net/__cb20110314152018/mlpfanart/images/5/5d/Applejack_chewing.gif

Offline

 

#5 2010-08-05 21:42:05

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: XO Mode

terminator68 wrote:

Hmm. Sorry I don't know  sad .

That's Okay. It's not a big deal, anyway.  smile


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#6 2010-08-05 22:20:55

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: XO Mode

It make everything in Scratch much bigger (text, icons...)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#7 2010-08-05 23:10:26

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: XO Mode

MathWizz wrote:

It make everything in Scratch much bigger (text, icons...)

Oh, Ok! Thank you.

A mod can close this now.


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#8 2010-08-05 23:23:57

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: XO Mode

Jwosty wrote:

MathWizz wrote:

It make everything in Scratch much bigger (text, icons...)

Oh, Ok! Thank you.

A mod can close this now.

Absolutely  smile

Offline

 

Board footer