And what bout this ?
-------------------------------------
-- Code generated by DKR QT to Lua 0.1.7 --
-- Source: gui2.ui --
-- Date: 01/08/2011 - 08:20:50 --
-------------------------------------
function build_TabWidget()
local gui = {}
gui._placeHolders = {}
local screenWidth, screenHeight = guiGetScreenSize()
local windowWidth, windowHeight = 800, 615
local left = screenWidth/2 - windowWidth/2
local top = screenHeight/2 - windowHeight/2
gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "TabWidget", false)
guiWindowSetSizable(gui["_root"], false)
return gui, windowWidth, windowHeight
end
function build_tab(parent)
local gui = {}
gui._placeHolders = {}
gui["label"] = guiCreateLabel(372, 50, 61, 41, "Rules", false, parent)
guiSetFont(gui["label"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label"], "left", false)
guiLabelSetVerticalAlign(gui["label"], "center")
gui._placeHolders["textBrowser"] = {left = 12, top = 110, width = 781, height = 411, parent = parent}
gui["pushButton"] = guiCreateButton(262, 550, 91, 41, "Accept", false, parent)
if on_pushButton_clicked then
addEventHandler("onClientGUIClick", gui["pushButton"], on_pushButton_clicked, false)
end
gui["pushButton_2"] = guiCreateButton(422, 550, 91, 41, "Decline", false, parent)
if on_pushButton_2_clicked then
addEventHandler("onClientGUIClick", gui["pushButton_2"], on_pushButton_2_clicked, false)
end
gui["checkBox"] = guiCreateCheckBox(12, 530, 361, 21, "I accept the Rules and Conditions and i will be play fair !", false, false, parent)
guiSetFont(gui["checkBox"], "default-bold-small")
gui["label_2"] = guiCreateLabel(22, 190, 101, 31, "*DONT HACK!", false, parent)
guiSetFont(gui["label_2"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label_2"], "left", false)
guiLabelSetVerticalAlign(gui["label_2"], "center")
gui["label_3"] = guiCreateLabel(22, 220, 101, 31, "*DONT ABUSE!", false, parent)
guiSetFont(gui["label_3"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label_3"], "left", false)
guiLabelSetVerticalAlign(gui["label_3"], "center")
gui["label_4"] = guiCreateLabel(22, 250, 161, 31, "*DONT FLOOD THE CHAT!", false, parent)
guiSetFont(gui["label_4"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label_4"], "left", false)
guiLabelSetVerticalAlign(gui["label_4"], "center")
gui["label_5"] = guiCreateLabel(22, 280, 101, 31, "*DONT BOTHER!", false, parent)
guiSetFont(gui["label_5"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label_5"], "left", false)
guiLabelSetVerticalAlign(gui["label_5"], "center")
gui["label_6"] = guiCreateLabel(22, 310, 211, 31, "*DONT USE MODIFIED HANDLING!", false, parent)
guiSetFont(gui["label_6"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label_6"], "left", false)
guiLabelSetVerticalAlign(gui["label_6"], "center")
gui["label_7"] = guiCreateLabel(22, 350, 171, 21, "*DONT USE VISUAL MODS!", false, parent)
guiSetFont(gui["label_7"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label_7"], "left", false)
guiLabelSetVerticalAlign(gui["label_7"], "center")
gui._placeHolders["line"] = {left = 12, top = 359, width = 781, height = 91, parent = parent}
gui["label_8"] = guiCreateLabel(32, 420, 101, 31, "Have Fun !", false, parent)
guiSetFont(gui["label_8"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label_8"], "left", false)
guiLabelSetVerticalAlign(gui["label_8"], "center")
gui["label_9"] = guiCreateLabel(282, 480, 751, 61, "Every rule break will result ban or permaban .", false, parent)
guiSetFont(gui["label_9"], "default-small")
guiLabelSetHorizontalAlign(gui["label_9"], "left", false)
guiLabelSetVerticalAlign(gui["label_9"], "center")
return gui
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 build_tab(parent)
local gui = {}
gui._placeHolders = {}
gui["label_10"] = guiCreateLabel(12, 60, 121, 51, "Admins", false, parent)
guiSetFont(gui["label_10"], "default-bold-small")
guiLabelSetHorizontalAlign(gui["label_10"], "left", false)
guiLabelSetVerticalAlign(gui["label_10"], "center")
return gui
end
-- End of DKR QT to Lua code --