Old 13th February 2006, 23:47   #1
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
something really funny...

i haven't been playing with maki for a while and now when i tryed to wrote a script i got really suprised cuz some things (cfg attribs) won't work!
to be sure i wrote script as i should i wrote a smaller script to see whats heppening, this is the script:
code:

#include <lib/std.mi>
#include <lib/config.mi>

global configattribute attrib;

system.onscriptloaded()
{
configitem test = config.newitem("Test item", "{E9C2D926-53CA-400f-9A4D-85E31755A4CF}");
attrib = test.newattribute("Test attribute", "100");

}

attrib.ondatachanged()
{
messagebox(attrib.getdata(),"debug",1,"");
}


and this is skin.xml:
code:

<?xml version="1" encoding="UTF-8" standalone="yes"?>

<WasabiXML version="1.2">

<skininfo>
<version>00.00</version>
<name>Test Skin</name>
<comment>Skin for maki testings</comment>
<author gaybag="krckoorascic">Aleksandar Ruzicic</author>
<email></email>
<homepage></homepage>
<screenshot></screenshot>
</skininfo>


<container id="main" name="Main Window">
<layout id="normal" minimum_w="320" minimum_h="200">
<Wasabi:StandardFrame:NoStatus fitparent="1"/>
<sendparams target="wasabi.titlebar" default="TEST SKIN"/>

<text id="songticker" x="20" y="50" w="80" h="15" relatw="0" default=" artist - title "/>
<rect x="20" y="50" w="-40" h="15" relatw="1" color="0,0,0" ghost="1"/>

<rect color="0,0,0" x="20" y="80" w="200" h="13"/>
<slider x="20" y="80" w="200" h="13" thumb="wasabi.scrollbar.horizontal.left.pressed"
cfgattrib="{E9C2D926-53CA-400f-9A4D-85E31755A4CF};Test attribute"
high="200"
/>

<script id="test.scipt" file="test.maki"/>
</layout>
</container>

</WasabiXML>


i've compiled script, ran winamp, moved slider but nothing heppens! (it should popup a messagebox!)
i closed winamp, deleted studio.xnf, ran winamp again and nothing, again!, when i oppened studio.xnf this is what i found:
code:

<?xml version="1.0" encoding='UTF-8' standalone="yes"?>
<WasabiXML>
<!-- Generated by: gen_ff v1.1 (499) -->
<configuration>
<section name="{00000000-0000-0000-0000-000000000000}">
<section name="activated">
<entry name="Main Window" value="1" />
</section>
<entry name="Always on top" value="0" />
<entry name="Crossfade time" value="0" />
<entry name="Enable crossfading" value="0" />
<section name="everloaded">
<entry name=":componenttitle" value="1" />
<entry name="Main Window" value="1" />
</section>
<entry name="last_skin" value="Test" />
<section name="normal">
<entry name="timer_elapsed" value="0" />
</section>
<entry name="Repeat" value="1" />
<entry name="Shuffle" value="1" />
<section name="Skin:Test">
<section name="Container:main">
<section name="Main Window">
<section name="Layout:normal">
<entry name="appbar" value="-1" />
<entry name="appbarhidden" value="0" />
<entry name="appbarisautohide" value="0" />
<entry name="appbarontop" value="1" />
<entry name="appbarwantautohide" value="1" />
<entry name="autoopacify" value="0" />
<entry name="maximized" value="0" />
<entry name="odim" value="-2,-2" />
<entry name="r" value="1.000000" />
<entry name="rect" value="352,270,320,200" />
<entry name="restoredrect" value="352,270,320,200" />
<entry name="sl" value="0" />
<entry name="sm" value="1.000000" />
</section>
</section>
</section>
</section>
</section>
</configuration>
</WasabiXML>


no my attribs as you see!!!

does anyone knows whats hppening??

p.s. waversion: 5.2b


krckoorascic is offline   Reply With Quote
Old 14th February 2006, 08:00   #2
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
you could add the test.wal to your post

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 16th February 2006, 00:03   #3
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
well, here's the skin but you got all the code in the previous post (i haven't used any images or fonts, just those 2[3 with .m] files)...
Attached Files
File Type: wal test.wal (2.3 KB, 333 views)


krckoorascic is offline   Reply With Quote
Old 18th February 2006, 15:25   #4
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
you must define the script "global"

PHP Code:
<?xml version="1" encoding="UTF-8" standalone="yes"?>

<WasabiXML version="1.2">

    <skininfo>
        <version>00.00</version>
        <name>Test Skin</name>
        <comment>Skin for maki testings</comment>
        <author gaybag="krckoorascic">Aleksandar Ruzicic</author>
        <email></email>
        <homepage></homepage>
        <screenshot></screenshot>
    </skininfo>
    
<scripts>

    <script id="test.scipt" file="test.maki"/>

</scripts>


    <container id="main" name="Main Window">
        <layout id="normal" minimum_w="320" minimum_h="200">
            <Wasabi:StandardFrame:NoStatus fitparent="1"/>
            <sendparams target="wasabi.titlebar" default="TEST SKIN"/>
            
            <text id="songticker" x="20" y="50" w="80" h="15" relatw="0" default="  artist - title  "/>
            <rect x="20" y="50" w="-40" h="15" relatw="1" color="0,0,0" ghost="1"/>
            
            <rect color="0,0,0" x="20" y="80" w="200" h="13"/>

            <slider x="20" y="80" w="200" h="13" thumb="wasabi.scrollbar.horizontal.left.pressed"
                cfgattrib="{E9C2D926-53CA-400f-9A4D-85E31755A4CF};Test attribute"
                high="200"
            />
            
        </layout>
    </container>

</WasabiXML>

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 19th February 2006, 00:07   #5
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
still won't work


krckoorascic is offline   Reply With Quote
Old 20th February 2006, 08:43   #6
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
cannot be, on my pc it works with this xml!
perhaps recompile test.m! I think I have done this, too!

I'll send you the fixed file, if it won't work.

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 20th February 2006, 12:32   #7
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
bombs out

what do you need the slider to do with attribs (fade layer etc)?
SLoB is offline   Reply With Quote
Old 20th February 2006, 13:23   #8
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
Quote:
cannot be, on my pc it works with this xml!
perhaps recompile test.m! I think I have done this, too!

I'll send you the fixed file, if it won't work.
well maybe i mixed guids when i was testing, i dunno... i'll see that again when come home....
btw, on which winamp version have you tested it?

Quote:
what do you need the slider to do with attribs (fade layer etc)?
i'm writting oldticker script (one-way scrolling songticker) and i need that slider for (global) speed setting, via that attrib(slider) user can control scrolling speed of all tickers who are using this script.


krckoorascic is offline   Reply With Quote
Old 20th February 2006, 15:51   #9
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
Updated Skinfile
Attached Files
File Type: rar test.rar (2.3 KB, 337 views)

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 21st February 2006, 12:04   #10
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
yeah, now works (i haven't recompiled maki.m ) thanks!

but i still cannot understand why script must be declared as global! i wrote scripts using attribs and i didn't needed to declare them as global (acctualy i never declared any script as global...) to make them work...


krckoorascic is offline   Reply With Quote
Old 21st February 2006, 14:14   #11
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
have you declared new attribs or used existing attribs?

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Old 22nd February 2006, 12:41   #12
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
i've declared new ones...


krckoorascic is offline   Reply With Quote
Old 23rd February 2006, 05:39   #13
martin.deimos
Android/UI Development
 
martin.deimos's Avatar
 
Join Date: Sep 2004
Location: Bavaria
Posts: 1,242
Send a message via ICQ to martin.deimos Send a message via AIM to martin.deimos Send a message via Yahoo to martin.deimos
...hm? don't know!

WebSite: www.skinconsortium.com - Community for Userinterface Design & Coding
Skins: Click Here
martin.deimos is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump