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 408411 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Not my release] foo_uie_panel_splitter

Reply #525
It works! Things like %playback_time% don't work though.

[Not my release] foo_uie_panel_splitter

Reply #526
%playback_time% ... only work in Per Second section, logic ....

[Not my release] foo_uie_panel_splitter

Reply #527
I know, that's what I tried to tell. 

I'm not sure if I asked this before, but can you write tags with PSS? I'd like to click on 5 different text buttons, and depending on the button number I want PSS to write %rating% into the currently played MP3 file.

[Not my release] foo_uie_panel_splitter

Reply #528
It works! ...


yes it works somehow, but as I said, still %ps_playback_order% isn´t updated if you change the playbackorder "manually" in the menu bar. That´s why I had put the buttons in the per second area, where they ARE updated correctly (but where no imagebutton is availble)

[Not my release] foo_uie_panel_splitter

Reply #529
It works! ...


yes it works somehow, but as I said, still %ps_playback_order% isn´t updated if you change the playbackorder "manually" in the menu bar. That´s why I had put the buttons in the per second area, where they ARE updated correctly (but where no imagebutton is availble)


if you use menu bar, why do you care about PSS %ps_playback_order% ??? very strange ways

[Not my release] foo_uie_panel_splitter

Reply #530
Good point, but if you aim for a simple clean style, it's worth a thought not to put all playback orders into the PSS surface but just the most frequently used ones and use the menu bar for more rarely used playback orders.

[Not my release] foo_uie_panel_splitter

Reply #531
Good point, but if you aim for a simple clean style, it's worth a thought not to put all playback orders into the PSS surface but just the most frequently used ones and use the menu bar for more rarely used playback orders.


that´s the point! In my case other people use it too, so I offer the most important functions in the PSS. Nevertheless they (the people) sometimes use the menubar and then everything would be messed up. In the WSH version this doesn´t happen because it updates correctly AND only circles the desired options...  ...so not that strange

[Not my release] foo_uie_panel_splitter

Reply #532
Can one tell PSS to open a certain Tab Stack tab once a Text Button is clicked?

[Not my release] foo_uie_panel_splitter

Reply #533
Not with the columns ui built-in tab stack, but with Tabbed Panel Stack mod (foo_uie_tabs).
http://foobar2000.com.cn/theo/projects/fb2k-0_9_6-ports/

Another way is to "create" your own tab stack in PSS:
Just place more panels at the same place and hide all panels except one as "hide on startup" or use global variables for show/hide a panel.

Simple Example:
Code: [Select]
$init_ps_global(panel,1)
$showpanel(Panel1,$ifequal(%panel%,1,1,0))
$showpanel(Panel2,$ifequal(%panel%,2,1,0))
$showpanel(Panel3,$ifequal(%panel%,3,1,0))
$showpanel(Panel4,$ifequal(%panel%,4,1,0))

$textbutton(10,10,50,20,PANEL1,PANEL1,SETGLOBAL:panel:1;REFRESH,fontcolor:0-0-0,fontcolor:255-0-0)
$textbutton(70,10,50,20,PANEL2,PANEL2,SETGLOBAL:panel:2;REFRESH,fontcolor:0-0-0,fontcolor:255-0-0)
$textbutton(130,10,50,20,PANEL3,PANEL3,SETGLOBAL:panel:3;REFRESH,fontcolor:0-0-0,fontcolor:255-0-0)
$textbutton(190,10,50,20,PANEL4,PANEL4,SETGLOBAL:panel:4;REFRESH,fontcolor:0-0-0,fontcolor:255-0-0)

[Not my release] foo_uie_panel_splitter

Reply #534
Where should i declare global variables to be able to see them on "global variables" tab?

[Not my release] foo_uie_panel_splitter

Reply #535
2 Questions:

1) My global variable works well without $init_ps_global(). What's that function for, and should I use it regardless?

2) "glow_aa" doesn't do anything on my Text Buttons. How do I properly add glowing effect to Text Buttons? I'm using Windows 7 RC, if that's of importance.

[Not my release] foo_uie_panel_splitter

Reply #536
1) $init_ps_global() is almost the same as $if($get_ps_global(name),,$set_ps_global(name,value)) as stated in the readme

2) there is no glow option for text button ( read the readme)

[Not my release] foo_uie_panel_splitter

Reply #537
Thanks. I really should start to learn some Japanese. 

My next problem is that commands (like COMMAND:, CONTEXT:, or SETTAG:) only work if the file is playing. How to access the file after the stop button has been pushed?

[Not my release] foo_uie_panel_splitter

Reply #538
the target track is determined by the Titleformat Mode of the PSS panel
If TF mode is set to NOW PLAYING, the target track is always the playing track.
Similarly if TF is FOLLOW CURSOR, then it's always the selected track.

maybe you can try this in the button option to switch between selected/nowplaying

TFMODE:mode

modes:
0 == nowplaying
1 == follow cursor
-1 == toggle between nowplaying/follow cursor

hope that helps

[Not my release] foo_uie_panel_splitter

Reply #539
@Ssenna:

Is it possible that we get end_ellipsis also for $drawstring?

... in case someone wants to ask "Why don´t you use $drawtextex..." I prefer drawstring because the antialiasing is MUCH better for big fonts on vista, drawtextex is rather jaggy...

[Not my release] foo_uie_panel_splitter

Reply #540
@Ssenna:

Is it possible that we get end_ellipsis also for $drawstring?

... in case someone wants to ask "Why don´t you use $drawtextex..." I prefer drawstring because the antialiasing is MUCH better for big fonts on vista, drawtextex is rather jaggy...


but $drawtextex is far better optimized, $drawstring is a huge consuming ressource that can lag some refresh display (already experienced!)

now ...

 

[Not my release] foo_uie_panel_splitter

Reply #541
the target track is determined by the Titleformat Mode of the PSS panel
TFMODE:mode

modes:
0 == nowplaying
1 == follow cursor
-1 == toggle between nowplaying/follow cursor


I think it would be very useful to also have a mode "nowstopped" that's not visible but included in "nowplaying" (0). The reason for this is if a track is stopped, all its artist, album, ratings, and other information is still saved in the PSS.

I'd like to have this information saved and displayed even while browsing a playlist with stopped playback. If I switched to "follow cursor" after stopping playback, the information would be changed while browsing a playlist with the mouse cursor, right? That's not what I want to happen in my config. Is there a workaround for this?

[Not my release] foo_uie_panel_splitter

Reply #542
What's all the differences between $drawstring and $drawtext? I noticed so far that $drawtext has different offsets. With same coordinates, it is displayed like $drawstring(x-1,y-1,...). Is this to be expected? Would be great if they could have the same offsets, so that you could switch between them without having to change coordinates each time. Maybe this is a feature request.

I currently display 5 to 10 stars (in the Per Track tab) with $drawstring because of its "aa" option. Do you think this might be a performance issue already? Or is this something you should only care about in the Per Second tab because of its more frequent updates?

Edit: $drawtext's x offset seems to be -2 compared to $drawstring (both using option "left")

[Not my release] foo_uie_panel_splitter

Reply #543
I found that
Code: [Select]
$puts(T,0)
$font(,12,)

$textbutton(0,0,20,20,A,A,command:$puts(T,1),0-0-0,180-180-180)

$ifequal($get(T),1,$drawtext(1,0,20,20,20,0-0-0,),$drawtext(0,0,20,20,20,0-0-0,))


$drawtext always shows " 1 " whether I  press the textbutton or not...
Was it a bug?


[Not my release] foo_uie_panel_splitter

Reply #544
@Ssenna:

Is it possible that we get end_ellipsis also for $drawstring?

... in case someone wants to ask "Why don´t you use $drawtextex..." I prefer drawstring because the antialiasing is MUCH better for big fonts on vista, drawtextex is rather jaggy...


but $drawtextex is far better optimized, $drawstring is a huge consuming ressource that can lag some refresh display (already experienced!)

now ...


yes, agree, but the antialiasing is rather bad. or is there an option for it (I don´t have a good translation of the current version´s explanation...)?

[Not my release] foo_uie_panel_splitter

Reply #545
Is it possible to make a PSS button fire when you press the mouse button (not after you release it)?

[Not my release] foo_uie_panel_splitter

Reply #546
Does a REFRESH command only work for the current PSS? Can Child Panels or parallel panels cause a refresh of specified panels?

[Not my release] foo_uie_panel_splitter

Reply #547
I think it would be very useful to also have a mode "nowstopped" that's not visible but included in "nowplaying" (0). The reason for this is if a track is stopped, all its artist, album, ratings, and other information is still saved in the PSS.

I'd like to have this information saved and displayed even while browsing a playlist with stopped playback. If I switched to "follow cursor" after stopping playback, the information would be changed while browsing a playlist with the mouse cursor, right? That's not what I want to happen in my config. Is there a workaround for this?


I guess if TF mode is NOW PLAYING and playing is stopped, the target is the last played track. ( I think  )

[Not my release] foo_uie_panel_splitter

Reply #548
Somehow it is the target. Information like title, artist and album remain accessible. But you can't use commands from within PSS anymore unless you start playing again.

[Not my release] foo_uie_panel_splitter

Reply #549
$drawtext always shows " 1 " whether I  press the textbutton or not...
Was it a bug?

It's not a bug I think.
I think you can only execute commands , not TF code, inside buttons.
Try this instead.
should work.

Code: [Select]
$init_ps_global(T,0)
$font(,12,)

$textbutton(0,0,20,20,A,A,SETGLOBAL:T:1;REFRESH,0-0-0,180-180-180)

$ifequal(%T%,1,$drawtext(1,0,20,20,20,0-0-0,),$drawtext(0,0,20,20,20,0-0-0,))

hope that helps 


Somehow it is the target. Information like title, artist and album remain accessible. But you can't use commands from within PSS anymore unless you start playing again.


If commands dont execute then I think the target is lost.
I think you can still see the info is just because the panel is not refresh yet ( NOW PLAYING mode refresh the panel when you start playing)