Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------
- -- Code generated by DKR QT to Lua 0.1.7 --
- -- Source: login.ui --
- -- Date: 23/05/2012 - 19:10:38 --
- -------------------------------------
- function build_window()
- local gui = {}
- gui._placeHolders = {}
- local screenWidth, screenHeight = guiGetScreenSize()
- local windowWidth, windowHeight = 554, 480
- local left = screenWidth/2 - windowWidth/2
- local top = screenHeight/2 - windowHeight/2
- gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Form", false)
- guiWindowSetSizable(gui["_root"], false)
- gui["label_2"] = guiCreateLabel(10, 55, 71, 21, "Parola:", false, gui["_root"])
- guiSetFont(gui["label_2"], "default-bold-small")
- guiLabelSetHorizontalAlign(gui["label_2"], "left", false)
- guiLabelSetVerticalAlign(gui["label_2"], "center")
- gui["label"] = guiCreateLabel(10, 25, 71, 21, "Utilizator:", false, gui["_root"])
- guiSetFont(gui["label"], "default-bold-small")
- guiLabelSetHorizontalAlign(gui["label"], "left", false)
- guiLabelSetVerticalAlign(gui["label"], "center")
- gui["lineEdit"] = guiCreateEdit(100, 25, 151, 20, "", false, gui["_root"])
- guiEditSetMaxLength(gui["lineEdit"], 32767)
- gui["lineEdit_2"] = guiCreateEdit(101, 55, 151, 20, "", false, gui["_root"])
- guiEditSetMaxLength(gui["lineEdit_2"], 32767)
- gui["checkBox"] = guiCreateCheckBox(20, 85, 141, 17, "Retine informatiile", false, false, gui["_root"])
- guiSetFont(gui["checkBox"], "default-bold-small")
- gui["pushButton"] = guiCreateButton(10, 115, 75, 23, "Logare", false, gui["_root"])
- guiSetFont(gui["pushButton"], "default-bold-small")
- if on_pushButton_clicked then
- addEventHandler("onClientGUIClick", gui["pushButton"], on_pushButton_clicked, false)
- end
- gui["pushButton_2"] = guiCreateButton(90, 115, 105, 23, "Creaza un cont", false, gui["_root"])
- guiSetFont(gui["pushButton_2"], "default-bold-small")
- if on_pushButton_2_clicked then
- addEventHandler("onClientGUIClick", gui["pushButton_2"], on_pushButton_2_clicked, false)
- end
- gui["pushButton_3"] = guiCreateButton(200, 115, 138, 23, "Recupereaza parola", false, gui["_root"])
- guiSetFont(gui["pushButton_3"], "default-bold-small")
- if on_pushButton_3_clicked then
- addEventHandler("onClientGUIClick", gui["pushButton_3"], on_pushButton_3_clicked, false)
- end
- gui["tabWidget"] = guiCreateTabPanel(10, 145, 531, 321, false, gui["_root"])
- gui["tab"] = guiCreateTab("Stiri", gui["tabWidget"])
- gui["plainTextEdit"] = guiCreateMemo(10, 10, 501, 271, "Serverul este in versiunea 0.1 Alpha", false, gui["tab"])
- gui["tab_2"] = guiCreateTab("Informatii", gui["tabWidget"])
- gui["plainTextEdit_2"] = guiCreateMemo(10, 10, 501, 271, "Features:\nMySQL System\nAccount system", false, gui["tab_2"])
- gui["tab_3"] = guiCreateTab("Statistici", gui["tabWidget"])
- gui["plainTextEdit_3"] = guiCreateMemo(10, 10, 501, 271, "Jucatori inregistrati:", false, gui["tab_3"])
- return gui, windowWidth, windowHeight
- end
- function on_pushButton_clicked(button, state, absoluteX, absoluteY)
- if (button ~= "left") or (state ~= "up") then
- return
- end
- --TODO: Implement your button click handler here
- end
- function on_pushButton_2_clicked(button, state, absoluteX, absoluteY)
- if (button ~= "left") or (state ~= "up") then
- return
- end
- --TODO: Implement your button click handler here
- end
- function on_pushButton_3_clicked(button, state, absoluteX, absoluteY)
- if (button ~= "left") or (state ~= "up") then
- return
- end
- --TODO: Implement your button click handler here
- end
- -- End of DKR QT to Lua code --
Advertisement
Add Comment
Please, Sign In to add comment