Windows > Third Party Plug-ins, Programs, and Skins

Standard View Skinning Tutorial

<< < (10/17) > >>

Matt:

--- Quote from: marko on June 12, 2015, 12:42:01 am ---Scaling...
In the xml, I see that we have Scale values 1 through to 4. What do these do?

--- End quote ---

You can specify an image that's bigger than needed for 100% (which is good because of high DPI and scaling).

So you make the image four times as big and say that the scale is 4.

marko:
Thanks Matt.

marko:
I'm having trouble with scaling and textures :(. The big image is fine, but when scaled down to 100%, any desired effects virtually disappear. Scale the effect up, and it looks as desired at 100%, but then looks terrible at 400%. I've binned it for now.

Moving on...

We have a "DSP Button" and a "DSP Direct Button". Is the "Direct" one, the one that shows blue on the player bar when you're bitstreaming? Bitstreaming is not something I've ever looked at, know nothing about, and can't test for myself!

-marko

marko:
Matt,

I need some more scaling help here please...

The main frame border, left, bottom and right, needs to be a fixed five pixels, regardless of size or scaling settings. If I set outer limits for the bottom border like so:
Scale="1" Columns="5,?-Flex,5" Rows="?-Flex,5" Cells="B1-STRETCH"

Then regardless of the size set in MC, the skin retains the 5 pixel border.

However, nothing I have tried stops MC increasing the width of the left and right border images. I have tried scale values of -1, 0 and 1, I have tried ommitting any scale information altogether, but no matter what I try, the skinning engine insists on scaling up the image by adding black pixels to the right hand edge. Screen clip below is at 400%...


Is there a way to tell the skinning engine "don't scale this"?

-marko

marko:
Turning into a bit of a monologue here, but, after a 'eureka' moment, I think I have this sorted. Problem is, I have no idea as I can't see what I'm doing!

Am I correct in thinking that, if my screenshot above had been on a Retina display, that five pixel border would have all but disappeared?

I've now redone the graphic using a 20 pixel border, along with new 20 pixel left and right borders, and now they look OK. Absolutely huge, but lined up and scaled nicely together. Am I on the right track now?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version