Support and General Use > Theming and Appearance Customization

WPS image idear

<< < (2/3) > >>

psycho_maniac:
you can do something kinda like what you are talking about when you go to load an image in a folder you can do

--- Code: --- %x|1|/filename.bmp|x|y

--- End code ---

im pretty sure im right if not close

ceebmoj:
Hi,

Loading the images from the path of the WPS file would also over come the problem as I see it I will have a go at psycho_manic implementation. However I thought the .wps file had to be in .rockbox dir to be loaded as a default however a bit of experimentation should show if I a right.

As kenshin says if a tag is used to set the path of the bmps the it would need to be up at the top of the wps file are there any other global settings that are used with in the wps that could be moved in to a header for the wps? Then things like the bmp path could be moved in to this header section of the wps.

Another possible improvement to the wps that could be implemented would be to alow the loading of images in a form of loop in to an array like structure. This would reduce the mount of space in the wps turned over to bmp loading. Just a thort.

psycho_maniac:

--- Quote from: ceebmoj on October 23, 2005, 04:52:42 PM ---However I thought the .wps file had to be in .rockbox dir to be loaded as a default however a bit of experimentation should show if I a right.

--- End quote ---

im pretty sure you are right. but what if you went into the config file and changed where the wps file is located? then loaded those settings? would that then work? yes the wps would load (this is all guessing) but then i think the next time you start it up it will load the default wps because it cannot find the wps in the .rockbox folder i will try to experiment with this also

[edit] if you write in the config file where the wps is located it will load that where it is in the folder. i would like to load images in folders for the wps i use right now this wps uses like 40 something images and it kinda makes me .rockbox folder messy i tried to do the commands like i showed in my previous post but that boosted the size of my wps file so then all the images did not load. [edit]

ceebmoj:
Hi,

Thanks for the info psycho I will give that a try this evening.

I still think that some form of loop like syntax would be good for loading up the images in to an array type structure and would also be good for keeping the wps size down.

kenshin:

--- Quote from: ceebmoj on October 24, 2005, 03:29:27 AM ---I still think that some form of loop like syntax would be good for loading up the images in to an array type structure and would also be good for keeping the wps size down.

--- End quote ---

I don't quite follow you here. Are you talking about loading all the image files based on some base filename (i.e. "img##.bmp") or based on what files exist in the filesystem? Neither is going to really benefit much. If you are reading based on filename, all your files have to locked into a certain naming scheme which makes it hard to remember which files do what. If you're reading the filesystem for .bmp files you could easily end up loading images you never use if you don't keep the filesystem clean (and I know some of you don't!). Furthermore, not all images are cached in memory. Only the %xl/%xd files are cached. The %x| files are displayed immediately. As to caching images, rockbox already does this but the WPS lets you tell Rockbox which files to load.

All image file paths must be relative to the .rockbox dir. So loading %x|a|/filename.bmp|x|y| will yeild a final path of /.rockbox//filename.bmp unless someone has changed this code in the path month or two.

The best solution, as Daniel proposed, would be to make the files load from the same directory as the WPS file. That way we need no major WPS changes nor do we get locked into anything in particular. Everyone can keep their files in subdirs of .rockbox (I've wanted this for awhile, myself). If no one submits a patch for this in the next couple weeks I'll do it. I can't this week or next as I'll be on vacation and business travel.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version