okay i don't think that that is what the problem is
the thing is i can't seem to update scratch once the changes are made, i've literally deleted all of the category names then hit accept and seen no change to scratch at all.
Offline
nXIII wrote:
I thought I said somewhere you can use (catList size / 2) rounded to fix the odd-number-of-categories glitch
you said it in my thread i believe.
Offline
PlayWithFire wrote:
okay i don't think that that is what the problem is
the thing is i can't seem to update scratch once the changes are made, i've literally deleted all of the category names then hit accept and seen no change to scratch at all.
you have to save image and restart it. it's normal that you've see no change because the script is only run at startup
Offline
okay two things
here's my edited script to make sure it's 100%
| catList maxExtent buttons label offForm onForm overForm b pad leftColumnX rightColumnX x y |
catList _ #(
motion control
looks sensing
sound operators
pen variables
online).
"First, delete the old category buttons"
submorphs do: [:m | (m isKindOf: ResizableToggleButton2) ifTrue: [m delete]].
"Create new buttons, keeping track of the maximum extent."
maxExtent _ 75@0.
buttons _ catList collect: [:cat |
label _ (ScratchTranslator translationFor: cat asString) capitalized.
offForm _ (ScratchFrameMorph skinAt: cat).
onForm _ (ScratchFrameMorph skinAt: (cat, 'Pressed')).
overForm _ (ScratchFrameMorph skinAt: (cat, 'Over')).
ScratchTranslator isRTL
ifTrue:[
b _ ResizableToggleButton2 new
offForm: (offForm flipBy: #horizontal centerAt: offForm center)
onForm: (onForm flipBy: #horizontal centerAt: onForm center)
overForm: (overForm flipBy: #horizontal centerAt: overForm center)]
ifFalse:[
b _ ResizableToggleButton2 new
offForm: offForm
onForm: onForm
overForm: overForm].
b
label: label font: (ScratchFrameMorph getFont: #Category);
setLabelColor: Color white;
target: self;
actionSelector: #currentCategory:;
arguments: (Array with: cat);
toggleButtonMode: true;
toggleMode: false.
ScratchTranslator isRTL
ifTrue:[b rightJustifyInset: 10]
ifFalse:[b leftJustifyInset: 10].
maxExtent _ maxExtent max: (b extent + (3 @ -6)).
b].
"calculate catButtonsExtent"
pad _ 15. "padding on left, right, and betwen the button columns"
catButtonsExtent _ ((2 * maxExtent x) + (3 * pad)) @ (((catList size / 2) * (maxExtent y + 6)) + 25).
"place the buttons"
leftColumnX _ self left + 12 + pad.
rightColumnX _ leftColumnX + maxExtent x + pad.
x _ leftColumnX.
y _ self top + 17.
1 to: buttons size do: [:i |
b _ buttons at: i.
b extent: maxExtent.
self addMorph: (b position: x@y).
i even
ifTrue: [x _ leftColumnX. y _ y + b height + 6]
ifFalse: [x _ rightColumnX]].
self width: catButtonsExtent x.
pageViewer position: self position + (0@catButtonsExtent y).
topSectionHeight _ catButtonsExtent y - 4.and lastly to restart do I only have to save and quit then re open it or is there a specific way to restart?
thanks for being so helpful!
Offline
wow i'm having so many issues with the skin
every time i change a piece of the skin it will not change, instead it either stays the same or doesn't show at all
i still can't add categories and i have no idea what i'm doing wrong
i can't add things to the menu either (where it says file, edit, help) even though i've done everything that needs to be done (from what i know)
why is this so difficult! i've followed instructions perfectly for categories and it refuses to change, i was told to press alt + d when done but all it does it say that all of these things that are predetermined ddo not exist and should be temporary variables
what's going on!
Offline
and i made the swipe default pic look really cool!
and i just now managed to make the new buttons at the top appear (but still not the categories) i had to put the project into regular size screen mode then back to small screen mode for some reason.
Offline
you did load the skin, didn't you?
Offline
Yep, like 80 times,
I will not give up :p
Offline
4. for this one you need another program called ResourceHacker (at least i found it's the simplest way). look it up on google. open the Scratch.exe or whatever you called it in resourcehacker, and change all the cat head icons to your mod's. save the result. done.
no, just copy the .exe/.app file, and change its icon.

Offline