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: Track Info Panel with ability to change font (Read 729721 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Track Info Panel with ability to change font

Reply #700
It appears that if you don't have "Update every second" enabled on the old version, then upgrade, the update function is disabled in the new version : < (e.a // PerSecond %playback_time% shows up as ?)

Fix: Get the old plugin back and enable the option, then reinstall the new version.

Just so you know 

CPU usage appears to be better now, thanks for the update terrestrial!

Track Info Panel with ability to change font

Reply #701
I think the best solution would be to handle it like in SCP, a own box for every rendering type. Tabs would be nice, too.

I like the tab idea. A forth tab/box for global values (e.g. $puts, $font, etc.) would be über.

Track Info Panel with ability to change font

Reply #702
Thanks so much terrestrial, with // Background & // PerSecond the panel has reached perfection for me (and my slow hardware). Now I can use my fullscreen trackinfo panel without having to wait 3 seconds after each tagging action.

ojdo

Track Info Panel with ability to change font

Reply #703
Quote
I can't reproduce this... can you post a code snipped which shows this behavior?


Code: [Select]
$button2(72,21,0,0,13,12,,,
$if($stricmp(%cwb_playback_order%,'Shuffle (tracks)'),'Shuffle (albums)',
$if($stricmp(%cwb_playback_order%,'Shuffle (albums)'),'Shuffle (directories)',
'Shuffle (tracks)')),)
$alignabs(90,21,%_width%,%_height%,,)%cwb_playback_order%



works fine for me... make sure you have notifications turned on in cwb_hooks.


I use $puts and $get to store my font styles and some other stuff. I need to use $puts in both // PerTrack and // PerSecond to usse the variable in both sections. Is this intended?


yes. the there sections run at different times, separately.


* Follow cursor mode when not playing.  This is how the albumart component behaves, and I think it makes sense.


yep, seems logical.

Quote
* Double-click function


why would you need this (instead of using buttons)?

I don't want to sound too critical but I do not like the idea of parsing comments as code. I don't like the idea of parsing rem statements in cue sheets for meta tags and I don't like using // comments in code to flag different sections.  Comments should be just that, comments. Perhaps there is a better approach to implementing these features, maybe a separate code box for each one? Maybe separate tabbed pages for each type in the config? I am hesitant to upgrade this component until all the button functionality is sorted out.


well, it can be any string to separate sections... the advantage of comments is that it maintains compatibility with older versions, and (more importantly) with scpl. Tabs would also be good, but would be a lot more work for me  (especially when using an external editor).

It appears that if you don't have "Update every second" enabled on the old version, then upgrade, the update function is disabled in the new version : < (e.a // PerSecond %playback_time% shows up as ?)

Fix: Get the old plugin back and enable the option, then reinstall the new version.


nice debugging  will fix for the next version.

Track Info Panel with ability to change font

Reply #704
Is it possible for variables created in one section, be available in another section. If not, would it be possible to allow this.
-anishbenji

Track Info Panel with ability to change font

Reply #705
To terrestrial!

Can you create //Global section.

Example: in Russell7777 code  I must use

$puts(write_tags,1)

twice

in // PerSecond section and // PerTrack section too.

When I place string

$puts(write_tags,1)

as first string of script - it's value available only in // PerTrack section.

Track Info Panel with ability to change font

Reply #706
Quote
works fine for me... make sure you have notifications turned on in cwb_hooks.

With all the respect ,terrestrial,this means to kill my foobar and to make it slow and useless=
to discard all the advantages of resource managment you've put in the last version+more 
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #707
Can you create //Global section.


I can make $get_global and $set_global persist across different sections.

With all the respect ,terrestrial,this means to kill my foobar and to make it slow and useless=
to discard all the advantages of resource managment you've put in the last version+more 


have you tried it with the latest version? What kind of cpu usage are you seeing with notifications on and off?

Track Info Panel with ability to change font

Reply #708
2terrestrial:I take everything i said back,you was right and i was wrong,sorry and thank you
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #709

Can you create //Global section.


I can make $get_global and $set_global persist across different sections.
I think it would be convenient just to have all our globals out of the way, on a separate tab if possible.  Otherwise they clog up whichever box they're in, and it would be easy to forget where you defined them, making changing them more difficult.

Track Info Panel with ability to change font

Reply #710
I have very complicated code in some cases. Can I have:

Code: [Select]
// PerTrack
command1
command2

// PerSecond
command3

// PerTrack
command4


?

Additionally, I don't like the comment style of your new commands. Comments are comments. Why not using a command style ($section(background) etc?)

Track Info Panel with ability to change font

Reply #711
The dll update fails!

Arrg! At startup fb2k first asked about changing settings, as the module has been removed?!
Then the problem "Failed to load DLL: foo_uie_trackinfo_mod.dll"

So you changed runtime dependencies?

fb2k 0.9.4.2 here on W2K. The vc++ redistributable is installed.

Now I can't even revert to an older version of your component: I always get the above error message. ???

EDIT: I got it working but I do not understand at all:

1) Another foobar instance worked.
2) In the broken foobar, I could even put back old trackinfomod dlls and a 3 days old foobar2000.cfg: "could not load dll".
3) I put the components from the other fb2k into the broken one. Now it worked. Then I put back all the components from the broken one except for the new trackinfo mod. Still works now.

To me it looks like your component has a dependency to another component. I have no idea.

Track Info Panel with ability to change font

Reply #712
I also can't work with button, no response at all
Code: [Select]
// PerSecond
$imageabs($sub($div(%_width%,2),454),5,neo1\back2.png,)
$if(%isplaying%,
$puts(volume,$add($mul($substr($num(%cwb_volume%,4),2,4),-1),100))
$alignabs(10,20,60,200,,)
$font(Calibri,7,glow-50-70-90,170-230-250)
Volume: $get(volume) '%'
$imageabs($sub(%_width%,58),12,'neo1\vol\'$div($add($get(volume),5),10)'.png',)
$alignabs($sub(%_width%,70),45,60,200,right,)
$get(spacer)%_time_elapsed%$if(%_time_total%,' / '%_time_total%,)
$if(%_time_remaining%,$get(spacer),)
$alignabs(10,45,200,200,,)
$if($strstr(%_path_raw%,'tone://'),$if(%_time_total%,%_length%' Seconds of '$replace(%title%,'Tone: ',)' Tone',%title%),)
$if($strstr(%_path_raw%,'silence://'),%_length%' Seconds of Silence',)
$if($strstr(%_path_raw%,'cdda://'),'CDDA',)
$if2(%mp3%,$if2(%__codec%,))
$if($strstr(%_path_raw%,'cdda://'),$get(spacer)'1411kbps',$if(%__bitrate%,$get(spacer)%__bitrate%' kbps ',))
$if(%__extrainfo%,$get(spacer)%__extrainfo% ,)
$if(%__samplerate%,$get(spacer)$cut(%__samplerate%,2)' kHz' ,)
$if(%__channels%,$get(spacer)$ifgreater(%__channels%,1,'Stereo','Mono'),)
,)
// PerTrack
$button($sub($div(%_width%,2),64),32,0,0,0,0,neo1\pause1b.png,neo1\pause2b.png,Pause,)
$button($sub($div(%_width%,2),40),31,0,0,0,0,neo1\prev1.png,neo1\prev2.png,Previous,)
$button($add($div(%_width%,2),17),31,0,0,0,0,neo1\next1.png,neo1\next2.png,Next,)
$button($add($div(%_width%,2),44),32,0,0,0,0,neo1\stop1.png,neo1\stop2.png,Stop,)
$button($sub($div(%_width%,2),15),26,0,0,0,0,neo1\play1.png,neo1\play2.png,Play,)

I have put // Per Track before $button  definition


Track Info Panel with ability to change font

Reply #714
To me it looks like your component has a dependency to another component. I have no idea.


nope... sounds like something got corrupted somewhere along the way.

------------------------------------

I've uploaded a new version with support for a "// Globals" section and ability to flip and rotate images.


Track Info Panel with ability to change font

Reply #716
Hello, hope somebody can help me.
Just downloaded this plugin, but i can't figure out how to get it to work properly.
Everything seems fine, but the display is not getting updated.
i.e. I use %_time_elapsed%, but the trackinfo_mod only displays 0:00.
What am i doing wrong?


Track Info Panel with ability to change font

Reply #718
So how can I set spaces at the beginning of a code line now? ' ' doesn't work as well as $char(32).


Track Info Panel with ability to change font

Reply #720
update that .png every second.
elevatorladylevitateme

 

Track Info Panel with ability to change font

Reply #721
i have foo_uie_tabs is there a way to have a button which is not directly linked to one tab but works by:

if displaying tab 1 on click go to tab 2 & if displaying tab 2 on click go to tab 1?

Track Info Panel with ability to change font

Reply #722
i have foo_uie_tabs is there a way to have a button which is not directly linked to one tab but works by:

if displaying tab 1 on click go to tab 2 & if displaying tab 2 on click go to tab 1?


I wanted this too, and there is a main menu command for it (Panel #0 Cycle Forward, 0 may be different), but it doesn't seem to work with trackinfo_mod..?

Track Info Panel with ability to change font

Reply #723
probably because of the '#'
Trackinfo mod has weird issues with #
elevatorladylevitateme

Track Info Panel with ability to change font

Reply #724
So how can I set spaces at the beginning of a code line now? ' ' doesn't work as well as $char(32).


Maybe restructure your code to look more like:
Code: [Select]
Blah
$char(10)  Blah

Instead of:
Code: [Select]
Blah$char(10)
  Blah