import graviton/scripts.ski section globals list statemap states.None list srcoff int { 0 0 } string script " playgrp = { button_playPause, button_load, button_stop, button_prev, button_next } textgrp = { text_Time_b, text_Time_w, text_ArtistTitle_b, text_ArtistTitle_w, text_Album_b, text_Album_w, text_Tech_b, text_Tech_w } " section tagz string techinfo "$if(%__bitrate%,%__bitrate%kbps [%__extrainfo%])" section states list hoverPress int { 0 1 2 2 0 0 1 2 2 0 } list hoverPressToggle int { 0 1 2 2 0 3 4 5 5 0 } section color list white int { 255 255 255 255 } list alphagray int { 115 0 0 0 } section window int width 284 int height 287 sprite background string image "graviton/core2.png" list rect int { 0 0 window.width window.height } list rendermap int { render.Erase render.Image } list scripts string { "draglook" } sprite hitBox bool visible false list rect int { 75 75 135 130 } list scripts string { "fadeTarget[target=playgrp]", "hideText[target=textgrp]" } // // playback buttons section buttons int layer 10 bool pixelaccurate true list statemap states.hoverPress sprite button_playPause string include buttons string image "graviton/buttons/playpause.png" list rect int { 98 90 75 95 } list statemap states.hoverPressToggle list scripts string { "playback[type='playpause']" } sprite button_load string include buttons string image "graviton/buttons/load.png" list rect int { 115 61 55 45 } list scripts string { "[function onleftbuttonup(this) fb2k_menuCommand('Playlist/Open...') end]" } sprite button_stop string include buttons string image "graviton/buttons/stop.png" list rect int { 119 173 45 45 } list scripts string { "playback[type='stop']" } sprite button_prev string include buttons string image "graviton/buttons/prev.png" list rect int { 61 114 45 45 } list scripts string { "playback[type='prev']" } sprite button_next string include buttons string image "graviton/buttons/next.png" list rect int { 178 114 45 45 } list scripts string { "playback[type='next']" } // sprite core_labels bool enabled false string image "graviton/labels.png" list rect int { 64 59 156 153 } // // text sprites section textSprites bool enabled false //int textflags textflags.NoWrap int trimming trimming.None int valign align.center list fontcolor color.alphagray //int borderwidth 1 list bordercolor int { 255 255 0 0 } string fontname "arial narrow" int fontsize 16 lua fitText function onupdateplayerstatus(this) length = strlen(look_getText(this)) if length > 38 then if length > 50 then look_setFontSize(this, 9) else look_setFontSize(this, 10) end else look_setFontSize(this, 12) end end endlua sprite text_Time_b string include textSprites string fontname "arial black" int fontsize 18 list rect int { 76 83 130 25 } string fspec %etm% sprite text_Time_w string include text_Time_b int y 82 list fontcolor color.white sprite text_ArtistTitle_b string include textSprites //int textflags textflags.NoWrap int fontsize 12 int halign align.center int valign align.center list rect int { 72 108 142 57 } string fspec "$caps2($replace(%artist%:,'(',$char(10)'('))$char(10)$caps2($if2($replace(%title%,'(',$char(10)'('),''untitled''))" list scripts string { "fitText" } //bool scroll true //list scripts string {"danztextscroll[spec = ' %artist% - %title% |']"} sprite text_ArtistTitle_w string include text_ArtistTitle_b int y 106 list fontcolor color.white sprite text_Album_b string include textSprites list rect int { 66 160 152 30 } int fontsize 8 string fspec $caps2(%album%) //bool scroll true //list scripts string {"danztextscroll[spec = ' %album% |']"} sprite text_Album_w string include text_Album_b int y 159 list fontcolor color.white sprite text_Tech_b string include textSprites list rect int { 86 185 113 16 } int fontsize 9 string fspec "%tagz._techinfo%" sprite text_Tech_w string include text_Tech_b int y 184 list fontcolor color.white // sprite text_Mask bool enabled false string image "graviton/text_mask3.png" //list rect int { 26 121 240 38 } old mask //list rect int { 51 120 182 59 } old mask2 list rect int { 17 120 250 38 } // // edge buttons section edgebuttons bool pixelaccurate true list statemap states.hoverPress sprite button_shade string include edgebuttons string image "graviton/buttons/shade.png" list rect int { 51 18 63 48 } list scripts string { "popUpMessage" } sprite button_mini string include edgebuttons string image "graviton/buttons/mini.png" list rect int { 109 13 66 25 } list scripts string { "popUpMessage" } sprite button_close string include edgebuttons string image "graviton/buttons/close.png" list rect int { 169 18 63 48 } list scripts string { "[function onleftbuttonup(this) fb2k_menuCommand('Foobar2000/Exit') end]" } sprite button_playlist string include edgebuttons string image "graviton/buttons/playlist.png" list rect int { 15 156 42 64 } list scripts string { "togglefb2k" } sprite button_config string include edgebuttons string image "graviton/buttons/config.png" list rect int { 40 207 61 53 } list scripts string { "[function onleftbuttonup(this) fb2k_prefs() end]" } sprite button_shuffle string include edgebuttons string image "graviton/buttons/shuffle.png" list rect int { 182 207 61 53 } list scripts string { "popUpMessage" } sprite button_repeat string include edgebuttons string image "graviton/buttons/repeat.png" list rect int { 227 156 42 64 } list scripts string { "popUpMessage" } // sprite core_ring bool enabled false string image "graviton/ring.png" list rect int { 32 32 220 220 } sprite control_volBase bool enabled false string image "graviton/control_ballbar.png" list srcoff int { 8 5 } list rect int { 57 34 170 55 } sprite control_volMap bool visible false bool pixelaccurate true string image "graviton/vol_map.png" list rect int { 51 32 182 60 } list scripts string { "volDrag[bar=control_volBase]" } sprite core_progBase bool enabled false string image "graviton/prog_base.png" list rect int { 38 155 208 93 } sprite core_clips bool enabled false string image "graviton/clips.png" list rect int { 10 71 264 203 } // sprite messageWindow int layer 20 string image "graviton/development_anim.png" bool visible false bool enabled false list rect int { 84 86 120 120 } list scripts string { "devAnim", "[function onleftbuttonup(this) look_setEnabled(this,false) look_setVisible(this,false) end]" } //