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

foo_ui_panels

Reply #1050
Would someone mind checking out what's wrong with this rating code? I can't figure it out. There is some kind of weird offset.

Code: [Select]
$puts(rating,$if(%rating%,%rating%,0))
$button($sub($div(%_width%,2),31),170,0,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating1.png,Rate 1,)
$button($sub($div(%_width%,2),31),170,8,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating2.png,Rate 2,)
$button($sub($div(%_width%,2),31),170,13,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating3.png,Rate 3,)
$button($sub($div(%_width%,2),31),170,20,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating4.png,Rate 4,)
$button($sub($div(%_width%,2),31),170,26,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating5.png,Rate 5,)
$button($sub($div(%_width%,2),31),170,32,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating6.png,Rate 6,)
$button($sub($div(%_width%,2),31),170,39,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating7.png,Rate 7,)
$button($sub($div(%_width%,2),31),170,44,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating8.png,Rate 8,)
$button($sub($div(%_width%,2),31),170,49,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating9.png,Rate 9,)
$button($sub($div(%_width%,2),31),170,56,0,13,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating10.png,Rate 10,)

Images are here: http://lunaelement.net/files/stars.7z

foo_ui_panels

Reply #1051
Don't know, but feel free to use my code. It only needs two images (or it can just work with one) and seems to work pretty darn well. The only thing is the width of the image needs to be divisible by 10 or else there will be alignment problems:

Code: [Select]
//Start Variables
$puts(ratewidth,90)
$puts(xpos,0)
$puts(ypos,2)
$puts(image,$getpvar(image_dir)'\rating-stars_small.png')
$puts(image_unfilled,$getpvar(image_dir)'\rating-stars_small (unfilled).png')
$puts(unfilled_alpha,100)
$puts(normal_alpha,170)
$puts(mouseover_alpha,255)
//End Variables

$drawrect(,,,,brushcolor-SYSCOL-15 pencolor-null)
$puts(rateheight,$div($get(ratewidth),5))
$puts(halfstar,$div($get(ratewidth),10))

$puts(rating,$if(%rating%,%rating%,0))
$imageabs2($get(ratewidth),$get(rateheight),,,,,$get(xpos),$get(ypos),$get(image_unfilled),alpha-$get(unfilled_alpha))
$ifgreater($get(rating),0,$imageabs2($get(ratewidth),$get(rateheight),,,$mul($get(halfstar),$get(rating)),,$get(xpos),$get(ypos),$get(image),alpha-$get(normal_alpha)),)

$button2(0,0,0,0,$get(xpos),$get(rateheight),,,TAG:SET:RATING:,)
$puts(rate,1) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,2) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,3) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,4) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,5) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,6) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,7) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,8) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,9) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")
$puts(rate,10) $button2($get(xpos),$get(ypos),$mul($get(halfstar),$sub($get(rate),1)),0,$mul($get(halfstar),$get(rate)),$get(rateheight),'','$imageabs2('$get(ratewidth)','$get(rateheight)',$mul($get(halfstar),$sub(10,$get(rate))),,,,,,'$get(image)',alpha-'$get(mouseover_alpha)')',TAG:SET:Rating:$get(rate),TOOLTIP:"Rate:$get(rate)")

Here's the two images I use for my rating panel.

foo_ui_panels

Reply #1052
$ifgreater($len(%artist),30,
        $left(%artist%,27)...
,
          %artist%
)


Thanks! Works perfectly .
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

foo_ui_panels

Reply #1053
Yes, boolean operators in the $eval or some other function would be cool. But I'll bake Terrestrial a pie if he ever adds letter spacing for non fixed-width fonts to the $font options.

foo_ui_panels

Reply #1054
terrestrial, thanks you for your very fast reactivity for correcting last bugs.
- could you confirm that from version 0.9.0, unicode and specials characters are no longer supported ?

no, it should work fine.

Terrestrial, I know this has been requested numerous times, but I am wondering what your plans are for the "minimum group size" option?  The option so that it will pad a group with extra rows if it is smaller than a certain size?  I don't know in general, but personally that is the main feature I am waiting on.

its more of a long term feature... when variable height rows gets added in. it'll require some major changes so I'm not sure when (or even if) I'll get to it.

Is there a reason %ispaused% doesn't work in Title Formating when using this plugin? At least it doesn't work in Main Window Title, haven't tested the statusbar.

it works, but the title bar only gets updated on song changes + stop/play.

Terrestrial, a question (sorry to bring this up again) - do you expect that the above request (the ability to change a panel's follow cursor/now playing mode be changed by something other than the existing right-click) will happen? I've been playing with your suggestion by having 2 panels, one set to follow cursor and one set to now playing, and switching between them based on a pvar, but honestly it's a bit of a mess. If you think there's a possibility that that functionality will be added in the future, I won't waste too much time trying to perfect the above method, but if you don't think it'll happen for whatever reason, I'll try to come up with something better.

Thanks,

-Nate

changing the displayed track in titleformatting will require some not insignificant code changes, so, unfortuantely, not any time soon.

I have now a quite a complex config especially because of one new thing i am working on.
I have that in my layout globals

[snip]

All that works perfectly except for the fact that when resetconf is on 0, my conf is so much slower than when iit is set to 1. And the only difference in the layout code is what i put in the last codebox.
So i was wondering what could make it so slow. Could it be the code of the buttons which is quite complex...
Any idea?

it seems resetconf will always be set to 1 since you have puts(resetconf,1) in your layout globals... but other than that I don't see anything.... does your cpu usage increase too or stay the same... it could seem to be "slow" because the panels don't refresh immediately but per second...

I'd love a logic function that lets me use !, || and && with { }.
Replacing the confusing looking $or($and(x,v),$not(y)) with something simpler and more readable like $logic({x&&v}||!y).

A regular expression titleformat function would rock too.

Somebody correct me if I'm wrong, but I don't believe this is possible (without really hacking away at the titleformat evaluation process)

I'm sorry if that's been addressed before, but I've searched and haven't found the answer.

Is there a way to enable/change grouping mode in the new system without sorting the playlist (the old behavior)?

yes, just select the layout mode through the layout selector.

Would someone mind checking out what's wrong with this rating code? I can't figure it out. There is some kind of weird offset.

Code: [Select]
$puts(rating,$if(%rating%,%rating%,0))
$button($sub($div(%_width%,2),31),170,0,0,7,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating1.png,Rate 1,)
$button($sub($div(%_width%,2),31),170,7,0,6,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating2.png,Rate 2,)
$button($sub($div(%_width%,2),31),170,13,0,6,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating3.png,Rate 3,)
$button($sub($div(%_width%,2),31),170,19,0,6,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating4.png,Rate 4,)
$button($sub($div(%_width%,2),31),170,25,0,6,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating5.png,Rate 5,)
$button($sub($div(%_width%,2),31),170,31,0,6,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating6.png,Rate 6,)
$button($sub($div(%_width%,2),31),170,37,0,6,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating7.png,Rate 7,)
$button($sub($div(%_width%,2),31),170,43,0,6,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating8.png,Rate 8,)
$button($sub($div(%_width%,2),31),170,49,0,6,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating9.png,Rate 9,)
$button($sub($div(%_width%,2),31),170,55,0,7,17,$getpvar(imgpath)rating$get(rating).png,$getpvar(imgpath)rating10.png,Rate 10,)

haven't tested it though.


foo_ui_panels

Reply #1056
Is the follow cursor mode for Track Displays working yet?

foo_ui_panels

Reply #1057

Why do tracks added to the playback queue not trigger Cursor follows playback or 'isplaying' variables?

terrestial: Any word on this?
Mine do. You must have another plugin interfering. Terrestrial wouldn't answer this because it has nothing to do with PanelsUI.

Is the follow cursor mode for Track Displays working yet?
Was it ever broken?
It's always worked for me.
The problem must be your code.



I'd love a logic function that lets me use !, || and && with { }.
Replacing the confusing looking $or($and(x,v),$not(y)) with something simpler and more readable like $logic({x&&v}||!y).

A regular expression titleformat function would rock too.


Somebody correct me if I'm wrong, but I don't believe this is possible (without really hacking away at the titleformat evaluation process)

I don't see how it would be any less feasible than $eval(). Just rather than returning a number, it would return True or False.
elevatorladylevitateme


foo_ui_panels

Reply #1059

terrestrial, thanks you for your very fast reactivity for correcting last bugs.
- could you confirm that from version 0.9.0, unicode and specials characters are no longer supported ?

no, it should work fine.


Thanks for your reply. So it seems that I have some trouble for non-english text. Look at screenshots:

When text are store in my code from before upgrading to 0.9.0 it look like this in the code window:

foo_ui_panels

Reply #1060

I have now a quite a complex config especially because of one new thing i am working on.
I have that in my layout globals

[snip]

All that works perfectly except for the fact that when resetconf is on 0, my conf is so much slower than when iit is set to 1. And the only difference in the layout code is what i put in the last codebox.
So i was wondering what could make it so slow. Could it be the code of the buttons which is quite complex...
Any idea?


it seems resetconf will always be set to 1 since you have puts(resetconf,1) in your layout globals... but other than that I don't see anything.... does your cpu usage increase too or stay the same... it could seem to be "slow" because the panels don't refresh immediately but per second...

No resetconf is just there to reset the conf if something goes wrong. most of the time it is set to 0 so that i can change the pvar "in live". About my cpu, no it does no go to the roof. but i have redraw problems. I show you what happens

Here the Up arrow permits to make the panel go one up .When i click here is what i have

I have to redraw the panel with another thing like next track or anything for it to go well. Does that mean that not all panel is redrawn when doing what i did

foo_ui_panels

Reply #1061
So why does this work for me with a Columns Playlist?


Check my post a few pages back, as I was also previously confused with the current behaviour. (You might want to follow the quote links to get the whole convo)

foo_ui_panels

Reply #1062


terrestrial, thanks you for your very fast reactivity for correcting last bugs.
- could you confirm that from version 0.9.0, unicode and specials characters are no longer supported ?

no, it should work fine.


Thanks for your reply. So it seems that I have some trouble for non-english text. Look at screenshots:

When text are store in my code from before upgrading to 0.9.0 it look like this in the code window:




What font are you using? It might just be that that font doesn't support accented letters.

foo_ui_panels

Reply #1063
What font are you using? It might just be that that font doesn't support accented letters.

I'm using calibri, and it supports accent. I've tried with other font, like arial and the problem is still here.
ç is always replace by ç
é > Ã@
è > Ã- etc...
I've made a complete French/English mod of FofR config (with traduction also in tooltips), and this accent thing is a bit ununderstanble... (and if i want some day to distribute it, I would like to use a good language, not "SMS" like  )

btw, thanks

 

foo_ui_panels

Reply #1064
What font are you using? It might just be that that font doesn't support accented letters.

I'm using calibri, and it supports accent. I've tried with other font, like arial and the problem is still here.
ç is always replace by ç
é > Ã@
è > Ã- etc...
I've made a complete French/English mod of FofR config (with traduction also in tooltips), and this accent thing is a bit ununderstanble... (and if i want some day to distribute it, I would like to use a good language, not "SMS" like  )

btw, thanks


"Fen$char(234)tre" seems to be working
é = $char(233)
è = $char(232)
ç = $char(231)

foo_ui_panels

Reply #1065
"Fen$char(234)tre" seems to be working
é = $char(233)
è = $char(232)
ç = $char(231)

@bb10
Thanks for trying it.
1- could you point me in the right way to get & find all $char() equivalences ?
2- replacing all my traductions with $char() will be "unpractical" but at least you find a solution, for short time.
3- what I really don't understand, is why all my special characters work well with version < 0.9 (of panlUI)

foo_ui_panels

Reply #1066
"Fen$char(234)tre" seems to be working
é = $char(233)
è = $char(232)
ç = $char(231)

@bb10
Thanks for trying it.
1- could you point me in the right way to get & find all $char() equivalences ?
2- replacing all my traductions with $char() will be "unpractical" but at least you find a solution, for short time.
3- what I really don't understand, is why all my special characters work well with version < 0.9 (of panlUI)


You can find them here: http://www.fileformat.info/

search example: latin "small/capital" letter "e" with "circumflex"

circumflex = L'accent circonflexe
acute = L'accent aigu
grave = L'accent grave
cedilla = La cédille

The number you need to use is written next to HTML Entity (decimal).

hope that helps

foo_ui_panels

Reply #1067
Start Menu - Accessories - System Tools - Character Map

Find the code, type it into the calculator in Hex mode and then change back to Dec mode and you should have the corresponding character reference

foo_ui_panels

Reply #1068
You can find them here: http://www.fileformat.info/
hope that helps

Start Menu - Accessories - System Tools - Character Map

Find the code, type it into the calculator in Hex mode and then change back to Dec mode and you should have the corresponding character reference

For sure that helps !!    a great thank for both of you. Time ago, i tried to googling "$char()" without result.

If I'm the only one with that problem... Problem must be located from my config, or my PC and maybe not from panelUI as I thought... it seems that I will abuse some $char() for the next few days... 
Cheers

foo_ui_panels

Reply #1069
Does "Panels UI' support the 2-byte characters such as Korean?

The Korean font is named with Korean characters.

When I changed the default font name(Calibri) with the Korean font name,
the typed Korean font name was broken.

Is there any method to fix this problem?

Sorry for my poor english......^-^

foo_ui_panels

Reply #1070
Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do  $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks

foo_ui_panels

Reply #1071
Hi terrestrial,
I would like to make a request, but I'm pretty sure it is absolutely NOT possible (for the moment?).
I LOVE pvar and I really want to thank you for that.

I was thinking of a sort of "one step back" history with pvars.
Something like $setpvar(Var1,$waspvar(Var1)) for those variables which have more than two value.
Which will be the use:
    I got 4 variables:[/li]
  • fullscreen = can be 0 or 1
  • Panels = can be 0,1 or 2
  • menus = can be 0,1,2,3 etc...
  • titlebar = can be 0 or 2
Then I map superposed buttons to set fullscreen to 1, Panels to 0, menus to 0 and titlebar to 0.
So I switch to a ... fullscreen mode  .
After that, when I quit the fullscreen mode, I can let those 3 other pvar to 0 or I set them to a value I want.
If some function could exist to get the "just before" value of those pvar, I could set them to there precedent value, and quitting fullscreen mode will make my config look as before. But I'm thinking it would increase the cached memory or something like that, no ?
Thanks in advance for telling me if such a thought is absolutely nuts. 

foo_ui_panels

Reply #1072
Hi terrestrial,
I would like to make a request, but I'm pretty sure it is absolutely NOT possible (for the moment?).
I LOVE pvar and I really want to thank you for that.

I was thinking of a sort of "one step back" history with pvars.
Something like $setpvar(Var1,$waspvar(Var1)) for those variables which have more than two value.
Which will be the use:
    I got 4 variables:[/li][li] fullscreen = can be 0 or 1[/li]
  • Panels = can be 0,1 or 2
  • menus = can be 0,1,2,3 etc...
  • titlebar = can be 0 or 2
Then I map superposed buttons to set fullscreen to 1, Panels to 0, menus to 0 and titlebar to 0.
So I switch to a ... fullscreen mode  .
After that, when I quit the fullscreen mode, I can let those 3 other pvar to 0 or I set them to a value I want.
If some function could exist to get the "just before" value of those pvar, I could set them to there precedent value, and quitting fullscreen mode will make my config look as before. But I'm thinking it would increase the cached memory or something like that, no ?
Thanks in advance for telling me if such a thought is absolutely nuts. 

Just save your values when you go fullscreen and read them when you quit fullscreen
No need of such a feature in my opinion. Some people already did something like that in order to remember last played tracks

foo_ui_panels

Reply #1073
Does "Panels UI' support the 2-byte characters such as Korean?

The Korean font is named with Korean characters.

When I changed the default font name(Calibri) with the Korean font name,
the typed Korean font name was broken.

Is there any method to fix this problem?

Sorry for my poor english......^-^


can you post the font or point me to it?

foo_ui_panels

Reply #1074
[...]history with pvars.
Something like $setpvar(Var1,$waspvar(Var1)) for those variables which have more than two value.

Just save your values when you go fullscreen and read them when you quit fullscreen
No need of such a feature in my opinion. Some people already did something like that in order to remember last played tracks

Could you be more explicit, please 
Where or how do I "save" them and from where do I "read" them back, as their value have been, meanwhile, modified ?