What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Chunks Revealed

Chunks Revealed
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. Chunks Revealed
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>

This post was edited on 10-08-2010 at 12:27 PM by matty.
10-08-2010 02:52 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Chunks Revealed
[Image: clap.gif]

Maybe also suggest to add this as an example in the Scripting docs...
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-08-2010 12:06 PM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Chunks Revealed
Can someone post a screenshot of the created window?  Don't have Plus! installed here
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
10-08-2010 01:06 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Chunks Revealed
[Image: attachment.php?pid=1001512]

.png File Attachment: Plus!_chunks_example.png (12.36 KB)
This file has been downloaded 324 time(s).
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-08-2010 01:11 PM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Chunks Revealed
Cheers Cookie! 

Can do quite a bit with it then!
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
10-08-2010 02:25 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: Chunks Revealed
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]

.jpg File Attachment: Plus!_chunks_example2.jpg (20.09 KB)
This file has been downloaded 314 time(s).
10-08-2010 02:52 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: Chunks Revealed
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]

.jpg File Attachment: Plus!_chunks_example3.jpg (31.12 KB)
This file has been downloaded 314 time(s).
10-08-2010 03:09 PM
Profile E-Mail PM Find Quote Report
warmth
Veteran Member
*****

Avatar
Electronic Engineer

Posts: 1730
Reputation: 26
39 / Male / Flag
Joined: Jul 2003
RE: Chunks Revealed
This would bring great new interfaces' designs! Awesome!
@warmth - Beta Testing a life!
Official Nokia (former Ovi) Suite Beta Tester | Nokia Beta Labs Contributor of the month (June, 2011)
10-08-2010 03:42 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On