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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Problem using progress bar
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: Problem using progress bar  (Read 8741 times)

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Problem using progress bar
« on: August 17, 2010, 02:31:02 PM »
I'm making a new theme for iPod Video. I tried to put progress bar in a viewport, and it showed up (weird, like if it fills downside up) in simulator, but not in DAP.

I tried to use %pb with parameters, but this way (using '-' in bitmap parameter) the progress bar disappear in both cases.
The wps code is this:
Code: [Select]
#tag para retirar a barra de status default
%wd
%Cl(0,0,49,49)
#Background
%V(0,0,-,-,-)
╒═════════════════════════════════════════╕╒════════╕
│                                         â”‚│        │
│                                         â”‚│   NO   â”‚
│                                         â”‚│  A.A.  │
│                                         â”‚│        │
└─────────────────────────────────────────┘└────────┘
┌────────────┐┌─────────────────────────────────────┐
├────────────┤├─────────────────────────────────────┤
└────────────┘└─────────────────────────────────────┘
┌──────────────────┐┌────────────┐┌─────────────────┐
├───┬─┬───┬─┬────┬─┤├────────────┤├─────────────────┤
└───┴─┴───┴─┴────┴─┘└────────────┘└─────────────────┘
┌──────────────────┐┌─────────┐┌────────────────────┐
├──────────────────┤├─────────┤├────────────────────┤
└──────────────────┘└─────────┘└────────────────────┘
#Info da música
%V(10,10,50,40,-)
Arquivo:
Titulo:
Artista:
Album:
%V(60,10,192,40,-)
%s%fp
%s%?it<%it|-------------------------------->
%s%?ia<%ia|-------------------------------->
%s%?id<%id|-------------------------------->
#Barra
#%V|0|220|-|-|-|-|-|
#%pb
#Album art
%V(263,7,51,48,-)
%?C<%Cd>
#volume
%V(4,66,75,8,-)
%acVolume(%pv)
%V(4,77,75,7,-)
%?pv<|▌|█|█▌|██|██▌|███|███▌|████|████▌|█████|█████▌|██████|██████▌|███████|███████▌|████████|████████▌|█████████|█████████▌|██████████|██████████▌|███████████|███████████▌|████████████|████████████▒>
#Peak Meter
%V(88,66,225,9,-)
%acVU
%V(87,76,227,9,-)
%pm
#Opções
%V(4,96,111,9,-)
%acOpções
%V(4,106,20,9,-)
Rep
%V(29,106,8,8,-)
%?mm<○|A|1|S|↔>
%V(40,106,20,9,-)
Rnd
%V(66,106,8,8,-)
%?ps<●|○>
%V(76,106,25,9,-)
Lock
%V(108,106,8,8,-)
%?mh<●|○>
#Bateria
%V(124,96,75,8,-)
%acBateria(%?bc<---|%bl>)
%V(124,107,75,7,-)
#%?bl<||▌|█|█▌|██|██▌|███|███▌|████|████▌|█████|█████▌|██████|██████▌|███████|███████▌|████████|████████▌|█████████|█████████▌|██████████|██████████▌|███████████|███████████▌|████████████|█████████████>
%bl(124,107,75,5,-)
#%bl|-|11|-|298|7|
#tipo de arquivo
%V(208,96,105,8,-)
%acFormato
%V(208,106,105,8,-)
%ac%fc - %fbkbps
#Nome e posição na playlist
%V(4,126,111,8,-)
%s%ac%?pn<%pn|Lista de músicas>
%V(4,136,111,8,-)
%s%acMúsica %pp de %pe
#Status da reprodução
%V(124,126,57,8,-)
%acStatus
%V(124,136,57,8,-)
%ac%?mp<Parado|Tocando|Pausado|Avançando|Recuando|Gravando|Grav.P.|FM|FM P.|>
#Tempo de Reprodução
%V(190,126,123,8,-)
%ac%pc/%pt
%V(190,136,123,8,-)
%pb
Any suggestion?
My DAP is with current build, and the simulator is the last daily build.

Thanks.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Problem using progress bar
« Reply #1 on: August 17, 2010, 06:22:07 PM »
what is the problem? that it fills wrongly on the sim? or doesnt work on target?
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #2 on: August 18, 2010, 08:07:07 AM »
Both things.
On the sim, it looks like it fills as if it's turned 90° counter-clockwise.
On the target, it does not appear at all.

Same thing with battery meter using %pb format.

Here, the bar is empty (just under song time):


Here, the bar is half full:
Logged

Offline seani

  • Member
  • *
  • Posts: 122
    • they call me MR sean
Re: Problem using progress bar
« Reply #3 on: August 18, 2010, 08:34:29 AM »
I've noticed this on target with a recent build for a C240 - the progress bar doesn't seem to update for the Cuda theme. I'd assumed it was because I'd introduced something with my other fiddling in the build, but perhaps not.
Logged
Sansa C240, Sansa E280, Clip

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Problem using progress bar
« Reply #4 on: August 18, 2010, 08:37:35 AM »
what is the revision number of the sim and target builds? (system > rockbox info).
Also FYI, you can use the %bl and %pv tags exaclty like %pb so you dont have to draw those blocks. (And can I recommend adding a %Vp playlist viewer to that boring space at the bottom? :D )
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #5 on: August 18, 2010, 08:43:22 AM »
Sim version: r27822-100816
DAP version:r27835-100817
Didn't knew about using %pv like %pb. But using with %bl isn't working.
(thanks for suggestion. It's not finished yet, but I will consider it :D )

Edit:
Using %pb with dash on bitmap shows a bar exactly like default progress bar?
« Last Edit: August 18, 2010, 08:45:55 AM by Astorga »
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Problem using progress bar
« Reply #6 on: August 18, 2010, 08:49:51 AM »
the problem the sim is seeing was fixed in r27827 so at least that explains one thing. dunno why it isnt displaying on the DAP, not at all?

Also, %pv and %bl need the params, so %bl(-,-,-,-,-) will shows the block style, full width viewport, 1 line height.

Also, another comment would be to try using the %Sx(<text>) tag instead of using your language, <text> is the english string (you can see the whole list http://svn.rockbox.org/viewvc.cgi/trunk/apps/lang/english.lang?view=markup ) and it will get translated for you into whatever language you have selected
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #7 on: August 18, 2010, 09:02:04 AM »
I updated my DAP to r27844, and still doesn't work.
It keeps blank, exactly like the battery field ("bateria") in screenshot above.

Thanks for the tip :D
I was in mind that I would need that to upload the theme in themes page.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Problem using progress bar
« Reply #8 on: August 18, 2010, 09:35:57 AM »
that wps works fine in the sim and on my video....
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #9 on: August 18, 2010, 01:02:33 PM »
Weird...
Mine is 30GB, does it make any difference?
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Problem using progress bar
« Reply #10 on: August 18, 2010, 01:08:18 PM »
Quote from: Astorga on August 18, 2010, 01:02:33 PM
Weird...
Mine is 30GB, does it make any difference?

Nope.


[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #11 on: August 18, 2010, 01:13:58 PM »
The place that the wps is doesn't change anything too, right?
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Problem using progress bar
« Reply #12 on: August 18, 2010, 01:16:25 PM »
Quote from: Astorga on August 18, 2010, 01:13:58 PM
The place that the wps is doesn't change anything too, right?


What do you mean?

It can only go in one place.

".rockbox/wps/"



[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #13 on: August 18, 2010, 01:18:59 PM »
I'm "playing" it from root folder to test it.
Put in wps folder might solve the problem?
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Problem using progress bar
« Reply #14 on: August 18, 2010, 01:23:43 PM »
Quote from: Astorga on August 18, 2010, 01:18:59 PM
I'm "playing" it from root folder to test it.
Put in wps folder might solve the problem?

Ah, ...right.

I had forgotten you could do that, actually.
It may solve your problem...I'd be pleasantly surprised if it did, however.



[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1] 2 3
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Problem using progress bar
 

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

Page created in 0.091 seconds with 15 queries.