Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 10th May 2006, 20:26   #1
JW
Senior Member
 
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
Hiding a layer with an existing timer

Similar to how the songticker in the modern skin will show the song title, then balance/repeat status/whatever, then the song title again, I'd like to hide a layer when the ticker is displayed. Something like...

PHP Code:
setText(String txt)
{
(
Hide layer here)
  
StatusTimer.stop();
  
StatusTicker.setText(txt);
  
StatusTimer.start();
(
Show layer after timer runs out)

I can hide the layer fine, but can't get it to display again after the timer runs out.
JW is offline   Reply With Quote
Old 10th May 2006, 22:21   #2
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
not quite sure why you are having the timer run the whole time, but is this what you are after?:

PHP Code:

Global Timer t;

onscriptloaded ()
{
    
//
}


setText(String txt

    
//hide layer
    
StatusTicker.setText(txt); 
    
StatusTimer.start();
}

StatusTimer.OnTimer()
{
    
//show layer
    
StatusTimer.Stop();

hammerhead is offline   Reply With Quote
Old 10th May 2006, 22:46   #3
JW
Senior Member
 
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304


It doesn't run the entire time; I had an onTimer statement there, I just didn't post it. Thanks!
JW is offline   Reply With Quote
Reply
Go Back   Winamp 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