Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: BigMac on August 29, 2006, 02:59:02 AM

Title: Cleardark Video
Post by: BigMac on August 29, 2006, 02:59:02 AM
Ok I have been working on this for about a day and all went smoothly till today. To keep from multi posting on my part I'll number them and you can answer the numbers you know.
(http://i3.photobucket.com/albums/y61/anarchyluvsme/cleardarklabeled.jpg)
1. Whenever I pause then play again, the pause sign stays there behind the play.
2.For some reason the progress bar will only go up to a little over half of the box when the song is done. I've tried resizing the box(as you can see), but still doesn't work.
3.I can't find the scroll margins patch in the tracker and I would like to know the command to set the margins for a line.
I am not done with the wps yet, but in the end i think it will look very nice.
On a side note, I have no idea why, but in the sim for my 5g 8 nor up arrow seem to perform the menu function. Is there anything i can do to fix this?
That is all.
Keep ROCKing on!
Title: Re: Cleardark Video
Post by: Yotto on August 29, 2006, 04:44:29 AM
1) I assume your play button is a bunch of Pink with a green arrow (Not the superhero!) in the middle.  Change it instead to be the REAL BACKGROUND of the WPS with a green arrow on it.  When you switch from play to pause, the WPS overlays the play on top of the pause, but won't cover anything that's pink.
2) Don't /know/ this one without seeing the code, but is there a chance you have the numbers wrong after your progress bar in the code?  Maybe it's absolute start and end, and you thought it was absolute start and length?
3) I don't know, as I've never done them, but when I do I plan on perusing those WPSs that use them.  You can find them in the wiki.
4) 8 isn't menu.  Period is.  No, I don't know why.  There's a batch file that came with the simulator that runs it with a "border" that shows you the keys you can use.
Title: Re: Cleardark Video
Post by: BigMac on August 29, 2006, 11:27:45 AM
code
Code: [Select]
%xl|k|play.bmp|1|1|
%xl|l|pause.bmp|1|1|
%xl|m|avv.bmp|3|3|
%xl|n|arr.bmp|3|3|
%xl|o|batt0.bmp|292|3|
%xl|p|batt1.bmp|292|3|
%xl|q|batt2.bmp|292|3|
%xl|r|batt3.bmp|292|3|
%xl|s|batt4.bmp|292|3|
%xl|w|hold.bmp|19|0|

%?mp<|%xdk|%xdl|%xdm|%xdn>  %ac%bt - %cH:Mc %?mh<%xdw|>%?bl<%xdo|%xdp|%xdq|%xdr|%xds>
%ac %fb Kbps-%?fc-%?fv
%?mm<|%xdt|%xdu|%xdx|>%?ps<%xdv|>
%al%pp of %pe
%s%ac%?it<%it|%fn>    
%s%ac%?ia<%ia|No Artist>    
%s%ac%?id<%id|No Album>  
%al %pc %ac%pt %ar%pr
%ac Vol: %pv dB



%P|pbar.bmp|
%pb|40|106|164|







%alNEXT:
%s%ac%?It<%It|>
%s%ac%?Ia<%Ia|>
%wd
%X|brushed.bmp|

And the part of the pause that shows is The yellow part.
Keep ROCKing on!
Title: Re: Cleardark Video
Post by: Yotto on August 29, 2006, 04:54:38 PM
I'm going to do some snipping

Code: [Select]
%pb|40|106|164|

Okay, I think I see the problem. What I THINK you mean is "40 tall, start at 106, and be 164 wide"
What you are actually SAYING is "40 tall, start at 106, stop at 164"
You likely want:
Code: [Select]
%b|40|106|270|
Quote
And the part of the pause that shows is The yellow part.
I don't quite understand this.  Is it like a one-pixel-wide line to the right of the play that keeps showing?  Your screen shot doesn't exactly show it clearly.  If that's the case, then I"d say your play button graphic is one pixel less wide than your pause graphic.
Title: Re: Cleardark Video
Post by: BigMac on August 29, 2006, 06:18:27 PM
(http://i3.photobucket.com/albums/y61/anarchyluvsme/dump060829-181407.jpg)
See in the upper left corner?
Keep ROCKing on!
Title: Re: Cleardark Video
Post by: Yotto on August 29, 2006, 07:58:40 PM
Post your "play" bitmap.  Not a cut/paste from the screenshot, the actual bitmap out of your wps/whatever/ directory.
Title: Re: Cleardark Video
Post by: BigMac on August 29, 2006, 08:08:48 PM
(http://i3.photobucket.com/albums/y61/anarchyluvsme/play.jpg)
Title: Re: Cleardark Video
Post by: Yotto on August 29, 2006, 09:10:51 PM
That's what I thought.  Re-read my first post here.  Where I said to replace the pink with the actual texture from your background image.
Title: Re: Cleardark Video
Post by: BigMac on August 29, 2006, 09:49:29 PM
but according to rockbox, 255 0 255 is the transparency color....
Keep ROCKing on!
Title: Re: Cleardark Video
Post by: Yotto on August 29, 2006, 10:31:10 PM
Correct.

the graphics don't REPLACE EACH OTHER.  They COVER EACH OTHER.  Except where there is transparency.

So:

You pause.  Pause graphic gets painted.
You play.  Play graphic gets put OVER THE PAUSE GRAPHIC.

Trust me. That's what's happening and that's how to fix it.
Title: Re: Cleardark Video
Post by: BigMac on August 29, 2006, 10:35:29 PM
I'll try but itll be hard considering the background isn't a solid so getting it to blend in might be hard:-(
Keep ROCKing on!
Title: Re: Cleardark Video
Post by: Yotto on August 29, 2006, 11:34:57 PM
What do you mean, your background image changes?  Or you mean you haven't decided on a background image yet?

One idea would be to make them "buttons" like many WPSs do.  Check out the black glass variants to see what I mean.  Therefore, you have a round (or square, or octagonal.  Go to town) area that you totally overwrite with each button, and each button totally covers the others.
Title: Re: Cleardark Video
Post by: BigMac on August 29, 2006, 11:50:48 PM
I never said it changes... I said it'll be hard because i have a picture in the background is a texture so replacing the pink with a coloro would make it look bad.
Keep ROCKing on!
Title: Re: Cleardark Video
Post by: Yotto on August 30, 2006, 01:26:12 AM
Then don't replace it with a color.

Replace it with THE TEXTURE.

Actually copy that exact piece of texture out of your background image and put the play button on it.

Like so:

Code: [Select]
+-------+
|texture|
|texture|
|texture|
|texture|
+-------+

plus

+-------+
|       |
| PLAY  |
|BUTTON |
|       |
+-------+

equals

+-------+
|texture|
|tPLAYre|
|BUTTONe|
|texture|
+-------+

I hope this shows up in your browser as a proportional font. :D
Title: Re: Cleardark Video
Post by: BigMac on August 30, 2006, 06:20:32 PM
Started a new wps on my own and here are the problems ive encountered
(http://i3.photobucket.com/albums/y61/anarchyluvsme/dump060830-135500.jpg)
Heres the code(optimize if you'd like)
Code: [Select]
%xl|k|play.bmp|168|110|
%xl|l|pause.bmp|168|110|
%xl|m|avv.bmp|168|110|
%xl|n|arr.bmp|168|110|
%xl|o|batt0.bmp|221|103|
%xl|p|batt1.bmp|221|103|
%xl|q|batt2.bmp|221|103|
%xl|r|batt3.bmp|221|103|
%xl|s|batt4.bmp|221|103|





%?mp<|%xdk|%xdl|%xdm|%xdn>  %ac%bt - %cH:Mc %?mh<%xdw|>%?bl<%xdo|%xdp|%xdq|%xdr|%xds>
%ac %fb Kbps-%?fc-%?fv
%?mm<|%xdt|%xdu|%xdx|>%?ps<%xdv|>  





%P|pbar.bmp|
%pb|10|15|305|




 %pc/%pt %s%m|134|224|%ac%?It<%It|>
%wd
%X|bg.bmp|
I can't seem to get scroll margins to work and it doesn't matter how low i put the battery the icon still shows 3 bars (all other problems in the wps have been fixed by now). Please help
Title: Re: Cleardark Video
Post by: Febs on August 31, 2006, 08:54:49 AM
Can you post your battery icons.  I suspect your problem is the same as the problem you had with the volume icons, but please put one or two of the battery icon .bmps.
Title: Re: Cleardark Video
Post by: BigMac on August 31, 2006, 09:18:47 PM
here
(http://i3.photobucket.com/albums/y61/anarchyluvsme/batt5.jpg)(http://i3.photobucket.com/albums/y61/anarchyluvsme/batt4.jpg)
(http://i3.photobucket.com/albums/y61/anarchyluvsme/batt3.jpg)(http://i3.photobucket.com/albums/y61/anarchyluvsme/batt2.jpg)
(http://i3.photobucket.com/albums/y61/anarchyluvsme/batt1.jpg)(http://i3.photobucket.com/albums/y61/anarchyluvsme/bat.jpg)(http://i3.photobucket.com/albums/y61/anarchyluvsme/batt0.jpg)
Title: Re: Cleardark Video
Post by: Blackflag_Rms13 on August 31, 2006, 09:43:31 PM
I know with volume you can only have like 7(IIRC) levels and if you use more it doesn't work. The same for battery perhaps? Like maybe only 4/5 levels?...
Title: Re: Cleardark Video
Post by: Yotto on August 31, 2006, 10:34:37 PM
I know with volume you can only have like 7(IIRC) levels and if you use more it doesn't work. The same for battery perhaps? Like maybe only 4/5 levels?...

Actually, Volume is 11, as in "But ours goes up to..." (Actually, it's 0-10 but I love that quote).  Battery is 5 (0-4).

Looking though the Wiki just now, I noticed that the text doesn't actually say that, which is odd.  Either it changed very recently or I just haven't looked at it... Ever.

My battery on my currenty WPS is:
Code: [Select]
%?bp<%xdm|%?bl<%xdn|%xdo|%xdp|%xdq|%xdr>>
Which means:

"Check if it's charging.  If so, display the charging graphic of "m", otherwise, show graphics "n" "o" "p" "q" or "r" which are the 5 normal battery icon grapics"

BigMac, all I can suggest to you is try putting it on its own line.  It doesn't "have" to be, but maybe there is some weird interaction.  Make your WPS code look something more like:

Code: [Select]
%ac%bt - %cH:Mc
%?mp<|%xdk|%xdl|%xdm|%xdn>
%?mh<%xdw|>
%?bl<%xdo|%xdp|%xdq|%xdr|%xds>

And put all your image precaching at the top, but all your image displaying at the bottom.  It makes the WPS far easier to read than having stuff all over the place.
Title: Re: Cleardark Video
Post by: BigMac on September 01, 2006, 02:32:39 PM
so i delete all my coding and replace it with the two segments you gave me?
Keep ROCKing on!
Title: Re: Cleardark Video
Post by: Yotto on September 01, 2006, 03:30:30 PM
No.

The one thing I won't do is write all your code for you.  You won't learn anything that way.  I'm giving you suggestions that will (hopefully) fix your problems and teach you things about WPS creation.
Title: Re: Cleardark Video
Post by: BigMac on September 01, 2006, 05:04:14 PM
that's what i was thinking. but i don't get were you want me to add this stuff.
Title: Re: Cleardark Video
Post by: pixelma on September 04, 2006, 04:58:07 AM
Quote
Actually, Volume is 11, as in "But ours goes up to..." (Actually, it's 0-10 but I love that quote).  Battery is 5 (0-4).

Looking though the Wiki just now, I noticed that the text doesn't actually say that, which is odd.  Either it changed very recently or I just haven't looked at it... Ever.
Yes, it was changed about one week ago as stated in this commit message:

Code: [Select]
26 Aug 13:25 - Magnus Holmgren - apps/gui/gwps-common.c 1.61 -
Make volume and battery level enums dynamic, inspired by patch 4802. Almost backwards compatible;
for the battery level, the first enum is used when the level is unknown, while the remaining enums are used as before.

The commiter himself edited the CustomWPS wiki page (http://www.rockbox.org/twiki/bin/view/Main/CustomWPS) the same day - I suggest reading it thouroughly. Now you can have as many enums as you like for the battery level and volume icons - but be aware of the "-1" option for battery level - I guess that's the problem and also (almost?) all WPSs currently in CVS are wrong on that one ATM...