Shoutbox

[?] FigureElement with BaseColor and Alpha - 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: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] FigureElement with BaseColor and Alpha (/showthread.php?tid=98489)

[?] FigureElement with BaseColor and Alpha by whiz on 10-28-2011 at 01:32 PM

I want to be able to make a FigureElement with a border set to the BaseColor, and the fill also set to BaseColor, but with an alpha value of 127.

Trouble is, can't seem to have both.  Either I can have a base colour, or mix a colour (and add in alpha).  I want the interface to look right regardless of user colour choices, so the background does need to make use of the BaseColor, but at the moment it can be too dark to read text on, etc.

Aiming for something that looks like this, and can vary with the user's choice of colour.

[Image: attachment.php?pid=1017563]


RE: [?] FigureElement with BaseColor and Alpha by matty on 10-28-2011 at 02:24 PM

Couldn't you make two colours and two figure elements? One FE with a border and no fill and the other with a fill and no border?


RE: [?] FigureElement with BaseColor and Alpha by whiz on 10-29-2011 at 09:23 PM

Even if I do that, I still can't use BaseColor and Alpha together, right?  :S

This is what I've got at the moment...

xml code:
<Element xsi:type="FigureElement" Id="FgrTestB">
    <Position Left="113" Top="-4" Width="500" Height="60">
        <Units>AllPixels</Units>
        <Anchor Vertical="TopBottomFixed"/>
    </Position>
    <Figure>
        <RoundRect>
            <Radius>5</Radius>
        </RoundRect>
    </Figure>
    <Border>
        <Color>
            <BaseColor/>
        </Color>
    </Border>
</Element>
<Element xsi:type="FigureElement" Id="FgrTestF">
    <Position Left="113" Top="-4" Width="500" Height="60">
        <Units>AllPixels</Units>
        <Anchor Vertical="TopBottomFixed"/>
    </Position>
    <Figure>
        <RoundRect>
            <Radius>5</Radius>
        </RoundRect>
    </Figure>
    <Fill>
        <PlainColor>
            <BaseColor/>
        </PlainColor>
    </Fill>
</Element>

Edit: never mind.  Just had a closer look at the scripting docs; apparently there's a Transparency tag that works on BaseColor.