Old 8th April 2007, 16:56   #1
tHe Wombat
Junior Member
 
Join Date: Apr 2007
Posts: 4
Send a message via ICQ to tHe Wombat
Shuffle allways shows "Image not found"

Hey guys, i'm working on my first skin and got a problem with the shuffle button.

<NStatesButton
id="RepeatDisplay"
x="154" y="69"
nstates="3"
image="stalker.button.player.repeat"
downImage="stalker.button.player.repeat"
activeImage="stalker.button.player.repeaton"
hoverImage="stalker.button.player.repeat"
tooltip="Toggle Playlist/Song Repeating"
cfgattrib="{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D};Repeat"
cfgvals="0;1;-1"
rectrgn="1"
/>

Thats my script,but allway, doesn't matter which button i use for shuffle it's "not found".
all my other buttons are found...


<bitmap id="stalker.button.player.repeat" file="player/stalker/repeat.png" gammagroup="Buttons"/>
<bitmap id="stalker.button.player.repeaton" file="player/stalker/repeaton.png" gammagroup="Buttons"/>

here are the element defenations..

anyone sees the error?

thx tHe Wombat
tHe Wombat is offline   Reply With Quote
Old 10th April 2007, 16:43   #2
TheElusiveMelon
Senior Member
 
TheElusiveMelon's Avatar
 
Join Date: Feb 2005
Location: Kent, England
Posts: 350
I think its because of the way the NStatesButton handles its image files. You should check the stuff i quote below, its taken straight from the Wasabi Developer Manual. If you follow this i think it should work.

Quote:
The nstatesbutton is a specialized kind of togglebutton whose purpose is to cycle through a number of different visual states. The parameters beyond togglebutton that it implements are:

*
nstates - (int) The number of discrete states in which the object may exist.
*
cfgvals - (str) A semicolon delimited list of values to represent custom config values for the multiple states. Default is the current state number. See below.

The nstatesbutton uses special handling of the image, downimage, hoverimage, and activeimage parameters expressed by the button object (from which this object is derived). The nstatesbutton will actually append the state number to the four image parameter strings to calculate the bitmap ids to be loaded for the current object state. Remember, like most everything else in a computer, this "current state value" counts from 0 and is therefore in the range [0, nstates-1].

If the object is bound to a configuration attribute, that attribute will be set with a cfgval every time the nstatesbutton transitions to a new state. If the cfgvals parameter is not set, the attribute will simply be set with the current state value. If the cfgvals parameter is set, it will parse the string and set the config attrib with the n'th substring corresponding to the current state value.

The following snippet fully describes two nstatesbutton objects with three states each, one using full images for its visual display, one using themed Wasabi borders with three different state logos:

<elements>
<bitmap id="nimg0"/>
<bitmap id="dimg0"/>
<bitmap id="himg0"/>
<bitmap id="nimg1"/>
<bitmap id="dimg1"/>
<bitmap id="himg1"/>
<bitmap id="nimg2"/>
<bitmap id="dimg2"/>
<bitmap id="himg2"/>
<bitmap id="logo0"/>
<bitmap id="logo1"/>
<bitmap id="logo2"/>
</elements>
<groupdef id="some.random.groupdef">
<nstatesbutton id="three.freeform.states"
nstates="3" cfgvals="one;two;three"
image="nimg" downimage="dimg" hoverimage="himg"/>
<nstatesbutton id="three.themed.states"
nstates="3" image="logo" borders="1" center_image="1"/>
</groupdef>

If the "three.freeform.states" nstatesbutton were assigned to a configattrib, that attribute would be filled with the values "one" "two" and "three" in order. If the "three.themed.states" were instead assigned to a configattrib, it would be filled with the default values "0" "1" and "2" in order.
TheElusiveMelon is offline   Reply With Quote
Old 12th April 2007, 18:31   #3
tHe Wombat
Junior Member
 
Join Date: Apr 2007
Posts: 4
Send a message via ICQ to tHe Wombat
Hm hm , ok i'll try, can i also make the button just for Repeat on(repeat the hole playlist) and repeat off(don't repeat anything), just like the shuffle button? Iff yes, who would that work?

Wombat

€dit: ok, works nice that far, next question
i adjusted the buttons, and everything looks nice, but if have my cursor over the image the second image show again image not found

script:
<nstatesbutton id="three.themed.states"
x="154" y="69"
nstates="3"
image="stalker.button.player.logo"
hoverImage="stalker.button.player.repeathover"
downImage="stalker.button.player.repeathover"
borders="0"
center_image="1"/>

<bitmap id="stalker.button.player.repeathover" file="player/stalker/repeathover.png" gammagroup="Buttons"/>


the first button, under that button shows a hover image...

Last edited by tHe Wombat; 12th April 2007 at 19:35.
tHe Wombat is offline   Reply With Quote
Old 13th April 2007, 13:09   #4
tHe Wombat
Junior Member
 
Join Date: Apr 2007
Posts: 4
Send a message via ICQ to tHe Wombat
ook, i got it... used the second button, put some attributes to it and it works, BUT on hover, there is still the image "image not found"...

€dit:
I'm just tooooo stupid... can close this threat, thx for your help=)

Last edited by tHe Wombat; 13th April 2007 at 13:27.
tHe Wombat is offline   Reply With Quote
Old 13th April 2007, 23:36   #5
TheElusiveMelon
Senior Member
 
TheElusiveMelon's Avatar
 
Join Date: Feb 2005
Location: Kent, England
Posts: 350
No problem
TheElusiveMelon 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