GUI tutorial please ?
Posted: Sun Nov 09, 2014 12:36 am
Hello,
I have a very hard time figuring how to create a GUI. What I would like is a rectangle with some text in it, and "yes" and "no" buttons.
I really don't see how to do that. I tried
from john, but can't get it to work. Any help please ?
I have a very hard time figuring how to create a GUI. What I would like is a rectangle with some text in it, and "yes" and "no" buttons.
I really don't see how to do that. I tried
Code: Select all
skin1 = {
main_panel = {"panel1", 10, 10, 100, 50},
button_1 = {"but1", 5, 5, 100, 30, bgColor = {255,0,0,100}, text = "Click Me!"},
}
function doGui()
local skin = skin1;
gui.panel(skin.main_panel)
if gui.button(skin.button_1) then ... end
end