Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  first timer WPS help
« previous next »
  • Print
Pages: [1] 2

Author Topic: first timer WPS help  (Read 4142 times)

Offline mipodr

  • Member
  • *
  • Posts: 34
  • Ipod w/o rckbx s lik a guy w/ nutin clever to say.
first timer WPS help
« on: January 24, 2007, 11:47:58 AM »
I thought I had this... but no!

Ok, I'm making a wps where the playlist position (ex: 2/8) is on the same line as the album... But when I have it so "the out of" is 2 or more digits (ex: 2/12) then the album comes out 1 extra space to the right... How do I fix this?
« Last Edit: January 24, 2007, 06:55:32 PM by mipodr »
Logged

Offline akadewboy

  • Member
  • *
  • Posts: 22
Re: first timer WPS help
« Reply #1 on: January 24, 2007, 09:39:53 PM »
I'm having trouble visualizing what you need. Maybe post your code or a screenshot?
« Last Edit: January 24, 2007, 09:58:42 PM by akadewboy »
Logged

Offline mipodr

  • Member
  • *
  • Posts: 34
  • Ipod w/o rckbx s lik a guy w/ nutin clever to say.
Re: first timer WPS help
« Reply #2 on: January 24, 2007, 10:43:51 PM »


Kinda see it now? When that says for example 2/10 rather than 1/2 the album name gets pushed over one.

Here's the mess of a wps i made... (the two random slashes are invisible over big folder lol. but nescessary to keep things even)

%X|bg.bmp|                    
%P|pb.bmp|37|109|
%wd
%ar| %bl%%| %bt| %pv|%cl:Mc


         
   
                           
 
 
    /                      %?ia<%ia|%d2>
             %pp/%pe         %?id<%id|%d1>
  /                          %?it<%it|%fn>
%pb|20|114|256|
                            %fc                      %pc  / %pt



             
                            ... %?It<%It|%Fn>
« Last Edit: January 24, 2007, 10:47:31 PM by mipodr »
Logged

Offline akadewboy

  • Member
  • *
  • Posts: 22
Re: first timer WPS help
« Reply #3 on: January 24, 2007, 11:16:09 PM »
Hmm, I think the only way you'd be able to do that is with the FS#5900 — Custom WPS Line with x/y/width coordinates patch.

The code would look something like this:
%e|54|110|50|1|FFFFFF|%al%pp/%pe
%e|111|110|210|1|FFFFFF|%al%id

Trying to put two things on one line when their string length isn't always the same can be really anoying without the 5900 patch. That patch allows you to place them at exact pixels. You might want to find an Unsupported Build that has that patch in it.
Logged

Offline mipodr

  • Member
  • *
  • Posts: 34
  • Ipod w/o rckbx s lik a guy w/ nutin clever to say.
Re: first timer WPS help
« Reply #4 on: January 24, 2007, 11:21:58 PM »
Ok thanks... lol but now i have to figure out some more stuff. :P
Are you saying that the positioning with that will be right... cuz if thats true then I'm impressed.
Hmm. That's gonna cause some annoyances though, because I don't have a simulator for that patch... Just rasher's. Phew, this might take a while.
« Last Edit: January 24, 2007, 11:23:59 PM by mipodr »
Logged

Offline akadewboy

  • Member
  • *
  • Posts: 22
Re: first timer WPS help
« Reply #5 on: January 24, 2007, 11:26:22 PM »
The coordinates should be pretty close, they might be a few pixels off depending on how your font behaves. I just took your screenshot and opened it up in paint to find the coordinates.
Logged

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: first timer WPS help
« Reply #6 on: January 25, 2007, 02:03:45 AM »
The way I would fix that problem is use align center and align left.

Example:
%ac%pp/%pe               %al%?id<%id|%d1>

Like this the length of one won't affect the other. Only crap thing is they both can't be aligned to the left though.
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: first timer WPS help
« Reply #7 on: January 25, 2007, 03:15:55 PM »
It would change the look, but you could also align the nubmers left and *all* the words right.

Or, align the words as you do, but a bit more left, and put the (#/#) on the right side instead of the left.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline mipodr

  • Member
  • *
  • Posts: 34
  • Ipod w/o rckbx s lik a guy w/ nutin clever to say.
Re: first timer WPS help
« Reply #8 on: January 25, 2007, 07:40:15 PM »
Ehh, so there's really no way of changing it without changing the look... One thing I tried and thought would work would be to align the numbers to the right and space it to where it was and the the opposite for the text but the numbers wouldn't show. :-\

But i can do this with jbuild and now I'm happy. Thanks for all your help.

Umm, where do I actually put that wps line you gave me, I jsut put it at the top, and everything was out of sync exept for the 2/14.
« Last Edit: January 25, 2007, 08:17:12 PM by mipodr »
Logged

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: first timer WPS help
« Reply #9 on: January 25, 2007, 08:42:25 PM »
Could you edit/create a font to make all the numbers the same width?
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: first timer WPS help
« Reply #10 on: January 25, 2007, 11:59:15 PM »
That won't work.  I've butted against this problem before as well.  The problem isn't that, for example, "1" is skinnier than "2".  It's that "5" is skinnier than "46"
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: first timer WPS help
« Reply #11 on: January 26, 2007, 03:02:03 AM »
But 05 would be the same width as 46 if you use a fixed width font.
Logged

Read The Manual Please

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: first timer WPS help
« Reply #12 on: January 26, 2007, 07:08:17 AM »
Quote from: GodEater on January 26, 2007, 03:02:03 AM
But 05 would be the same width as 46 if you use a fixed width font.

And... how would you do that in Rockbox? ;)
Currently there is no way to pad these numbers with leading zeros - unless I missed something important...
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: first timer WPS help
« Reply #13 on: January 26, 2007, 02:25:52 PM »
Maybe the point is that there *should* be a way. ;)
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: first timer WPS help
« Reply #14 on: January 26, 2007, 03:13:35 PM »
I'm not arguing that.  There should.

There should also be an if/then construct, and maybe a loop.  But there isn't and I don't expect anybody to come up with one any time soon.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  first timer WPS help
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.121 seconds with 14 queries.