Xion Audio Player

The new 'snaprectangle' layer type

Skinning Questions, Suggestions and Ideas

Postby Cliff Cawley » March 22nd, 2007, 11:21 pm

In build 79 and later you will be able to use a layer type called 'snaprectangle'

The Layer name reference has been updated to include this.

For a demo, download http://www.r2.com.au/reference/SnapRectangle.psd

Once you have it loaded up in build 79 or later, you will see that when you drag it close to the edge of the screen, that it snaps as per usual, however if you look closer, you will see that its actually snapping to the solid colour you see and not the drop shadow like it usually does!

You can now define layers to be used as snapping rectangles. You can have as many as you like, but Xion will only use the first VISIBLE one it comes across. This means that you can show and hide them in order to change the snapping rectangle in case the shape of your skin changes.

There are two buttons that you can click. One to hide and one to show the snapping rectangle (you can't actually SEE it, you're basically showing and hiding it from Xion's snapping check)

If Xion can't find any visible snapping rectangle layers, it will resort back to calculating it itself. Depending on the size of your skin, this can actually slow your skin down slightly. This feature has been in there for quite some time. By using snaprectangles you can further optimize your skin.

I would recommend you use at least one 'snaprectangle' layer in your skin in order to inform Xion of the rectangle to use when snapping to the screen.

It doesn't have to be a rectangle if you don't want it to, however Xion will still use the bounding rectangle of the layer you create. Photoshop applies a form of compression when saving layers. The compression works best when there are lines of the same colour, therefore using a complete rectangle will actual use up less room than say a circle or a multicoloured rectangle.

You don't HAVE to use this. Its more of an advanced concept for skinners who want more control over where their skin snaps onto the screen, or for those looking to ensure their skin will run a little faster.

Enjoy!
Cliff :)
Cliff Cawley
Creator of Xion
r2 Studios
http://www.r2.com.au
http://xion.r2.com.au
User avatar
Cliff Cawley
Creator of Xion
 
Posts: 1955
Joined: September 3rd, 2006, 11:33 am
Location: Brisbane, Australia

Postby KEV-O » March 23rd, 2007, 2:06 am

Nice! I noticed how some skins snapped to the shadow, but wasn't sure what could be done to change that. Good thinking!
User avatar
KEV-O
Xion Admirer
 
Posts: 246
Joined: October 15th, 2006, 12:47 pm
Location: Kokomo, Indiana

Postby anemovatis » March 24th, 2007, 1:50 am

Ultra cool addition :)
I Design, I Exist.
User avatar
anemovatis
Xion Supporter
 
Posts: 41
Joined: January 5th, 2007, 4:27 am
Location: Greece

Postby pickle » March 24th, 2007, 5:44 am

Very nice - cool fix.
User avatar
pickle
Xion Admirer
 
Posts: 180
Joined: September 9th, 2006, 3:56 pm

Postby SLoB » March 24th, 2007, 7:22 am

will be pickle when Cliff fixes it :)
User avatar
SLoB
Xion Junkie
 
Posts: 1340
Joined: September 11th, 2006, 9:21 pm
Location: UK

Return to General Skin Discussion

Who is online

Users browsing this forum: No registered users and 7 guests

cron