Native Progressbar

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
zmast
Posts: 3
Joined: Thu Apr 10, 2008 8:11 am

Native Progressbar

Post by zmast »

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.
PosX100
Posts: 98
Joined: Wed Aug 15, 2007 1:02 am

Post by PosX100 »

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...
fungos
Posts: 41
Joined: Wed Oct 31, 2007 10:43 am
Location: cwb br
Contact:

Post by fungos »

Maybe because he wants the PSP look&feel!?
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

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
zmast
Posts: 3
Joined: Thu Apr 10, 2008 8:11 am

Post by zmast »

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".
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

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.
Question_dev
Posts: 88
Joined: Fri Aug 24, 2007 8:23 pm

Post by Question_dev »

PSPTube uses the psp progress bar. Ask IWN, he's good in 'psp screens' (netdialog, savedata, etc)

Cu
Post Reply