Recommended Posts

20:00 You advanced in shielding.

Tibia? :o

mine, messing with foobar..

// Globals

$settitle([%artist%] - [%title%])

$settray([%artist%] - [%title%])

$setpvar(Toolbar.Height,50)

$setpvar(Statusbar.Height,23)

$setpvar(Searchbar.Height,50)

// 1 = search/album list

// 2 = album art/track info

$setpvar(New.Height,$eval(%_height%-$getpvar(Toolbar.Height)-$getpvar(Statusbar.Height)))

$setpvar(Image.Path,/images/)

//---- Toggle sidebar

//---- 1 = show, 0 = hide

$if($strcmp($getpvar(Sidebar.Enabled),1),

$setpvar(Sidebar.Width,200),

$setpvar(Sidebar.Width,0)

)

// Background

$imageabs2(0,0,0,5,%_width%,0,0,0,$getpvar(Image.Path)toolbar2.png,nokeepaspect)

$drawrect(0,$eval($getpvar(Toolbar.Height)-1),%_width%,1,brushcolor-null pencolor-153-153-153)

$drawrect(0,26,%_width%,1,brushcolor-null pencolor-195-195-195)

$drawrect(0,27,%_width%,1,brushcolor-null pencolor-255-255-255)

$drawrect(0,$getpvar(Toolbar.Height),$getpvar(Sidebar.Width),$getpvar(New.Height),brushcolor-40-40-40 pencolor-null)

$imageabs2(%_width%,23,0,0,%_width%,0,0,$eval(%_height%-$getpvar(Statusbar.Height)),$getpvar(Image.Path)statusbar.png,nokeepaspect)

// PerTrack

$panel(scplaylist,Single Column Playlist,$getpvar(Sidebar.Width),$getpvar(Toolbar.Height),$eval(%_width%-$getpvar(Sidebar.Width)),$getpvar(New.Height),)

$select($getpvar(Default.Sidebar),

$imageabs2(,,,,175,30,9,$add($getpvar(Toolbar.Height),10),$getpvar(Image.Path)searchbg.png,)

$panel(albumlist,Album list,0,$add($getpvar(Toolbar.Height),$getpvar(Searchbar.Height)),$getpvar(Sidebar.Width),$sub($sub($getpvar(New.Height),$getpvar(Searchbar.Height)),10),)

$panel(searchbar,Quick Search Toolbar,15,$add($getpvar(Toolbar.Height),15),$sub($getpvar(Sidebar.Width),55),20,)

,

// code for album art / trackinfo here.

$panel(trackinfo,Track Display,0,$add($getpvar(Toolbar.Height),10),$getpvar(Sidebar.Width),$sub($getpvar(New.Height),20),)

)

//---- Buttons

$setpvar(x.Controlbuttons,5)

$setpvar(y.Controlbuttons,5)

$button($getpvar(x.Controlbuttons),$getpvar(y.Controlbuttons),0,0,20,18,$getpvar(Image.Path)previous1.png,$getpvar(Image.Path)previous2.png,Previous,)

$if($or(%ispaused%,$not(%isplaying%)),

$button($add($getpvar(x.Controlbuttons),23),$getpvar(y.Controlbuttons),0,0,20,18,$getpvar(Image.Path)play1.png,$getpvar(Image.Path)play2.png,Play,)

,

$button($add($getpvar(x.Controlbuttons),23),$getpvar(y.Controlbuttons),0,0,20,18,$getpvar(Image.Path)pause1.png,$getpvar(Image.Path)pause2.png,Pause,)

)

$button($add($getpvar(x.Controlbuttons),46),$getpvar(y.Controlbuttons),0,0,20,18,$getpvar(Image.Path)stop1.png,$getpvar(Image.Path)stop2.png,Stop,)

$button($add($getpvar(x.Controlbuttons),69),$getpvar(y.Controlbuttons),0,0,20,18,$getpvar(Image.Path)next1.png,$getpvar(Image.Path)next2.png,Next,)

// playlist dropdown

$panel(playlistdropdown,Playlists Dropdown,$add($getpvar(x.Controlbuttons),94),4,$sub(%_width%,243),19,)

// playback order

$drawrect($sub(%_width%,140),4,136,19,brushcolor-null pencolor-153-153-153)

$panel(playbackorder,Playback order,$sub(%_width%,140),4,136,18,)

$ifgreater(%_width%,450,$setpvar(menuoffset,240),$setpvar(menuoffset,0))

// menu bar

$panel(menutoolbar,Menu,0,28,$getpvar(menuoffset),20,)

// seekbar

$panel(seekbar,Seekbar,$getpvar(menuoffset),30,$eval(%_width%-$getpvar(menuoffset)+5-140),18,)

// volume

$panel(volume,Volume,$sub(%_width%,140),28,135,18,)

$button2(5,$sub(%_height%,18),0,0,15,15,'$font(,7,,80-80-80)T','$font(,7,,120-120-120)T','PVAR:SET:Default.Sidebar:2',TOOLTIP:"Track Information")

$button2(5,$sub(%_height%,18),0,0,15,15,'$font(,7,,80-80-80)T','$font(,7,,120-120-120)T','PVAR:SET:Sidebar.Enabled:1',TOOLTIP:"Track Information")

$button2(20,$sub(%_height%,18),0,0,15,15,'$font(,7,,80-80-80)L','$font(,7,,120-120-120)L','PVAR:SET:Default.Sidebar:1',TOOLTIP:"Music Library")

$button2(20,$sub(%_height%,18),0,0,15,15,'$font(,7,,80-80-80)L','$font(,7,,120-120-120)L','PVAR:SET:Sidebar.Enabled:1',TOOLTIP:"Music Library")

$if($strcmp($getpvar(Sidebar.Enabled),1),

$button2(35,$sub(%_height%,19),0,0,15,15,'$font(,7,,80-80-80)<','$font(,7,,120-120-120)<','PVAR:SET:Sidebar.Enabled:0',TOOLTIP:"Hide Sidebar"),

$button2(35,$sub(%_height%,19),0,0,15,15,'$font(,7,,80-80-80)>','$font(,7,,120-120-120)>','PVAR:SET:Sidebar.Enabled:1',TOOLTIP:"Show Sidebar")

)

// PerSecond

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.