| View previous topic :: View next topic |
| Author |
Message |
zmast
Joined: 10 Apr 2008 Posts: 3
|
Posted: Sun May 11, 2008 9:44 pm Post subject: Native Progressbar |
|
|
Does someone know how to show a Progressbar, like the one used while upgrading to a new firmware or downloading a file from internet?
I suppose it should be similar to the calling the OSK or the MessageBox. |
|
| Back to top |
|
 |
PosX100
Joined: 15 Aug 2007 Posts: 98
|
Posted: Mon May 12, 2008 12:18 am Post subject: |
|
|
Sorry, but why you're not writting one by yourself?
Its as easy as :
start x = ??
progress 0...100
for i=0 to progress ...
apply scaling if required..
draw_sprite(start_x +progress*sprite_width,Y)
to calculate progress , simply calculate the buffer size... |
|
| Back to top |
|
 |
fungos
Joined: 31 Oct 2007 Posts: 41 Location: cwb br
|
Posted: Tue May 13, 2008 12:16 am Post subject: |
|
|
| Maybe because he wants the PSP look&feel!? |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Tue May 13, 2008 10:04 pm Post subject: |
|
|
percentage is downloadedBytes / totalBytes
then have it make a bar every x% (i'd do 10 or so)
yey thats it. _________________ Enlighten me, Reveal my fate -- Follow - Breaking Benjamin |
|
| Back to top |
|
 |
zmast
Joined: 10 Apr 2008 Posts: 3
|
Posted: Wed May 14, 2008 3:17 am Post subject: |
|
|
Of course it is very simple to calculate the % of a running task, displaying it should be not that difficult too (even if at the moment i know nothing about GU).
As fungos suggests, i'd like to have the same "look&feel" than the ProgressBar used by Sony.
If you can confirm me that at the moment this is not implemented in the SDK i'll do it "by hand". |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Wed May 14, 2008 4:12 am Post subject: |
|
|
Probably not in the sdk to do it, but you can retrieve the images used for
the video progress bar out of one of the .rco files with the tools used for XMB mods
(yes the progress bar is made from images).
Strictly speaking, if you extracted those images, and included them in your program it might be illegal.
To get them out of firmware at runtime would require decryption and decompression
which sounds like a real pain in the butt just for a progress bar. _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Tue May 20, 2008 6:21 am Post subject: |
|
|
PSPTube uses the psp progress bar. Ask IWN, he's good in 'psp screens' (netdialog, savedata, etc)
Cu |
|
| Back to top |
|
 |
|