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

foo_uie_single_column_playlist

Reply #525
I would like to have a frame bottom, just like in columns UI; e.g. I am searching for the equivalent to this:
$set_style(frame-bottom,1,$rgb(230,228,229))

Thanks

foo_uie_single_column_playlist

Reply #526
I would like to have a frame bottom, just like in columns UI; e.g. I am searching for the equivalent to this:
$set_style(frame-bottom,1,$rgb(230,228,229))

Thanks


This is much more "raw" then ColumnsUI.  Short of having these sort of specialized things like frames, you just draw rectangles where you want things.  Want a frame at the bottom?  Just draw a 1 pixel high rectangle across the bottom.

$drawrect(,$sub(%_height%,1),,,brushcolor-230-228-229 pencolor-null)

foo_uie_single_column_playlist

Reply #527
Great. Thanks for answering

 

foo_uie_single_column_playlist

Reply #528
Hi, i want to switch from Columns-UI to the single column playlist but im having a problem with using it within playlist tabs 

This is how my setup looks with columns-UI:

[a href="http://server6.theimagehosting.com/image.php?img=foobar-columnsui.jpg" target="_blank"]

layout:
[a href="http://server6.theimagehosting.com/image.php?img=foobar-layout.jpg" target="_blank"]

foo_uie_single_column_playlist

Reply #529
Why does $font() always return true? Shouldn't it always return false like $rgb() does, otherwise
Code: [Select]
[$font(,10,,)%artist%]
&
Code: [Select]
$if3($font(,10,,)$meta(album artist),%artist%)

break!

foo_uie_single_column_playlist

Reply #530
Display and logic should always be separated. Display functions shouldn't really be used in logical $if tests.

foo_uie_single_column_playlist

Reply #531
But that just defeats the point of having [] and $if3 in the first place.

foo_uie_single_column_playlist

Reply #532
As ChaosBladE indicated it is generally good form to keep display code and logic code spearated. There are several ways to restructure your code to accomplish what you are attempting.

Code: [Select]
$font(,10,,)[%artist%]$font()

-or-
Code: [Select]
$if(%artist%,$font(,10,,)%artist%,)


&

Code: [Select]
$if($meta(album artist),$font(,10,,),)%album artist%


Yes sometimes I think it would be nice if all passive strings such as $font, $rgb, etc would return as false because it lets you do some quick tricks with code, a strong argument can be made that $if($font()) should logically test if the $font() function returns anything at all .. which it does, the font. In fact I would like to be able to use $if($font(fontname,,,),) to test if a font is installed.

Code doesn't always perform the way we expect it to, every language has it's little quirks.  There is usually more than one way to code something, you should keep alternative approaches in mind whenever coding anything.

foo_uie_single_column_playlist

Reply #533
I would of thought that it would be slightly more consistent compared to the default functions. Considering that $font is a display function it shouldn't really affect an $if statements anyway. To test for an installed font wouldn't a $isinstalled(fontname) be more appropriate?

foo_uie_single_column_playlist

Reply #534
Thanks, that did the trick! I don't known why I didn't see the group rows option before. Now my cover art won't be getting chopped in half on my shorter albums.

Edit:

Hmm, now I'm getting an issue where the bottom part/right side of some covers aren't being drawn. Here's the code I'm using in the group display:

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)



Any idea why this is happening? It doesn't seem to happen on covers with a more square aspect ratio, just with wider/narrower ratios. Thanks again for any help.



Change the size of the cover (110,110) to 100,100. Or set the Group rows to 1 more.

foo_uie_single_column_playlist

Reply #535
For image source, is there any chance of using * as a wildcard? A lot of my album images are just in the directory of the album, with no specific filename.

An "if image exists" tag would also be helpful, I don't want to draw image borders if there is no image.

Also a "refresh" on command would be nice, for instance when a tag is updated.

foo_uie_single_column_playlist

Reply #536
ok thanks guys for helping me get my alternating line colours working...

now how come whenever I put my mouse over a track and click it it doesnt highlight like in columns.. - now I know its something to do with my code but what are the basic setups for when a song is playing - when it is highlighted etc...

thanks again for all your useful help

also when i set the number of rows to 2 for the group... how do i put stuff on the second row..?

foo_uie_single_column_playlist

Reply #537
4nt1:

To color the currently selected item you can use %_selected% like this:
$if(%_selected%,$imageabs($if($get(album_mode),115,0),-10,images\glass.png,))

To color the currently playing item you can use %isplaying% like this:
$if(%isplaying%,$drawrect($if($get(album_mode),115,0),0,0,0,brushcolor-10-36-106 pencolor-null),)

You can either use an $imageabs() function to overlay a transparency effect like I did in the first example or use $drawrect() to color the row like I did in the second example. Just place the code toward the top of your Item Display code.

foo_uie_single_column_playlist

Reply #538
wow thanks for the quick feedback works like a charm

I ended up just drawing a rect around the now playing..

foo_uie_single_column_playlist

Reply #539
Hi, i want to switch from Columns-UI to the single column playlist but im having a problem with using it within playlist tabs 

This is how my setup looks with columns-UI:

[a href="http://server6.theimagehosting.com/image.php?img=foobar-columnsui.jpg" target="_blank"]

layout:
[a href="http://server6.theimagehosting.com/image.php?img=foobar-layout.jpg" target="_blank"]


Weird problem.

Only way I found a way so you can resize it is doing the following:
Code: [Select]
Horizontal splitter
   |__Vertical splitter
          |__playlist tabs
          |__single column playlist view

Please note that single column playlist  view is put under the vertical splitter, not the Playlist tabs. To resize it, you must use the vertical splitter, which is above the playlist tabs. It visually should look the same, as it did on my display.

Hope that helps.

foo_uie_single_column_playlist

Reply #540
@vonmeth: Thank you! it works! now i can finally mess around with this awesome component 


foo_uie_single_column_playlist

Reply #542

Hmm, now I'm getting an issue where the bottom part/right side of some covers aren't being drawn. Here's the code I'm using in the group display:

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)



Any idea why this is happening? It doesn't seem to happen on covers with a more square aspect ratio, just with wider/narrower ratios. Thanks again for any help.


Change the size of the cover (110,110) to 100,100. Or set the Group rows to 1 more.


Thanks for the reply, but i'm afraid that didn't fix my issue. Here's another example of what I'm trying to fix (same code as before with a DVD cover image):


I'm thinking this may be a bug in $imageabs2, or I'm not using it correctly. Anyone have any more ideas?


foo_uie_single_column_playlist

Reply #544
A function I would like imageabs2 to do is stretch images to a desired height, width or aspect ratio.

Basically do what the Album Art panel does....I agree.  That would be very nice to have.

foo_uie_single_column_playlist

Reply #545
Thanks for the reply, but i'm afraid that didn't fix my issue. Here's another example of what I'm trying to fix (same code as before with a DVD cover image):


I'm thinking this may be a bug in $imageabs2, or I'm not using it correctly. Anyone have any more ideas?


Could you give us your whole Group Display coding? Something else might be interrupting it.

foo_uie_single_column_playlist

Reply #546
Thanks, that did the trick! I don't known why I didn't see the group rows option before. Now my cover art won't be getting chopped in half on my shorter albums.

Edit:

Hmm, now I'm getting an issue where the bottom part/right side of some covers aren't being drawn. Here's the code I'm using in the group display:

Code: [Select]
$imageabs2(110,110,,,,,5,5,$replace(%path%,%filename_ext%,folder.jpg),)



Any idea why this is happening? It doesn't seem to happen on covers with a more square aspect ratio, just with wider/narrower ratios. Thanks again for any help.


I have this problem aswell and adjusting the row height only makes the headers larger but does not shot the bottom of the image. My problem however is with the overlay image like the cd case and not the album art.


I agree completly with others that being able to adjust the aspect ratio as I see fit would be great

foo_uie_single_column_playlist

Reply #547
TERRESTIAL

Could you mod Browser as well, to allow us to input code in browser panels as well? I'd like to have the album art next to the albums I have in Browser mode, same goes for artists (although finding pictures for 500+ artists is a little bit extreme), it would truely rock the globe, imo.

Album list might be even more popular, so you might want to start with that. The display code you made/used is just too fantastic to ignore.

You're the new musicmusic!
There's a storm on the loose, there's sirens in my head...

foo_uie_single_column_playlist

Reply #548
I'm used to highlighting x amount of tracks within a playlist (but not all) and being able to modify the tags.

So am I doing something wrong or is it not possible to (like in columns ui) modify the tracks for 1 album inside of a playlist containing many?

foo_uie_single_column_playlist

Reply #549
Is there any reason why imageabs2 seemingly randomly sizes my covers? Plus, using these heights / widths don't work

Code: [Select]
$imageabs2(75,75,,,,,3,3,$replace(%path%,%filename_ext%,cover.jpg),)

Changing 75 to 80 works. Any ideas?
err... i'm not using windows any more ;)