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 

Time function

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



Joined: 28 Apr 2005
Posts: 91

PostPosted: Sun Aug 21, 2005 2:39 pm    Post subject: Time function Reply with quote

This might sound wierd but how do i get the spaces out from between the hours the colon and the minutes and also i need the time to show up on top of a screen:blit

EDIT: also is there an easy way to do something like if the two pictures intersect then turn on picture
like if you wanted to highlight something and you have a regular picture and that picture highlighted in a color then you say when the cursor and the picture interect turn on the highlighted picture

any help is greatly appreciated
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Aug 27, 2005 7:38 am    Post subject: Reply with quote

I don't understand your questions, can you write it in more understandable English? Perhaps the clock example from http://www.luaplayer.org/gallery/ helps you.
Back to top
View user's profile Send private message
Squall333



Joined: 28 Apr 2005
Posts: 91

PostPosted: Sat Aug 27, 2005 9:19 am    Post subject: Reply with quote

Ill explain this as best as i can the time is like this 4 : 23 i want it like 4:23 but it the clock example the numbers are on a blank background i cant get my numbers to show up above my own background
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Aug 27, 2005 9:42 am    Post subject: Reply with quote

Take a look at http://www.lua.org/manual/5.0/manual.html#5.7 and then at the description of strftime, for example at Microsoft and you should be able to build the correct format string.

For writing on top of your background use a tutorial at http://www.luaplayer.org/tutorial/ , perhaps the animation with the smiley and write the time instead of blitting the smiley on top of the background.
Back to top
View user's profile Send private message
Squall333



Joined: 28 Apr 2005
Posts: 91

PostPosted: Sat Aug 27, 2005 9:53 am    Post subject: Reply with quote

i understand that when bliting it shows the most recent on top but how about a screen:print on top of a screen:blit is it the same?
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Aug 27, 2005 10:36 am    Post subject: Reply with quote

I'm sorry, the documentation is not as good as it could be, so you can't know the result, but did you considered to just try what I wrote?
Back to top
View user's profile Send private message
Squall333



Joined: 28 Apr 2005
Posts: 91

PostPosted: Sat Aug 27, 2005 12:35 pm    Post subject: Reply with quote

Im not as concerned about the format of the time as i am about it actually being visable
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player 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