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: [Not my release] foo_uie_panel_splitter (Read 406380 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Not my release] foo_uie_panel_splitter

Reply #900
$drawtextex has a wrap option. check the readme for where to put options.

[Not my release] foo_uie_panel_splitter

Reply #901
$drawtextex has a wrap option. check the readme for where to put options.


But wrapping splits the text at the border of the textbox. It's not like having an end of line marker where I want.
Somebody was having the same problem years ago.
I'm late

[Not my release] foo_uie_panel_splitter

Reply #902
check the text file that comes bundled with the component.


Is this the readme you were suggesting me above? The one I have is unreadable. Is it different from the component wiki page?
I'm late

[Not my release] foo_uie_panel_splitter

Reply #903
ah, i misread your post. if you're wanting something like

Code: [Select]
%artist%$crlf()%title%


to appear on 2 rows then i don't think it's possible. the item details panel built into columns UI supports $crlf().

[Not my release] foo_uie_panel_splitter

Reply #904
ah, i misread your post. if you're wanting something like

Code: [Select]
%artist%$crlf()%title%


to appear on 2 rows then i don't think it's possible. the item details panel built into columns UI supports $crlf().


Yes, I was trying to reproduce my itemdetails content with a $drawtext function. I wanted to see if I could do without panels at all, but the main panel stack splitter.
I'm late

[Not my release] foo_uie_panel_splitter

Reply #905
Hi, i'm rather terrible at scripting and need some help.

I would like to show an artwork wsh panel if foobar is playing a song. I've been able to do it with:
$showpanel_c(artwork wsh,$if(%ps_isplaying%,1,0))

But i've got a few text buttons to show different panels like Esplaylist, artwork wsh panel, links & news wsh panels in the same place...
I'm stuck with my code because my showpanel_c does not allow me to show other panels than the artwork wsh when foobar is playing.

Should i change my whole script and rather use global variable and movepanel function?

here is my per track script:
Code: [Select]
$setparcentmode(1,1,100,100)

$drawrect(1,0,1882,25,76-76-76,76-76-76,aa)

$textbutton(1,0,75,25,Files,Files,PANELSHOW:'Album list':$if($isvisible_c('Album list'),0,1);
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)

$textbutton(5,0,75,25,Playlist,Playlist,COMMAND:View/Playlist Organizer;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(Playlist Organizer),$textbutton(9,0,90,25,Playlist,Playlist,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(20,0,75,25,Albums,Albums,
PANELSHOW:Albums:1;
PANELSHOW:Artist:0;
PANELSHOW:artwork wsh:0;
PANELSHOW:Links:0;
PANELSHOW:News:0;
PANELSHOW:Reviews:0;
PANELSHOW:Blogs:0;
REFRESH,
fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(Albums),$textbutton(20,0,75,25,Albums,Albums,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(24,0,75,25,Artist,Artist,
PANELSHOW:Albums:0;
PANELSHOW:Artist:1;
PANELSHOW:artwork wsh:0;
PANELSHOW:Links:0;
PANELSHOW:News:0;
PANELSHOW:Reviews:0;
PANELSHOW:Blogs:0;
REFRESH,
fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(Artist),$textbutton(24,0,80,25,Artist,Artist,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(28,0,75,25,Artwork,Artwork,
PANELSHOW:Albums:0;
PANELSHOW:Artist:0;
PANELSHOW:Directory:0;
PANELSHOW:artwork wsh:1;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(artwork wsh),$textbutton(28,0,77,25,Artwork,Artwork,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(56,0,75,25,Links,Links,
PANELSHOW:Albums:0;
PANELSHOW:Artist:0;
PANELSHOW:artwork wsh:0;
PANELSHOW:Links:1;
PANELSHOW:News:0;
PANELSHOW:Reviews:0;
PANELSHOW:Blogs:0;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(Links),$textbutton(56,0,80,25,Links,Links,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-1280))

$textbutton(60,0,75,25,News,News,
PANELSHOW:Albums:0;
PANELSHOW:Artist:0;
PANELSHOW:artwork wsh:0;
PANELSHOW:Links:0;
PANELSHOW:News:1;
PANELSHOW:Reviews:0;
PANELSHOW:Blogs:0;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(News),$textbutton(60,0,80,25,News,News,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(64,0,75,25,Reviews,Reviews,
PANELSHOW:Albums:0;
PANELSHOW:Artist:0;
PANELSHOW:artwork wsh:0;
PANELSHOW:Links:0;
PANELSHOW:News:0;
PANELSHOW:Reviews:1;
PANELSHOW:Blogs:0;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(Reviews),$textbutton(64,0,80,25,Reviews,Reviews,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(68,0,78,25,Blogs,Blogs,
PANELSHOW:Albums:0;
PANELSHOW:Artist:0;
PANELSHOW:artwork wsh:0;
PANELSHOW:Links:0;
PANELSHOW:News:0;
PANELSHOW:Reviews:0;
PANELSHOW:Blogs:1;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(Blogs),$textbutton(68,0,80,25,Blogs,Blogs,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(77,0,98,25,Infos,Infos,
PANELSHOW:'Infos':-1;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(Infos),$textbutton(79,0,90,25,Infos,Infos,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(85,0,98,25,Properties,Properties,
PANELSHOW:'properties':-1;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(properties),$textbutton(85,0,90,25,Properties,Properties,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$textbutton(94,0,98,25,Discography,Discography,
PANELSHOW:'MusicBrainz disco':-1;
REFRESH,fontcolor:255-255-255 brushcolor:76-76-76,fontcolor:255-255-255 brushcolor:128-128-128)
$if($isvisible_c(MusicBrainz disco),$textbutton(92,0,90,25,Discography,Discography,
REFRESH,fontcolor:0-0-0 brushcolor:238-106-0,fontcolor:0-0-0  brushcolor:128-128-128))

$imagebutton(81,79,270,180,images\RecordLabels\$meta(Label,0).png,images\RecordLabels\$meta(Label,0).png,CONTEXT:Quicksearch for same/%Label%)

$drawrect(1,0,1,975,76-76-76,76-76-76,aa)
$drawrect(77,0,1,975,76-76-76,76-76-76,aa)
$drawrect(99,0,1,975,76-76-76,76-76-76,aa)

$showpanel_c(artwork wsh,$if(%ps_isplaying%,1,0))

P.S thanks Br3tt, marc 2003 for your scripts!

[Not my release] foo_uie_panel_splitter

Reply #906
check the text file that comes bundled with the component.


Is this the readme you were suggesting me above? The one I have is unreadable. Is it different from the component wiki page?


The more I read this topic and the more I understand that the readme file downloaded with the dll is crucial, but when I open mine it looks like this:
Quote
foo_uie_panel_splitter.dll v0.3.8.3 (alpha ver)
for foobar2000 v0.9.5.2+, Columns UI0.3+, WindowsXP+

Note: This component is incomplete and may show unpredictable behaviour.


yŠT—vz
Columns UI—pƒpƒlƒ‹‚ð”z’u‚·‚邽‚ß‚Ìsplitter
ƒ{[ƒ_[‚È‚µ‚âAƒpƒlƒ‹‚ðd‚Ë‚½‚è‚ȂǏ­‚µ‚ÍŽ©—R“x‚̍‚‚¢Ý’肪o—ˆ‚éB


y’ˆÓz
‹°‚낵‚¢‚Ù‚Ç‚ÉŠ®¬“x‚ª’á‚¢‚Å‚·B“–‰—\’肵‚Ä‚¢‚½‚à‚Ì‚Æ‚¾‚¢‚Ô‚©‚¯—£‚ꂽ‚à‚Ì‚É‚È‚Á‚Ä‚µ‚Ü‚Á‚½‚½‚߁A
Ý’荀–ڂ̐®‡«‚ª‚Æ‚ê‚Ä‚¢‚Ü‚¹‚ñB ‚Ü‚½AÝ’è‚à•¡ŽG‚ŁATitleFormat‚Ì’mŽ¯‚ª•K—v‚Å‚·B


yŽg‚¢•ûz
¥ foobar2000‚ÌcomponentƒtƒHƒ‹ƒ_‚Édll‚ðƒRƒs[
¥ ColumnsUI‚ÌLayout‚©‚çAPanel Stack Splitter‚ð’ljÁB
¥ ColumnsUI‚ÌSplitter‚Æ‚µ‚Ä‹@”\‚µ‚Ü‚·B
¥ ’ljÁ‚³‚ꂽƒpƒlƒ‹ã‚ʼnEƒNƒŠƒbƒN->Splitter Settings‚Őݒè‰Â”\B


yÝ’èz
ƒpƒlƒ‹‚Ì”z’u‚ÍŽ©“®”z’uƒ‚[ƒh‚ƁA‹­§Ý’è‚·‚郂[ƒh‚ª‚ ‚è‚Ü‚·B
Ž©“®”z’u‚·‚郂[ƒh‚́A…•½•ûŒü(Horizontal)‚É”z’u‚·‚é‚©A‚’¼•ûŒü(Vertical)‚É”z’u‚·‚é‚©‚ð‘I‚ׂ܂·B
Forced layout‚ªon‚É‚È‚Á‚Ä‚¢‚éƒpƒlƒ‹‚ª‹­§”z’uƒ‚[ƒh‚Å”z’u‚³‚ê‚Ü‚·B

Can anybody tell me where can I get a readable version?
I'm late

[Not my release] foo_uie_panel_splitter

Reply #907
The more I read this topic and the more I understand that the readme file downloaded with the dll is crucial, but when I open mine it looks like this:
Can anybody tell me where can I get a readable version?


Panel Stack Splitter (foo_uie_panel_splitter)
It's not a perfect translation, but good enough to get by.
Maybe $drawstring will suit your needs.

[Not my release] foo_uie_panel_splitter

Reply #908
Panel Stack Splitter (foo_uie_panel_splitter)
It's not a perfect translation, but good enough to get by.
Maybe $drawstring will suit your needs.



Alright, so this wiki is still the best we have 
I actually realised I need to trigger an action by clicking on the text, so I switched to $textbutton, but I have a new Issue now: I can't retrieve any value from the %_playlist_name% variable. I'm using columns UI where the variable works, but the $textbutton function returns a "?".
I'm late

[Not my release] foo_uie_panel_splitter

Reply #909
@ethnix73, i've always preferred global variables. it just makes more sense to me but YMMV.


[Not my release] foo_uie_panel_splitter

Reply #910
Is there a title formatting function to get the custom colours set in the preferences? I use a gradient rectangle to paint the background and would like one of the two colours to change automatically with the custom background colour. Is that possible?
I'm late

[Not my release] foo_uie_panel_splitter

Reply #911
i don't think so. just set a global variable and use it throughout your scripts so at least if you want to change it, it only has to be done in one place.

[Not my release] foo_uie_panel_splitter

Reply #912
i don't think so. just set a global variable and use it throughout your scripts so at least if you want to change it, it only has to be done in one place.


Yes, I did that. I wanted to tie the variable to one of the custom colours. I just learned that CUI has special titleformatting to set the playlist fonts and colours. I didn't go through it yet, because I'm already getting mixed up with PPS titleformatting, but I's hoping there is a specific reference to the system, themed and custom colours.
I'm late

[Not my release] foo_uie_panel_splitter

Reply #913
those CUI globals are only available in the columns UI NG or normal playlist view.

look at where the preferences are: file>preferences>display>columns UI>playlist view>globals tab.

[Not my release] foo_uie_panel_splitter

Reply #914
Is there a way to use image buttons like text buttons that indicate selected state? With text buttons I can create normal-hover-selected colors. Trying to figure out how to do the same with images (recycling the menu_h.png for selected state if possible). Anyway, this is the text version and it currently does switch the panels even with the unnecessary text garbage in it.

Code: [Select]
$imagebutton(15,35,50,50,%ps_user_profile_path%\images\menu.png,%ps_user_profile_path%\images\menu_h.png,
//$textbutton(0,25,%BW%,$sub(%BH%),%P0%,%P0%,
SETGLOBAL:PANEL:0;REFRESH,fontcolor:%textcolour% brushcolor:$ifequal(%PANEL%,0,%brushcolor_s%,%brushcolor%),fontcolor:%textcolor_h% brushcolor:%brushcolor_h%),

Not exactly sure what I need to beat to make it see things my way. Any help appreciated.

[Not my release] foo_uie_panel_splitter

Reply #915
The button question above is almost squared away but I need some help with the syntax I use for the on/off state. Currently, this code will show both button states (normal & hover) and triggers the panel properly. It defaults back to the off1.png after selection.

Code: [Select]
$imagebutton(100,100,20,20,$get(button)\off1.png,$get(button)\on1.png,SETGLOBAL:PANEL:1;REFRESH)


However, what I want is this after selection.

Code: [Select]
$imagebutton(100,100,20,20,$get(button)\on1.png,SETGLOBAL:PANEL:1;REFRESH)


Then using compare to use this image "$puts(P1,images/off1.png)" if state is 0. I'm not exactly sure how, or where, to insert the $puts string in this instance. I can do it on a case by case basis for each panel as shown in this tutorial entry #14. But I was wondering if I could do it with the format below.

Code: [Select]
$showpanel(0,$ifequal(%PANEL%,0,1,0))
$showpanel(1,$ifequal(%PANEL%,1,1,0))
$showpanel(2,$ifequal(%PANEL%,2,1,0))
$showpanel(3,$ifequal(%PANEL%,3,1,0))
$showpanel(4,$ifequal(%PANEL%,4,1,0))

[Not my release] foo_uie_panel_splitter

Reply #916
Is there a way to use image buttons like text buttons that indicate selected state?

If the button deals with the visible state of a panel, then I've used $isvisible_c() to check its current state - and just change the button accordingly:

$if($isvisible_c(panelname),$imagebutton(...IF...YES...),$imagebutton(...IF...NO...))

[Not my release] foo_uie_panel_splitter

Reply #917
Yeah I could do that in a singular fashion but was more interested to know if I could compare using the showpanel array in the last code snippet above.

[Not my release] foo_uie_panel_splitter

Reply #918
Is there way to REFRESH all panels so change in global variable will result a change in other panel ?
example:
I have two panels (Lets say A and B) in one panel (A) i change a global variable so in a sub panel in other panel (B) would change. How can i do this ?changes are only reflected  when I changed the track (I guess option  "Evaluate scripts when track info is modified" is selected)  But how to do it immediately??

[Not my release] foo_uie_panel_splitter

Reply #919
ugly, ugly hacks...

Code: [Select]
SETGLOBAL:NAME:VALUE;COMMAND:Playback/Play or pause;COMMAND:Playback/Play or pause


you don't need REFRESH because it would be redundant with the above addition. this is completely inaudible using the default output method (directsound). i have vague recollections of people hearing glitches when using either ASIO/wasapi. YMMV.


[Not my release] foo_uie_panel_splitter

Reply #921
Is there way to turn off,  turn on menu options like "View/Visualizations/Youtube" Video rather than toggling them by
COMMAND:View/Visualizations/Youtube Video?

[Not my release] foo_uie_panel_splitter

Reply #922
of course not. 

[Not my release] foo_uie_panel_splitter

Reply #923
Anyone ever used this? I haven't seen a working example yet and was curious about whether it could be used in a global context.

[Not my release] foo_uie_panel_splitter

Reply #924
of course not. 

Oh that sucks :/
Im trying to make youtube video panel but whenever track changes, video window closes and no where to keep track of the video window's state to make it on/of when changing into different  panels using foo_uie_panel_splitter