Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_ui_panels (Read 1318066 times) previous topic - next topic
0 Members and 18 Guests are viewing this topic.

foo_ui_panels

Reply #1875
"flip" is like holding a mirror to one side of an image. flipx is holding the mirror to the right side and using the mirror image, while flipy is holding the mirror to the bottom.

also some combinations of flipping are equal to a rotation (flipping on both the x and y axis is the same as rotating by 180 degrees)

I tested the beta with the basic layout
Drag and drop works like a charm. Is it possible to change the arrow which appears or to let the arrow disappear?


the arrow should automatically disappear after you do the drag and drop

foo_ui_panels

Reply #1876
@Testversion I have a question..
How did the $imageabs code change. I didn't follow the development so :
Code: [Select]
$imageabs(1,($mul(%list_index%,16)),icons\%codec%.png,)

Doesn't work anymore.
I looked in the command reference but didn't get a clue.

If someone can give me a hint?

I have taken an old layout and the results are similar to Andreasvb. Looks really strange... I try to figure out where the problem lies.

Problem 1: Seems like text lays over if there isn't enough space...
Problem 2: Seems like
Code: [Select]
$if($not(%__replaygain_track_gain%),$rgb(225,216,26) 'AG')
results in a quadrat followed by 1AD8E1 followed by a quadrat

foo_ui_panels

Reply #1877
Quote
can you post a screenshot of your theme? Also does the window size still expand if you comment out the $windowstyle() with the hide titlebar, hit apply, and then uncomment it, and hit apply?

I figured out what is the source of a problem-Window Blinds,when i unload it,everything's back to normal.
However with version 0.13.6 everything just fine with Window Blonds-must be something you've changed between the versions.If you can bring back the old behavior-please!TIA
Favourite artist:CD-R
Favourite album:700MB

foo_ui_panels

Reply #1878
Here's my code, terrestrial.

Track Display, top
Code: [Select]
// Background
///////////////////////////////////////// LOGO /////////////////////////////////////////////////
$drawrect(,,,,brushcolor-74-0-72 pencolor-74-0-72 alpha-255)
//$imageabs($add(20,$div(%_width%,2)),$add(-25,$div(%_height%,3)),images\Logo\fb_logo1_small.png,)

$imageabs2(%_width%,,$div(%_width%,-4),8,,,,,images\Logo\fb_logo1_small.png,)

//VB


// Global
/////////////////////////////////////////Definitions/////////////////////////////////////////////
$puts(removable,fg)
$puts(glass_intensity,-25)
$puts(back,$rgb(145,0,125))
$puts(active,$rgb(255,255,255))
$puts(decreaserange,15)
$puts(YY_MM_DD,)

// PerSecond
//////////////////////////////////////TIME Sequence//////////////////////////////////////////////
$if(%isplaying%,$puts(active,$get(active)),$puts(active,$get(back)))
$font(7 Segment,26,,255-255-255)
$puts(size,24)
$puts(sizefix,$muldiv(10,$get(size),14))
$if($stricmp($len(%_time_remaining%),4),$puts(time,$insert(0,%_time_remaining%,3)),
$puts(time,%_time_remaining%))
$if(%_time_total%,
$if($stricmp($len(%_time_total%),4),$puts(total,$insert(0,%_time_total%,3)),
$puts(total,%_time_total%)),$puts(total,__:__))
$font(7 Segment,$get(size),,255-255-255)
$puts(1,$substr($get(time),1,1))
$puts(2,$substr($get(time),2,2))
$puts(4,$substr($get(time),4,4))
$puts(5,$substr($get(time),5,5))
$puts(6,$ifequal($len(%track%),3,$substr(%tracknumber%,2,2),$left(%tracknumber%,1)))
$puts(7,$right(%tracknumber%,1))
$puts(8,$substr($get(total),1,1))
$puts(9,$substr($get(total),2,2))
$puts(10,$substr($get(total),4,4))
$puts(11,$substr($get(total),5,5))
$if($stricmp($get(1),7),$puts(f1,2),)
$if($stricmp($get(2),7),$puts(f2,2),)
$if($stricmp($get(5),7),$puts(f5,3),)
$if($stricmp($get(6),7),$puts(f6,3),)
$if($stricmp($get(7),7),$puts(f7,3),)
$if($stricmp($get(8),7),$puts(f8,3),)
$if($stricmp($get(9),7),$puts(f9,3),)
$if($stricmp($get(10),7),$puts(f10,3),)
$if($stricmp($get(11),),$puts(f11,2),)
$alignabs(141,$div(%_height%,5),%_width%,%_height%,,)$get(back)
$char(56)$char(56):$char(56)$char(56)
$alignabs($add(141,$get(f1)),$div(%_height%,5),%_width%,%_height%,,)
$get(active)$get(1)
$alignabs($add(141,$get(f2),$mul($get(sizefix),1)),$div(%_height%,5),%_width%,%_height%,,)
$get(active)$get(2):
$alignabs($add(142,$get(f4),$mul($get(sizefix),3)),$div(%_height%,5),%_width%,%_height%,,)
$get(active)$get(4)
$alignabs($add(142,$get(f5),$mul($get(sizefix),4)),$div(%_height%,5),%_width%,%_height%,,)
$get(active)$get(5)


////////////////////////////////////Stereo Encoding Tagtype///////////////////////////////////////
$alignabs(73,$div(%_height%,50),%_width%,%_height%,,)
$font(franklin gothic medium,8,,255-255-255)
$if($stricmp(%__mp3_stereo_mode%,JOINT STEREO),$get(active)JOINT STEREO
$get(back)$char(32)MONO,
$if($stricmp(%channels%,stereo),$get(back)JOINT $get(active)STEREO
$get(back)$char(32)MONO,
$get(back)JOINT STEREO
$if($stricmp(%channels%,MONO),$get(active)$char(32)MONO,
$get(back)$char(32)MONO)))
$if($stricmp($info(encoding),lossy),$get(active) LOSSY$get(back) LOSSLESS,
$get(back) LOSSY$get(active) LOSSLESS)
$if($or($stricmp(%codec_profile%,CBR),
$and($stricmp($info(extrainfo),),$stricmp(%codec_profile%,?)),
$stricmp($info(encoding),lossless),$stricmp(%codec%,wma)),
$get(active),$get(back)) CBR
$if($or($stricmp(%codec%,musepack),$and($stricmp(%codec%,aac),$get(str)),
$info(extrainfo),$strstr(%codec_profile%,VBR)),$get(active),$get(back)) VBR
$if($stricmp(%codec%,vorbis),$get(active),$get(back)) ABR
$if($strstr($info(tagtype),id3v1),$get(active),$get(back)) ID3V1
$if($strstr($info(tagtype),id3v2),$get(active),$get(back)) ID3V2
$if($strstr($info(tagtype),apev2),$get(active),$get(back)) APEV2
//$if($stricmp(%codec%,vorbis),$get(active),$get(back)) VC
$if($stricmp(%codec%,tak),$get(active)TAK,$get(back)) TAK
$if(%__replaygain_track_gain%,$get(active)RG,$get(back)RG)

////////////////////////////////Play pause tracknumber////////////////////////////////////////////
$alignabs(109,$div(%_height%,5),%_width%,%_height%,,)
#LINEHEIGHT,16#$char(32)$char(10)
$font(webdings,10,,255-255-2550)
$if(%ispaused%,$get(active),$get(back))$char(59)
$font(lucida sans unicode,10,,255-255-255)
$if($not(%ispaused%),$get(active),$get(back))$char(9654)
$alignabs(71,$div(%_height%,5),%_width%,%_height%,,)
$font(7 Segment,$get(size),,255-255-255)
$get(back)$char(56)$char(56)
$alignabs($add(71,$get(f6)),$div(%_height%,5),%_width%,%_height%,,)
$get(active)$get(6)
$alignabs($add(71,$get(f7),$mul($get(sizefix),1)),$div(%_height%,5),%_width%,%_height%,,)
$get(active)$get(7)

//////////////////////////////////////////Source///////////////////////////////////////////////////
$font(franklin gothic medium,7,,255-255-255)
$alignabs(3,$muldiv(%_height%,10,45),%_width%,%_height%,,)
#LINEHEIGHT,9#
$if($stricmp($substr(%path%,1,4),http),$get(active)STREAMING,$get(back)STREAMING)$char(10)
$if($or($not($stricmp($strchr($get(removable),$substr(%path%,1,1)),0)),
$stricmp(%codec%,CDDA)),$get(active)REMOVABLE,$get(back)REMOVABLE)$char(10)
$if($and($stricmp($strchr($get(removable),$substr(%path%,1,1)),0),
$not($stricmp(%codec%,CDDA)),$not($stricmp($substr(%path%,1,4),http))),$get(active)HARDDISK,$get(back)HARDDISK)

//////////////////////////////////////Time total Bitrate Samplerate////////////////////////////////
$alignabs(238,$div(%_height%,5),%_width%,%_height%,,)
$font(7 segment,11,,255-255-255)
#LINEHEIGHT,3#$char(32)$char(10)
$get(back)$char(56)$char(56):$char(56)$char(56)
$alignabs($add(238,$get(f8)),$div(%_height%,5),%_width%,%_height%,,)
#LINEHEIGHT,3#$char(32)$char(10)
$get(active)$get(8)
$alignabs($add(246,$get(f9)),$div(%_height%,5),%_width%,%_height%,,)
#LINEHEIGHT,3#$char(32)$char(10)
$get(active)$get(9):
$alignabs(262,$div(%_height%,5),%_width%,%_height%,,)
#LINEHEIGHT,3#$char(32)$char(10)
$get(active)$get(10)
$alignabs($add(270,$get(f11)),$div(%_height%,5),%_width%,%_height%,,)
#LINEHEIGHT,3#$char(32)$char(10)
$get(active)$get(11)
$alignabs(238,$div(%_height%,4),%_width%,%_height%,,)
#LINEHEIGHT,16#$char(32)$char(10)
$font(7 segment,10,,250-250-250)
$get(active)[%bitrate%]
$alignabs(266,$div(%_height%,4),%_width%,%_height%,,)
#LINEHEIGHT,16#$char(32)$char(10)
$font(Lucida sans unicode,7,,250-250-250)$get(active)Kb/s
$font(7 segment,10,,250-250-250)
$get(active)$char(32)[%samplerate%]
$alignabs(330,$div(%_height%,4),%_width%,%_height%,,)
#LINEHEIGHT,17#$char(32)$char(10)
$font(Lucida sans unicode,7,,250-250-250)$get(active) Hz

/////////////////////////////////Rating FP Play count//////////////////////////////////////////////


//ADD FAV // MOD //

$puts(heart,$if(%_isplaying%,$imageabs(448,$add(-1,$div(%_height%,4)),/images\Sweetie-BasePack-v3\png-24\16-heart-red-xs.png,)))

$alignabs(340,$add(-2,$div(%_height%,5)),%_width%,%_height%,,)
$font(arial,10,,255-255-255)
$if(%fav%,$get(heart))


//RATING BASED BY PLAYCOUNT // VIBI //
$font(wingdings,15,,250-250-250)

$alignabs(355,$add(-5,$div(%_height%,3)),%_width%,%_height%,,)
$get(back)$repeat($char(171),$sub(5,$get(rating)))
//$alignabs(355,$div(%_height%,5),%_width%,%_height%,,)
$font(wingdings,15,,250-250-250)
#LINEHEIGHT,3#$char(32)$char(10)
$alignabs(355,$add(-4,$div(%_height%,5)),%_width%,%_height%,,)
#LINEHEIGHT,3#$char(32)$char(10)

$alignabs(355,$add(-5,$div(%_height%,3)),%_width%,%_height%,,)

$if($greater($get(rating),5),$puts(rating,5))
$if($greater(0,$get(rating)),$puts(rating,0))
$if(%rating%,$repeat($char(171),%rating%),
$if($greater(%play_counter%,09),$char(171))
$if($greater(%play_counter%,24),$char(171))
$if($greater(%play_counter%,44),$char(171))
$if($greater(%play_counter%,64),$char(171))
$if($greater(%play_counter%,99),$char(171)))


//---------END---------//

$alignabs(355,$add(-4,$div(%_height%,4)),%_width%,%_height%,,)
#LINEHEIGHT,20#$char(32)$char(10)
$font(7 segment,10,,250-250-250)

$get(active)$if(%first_played%,$if($get(YY_MM_DD),
[$substr(%last_played%,1,4).$substr(%last_played%,6,7).$substr(%last_played%,9,10)],
[$substr(%last_played%,9,10).$substr(%last_played%,6,7).]$substr(%last_played%,1,4)),
..........)


$alignabs(422,$div(%_height%,4),%_width%,%_height%,,)
#LINEHEIGHT,16#$char(32)$char(10)
$font(7 segment,10,,250-250-250)$get(active)$repeat($char(32),3)$num($add(%play_counter%,),3)
$alignabs(432,$div(%_height%,4),%_width%,%_height%,,)
#LINEHEIGHT,17#$char(32)$char(10)
$font(Lucida sans unicode,7,,250-250-250)$get(active)'(x'$repeat($char(32),8)')'

// PerTrack
//////////////////////////////////////////Codec//////////////////////////////////////////////////
$alignabs(285,$div(%_height%,5),%_width%,%_height%,,)
$font(lcd2,10,bold,255-255-255)
#LINEHEIGHT,5#$char(32)$char(10)
$get(active)[%codec%]

// PerSecond
//////////////////////////////////////////Image//////////////////////////////////////////////////
$imageabs2(2048,100,0,25,2048,45,0,0,images\logo\glass.png,NOKEEPASPECT)



// PerTrack
$font(calibri,10,,160-25-170)
$alignabs(5,43,%_width%,%_height%,5,)
$lower(%_trackinfo_mode%: $if(%_trackinfo_notrack%,no track,
$font(calibri,11,,255-47-247)
[%artist% -] %title%))

$font(calibri,10,,225-17-217)
$alignrel(right,bottom)
[ Q: $ifgreater(%cwb_queuelength%,0,%cwb_queuelength% '['%cwb_next_artist% - %cwb_next_title%']',) ]

//[%last_played%]

Track Display, side
Code: [Select]

//ANDREASVB

// Global
$puts(pink1,$rgb(255,17,207))
$puts(lila1,$rgb(62,0,62))
$puts(lila2,$rgb(214,143,252))
$puts(lila3,$rgb(159,75,205))
$puts(lila4,$rgb(179,70,251))
$puts(lila5,$rgb(197,21,255))
$puts(lila6,$rgb(85,10,110))
$puts(lila7,$rgb(200,150,235))
$puts(grey1,$rgb(187,187,187))
$puts(grey2,$rgb(136,136,136))
$puts(grey3,$rgb(204,204,204))

$puts(cover,
  $if($fileexists($get(path1)),$get(path1),
  $if($fileexists($get(path2)),$get(path2),
  $if($fileexists($get(path3)),$get(path3),
  $if($fileexists($get(path4)),$get(path4),/images/cover/nc0.png))))
)

// Background
$drawrect(,,,,brushcolor-74-0-72 pencolor-74-0-72 alpha-255)

// PerTrack

$puts(nc,nc$rand(2).png)

$imageabs2(200,183,0,0,200,0,8,12,/images/Cover/cdcase.png,nokeepaspect)
$imageabs2(200,183,0,0,200,0,8,198,/images/Cover/cdcase.png,nokeepaspect ROTATEFLIP-6)

$imageabs2(175,175,0,0,175,0,28,16,$get(cover),nokeepaspect)
$imageabs2(175,175,0,0,175,0,28,202,$get(cover),nokeepaspect ROTATEFLIP-6)

$imageabs2(200,200,0,0,200,0,8,198,/images/Cover/reverse_overlay2.png,nokeepaspect)
$imageabs2(200,200,0,0,200,0,28,16,/images/Cover/reflect1.png,alpha-145)

// PerSecond
$repeat( $char(10),18)
$if(%_trackinfo_notrack%,,$get(pink1)$repeat( ,11)$lower(:: $get(lila2)%_trackinfo_mode%$get(lila4) '|'$get(lila2) %cwb_playback_order%$get(pink1) ::)$tab()$char(10)



$char(10)
$get(lila1)$transition(--------------------------------,$get(lila1),$get(pink1))$get(pink1)----$get(lila1)
$transition(----------------------------------,$get(pink1),$get(lila1))

$alignset()

$font(candara,9,,160-25-170) $get(pink1) artist 
$get(lila3)$lower(%artist%)$char(10)

$get(pink1)  title  $get(lila3)$lower(%title%)$char(10)
$get(pink1)[  album 
$get(lila3)$lower(%album%)])
$char(10)

$ifgreater(%cwb_queuelength%,0,$get(pink1)  queue: $get(lila4) $ifgreater(%cwb_queuelength%,0,%cwb_queuelength% $char(10) $get(lila3) - artist $get(lila7) %cwb_next_artist%
$char(10) $get(lila3) - title $get(lila7) %cwb_next_title%,)$char(10),)

$char(10)
$tab()$get(pink1)      $char(8226)  $char(9679)  $char(3664) $get(lila4)  t e c h  n f o $get(pink1)  $char(3664)  $char(9679)  $char(8226)$tab()$char(10)
$char(10)

$puts(progress,$len($trim($progress2(%_time_elapsed_seconds%,%_time_total_seconds%,100,'_',' '))))
[$tab()    $progress(%_time_elapsed_seconds%,%_time_total_seconds%,50, '[ '$get(pink1)$get(progress)$get(lila3)' ]' ,$get(lila3)'|')$char(10)$char(10)]

#LINEHEIGHT,20#
$get(lila1)$transition(--------------------------------,$get(lila1),$get(pink1))$get(pink1)----$get(lila1)
$transition(----------------------------------,$get(pink1),$get(lila1))

#LINEHEIGHT,15#
$if(%__codec%,$char(10)$get(pink1) codec 
$get(lila3)$lower(%__codec%)$char(10))
$get(pink1) $if(%__bitrate%,bitrate  $get(lila3)$if(%_isplaying%,$if([%__bitrate%],[%__bitrate_dynamic%]),%__bitrate%) kbps,)

$if(%rating%,$char(10)$get(pink1) rating  ,)
$if(%rating%,$get(lila4)%rating%
$get(grey3) '('$get(lila4)$repeat($char(8226),%rating%)
$repeat($get(lila6)$char(8226),$sub(5,%rating%))$get(grey3)')',)
$get(pink1) $if(%FAV%,$char(8226),)$char(10)

$if(%PLAY_COUNTER%,$get(pink1) played 
$get(lila3)%PLAY_COUNTER%,)

$if(%last_played%,$char(10) $get(pink1) time  $get(lila3)[%last_played%],)

$if(%_trackinfo_notrack%,$get(lila2)                          STOPPED,) 


#LINEHEIGHT,20#
$get(lila1)$transition(--------------------------------,$get(lila1),$get(pink1))$get(pink1)----$get(lila1)
$transition(----------------------------------,$get(pink1),$get(lila1))

SCPL
Code: [Select]
// Global
$puts(heart,$if(%_selected%,$imageabs(62,0,/images\Sweetie-BasePack-v3\png-24\16-heart-red-xs.png,),
$imageabs(62,0,/images\Sweetie-BasePack-v3\png-24\16-heart-red-xxs.png,flow))
$if(%_isplaying%,$imageabs(62,0,/images\Sweetie-BasePack-v3\png-24\16-heart-gold-xs.png,))
)

$puts(color_normal,$if(%_isplaying%,$font(segoui,9,,255-108-240),))
$puts(color_glow_sel,$if(%_selected%,$font(segoui,9, glow-145-0-145 glowexpand-1 glowblur-1,255-200-255),$font(segoui,9,,191-0-153)))
$puts(color_glow_p,$if(%_isplaying%,$font(segoui,9,bold glow-145-0-145 glowexpand-2 glowblur-2,255-200-255),))
$puts(color_glow2_sel,$if(%_selected%,$font(segoui,9,bold glow-145-0-145 glowexpand-2 glowblur-2,255-200-255),$font(segoui,9,,207-84-254)))
$puts(color_glow2_p,$if(%_isplaying%,$font(segoui,9,bold glow-145-0-145 glowexpand-2 glowblur-2,255-200-255),$get(color_glow2_sel)))
$puts(color_r8,$font(segoeui,9,,207-84-254))
$puts(color_fav,$font(segoeui,9,,226-154-250))
$puts(border_sel_np,$drawrect(3,1,$sub(%_width%,6),15,brushcolor-90-0-90 pencolor-255-0-225))
$puts(border_sel_p,$drawrect(3,1,$sub(%_width%,6),15,brushcolor-120-0-120 pencolor-255-0-236 width-1))
$puts(border_p,$drawrect(0,0,0,0,brushcolor-100-0-100 pencolor-135-0-135))
$puts(text_np,$if(%_selected%,$font(segoui,9,,255-108-240)$get(border_sel_np),$get(color_normal)$get(border_np)))
$puts(text_p,$if(%_selected%,$font(segoui,9,,255-108-240)$get(border_sel_p),$font(segoui,9,,191-0-153)$get(border_p)))
$puts(GLOW,$get(color_glow_sel)$get(color_normal)$get(color_glow_p))
$puts(r8,$font(segoeui,9,,)


$alignabs(20,0,65,15,,)$if(%rating%,$get(color_r8)$get(color_glow2_p)  $repeat($char(9679),%rating%),$get(color_glow_sel)$get(color_glow_p)
$if($greater(%play_counter%,09),  $char(9679))
$if($greater(%play_counter%,49),$char(9679))
$if($greater(%play_counter%,99),$char(9679))
$if($greater(%play_counter%,149),$char(9679))
$if($greater(%play_counter%,199),$char(9679))))



// PerTrack
$if(%_isplaying%,$get(text_p),$get(text_np))
$padding(2,)$alignrel(left,middle)$get(GLOW)[ $ifgreater(%play_counter%,9,%play_counter%,$replace($num(%play_counter%,$add($len(%play_counter%),1)),0,$font(segoui,9,,115-0-115)0$get(GLOW)))]

//$ifequal($stricmp(%codec%,mp3),1,

$alignabs(35,0,65,15,,)$get(r8)
$get(GLOW)$if(%fav%,$get(heart))
$alignabs(82,1,$add($calcwidth(%artist%),10),15,,)$get(GLOW)$ifgreater(%_width%,700,%artist%,$abbr(%artist%,30))
//$alignabs(350,1,$add($calcwidth(%title%),10),15,,)$get(GLOW)%title%

$alignabs($div(%_width%,2),1,$add($calcwidth(%title%),12),15,,)$get(GLOW)%title%
//,%filename%)

$alignabs($sub(%_width%,100),,80,15,,) $if(%ispaused%,$font(calibri,8,bold glow-129-138-150 glowblur-10,255-255-255)P  A  U  S  E  D,)

$padding(5,)
//$alignrel(right,middle)$get(GLOW)$replace($num(%track%,$add($len(%track%),0)),0,$font(segoui,9,,115-0-115)0$get(GLOW))
//$alignrel(right,middle)$get(GLOW)$ifgreater(%track%,9,%track%,$replace($num(%track%,$add($len(%track%),0)),0,$font(segoui,9,,115-0-115)0$get(GLOW)))
//$alignrel(right,middle)$get(GLOW)[ $ifgreater(%list_index%,9,%list_index%,$replace($num(%list_index%,$add($len(%list_index%),0)),0,$font(segoui,9,,115-0-115)0$get(GLOW)))]


$if(%disc%,
$alignrel(right,middle)$get(GLOW)$replace($left(%track%,1),$left(%track%,1),$font(segoeui,9,,115-0-115)$left(%track%,1)$get(GLOW))$right(%track%,2)
,
$alignrel(right,middle)$get(GLOW)$ifgreater(%track%,99,$replace($left(%track%,$sub($len(%track%),2)),0,$font(segoeui,9,,115-0-115)0$get(GLOW))$right(%track%,2),
$alignrel(right,middle)$get(GLOW)$ifgreater(%track%,0,$replace($left(%track%,$sub($len(%track%),1)),0,$font(segoeui,9,,115-0-115)0$get(GLOW))$right(%track%,1),)
)
)
Windows 10 Pro x64 // foobar2000 1.3.10

foo_ui_panels

Reply #1879
Can someone help me with the imageabs function?

This is my code
Quote
$imageabs(690,18,images\Inas Metalseries\Metalleiste.png,)


So in the command reference it says:
Quote
imageName
    The relative path to the image from the foobar profile directory.


But what is my profile directory if I haven't one enabled while installing foobar?

The Image I want to show lies in Foobar2000 directory\images\Inas Metalseries\Metalleiste.png

So what must I do?

I already tried much options but with no result


foo_ui_panels

Reply #1881
Hi,
I have a button that causes another another window to popup. Is there a way to remove the title bar from this popup window? The original window has the title bar removed through some code.

Thanks,

Nic

foo_ui_panels

Reply #1882
i've tried searching and couldn't fine an answer

is it possible to make a button that toggles hiding and showing the titlebar?

i've been trying to do this and i just can't get it to work. im thinking that the // Background requirement is making this impossible.




and another thing, if this thread is the right place to ask....

under single column playlist, is it possible to have different playlists use different layouts? some playlists i want to have an artist/album grouping, and others i want as single tracks.

foo_ui_panels

Reply #1883
After minor adjusting of the code, the new version works very good.

Thanks, terrestrial.
Windows 10 Pro x64 // foobar2000 1.3.10

foo_ui_panels

Reply #1884
i've tried searching and couldn't fine an answer

is it possible to make a button that toggles hiding and showing the titlebar?

i've been trying to do this and i just can't get it to work. im thinking that the // Background requirement is making this impossible.




and another thing, if this thread is the right place to ask....

under single column playlist, is it possible to have different playlists use different layouts? some playlists i want to have an artist/album grouping, and others i want as single tracks.

Try this:

// Background
$ifequal($getpvar(Titlebar),1,$windowstyle(hidetitlebar),$windowstyle(showtitlebar))

// PerTrack
$button(230,170,0,0,0,0,image1.png,image2.png,PVAR:SET:Titlebar:$ifequal($getpvar(Titlebar),1,0,1),TOOLTIP:)

About the SCPL, just select the layout you want in each playlist.

foo_ui_panels

Reply #1885
Try this:

// Background
$ifequal($getpvar(Titlebar),1,$windowstyle(hidetitlebar),$windowstyle(showtitlebar))

// PerTrack
$button(230,170,0,0,0,0,image1.png,image2.png,PVAR:SET:Titlebar:$ifequal($getpvar(Titlebar),1,0,1),TOOLTIP:)


thanks! that works.


foo_ui_panels

Reply #1887
The link to the new TestVersion doesn't seem to work

It seems the direct link doesn't work but manually it worked.


The problem that the text is lying upon each other if there isn't enought space persists in the new version.

Is this a bug? Or is this feature not available any longer?
In the old versions this didn't happen ...

foo_ui_panels

Reply #1888
Hello,
I have one question regarding creation of text buttons. According to documentation, it is probably impossible, but I'll ask anyway, 

Let's say I have a word "HELLO" and I want the letter "E" to be a text button. Is it possible? I'm afraid I have to use absolute positions for all buttons.

foo_ui_panels

Reply #1889
The new test version does not support negative values for panels. Is that intended? I found it very useful for hiding the left margin in albumlist. Thanks.

foo_ui_panels

Reply #1890
Hello,
I have one question regarding creation of text buttons. According to documentation, it is probably impossible, but I'll ask anyway, 

Let's say I have a word "HELLO" and I want the letter "E" to be a text button. Is it possible? I'm afraid I have to use absolute positions for all buttons.


If it were me, I would position absolutely the letter H, then absolutely position $button2 for the letter E to be right next to the H, then finish by absolutely positioning the rest of the word, LLO. 

Should be very possible to do what you want, unless I'm greatly mistaken.....

foo_ui_panels

Reply #1891
Hello,
I have one question regarding creation of text buttons. According to documentation, it is probably impossible, but I'll ask anyway, 

Let's say I have a word "HELLO" and I want the letter "E" to be a text button. Is it possible? I'm afraid I have to use absolute positions for all buttons.

This is one of the many things the new display stuff in the beta version is supposed to make easy.
So, patience grasshopper.
elevatorladylevitateme

foo_ui_panels

Reply #1892
First: How can I edit this exit code

Code: [Select]
$button2($sub(%_width%,13),$sub(%_height%,11),0,0,13,10,
'$imageabs2(,,13,,0,,0,0,/images\pure3\bw\Mini_Exit.png,)',
'$imageabs2(,,26,,0,,0,0,/images\pure3\bw\Mini_Exit.png,)',
'Exit',)


so that it first fades the current playing song out (if one is playing) and then exits?

Other: Drag & Drop works very nice but it is not possible to drag a song above the current list. For example if the song list is very long and I must scroll up and down to see all songs scrolling is not possible if drag & drop is activated so it is not possible to drag & drop a song many places. Perhaps it should autoscroll at the end of the seeable playlist?

Last: How can I stick the skin so that it can not moved around the desktop and how can I activate the current song in the taskbar instead of "PanelsUI"?

Thank you for help!

foo_ui_panels

Reply #1893
I'm very sorry about asking that here, but I didn't wanted to create a new topic for this short question.

The only question I want to ask is, if there is any tutorial on how to create your own theme?
The wiki files I wound aren't very useful at all if you are lacking of elementary skills (and I'm totally noob on this one).

But I really, I really want create my own style and sharing this with you.

foo_ui_panels

Reply #1894
First: How can I edit this exit code

Code: [Select]
$button2($sub(%_width%,13),$sub(%_height%,11),0,0,13,10,
'$imageabs2(,,13,,0,,0,0,/images\pure3\bw\Mini_Exit.png,)',
'$imageabs2(,,26,,0,,0,0,/images\pure3\bw\Mini_Exit.png,)',
'Exit',)


so that it first fades the current playing song out (if one is playing) and then exits?

Thank you for help!


Hummm...  I think that the only way possible, if it even is possible, would be to use Scheduler, and set it up do do the fade, then exit foobar.  After you set that up, there will be a context menu selection to run that particular option from Scheduler.

Now, if one could make a button to point to that context menu selection, you would have what you want.

Other more experienced users may have a solution for you, but for now, that's the only way I can think of....

Post back if you figure it out, eh?

 

foo_ui_panels

Reply #1895
@DaSilva & Maranatha:
you can do such thing:
1 - make a scheduler event "Add menu item event..." call it "Exit_fadeout", or somthing else and enable re-enable after done
2 - add a action to perform: id="fadeout_n_exit" or something like that
  add a fading: set volume to -100db with fade xx sec
  add exit foobar
3 - assin exactly this action to your new menu event "Exit_fadeout".

so you can acces it with "File" -> "trigger scheduler event" -> "Exit_fadeout"

it should be possible to assign it to every button...

greetz

foo_ui_panels

Reply #1896

Hello,
I have one question regarding creation of text buttons. According to documentation, it is probably impossible, but I'll ask anyway, 

Let's say I have a word "HELLO" and I want the letter "E" to be a text button. Is it possible? I'm afraid I have to use absolute positions for all buttons.


If it were me, I would position absolutely the letter H, then absolutely position $button2 for the letter E to be right next to the H, then finish by absolutely positioning the rest of the word, LLO. 

Should be very possible to do what you want, unless I'm greatly mistaken.....


Yes, that's how I did it. It took quite some time because it was more difficult then this. So I just wanted to know if I'm not reinventing wheel. Just tonight I found that this possibility is in the to-do list for this component.

After I did it, I tried the latest development version to see if it works there too. I managed to get everything work except of $button2. Has the syntax changed somehow?

foo_ui_panels

Reply #1897
Hi,
I have a small problem with my config, using panels ui.
When I close foobar when it was minimized, on the next start, this is what appears, whereas I should see the whole window, only the titlebar appears.
So I need to restart foobar in order to see my normal window.


foo_ui_panels

Reply #1898
@DaSilva & Maranatha:
you can do such thing:
1 - make a scheduler event "Add menu item event..." call it "Exit_fadeout", or somthing else and enable re-enable after done
2 - add a action to perform: id="fadeout_n_exit" or something like that
  add a fading: set volume to -100db with fade xx sec
  add exit foobar
3 - assin exactly this action to your new menu event "Exit_fadeout".

so you can acces it with "File" -> "trigger scheduler event" -> "Exit_fadeout"

it should be possible to assign it to every button...

greetz


Thank you!
It works very good but the only problem is that the volume is on -100db on the next start!

Last: How can I stick the skin so that it can not moved around the desktop and how can I activate the current song in the taskbar instead of "PanelsUI"?

foo_ui_panels

Reply #1899
Thank you!
It works very good but the only problem is that the volume is on -100db on the next start!

just add some action (i have added this once):
before the action should perform a "foobar exit",  set volume to -0db, and than exit the player...
bye