Advertising (This ad goes away for registered users. You can Login or Register)

I can port your Lua homebrews to LuaDEV

Most of the homebrews discussed in this forum can be downloaded here
Flameaim
Banned
Posts: 157
Joined: Tue Mar 22, 2011 11:10 pm

Re: I can port your Lua homebrews into LuaDEV

Post by Flameaim »

so again how did you know about this.
Advertising
10$man
Posts: 53
Joined: Thu Feb 03, 2011 9:18 pm

Re: I can port your Lua homebrews into LuaDEV

Post by 10$man »

sorry, you didn't understand what i asked. I meant is there functions that deal with the camera? So i can move the camera and rotate it?
Advertising
xerpi
HBL Collaborator
Posts: 139
Joined: Sat Apr 23, 2011 10:45 am
Location: Barcelona

Re: I can port your Lua homebrews into LuaDEV

Post by xerpi »

Flameaim wrote:so again how did you know about this.
I know all this stuff because I have DeViaNTe added in messenger and in psp.scenebeta LuaDEV is most used Luaplayer and a lot of people have questions and I answer the most of them.
Flameaim
Banned
Posts: 157
Joined: Tue Mar 22, 2011 11:10 pm

Re: I can port your Lua homebrews into LuaDEV

Post by Flameaim »

thank you carry on now :D
ASKidwai
Posts: 937
Joined: Mon Jan 10, 2011 7:42 am
Location: 'Ere and There
Contact:

Re: I can port your Lua homebrews into LuaDEV

Post by ASKidwai »

I need help with the os.mesasage()

I am using the English manual and it couldn't really help. In Euphoria you could set a custom background while the System.msgDialog() was called. In this, I did find something like it but it had function bottom and function top.

A sample would be great :D

thanks
Image
Image
Image
Image
xerpi
HBL Collaborator
Posts: 139
Joined: Sat Apr 23, 2011 10:45 am
Location: Barcelona

Re: I can port your Lua homebrews into LuaDEV

Post by xerpi »

ASKidwai wrote:I need help with the os.mesasage()

I am using the English manual and it couldn't really help. In Euphoria you could set a custom background while the System.msgDialog() was called. In this, I did find something like it but it had function bottom and function top.

A sample would be great :D

thanks
As you can see, in the manual, there are some functions repeated, this is because these functions can get diferent parameters, (the best example of this is the screen.print), so:
- if you want just a message: os.message("hello")
-if you want to show accept /cancel: if os.message("hello",1) == 1 then blabla end --(in this message if the user press acept, it'll return 1)
- a message with backgorund_ os.message("hello",1,mypic)

I think the other one is not necessary.
ASKidwai
Posts: 937
Joined: Mon Jan 10, 2011 7:42 am
Location: 'Ere and There
Contact:

Re: I can port your Lua homebrews into LuaDEV

Post by ASKidwai »

OK. Let's say for example, I want it to say "Do you want to quit?", this should be my code

Code: Select all

bg = image.load("pic.png")
os.message("Do you want to quit?", 1, bg)

if os.message == 1 then
os.quit()
else 
bg:blit(0,0)
end
please correct it if it is wrong :D
Image
Image
Image
Image
xerpi
HBL Collaborator
Posts: 139
Joined: Sat Apr 23, 2011 10:45 am
Location: Barcelona

Re: I can port your Lua homebrews into LuaDEV

Post by xerpi »

ASKidwai wrote:OK. Let's say for example, I want it to say "Do you want to quit?", this should be my code

Code: Select all

bg = image.load("pic.png")
os.message("Do you want to quit?", 1, bg)

if os.message == 1 then
os.quit()
else 
bg:blit(0,0)
end
please correct it if it is wrong :D
It isn't correct at all, it should be:

Code: Select all

bg = image.load("pic.png")

if os.message("Do you want to quit?", 1, bg) == 1 then
            os.quit()
else 
            bg:blit(0,0)
end
But I don't understand why do you use else bg:blit(0,0), you want to show this image if the user cancel the message?
ASKidwai
Posts: 937
Joined: Mon Jan 10, 2011 7:42 am
Location: 'Ere and There
Contact:

Re: I can port your Lua homebrews into LuaDEV

Post by ASKidwai »

Well, it was all hypothetical and for the sake of simplicity. If the user presses the option for back then that image should be blitted. Isn't that the right way?
Image
Image
Image
Image
xerpi
HBL Collaborator
Posts: 139
Joined: Sat Apr 23, 2011 10:45 am
Location: Barcelona

Re: I can port your Lua homebrews into LuaDEV

Post by xerpi »

ASKidwai wrote:Well, it was all hypothetical and for the sake of simplicity. If the user presses the option for back then that image should be blitted. Isn't that the right way?
Mmm but if you put this, the image will be blitted only in one loop of the while, so you can't see it.
Locked

Return to “Homebrews”