Some quick questions. Im working on a layout, and Ive had a few things come up:
1> I have a progress bar that works well. What I want to do with it, though, is put an overlapping text to it. Thats easy, but I want to make the text change color at the same time as the progress bar. The code I have, in theory, should work, but trackinfo_mod seems to clip text that doesnt fit within its defined box. Is there a way to define a containing box for text thats smaller than the text itself, yet still show the partial text? Here's my code:
// Global
$puts(color1,105-9-10)
$puts(color2,229-151-149)
$puts(color3,247-247-247)
$puts(proglen,162)
$puts(progcalc,$left($num($div($mul(%_time_elapsed_seconds%,$mul($get(proglen),10)),%length_seconds%),4),3))
$ifgreater(1,$get(progcalc),$puts(progcalc,1),)
$puts(prog1,$drawrect(0,0,$get(proglen),16,pencolor-0-0-0 brushcolor-$get(color3) width-1))
$puts(prog2,$drawrect(0,0,$get(progcalc),16,pencolor-0-0-0 brushcolor-$get(color1) width-1))
$puts(prog3,$alignabs(0,0,$get(proglen),16,$get(proglen),16)$font(verdana,8,,$get(color1))Progress)
$puts(prog4,$alignabs(0,0,$get(progcalc),16,0,0)$font(verdana,8,,$get(color2))Progress)
// PerTrack
// PerSecond
$get(prog1)$get(prog3)
$get(prog2)$get(prog4)
$get(prog3) stays hidden until its the length of the string "Progress", and I want to circumvent that.
PS - I scripted that progress bar myself. Did I use any extraneous code that can be consolidated? Thx
2> $button2 doesnt seem to want to work with my panels. If I use the example code on hydrogen's wiki page for info_mod:
// Global
$button2(0,0,0,0,30,13,$font(tahoma,8,,0-0-0)Forward,$font(tahoma,8,underline,0-0-0)Forward,'Seek ahead by 10 seconds',)
I get this:
needless to say, the button doesnt work either. If i remove the font tags, sometimes it works with plain text, other times the text is hidden but the button works if you find it through blind clicking (default text black, white background). Can someone tell me what Im doing wrong? I got the img buttons to work fine, but I want text buttons for certain things and its not exactly working for me.
3> Not all the button commands seem to want to work for me. I must be doing something wrong here. For example, my playback order buttons. Default works, but Repeat doesnt, and either does Repeat one or 'Repeat one'.
works:
$button(13,175,0,0,21,17,D:\Erich\mugglenet\poll1.gif,D:\Erich\mugglenet\poll2.gif,Default,)
$alignabs(35,177,162,16,162,16)$font(verdana,8,,247-247-247)Default
Doesnt work:
$button(13,195,0,0,21,17,D:\Erich\mugglenet\poll1.gif,D:\Erich\mugglenet\poll2.gif,'Repeat playlist',)
$alignabs(35,197,162,16,162,16)$font(verdana,8,,247-247-247)Repeat
The buttons show, and the mouseover works fine, but the command does nothing. Any help?
anyone reading this, thank you kindly for your time.
~E