forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Native Progressbar

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
zmast



Joined: 10 Apr 2008
Posts: 3

PostPosted: Sun May 11, 2008 9:44 pm    Post subject: Native Progressbar Reply with quote

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
View user's profile Send private message
PosX100



Joined: 15 Aug 2007
Posts: 98

PostPosted: Mon May 12, 2008 12:18 am    Post subject: Reply with quote

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
View user's profile Send private message
fungos



Joined: 31 Oct 2007
Posts: 41
Location: cwb br

PostPosted: Tue May 13, 2008 12:16 am    Post subject: Reply with quote

Maybe because he wants the PSP look&feel!?
Back to top
View user's profile Send private message Visit poster's website
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Tue May 13, 2008 10:04 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
zmast



Joined: 10 Apr 2008
Posts: 3

PostPosted: Wed May 14, 2008 3:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed May 14, 2008 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Tue May 20, 2008 6:21 am    Post subject: Reply with quote

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

Cu
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group