|
|
Wiki > Main > SimpleGuideToWPSMaking (compare)
|
Difference: SimpleGuideToWPSMaking (r10 vs. r9)The Simple Guide To WPS MakingOkay, I know there are many who would like to create their own WPS's, but think that it is too hard to do, as they dont know how. So heres a guide to creating a custom WPS First off youll need the WPS code specifications. They are found here. IntroductionBasic WPS tagsOkay, I know there are many users who would like to create their own While Playing Screens but think that it is too hard to do because they dont know how, so heres a simple guide to creating your own custom WPS. Before we start, youll need the WPS code specifications which are described here. Lets start with something simple. Lets say you want to display the artist, album, and track on separate lines. The code that is used is a system of two letter tags preceded by a percentage symbol. So you would use Your code should look like this: %ia %id %it
Adding Scrolling Now, say you want the lines to scroll (they will scroll only if there is too much text to fit on screen, and this will obviously vary based on which font you select for your WPS). The scrolling tag is Your code should now be: %s%ia %s%id %s%it
Alignment Tags Next well review the alignment tags. By default the text is aligned to the left. But this can be changed by using the three alignment tags: Code now looks like this: %s%ac%ia %s%ac%id %s%ac%it
Next Song Info Now were going to cover the next song tags. One of the fantastic things about Rockbox is that it allows you to display the next song information in the WPS. To do this, capitalize the first letter of the two-letter tag you are going to use. For example, the next artist tag would be Well leave a line blank and add artist, album and track information for the next song, also scrolling and centered. Code: %s%ac%ia %s%ac%id %s%ac%it %s%ac%Ia %s%ac%Id %s%ac%It
Up until now we've left the status bar alone (it is on by default). Now we're going to disable it, as you'll soon be learning techniques that will enable you to create your own custom status bar, should you choose to. There are two very simple tags, Code: %wd %s%ac%ia %s%ac%id %s%ac%it %s%ac%Ia %s%ac%Id %s%ac%It
Conditionals Here things get a bit tricky. Conditionals are commonly used for alternatives. It works for current song info as well as next song info. Let's say your collection of songs isn't tagged well. Some songs have information, some don't. Normally, if the artist/album/track/whatever field is blank, nothing will be displayed. This leaves a blank screen...rather unattractive. So to prevent this from happening, we can use a conditional tag. The conditional syntax: %wd %s%ac%?ia<%ia|Artist Unknown> %s%ac%?id<%id|Album Unknown> %s%ac%?it<%it|Title Unknown> %s%ac%?Ia<%Ia|Artist Unknown> %s%ac%?Id<%Id|Album Unknown> %s%ac%?It<%It|Title Unknown>
This can get confusing, especially with the other tags. So let's ignore them for a minute and focus on one part. Additionally, if there is no else value, you can leave that field blank. For example, Alternating Sublines An alternating subline allows you to alternate what a line displays. It is particularly useful for players with limited screen space or for WPS's that use big fonts. So, if you want to display artist info and album info on one line, you can. The tag used is %wd %s%ac%?ia<%ia|Artist Unknown> %s%ac%?id<%id|Album Unknown> %s%ac%?it<%it|Title Unknown> %ac%t3%ig;%t%iy %s%ac%?Ia<%Ia|Artist Unknown> %s%ac%?Id<%Id|Album Unknown> %s%ac%?It<%It|Title Unknown> %ac%t3%?ig<%ig|Genre Unknown>;%t%?iy<%iy|Year Unknown> This code may look intimidating, but if you go back through the previous steps, you can see the additions made, and how it is grown. when you break it down it really isn't as complicating (in fact, simply removing the scrolling/alignment tags would make things much cleaner/simpler). ImagesImages are a great way to freshen up a WPS, and make it more stylish. How to start adding imagesTo add images to your WPS, the first step is to take a screendump. To do this, go to Menu-->Info-->Debug-->Screendump. This will enable you to take a screendump. Now go back to the while playing screen, and plug in the USB cable. The hard drive will spin up, and a file called dump_0001.bmp will appear in the root directory. Go back into the menu, doing the same as you did before to disable screendump mode, and connect your player to the computer like you normally would. You can now use this screendump to create images based on where the text is. Create your images (paint works well for grayscale targets) and make sure they are saved as grayscale .bmps (background images must be monochrome). Image Tags The syntax for images is Tag 1: Permanent display
Tag 2: Loading an image
Tag 3: Displaying a loaded image
Tag 4: Using a backdrop
Image File Structuring For a WPS to correctly display images, not only must they be in the correct image format, but they must also be located in a certain place. In .rockbox, there is a folder titled 'wps.' This is where WPS files are kept. If the WPS has images, a folder must be created with the same name as the WPS file. For example, if your WPS is titled %wd %x|a|background.bmp|0|0| %xl|b|shuffle.bmp|75|1| %?ps<%xdb> %s%ac%?ia<%ia|Artist Unknown> %s%ac%?id<%id|Album Unknown> %s%ac%?it<%it|Title Unknown> %ac%t3%ig;%t%iy %s%ac%?Ia<%Ia|Artist Unknown> %s%ac%?Id<%Id|Album Unknown> %s%ac%?It<%It|Title Unknown> %ac%t3%?ig<%ig|Genre Unknown>;%t%?iy<%iy|Year Unknown> That's pretty much the extent of the current WPS tags. Not as difficult as you thought, ehh? To conclude our WPS-making, we'll break down our WPS line by line... line 1: line 2: line 3: line 4: line 5: line 6: line 7: line 8: line 9: we left this line blank line 10: line 11: line 12: line 13: r11 - 26 Jan 2013 - 13:08:15 - AlexParker
Revision r10 - 02 Feb 2008 - 20:57 - MarcGuayRevision r9 - 08 Dec 2007 - 18:42 - ArchitTamarapu Copyright © by the contributing authors.
|