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 1295471 times) previous topic - next topic
0 Members and 6 Guests are viewing this topic.

foo_ui_panels

Reply #175
Something got messed up when I updated panels ui today. For some reason one of my $imageabs2 won't work anymore in the main panel config.  Here are my files if you wanna check it out: http://lunaelement.net/files/panelsui.zip
Made a comment in the code where the problem is.

EDIT: I might as well also mention that sometimes when I start foobar I doesn't start properly, probably because of panels ui because it never happened before I started using it. A foobar taskbar button will show up but not the Foobar window itself.

foo_ui_panels

Reply #176

The code adds 1 to art.num every 30 seconds when $mod() = 29.  But if I watch the value of art.num, during that one second where $mod() = 29, the value of art.num is increased 3 or 4 times.  Any idea what's going on?


seems to work for me... are you sure you have only one track display doing this (if you have another one with the same code, then you will get the behavior you describe).

Well I've got what you might call a yikes here.  I loaded up a default PanelsUI config and only changed my track display code.  This should have eliminated any outside influence.  I ran some tests, and I get the problem ONLY with VBR mp3s.......uh oh.  So I checked out a WAV master, then converted it to a 192kbps CBR mp3, a -V 5 VBR mp3, and a -5 FLAC.  All of them worked perfectly except the VBR mp3.  What did you run your test with?  Try it with a VBR and see what results you get....

foo_ui_panels

Reply #177
Something got messed up when I updated panels ui today. For some reason one of my $imageabs2 won't work anymore in the main panel config.  Here are my files if you wanna check it out: http://lunaelement.net/files/panelsui.zip
Made a comment in the code where the problem is.


you have this "$puts(yOffsetBottom1,30)" and then switch to "// Background" where yOffsetBottom isn't defined (hence 0) so this "$sub(%_height%,$get(yOffsetBottom1))" = %_height% making the image offscreen. either move the puts below the "// Background" or put it in the "// Global" section. Also you should use "/" when you want to use a relative path in $imageabs2.

Quote
EDIT: I might as well also mention that sometimes when I start foobar I doesn't start properly, probably because of panels ui because it never happened before I started using it. A foobar taskbar button will show up but not the Foobar window itself.


is the window off screen? can you rightclick the toolbar and select move, then move with the keyboard arrow keys?

foo_ui_panels

Reply #178
Something got messed up when I updated panels ui today. For some reason one of my $imageabs2 won't work anymore in the main panel config.  Here are my files if you wanna check it out: http://lunaelement.net/files/panelsui.zip
Made a comment in the code where the problem is.

EDIT: I might as well also mention that sometimes when I start foobar I doesn't start properly, probably because of panels ui because it never happened before I started using it. A foobar taskbar button will show up but not the Foobar window itself.


I have exactely the same problem :S

foo_ui_panels

Reply #179

Something got messed up when I updated panels ui today. For some reason one of my $imageabs2 won't work anymore in the main panel config.  Here are my files if you wanna check it out: http://lunaelement.net/files/panelsui.zip
Made a comment in the code where the problem is.


you have this "$puts(yOffsetBottom1,30)" and then switch to "// Background" where yOffsetBottom isn't defined (hence 0) so this "$sub(%_height%,$get(yOffsetBottom1))" = %_height% making the image offscreen. either move the puts below the "// Background" or put it in the "// Global" section. Also you should use "/" when you want to use a relative path in $imageabs2.


Thanks. When I updated I just copied and pasted the text from the backup files I made since they didn't work along with the new version. Must have missed // Global from the top.

foo_ui_panels

Reply #180
Quote
Well I've got what you might call a yikes here. I loaded up a default PanelsUI config and only changed my track display code. This should have eliminated any outside influence. I ran some tests, and I get the problem ONLY with VBR mp3s.......uh oh. So I checked out a WAV master, then converted it to a 192kbps CBR mp3, a -V 5 VBR mp3, and a -5 FLAC. All of them worked perfectly except the VBR mp3. What did you run your test with? Try it with a VBR and see what results you get....


yes with vbr files the // PerSecond code will be executed multiple times a second (to update the bitrate and what not). can't think of a way around it to work with your code at the moment

edit: you could set another pvar at 29 seconds, and reset it at 0, and have the count only update if that pvar is reset. a bit hacky, but should work.

foo_ui_panels

Reply #181
Since this is now a full blown UI now and not a uie, would you be violating the SDK to manipulate the size of the window (like to save and recall it's dimensions and positioning)?

(It's my understanding that this sort of function is what got cwb_hacks banned, although since it manipulated the columns window and not it's own I thought maybe this case would be different)
elevatorladylevitateme

foo_ui_panels

Reply #182
Is it possible to save different layouts?
I don't know if I missed something.

When this isn't available It would be cool to have this function 

foo_ui_panels

Reply #183
yes with vbr files the // PerSecond code will be executed multiple times a second (to update the bitrate and what not). can't think of a way around it to work with your code at the moment

edit: you could set another pvar at 29 seconds, and reset it at 0, and have the count only update if that pvar is reset. a bit hacky, but should work.
LOL.  It's definitely a hack, but it works now.  Funny thing is, I don't use this at all.  I wrote it for someone in the trackinfo_mod thread that was asking about cycling album art.

Code: [Select]
// Global
// Background
// PerTrack
// PerSecond

// if art.num does not exist, set it to 1; if hack does not exist, set it to 0
$if($getpvar(art.num),,$setpvar(art.num,1))
$if($getpvar(hack),,$setpvar(hack,0))

// when a new song starts, reset art.num and hack
$ifequal(%playback_time_seconds%,0,
$setpvar(art.num,1)
$setpvar(hack,0)
,)

// set hack to 1, 1 second before increase art.num
$ifequal($mod($sub(%playback_time_seconds%,1),30),28,
$setpvar(hack,1)
,)
// add 1 to art.num every 30 seconds if hack=1, then reset hack to 0
// this is to avoid multiple updates/cycles while playing VBR files
$ifequal($getpvar(hack),1,
$ifequal($mod($sub(%playback_time_seconds%,1),30),29,
$setpvar(art.num,$add($getpvar(art.num),1))
$setpvar(hack,0)
,)
,)

// if track is playing, cycle art
$if(%isplaying%,
$if($fileexists($replace(%path%,%filename_ext%,'cover'$getpvar(art.num)'.jpg')),
$imageabs2(100,100,,,,,10,10,$replace(%path%,%filename_ext%,'cover'$getpvar(art.num)'.jpg'),nokeepaspect)
,
// if cover(art.num).jpg does not exist, assume restart the cycle and reset art.num to 1
$setpvar(art.num,1)
// imageabs2 tag immediately after reset art.num to avoid 1 second gap with no art displayed
$imageabs2(100,100,,,,,10,10,$replace(%path%,%filename_ext%,'cover'$getpvar(art.num)'.jpg'),nokeepaspect)
)
,
// if track is not playing, display a default image, or cover1.jpg, etc.
$imageabs2(100,100,,,,,10,10,'/images\default.jpg',nokeepaspect)
)
// monitor value of art.num for debug
$align(left,bottom)$font(Calibri,10,,255-255-255)'  '$getpvar(art.num)

foo_ui_panels

Reply #184
@terrestrial: I think there is a playlist problem with this plugin. Somehow my playlists gets messed up. Content in one playlist get switched with another. Or one could say that the playlist titles get switched. Could this the plugin be the cause of this or should I point the blame somewhere else.  Has anyone else noticed anything similar. I'm also using playlist dropdown, though I think the built in single column playlist context menu switcher somehow is to blame.

foo_ui_panels

Reply #185
Quickie bug report (*minor*) -
If I minimize to tray and right-click on the icon to bring up the context menu, I can't make it disappear unless I actually click a context menu command.  Clicking off of it (ie desktop, taskbar, etc) does not make it disappear.

It seems I can make it go away if I minimize all windows so my desktop is showing, or restore and then minimize a single window so once again the desktop is showing.  This does not work with 'window key'+D or +M keyboard shortcuts, I must use the mouse.

foo_ui_panels

Reply #186
Is there a way to get proper overlapping of panels? I want to have a 'button' trackinfo panel hovering above the corner of my album list. It works to a certain degree - the problem is, when I scroll the album list, it gets redrawn where the 'button' panel resides, and the panel itself does not. Or, if I put some //persecond code in it, it's redrawn every second - which is better, but still not pretty when scrolling.
Would be great if they overlapped in the order they are introduced in the UI configuration code.

foo_ui_panels

Reply #187
Would there be any way that we could get preciser playback_time_seconds, preciser than a second?

I'll be showing some of you a few new, neat tricks tomorrow or the day after that, aimed to make Foobar look new every moment you look at it.

foo_ui_panels

Reply #188
Can you make it possible to use more than 1 button toolbar, this because when I try to put more than one in it it just switches place...

foo_ui_panels

Reply #189
I'm doing pretty well porting my v0.8 ColumnsUI interface to v0.9 SCP and PUI, which provide a tremendous improvement in usability. 

Three other issues noticed:
  • Maximise FB2k.  Minimize to system tray, then restore, the window is no longer maximized
  • The SCP settings window is modal, I can't click behind on the playlist to scroll around or change songs, which is helpful for debugging scripts while editing.
  • %_isplaying% is nonfunctional at times, particularly when playing from the queue.  My now-playing indicators sometimes disappear for several songs.  I couldn't nail down a specific way to cause the problem.
Thanks for the great plugin!

foo_ui_panels

Reply #190
i've got problems scrolling lyrics (lyrics panel) with the mouse wheel , it seems that the scpl is always on focus so it scroll the scpl also if i try clicking on the lyrics before trying to scroll.. thanks in advance if you can fix it ^^


Ditto, can't seem to scroll the lyrics panel

foo_ui_panels

Reply #191
%_isplaying% is nonfunctional at times, particularly when playing from the queue.  My now-playing indicators sometimes disappear for several songs.  I couldn't nail down a specific way to cause the problem.
 
I think I may have narrowed it down to switching to another playlist view while a song is playing.  When I change back to the original playlist, %_isplaying% no longer triggers on the still-playing song, or those that follow from the queue.

Cursor-follows-playback also fails to trigger thereafter.

foo_ui_panels

Reply #192
Since this is now a full blown UI now and not a uie, would you be violating the SDK to manipulate the size of the window (like to save and recall it's dimensions and positioning)?

(It's my understanding that this sort of function is what got cwb_hacks banned, although since it manipulated the columns window and not it's own I thought maybe this case would be different)


yep, should be ok to do.

LOL.  It's definitely a hack, but it works now.  Funny thing is, I don't use this at all.  I wrote it for someone in the trackinfo_mod thread that was asking about cycling album art.


Thinking of it a bit more, a combination of $div(%playback_time_seconds%,30) and a pvar storing the highest valid number may be a bit more relaible.

@terrestrial: I think there is a playlist problem with this plugin. Somehow my playlists gets messed up. Content in one playlist get switched with another. Or one could say that the playlist titles get switched. Could this the plugin be the cause of this or should I point the blame somewhere else.  Has anyone else noticed anything similar. I'm also using playlist dropdown, though I think the built in single column playlist context menu switcher somehow is to blame.


in scpl is the "active" playlist checkd?

Is there a way to get proper overlapping of panels? I want to have a 'button' trackinfo panel hovering above the corner of my album list. It works to a certain degree - the problem is, when I scroll the album list, it gets redrawn where the 'button' panel resides, and the panel itself does not. Or, if I put some //persecond code in it, it's redrawn every second - which is better, but still not pretty when scrolling.
Would be great if they overlapped in the order they are introduced in the UI configuration code.


ok, made some changes that may make this better in the next version.

Would there be any way that we could get preciser playback_time_seconds, preciser than a second?


not that I'm aware of

Can you make it possible to use more than 1 button toolbar, this because when I try to put more than one in it it just switches place...


make sure they have different ids when you use $panel and it should work.

[list=1]
  • Maximise FB2k.  Minimize to system tray, then restore, the window is no longer maximized


fixed (for the next version)

Quote
  • The SCP settings window is modal, I can't click behind on the playlist to scroll around or change songs, which is helpful for debugging scripts while editing.


ColumnsUI dialogs have to be modal.


I think I may have narrowed it down to switching to another playlist view while a song is playing.  When I change back to the original playlist, %_isplaying% no longer triggers on the still-playing song, or those that follow from the queue.

Cursor-follows-playback also fails to trigger thereafter.


%_isplaying% not working in track display or scpl? I'm not able to reproduce this, so if possible please upload a .pui and give me a step by step way to reproduce this.

foo_ui_panels

Reply #193
Sorry I recognised my last question was very capable of being misunderstood.

I wanted to ask if it is possible to save different layouts with the possibility to switch between them similar like it is availbale in columns ui.

I would like to give some feedaback:
I like the way the new SCPL and Trackinfo mod config is arranged because it is easier to see if a "(" is missing .

I still don't understand exactly how to use the available main menu commands and context menu commands. I believe they are for buttons if I am right.

I believe the advantage of Panel ui is possibility to create layouts which are much more complex

The disadvantage is that the users must be experienced in coding. So I think Columns UI is easier to use for noobs.

I was really surprised about this plug-in and I am just starting to use it. But I understand what a really big possibilities it has.


So I must say well done

foo_ui_panels

Reply #194
Ok I'm having a problem with Panels UI glass and Playlists Dropdown (or actually it seems it's a problem with almost all dropdown menus). Basically the text on the menu just doesn't show up (transparent?).

http://koti.mbnet.fi/aurpelai/pics/paneluiproblem.png

foo_ui_panels

Reply #195
how do i use playlist dropdown in a panel? what is the $panel(id?,name?....)

also lots of the buttons dont work in the config, i assume these just havent been implemented yet? thanks

foo_ui_panels

Reply #196
I use
Code: [Select]
$panel(Dropdown,Playlists Dropdown,0,1,$sub(%_width%,2),23,)

 

foo_ui_panels

Reply #197
Since this component is becoming a full ui, would it be possible to open secondary windows like foo_uie_dockable_panels but with all the advantages of integrated titleformatting control and $panel() positioning?

foo_ui_panels

Reply #198
Already asked 

Since this component is becoming a full ui, would it be possible to open secondary windows like foo_uie_dockable_panels but with all the advantages of integrated titleformatting control and $panel() positioning?



2 - Would it possible (or in the scope of the project) to implement floating windows with the same abilities than the main window? Basically, I'm looking for a mix between Dockable Panels and Panels UI so that I can have several panels in the same floating window.


in future version, it will be possible to host child panels within track display panels, so you can use that + dockable windows to do what you want.


Looking forward to this feature!

foo_ui_panels

Reply #199
Thanks, sometimes the popular threads move so fast I miss a good post :)