Old 4th July 2002, 21:40   #1
Sven
Junior Member
 
Join Date: Jul 2002
Location: Antwerp
Posts: 7
Send a message via ICQ to Sven
Angry slider id???

can i use only one slider id in one xml-file, cause Wa3 RC2 479 keeps complaining about 'duplicate attribute at line 139' ?
Sven is offline   Reply With Quote
Old 4th July 2002, 21:56   #2
DJGrenola
Registered User
 
DJGrenola's Avatar
 
Join Date: May 2002
Location: Can't remember
Posts: 268
You should be able to use multiple sliders, but you'll need to give each one a different ID.

If you show us the XML that might help.

DJG
DJGrenola is offline   Reply With Quote
Old 4th July 2002, 21:57   #3
cmisker
Major Dude
 
cmisker's Avatar
 
Join Date: Nov 2001
Location: Emmen, The Netherlands
Posts: 681
Send a message via ICQ to cmisker Send a message via AIM to cmisker Send a message via Yahoo to cmisker
I'm not really into coding and all, but I do know that you can only have one ID per thing. I mean, the ID is for that slider and if you have one ID for 2 different sliders, Winamp won't know what slider you're talking about. Every slider, button, *other thingies* need to have different ID's.

Or am I talking bullshit here???

Wanna see my Winamp 3?
cmisker is offline   Reply With Quote
Old 4th July 2002, 23:24   #4
Sven
Junior Member
 
Join Date: Jul 2002
Location: Antwerp
Posts: 7
Send a message via ICQ to Sven
Talking The code :) so far...

The code so far, the point where it's failing is between the red sentences, i've i leave that one out, everythine works fine, though without the volumebar...


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<WinampAbstractionLayer version="0.8">
<skininfo>
<name>beast</name>
</skininfo>

<include file="../default/xml/studio.xml"/>
<include file="../default/xml/gamma-presets.xml"/>
<include file="../default/xml/thinger.xml"/>
<include file="../default/xml/minibrowser.xml"/>
<include file="../default/xml/components.xml"/>

<elements>
<bitmap id="brigitta.background" file="Brigitta.png"/>
<bitmap id="flower.background" file="flowerlogo.png"/>
<bitmap id="full.logo.background" file="full logo blackwhite.png"/>
<bitmap id="info.frame" file="infoframe.png"/>
<bitmap id="progressbar.indicator.down" file="progressbar indicator2.png"/>
<bitmap id="progressbar.indicator.normal" file="progressbar indicator.png"/>
<bitmap id="progressbar.bar" file="progressbar.png"/>
<bitmap id="visualization.window" file="visframe.png"/>
<bitmap id="volumebar.bar" file="volumebar.png"/>
<bitmap id="volumebar.indicator.down" file="volumebar indicator2.png"/>
<bitmap id="volumebar.indicator.normal" file="volumebar indicator.png"/>

<bitmap id="close.button.down" file="close down.png"/>
<bitmap id="close.button.normal" file="close.png"/>

<bitmap id="crossfade.button.down" file="crossfade2 down.png"/>
<bitmap id="crossfade.button.click" file="crossfade2.png"/>
<bitmap id="crossfade.button.normal" file="crossfade.png"/>

<bitmap id="eject.button.down" file="eject2.png"/>
<bitmap id="eject.button.normal" file="eject.png"/>

<bitmap id="eq.button.down" file="eq2 down.png"/>
<bitmap id="eq.button.click" file="eq2.png"/>
<bitmap id="eq.button.normal" file="eq.png"/>

<bitmap id="maximize.button.down" file="maximize down.png"/>
<bitmap id="maximize.button.normal" file="maximize.png"/>

<bitmap id="minimize.button.down" file="minimize down.png"/>
<bitmap id="minimize.button.normal" file="minimize.png"/>

<bitmap id="ml.button.down" file="ml2 down.png"/>
<bitmap id="ml.button.click" file="ml2.png"/>
<bitmap id="ml.button.normal" file="ml.png"/>

<bitmap id="pause.button.down" file="pause2.png"/>
<bitmap id="pause.button.normal" file="pause.png"/>

<bitmap id="pl.button.down" file="pl2 down.png"/>
<bitmap id="pl.button.click" file="pl2.png"/>
<bitmap id="pl.button.normal" file="pl.png"/>

<bitmap id="play.button.down" file="playbutton2.png"/>
<bitmap id="play.button.normal" file="playbutton.png"/>

<bitmap id="repeat.button.down" file="repeat2 down.png"/>
<bitmap id="repeat.button.click" file="repeat2.png"/>
<bitmap id="repeat.button.normal" file="repeat.png"/>

<bitmap id="shuffle.button.down" file="shuffle2 down.png"/>
<bitmap id="shuffle.button.click" file="shuffle2.png"/>
<bitmap id="shuffle.button.normal" file="shuffle.png"/>

<bitmap id="stop.button.down" file="stop2.png"/>
<bitmap id="stop.button.normal" file="stop.png"/>

<bitmap id="previous.button.down" file="track backward2.png"/>
<bitmap id="previous.button.normal" file="track backward.png"/>

<bitmap id="next.button.down" file="track forward2.png"/>
<bitmap id="next.button.normal" file="track forward.png"/>
</elements>

<container id="main" name="Brigitta Callens">
<layout id="normal" background="brigitta.background">
<layer id="info.frame" image="info.frame" x="11" y="10"/>
<layer id="vis.mask" image="visualization.window" x="126" y="10"/>
<vis
x="135" y="30"
h="35" w="75"
colorband1="130,80,70"
colorband2="132,80,71"
colorband3="134,79,72"
colorband4="136,79,72"
colorband5="138,78,73"
colorband6="140,78,73"
colorband7="143,77,73"
colorband8="145,77,74"
colorband9="147,76,74"
colorband10="150,76,75"
colorband11="153,75,75"
colorband12="155,75,76"
colorband13="159,74,76"
colorband14="161,74,77"
colorband15="164,73,78"
colorband16="168,71,79"
colorband17="170,70,80"
colorbandpeak="179,149,147"
colorosc1="179,149,147"
colorosc2="179,149,147"
colorosc3="179,149,147"
colorosc4="179,149,147"
colorosc5="179,149,147" />

<text id="Songticker" display="songname" x="20" y="16" w="90" h="20"
ticker="1"
font="Verdana"
fontsize="16"
antialias="0"
align="Center"
color="179,149,147"/>

<text id="SongInfo" display="songinfo" x="130" y="90" w="180" h="20"
ticker="1"
font="verdana"
fontsize="12"
antialias="0"
align="Left"
color="179,149,147"/>

<text id="SongTimer" display="Time" x="162" y="8" w="104" h="27"
font="verdana"
fontsize="16"
antialias="0"
align="left"
color="179,149,147"
timecolonwidth="7"/>

/*this is the first 'layer id'*/
<layer id="Brigitta.Seek" image="progressbar.bar" x="12" y="43" />
<slider id="Seek" action="SEEK" x="17" y="36" w="100" h="22"
thumb="progressbar.indicator.normal"
downThumb="progressbar.indicator.down"/>


/*and here is were i want to put:*/

<layer id="Brigitta.Volume" image="volumebar.bar" x="85" y="35" />
<slider id="Volume" action="VOLUME" x="80" y="43" w="80" h="15"
thumb="progressbar.indicator.normal"
downThumb="progressbar.indicator.down"/>

/* but if i use this code, i'm getting the error 'duplicate attribute at line 139*/


<layer x="9" y="75" ghost="1" move="1" image="flower.background"/>

<button id="Next" action="NEXT" x="112" y="89"
image="next.button.normal"
hoverimage="next.button.normal"
downImage="next.button.down"
tooltip="Next" />

<button id="Previous" action="PREV" x="40" y="89"
image="previous.button.normal"
hoverimage="previous.button.normal"
downImage="previous.button.down"
tooltip="Previous" />

<button id="Play" action="PLAY" x="58" y="88"
image="play.button.normal"
hoverimage="play.button.normal"
downImage="play.button.down"
tooltip="Play" />

<button id="Stop" action="STOP" x="96" y="87"
image="stop.button.normal"
hoverimage="stop.button.normal"
downImage="stop.button.down"
tooltip="Stop" />

<button id="Pause" action="PAUSE" x="78" y="88"
image="pause.button.normal"
hoverimage="pause.button.normal"
downImage="pause.button.down"
tooltip="Pause" />

</layout>
</container>
</WinampAbstractionLayer>
Sven is offline   Reply With Quote
Old 5th July 2002, 06:37   #5
thepyr0x
Major Dude
 
thepyr0x's Avatar
 
Join Date: Oct 2001
Location: At my house in a city in Canada
Posts: 1,336
hrm, while I know nothing about scripting; maybe it's because MAKI doesn't like when you use layer IDs with . in them....therefore maybe you should go with bridgittaVolume and bridgittaSeek as ids instead

however I could be (and probably am) way off

thepyr0x 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