Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function initGUI()
- -- loader
- GUI.loader = Gui.image('i/25opacity.png', screen.w/2 - 32, screen.h/2 - 32, 64, 64):alpha(1):data('dx','loader'):hide()
- -- login window
- local w, h = 200, 300
- GUI.window.login = Gui.image('i/0.png', (screen.w-w)/2, (screen.h-h)/2, w, h):alpha(1):hide():data('dx','i/gfx.png')
- local close = Gui.imagebutton('i/close.png', w-36, 4, 32, 32, GUI.window.login):click(function()
- GUI.window.login:popOut({1,0}, 0, GUI.options.closeSpeed, GUI.options.easeIn, function()
- GUI.window.login:destroy()
- end)
- end)
- local title = Gui.label('DDC: Orange', 10, 10, w-60, 30, GUI.window.login):font(font.normal)
- Gui.image('i/hr.png', 0, 37, w, 2, GUI.window.login)
- local footer = Gui.image('i/servercolor.png', 0, 38, w, 64, GUI.window.login):alpha(0.7)
- Gui.image('i/hr.png', 0, 101, w, 2, GUI.window.login)
- local text = Gui.label('Please enter your forum account name (NOT the "displayed username") and password to login:', 10, 10, w-20, 60, footer):font(font.small):align('left', 'top', true)
- local login = Gui.input('Account Name', 10, 110, w-20, 30, GUI.window.login):font(font.normal)
- local pass = Gui.input('Password', 10, 150, w-20, 30, GUI.window.login):font(font.normal):masked(true)
- local remember = Gui.checkbox('Auto-login me by serial', 10, 190, w-20, 20, GUI.window.login):font(font.small):alpha(0.5)
- local submit = Gui.button('Log In', 10, 220, w-20, 30, GUI.window.login):font(font.normal)
- local guest = Gui.button('Play as Guest', 10, 260, w-20, 30, GUI.window.login):font(font.small)
- GUI.window.login:popIn({1,0}, 0.1, GUI.options.openSpeed, GUI.options.easeOut):click(function()
- if GUI.loader:visible() then
- GUI.loader:popOut(1, 0, GUI.options.closeSpeed, GUI.options.easeOut)
- else
- GUI.loader:popIn(1, 0, GUI.options.openSpeed, GUI.options.easeIn)
- end
- end)
- --
- showCursor(true)
- end
- addEventHandler('onClientResourceStart', resourceRoot, initGUI)
Add Comment
Please, Sign In to add comment