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: Default button image paths? (to use in $button() ) (Read 3799 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Default button image paths? (to use in $button() )

In my config I have a buttons panel (default) at the bottom of the PUI like so:

As you can see this is the default buttons panel, and even when you add a new button, you are limited in what you can set it to do.

I want to replace this buttons panel with a track display that is identical in looks, and has all of the same buttons on it (using $button() ), but I want to add a few more custom buttons (again using $button() ); one that will toggle between 'playlist', and 'now playing' layouts, one that will toggle between normal mode and mini mode, a search button, and a menu button.

In the $button() function, where you have to specify the 'image', and 'hover image' paths I need to specify the image paths of those default buttons shown above, but the problem is, I looked everywhere in the foobar directory, and the images were nowhere to be found, so what exactly are the image paths?

Thanks
-mac

Default button image paths? (to use in $button() )

Reply #1
Those icons are located within the foo_ui_std.dll file that is in your componets directory.

You could extract them using a program, for example Restorator 2007 works extremely well for that purpose.

Default button image paths? (to use in $button() )

Reply #2
Thanks, I'll give it a try.

Default button image paths? (to use in $button() )

Reply #3
Sorry, this isn't really to do with the original subject, but is to do with file paths:

What is the field that returns the foobar directory, something like %_foobar%?

So Instead of writing 'C:\Program files\foobar2000\images*.jpg' I can just write '%_foobar%\Images\*.jpg'. I couldn't find it anywhre on the wikis.

Thanks

Default button image paths? (to use in $button() )

Reply #4
Sorry, this isn't really to do with the original subject, but is to do with file paths:

What is the field that returns the foobar directory, something like %_foobar%?

So Instead of writing 'C:\Program files\foobar2000\images*.jpg' I can just write '%_foobar%\Images\*.jpg'. I couldn't find it anywhre on the wikis.

Thanks


I just use this:

$button(,,,,,,/images\button.png,/images\buttonhover.png,BUTTON)

Replacing button, of course with whatever applies... 

As long as your button images are in the PanelsUI\YOURDIRECTORY\images  folder, you can just use /images\

Yes?

Default button image paths? (to use in $button() )

Reply #5
Ahh so the images have to be in the Panels UI directory, and not just the foobar2000 directory? I see. Thanks again.

-mac

 

Default button image paths? (to use in $button() )

Reply #6
In my case, I just use $put() and $get():

Code: [Select]
$puts(dir,'C:\Documents and Settings\**USERNAME**\Application Data\foobar2000')


Then when I want to use the directory I just do this:

Code: [Select]
$button(,,,,,,$get(dir)\button.png,$get(dir)\buttonhover.png,BUTTON)

(borrowed Maranatha's code example  )

And if you want directories INSIDE that that one, I just add something like "$get(dir)\buttons\images\toolbar\buttonhover.png" or something like that .
Song List: keikoniumboards.ke.funpic.org/files/songlist.html