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 

Need help with VLF

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



Joined: 12 Jul 2009
Posts: 23

PostPosted: Fri Oct 23, 2009 1:36 pm    Post subject: Need help with VLF Reply with quote

I am trying to load the RCO graphic from topmenu_plugin.rco that displays the globe icon, like the one seen when signing in to PlayStation Network.

I don't quite understand the params entirely of vlfGuiAddShadowedPictureResource() and was wondering if anyone could help.

I searched in the "dcv6 graphics" topic and found that moonlight mentioned that it is easier to use vlfGuiAddShadowedPictureResource() instead of vlfGuiLoadResources().
Back to top
View user's profile Send private message
MistPhoenix



Joined: 12 Jul 2009
Posts: 23

PostPosted: Mon Oct 26, 2009 3:56 am    Post subject: Reply with quote

Has anyone used this function before?
Back to top
View user's profile Send private message
victorprosa



Joined: 14 Jan 2009
Posts: 38

PostPosted: Fri Oct 30, 2009 10:25 am    Post subject: Reply with quote

open vlf.h, it explains all the functions, may help you...

I used VLF a lot, but never rco functions :(, sorry...
Back to top
View user's profile Send private message Send e-mail
MistPhoenix



Joined: 12 Jul 2009
Posts: 23

PostPosted: Fri Oct 30, 2009 2:07 pm    Post subject: Reply with quote

I have browsed vlf.h before posting here.

I wish there was better documentation/examples of this powerful lib

thanks anyways
Back to top
View user's profile Send private message
MistPhoenix



Joined: 12 Jul 2009
Posts: 23

PostPosted: Fri Oct 30, 2009 3:32 pm    Post subject: Reply with quote

Figured it out after spending alot of time on it:

first thing I did was open the .rcos using RCO editor. Got the information of the names of the icon graphics and loaded them from there.

Problem was, that it wouldn't load on 5.50GEN-D2, so I tried my program on 3.40OE(phat) and the icon actually appeared.

Is there a reason why the icon doesn't appear on 5.xx fw?

also this is how i did it:
Code:
//Load RCO icon
VlfShadowedPicture rcoIcon = vlfGuiAddShadowedPictureResource("flash0:/vsh/resource/topmenu_plugin.rco", "tex_cnf_network",
"tex_sdw_cnf_network", 0, 0, 0, 0, 1);
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