Shoutbox

Adding UMargins to Shaped Skin Masks - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Skinning (/forumdisplay.php?fid=41)
+----- Thread: Adding UMargins to Shaped Skin Masks (/showthread.php?tid=84377)

Adding UMargins to Shaped Skin Masks by aNILEator on 06-17-2008 at 07:33 PM

Nothing about it in the documentation, Having this would make my life with Beaver and Steve sooo much easier (along with other full border shaped skins), just defining the UMargins of the mask bg.

If/Whilst your at it add in proper masking for backgrounds (a) *Cough* realistic aero bars effect then achievable *cough* (a)

OH also

Chat Tab Left, been thinking about it, and obviously it expands with whatever size tab you chose, whereas top tabs won't change the tab bar size, so maybe we'll need to add in chat tab bar left small,medium,large sizes too, just to get stuff REALLY perfect

Thanks Patch ;)

lots of love to you!

btw, did my postcard arrive thanking you for shirts yet?


RE: Adding UMargins to Shaped Skin Masks by Patchou on 06-18-2008 at 03:08 AM

I'll check my mail box tomorrow :).

As for the suggestion, I'll see what can be done. I'm still finishing things up for v4.70 and I didn't want to do much related to skins internals for this build. There's a lot of room for improvement right now, that's for sure :).


RE: Adding UMargins to Shaped Skin Masks by aNILEator on 06-18-2008 at 11:43 AM

Having a discussion about this with willz, and it's because I have no straight lines I'm having REAL problems, all his shaped skins have some straight lines of some sort in them, and the corners are shape skinned.

I tried taking the 'tables' approach to solve the problem.

[Image: attachment.php?pid=913932]

But this has left me with problems shown in the bottom, the corner edges are all whack

I also tried cutting my mask into 4 quarters and having each at 50% width and height, that didn't work nice either. Neither did just a Left, Top, Right and Bottom all at 100% (respective width or height)

And 100% image mask, I can't add UMargins to so It stretches.

Currently using this top method is the best I got so far.

Also I've noticed that contact list restricted minimum size does not work, even though formatting is correct :S


-----------------------------------------------------------
WARNING LONG COPY PASTE OF CODE AHEAD!
-----------------------------------------------------------
This is what the current shaping code is

    <Region>
          <ContactList>
            <Rectangle Integration="add">
                <Left>0</Left>
                <Top>0</Top>
                <Width Unit="percent">100</Width>
                <Height Unit="percent">100</Height>
            </Rectangle>
            <Rectangle Integration="subtract">
                <Left>0</Left>
                <Top>0</Top>
                <Width Unit="percent">100</Width>
                <Height>15</Height>
            </Rectangle>
            <Rectangle Integration="subtract">
                <Left>0</Left>
                <Top>0</Top>
                <Width>15</Width>
                <Height Unit="percent">100</Height>
            </Rectangle>
            <Rectangle Integration="subtract">
                <Right>0</Right>   
                <Bottom>0</Bottom>
                <Width Unit="percent">100</Width>
                <Height>15</Height>
            </Rectangle>
            <Rectangle Integration="subtract">
                <Right>0</Right>
                <Bottom>0</Bottom>
                <Width>15</Width>
                <Height Unit="percent">100</Height>
            </Rectangle>
            <Image Integration="add">
                <Source>
                    <File>images\Window Design\BL.png</File>
                </Source>
                <Position>
                    <Left>0</Left>
                    <Bottom>0</Bottom>
                    <Width>15</Width>
                    <Height>15</Height>
                </Position>
            </Image>
            <Image Integration="add">
                <Source>
                    <File>images\Window Design\L.png</File>
                </Source>
                <Position>
                    <Left>0</Left>
                    <Bottom>15</Bottom>
                    <Top>15</Top>
                    <Width>15</Width>
                    <Height Unit="percent">100</Height>
                </Position>
            </Image>
            <Image Integration="add">
                <Source>
                    <File>images\Window Design\TL.png</File>
                </Source>
                <Position>
                    <Left>0</Left>
                    <Top>0</Top>
                    <Width>15</Width>
                    <Height>15</Height>
                </Position>
            </Image>
            <Image Integration="add">
                <Source>
                    <File>images\Window Design\T.png</File>
                </Source>
                <Position>
                    <Left>15</Left>
                    <Right>15</Right>
                    <Top>0</Top>
                    <Width Unit="percent">100</Width>
                    <Height>15</Height>
                </Position>
            </Image>
            <Image Integration="add">
                <Source>
                    <File>images\Window Design\TR.png</File>
                </Source>
                <Position>
                    <Right>0</Right>
                    <Top>0</Top>
                    <Width>15</Width>
                    <Height>15</Height>
                </Position>
            </Image>
            <Image Integration="add">
                <Source>
                    <File>images\Window Design\R.png</File>
                </Source>
                <Position>
                    <Right>0</Right>
                    <Bottom>15</Bottom>
                    <Top>15</Top>
                    <Width>15</Width>
                    <Height Unit="percent">100</Height>
                </Position>
            </Image>
            <Image Integration="add">
                <Source>
                    <File>images\Window Design\BR.png</File>
                </Source>
                <Position>
                    <Right>0</Right>
                    <Bottom>0</Bottom>
                    <Width>15</Width>
                    <Height>15</Height>
                </Position>
            </Image>
            <Image Integration="add">
                <Source>
                    <File>images\Window Design\B.png</File>
                </Source>
                <Position>
                    <Left>15</Left>
                    <Right>15</Right>
                    <Bottom>0</Bottom>
                    <Width Unit="percent">100</Width>
                    <Height>15</Height>
                </Position>
            </Image>
          </ContactList>




RE: Adding UMargins to Shaped Skin Masks by aNILEator on 06-18-2008 at 12:26 PM

This image (due to some aero/messenger error) shows more clearly what pieces are missing....

[Image: attachment.php?pid=913936]

EDIT: I've fixed the top left corner now, had that at 50% width and height still, but the others remain unfixed.


I guess the main problem is that we can't "center" the mask pieces and I'm trying to tell it to align to both the left with a 15pxl padding and the right with a 15 pxl padding

and it only want to align/pad one side.


ALRIGHT!

Managed to do what I was after using Subtract instead of add.

UMargins, would still be REALLY nice though (a)