Shoutbox

Chunks Revealed - 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: Chunks Revealed (/showthread.php?tid=95570)

Chunks Revealed by matty on 10-08-2010 at 02:52 AM

This thread is for the long time members who could never figure out from the official documentation how to use chunks. And after spending sometime with Patchou this week in Montreal and complaining to him that the schema validates fine but it still doesn't work he took a look.

As it turns out the information schema was inaccurate.

Download the interface tester and save the following code to an xml file and try and load it. Once I finish bugging Patchou to fix something else in the schema I will post it.

Until then :)

XML code:
<?xml version="1.0" encoding="UTF-16"?>
<Interfaces xmlns="urn:msgplus:interface"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">
    <GlobalColors>
        <GlobalColor Id="ref">
            <BaseColor>
                <Saturation>2.5</Saturation>
                <Brightness>0.8</Brightness>
                <Transparency>220</Transparency>
            </BaseColor>
        </GlobalColor>
    </GlobalColors>
    <Window Id="Test" Version="1">
        <Position Width="354" Height="250" />
        <DialogTmpl />
        <Elements>
            <Element xsi:type="FigureElement" Id="Fig1">
                <Position Top="0" Left="0" />
                <Figure>
                    <Custom>
                        <PathChunk xsi:type="ArcChunk">
                            <Left>10</Left>
                            <Top>50</Top>
                            <Width>200</Width>
                            <Height>200</Height>
                            <StartAngle>90</StartAngle>
                            <SweepAngle>360</SweepAngle>
                        </PathChunk>
                        <PathChunk xsi:type="LineChunk">
                            <X1>500</X1>
                            <Y1>100</Y1>
                            <X2>40</X2>
                            <Y2>150</Y2>
                        </PathChunk>
                        <PathChunk xsi:type="BezierChunk">
                            <X1>100</X1>
                            <Y1>100</Y1>
                            <X2>220</X2>
                            <Y2>120</Y2>
                            <X3>270</X3>
                            <Y3>270</Y3>
                            <X4>120</X4>
                            <Y4>320</Y4>                           
                        </PathChunk>
                    </Custom>
                </Figure>
                <Border>
                    <Size>1</Size>
                    <Color>
                        <GlobalColor>ref</GlobalColor>
                    </Color>
                </Border>
            </Element>
        </Elements>
    </Window>
</Interfaces>


RE: Chunks Revealed by CookieRevised on 10-08-2010 at 12:06 PM

[Image: clap.gif]

Maybe also suggest to add this as an example in the Scripting docs...


RE: Chunks Revealed by Dempsey on 10-08-2010 at 01:06 PM

Can someone post a screenshot of the created window?  Don't have Plus! installed here


RE: Chunks Revealed by CookieRevised on 10-08-2010 at 01:11 PM

[Image: attachment.php?pid=1001512]


RE: Chunks Revealed by Dempsey on 10-08-2010 at 02:25 PM

Cheers Cookie! 

Can do quite a bit with it then!


RE: Chunks Revealed by matty on 10-08-2010 at 02:52 PM

Thanks for posting that Cookie! I forgot to!

Here is something else you can do:

Spoiler:
XML code:
<?xml version="1.0" encoding="UTF-16"?>
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">
    <GlobalColors>
        <GlobalColor Id="bg">
            <BaseColor>
                <Saturation>2</Saturation>
                <Brightness>0.6</Brightness>
                <Transparency>45</Transparency>
            </BaseColor>
        </GlobalColor>
        <GlobalColor Id="ref">
            <BaseColor>
                <Saturation>2.5</Saturation>
                <Brightness>0.8</Brightness>
                <Transparency>220</Transparency>
            </BaseColor>
        </GlobalColor>
    </GlobalColors>
    <Window Id="Test" Version="1">
        <Position Width="354" Height="250" />
        <DialogTmpl />
        <Elements>
            <Element xsi:type="FigureElement" Id="Fig1">
                <Position Top="0" Left="0" />
                <Figure>
                    <Custom>
                        <PathChunk xsi:type="LineChunk">
                            <X1>500</X1>
                            <Y1>100</Y1>
                            <X2>40</X2>
                            <Y2>150</Y2>
                        </PathChunk>
                        <PathChunk xsi:type="BezierChunk">
                            <X1>100</X1>
                            <Y1>100</Y1>
                            <X2>220</X2>
                            <Y2>120</Y2>
                            <X3>270</X3>
                            <Y3>270</Y3>
                            <X4>120</X4>
                            <Y4>320</Y4>
                        </PathChunk>
                    </Custom>
                </Figure>
                <Fill>
                    <LinearGradient Angle="45">
                        <Color1>
                            <GlobalColor>ref</GlobalColor>
                        </Color1>
                        <Color2>
                            <GlobalColor>bg</GlobalColor>
                        </Color2>
                    </LinearGradient>
                </Fill>
            </Element>
        </Elements>
    </Window>
</Interfaces>


[Image: attachment.php?pid=1001514]
RE: Chunks Revealed by matty on 10-08-2010 at 03:09 PM

And lastly:

Spoiler:
XML code:
<?xml version="1.0" encoding="UTF-16"?>
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">
    <GlobalColors>
        <GlobalColor Id="bg">
            <BaseColor>
                <Saturation>2</Saturation>
                <Brightness>0.6</Brightness>
                <Transparency>45</Transparency>
            </BaseColor>
        </GlobalColor>
        <GlobalColor Id="ref">
            <BaseColor>
                <Saturation>2.5</Saturation>
                <Brightness>0.8</Brightness>
                <Transparency>220</Transparency>
            </BaseColor>
        </GlobalColor>
    </GlobalColors>
    <Window Id="Test" Version="1">
        <Position Width="354" Height="250" />
        <DialogTmpl />
        <Elements>
            <Element xsi:type="FigureElement" Id="Fig1">
                <Position Top="0" Left="0" />
                <Figure>
                    <Custom>
                        <PathChunk xsi:type="LineChunk">
                            <X1>500</X1>
                            <Y1>100</Y1>
                            <X2>40</X2>
                            <Y2>150</Y2>
                        </PathChunk>
                        <PathChunk xsi:type="BezierChunk">
                            <X1>100</X1>
                            <Y1>100</Y1>
                            <X2>220</X2>
                            <Y2>120</Y2>
                            <X3>270</X3>
                            <Y3>270</Y3>
                            <X4>120</X4>
                            <Y4>320</Y4>
                        </PathChunk>
                    </Custom>
                </Figure>
                <Fill>
                    <PathGradient>
                        <CenterColor>
                            <GlobalColor>ref</GlobalColor>
                        </CenterColor>
                        <SurroundColor>
                            <GlobalColor>bg</GlobalColor>
                        </SurroundColor>
                        <CenterPoint x="10" y="10" />
                        <!-- Optional
                            X and Y values are either 0 or 1
                        -->
                        <FocusScale x="0" y="1" />
                    </PathGradient>
                </Fill>
            </Element>
        </Elements>
    </Window>
</Interfaces>


[Image: attachment.php?pid=1001515]
RE: Chunks Revealed by warmth on 10-08-2010 at 03:42 PM

This would bring great new interfaces' designs! Awesome!