I can port your Lua homebrews to LuaDEV
Re: I can port your Lua homebrews into LuaDEV
so again how did you know about this.
Advertising
Re: I can port your Lua homebrews into LuaDEV
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
Re: I can port your Lua homebrews into LuaDEV
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 wrote:so again how did you know about this.
Re: I can port your Lua homebrews into LuaDEV
thank you carry on now
Re: I can port your Lua homebrews into LuaDEV
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
thanks
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
thanks
Re: I can port your Lua homebrews into LuaDEV
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: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
thanks
- 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.
Re: I can port your Lua homebrews into LuaDEV
OK. Let's say for example, I want it to say "Do you want to quit?", this should be my code
please correct it if it is wrong
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
Re: I can port your Lua homebrews into LuaDEV
It isn't correct at all, it should be:ASKidwai wrote:OK. Let's say for example, I want it to say "Do you want to quit?", this should be my codeplease correct it if it is wrongCode: 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
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
Re: I can port your Lua homebrews into LuaDEV
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?
Re: I can port your Lua homebrews into LuaDEV
Mmm but if you put this, the image will be blitted only in one loop of the while, so you can't see it.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?