login.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. return {
  2. { id = 'background',
  3. kind = 'Element',
  4. properties = {
  5. width = .999999,
  6. height = .999999,
  7. background = {0, 0, 0, 0}
  8. }
  9. },
  10. { id = 'username',
  11. kind = 'TextField',
  12. properties = {
  13. x = .2,
  14. y = .5,
  15. width = .4,
  16. height = .05,
  17. padding = 8,
  18. font = 'mesmerize',
  19. text = '',
  20. placeholder = 'Username',
  21. border = {255, 255, 255}
  22. }
  23. },
  24. { id = 'password',
  25. kind = 'Password',
  26. properties = {
  27. x = .2,
  28. y = .58,
  29. width = .4,
  30. height = .05,
  31. padding = 8,
  32. font = 'mesmerize',
  33. text = '',
  34. placeholder = 'Password',
  35. border = {255, 255, 255}
  36. }
  37. },
  38. { id = 'loginButton',
  39. kind = 'Button',
  40. properties = {
  41. x = .2,
  42. y = .66,
  43. width = .1,
  44. height = .05,
  45. padding = 8,
  46. font = 'mesmerize',
  47. text = 'Login',
  48. center = true,
  49. border = {255, 255, 255}
  50. }
  51. },
  52. { id = 'signupButton',
  53. kind = 'Button',
  54. properties = {
  55. x = .5,
  56. y = .66,
  57. width = .1,
  58. height = .05,
  59. padding = 8,
  60. font = 'mesmerize',
  61. text = 'Sign up',
  62. center = true
  63. }
  64. },
  65. { id = 'exitButton',
  66. kind = 'Button',
  67. properties = {
  68. x = .82,
  69. y = .90,
  70. width = .1,
  71. height = .05,
  72. padding = 8,
  73. font = 'mesmerize',
  74. text = 'Quit',
  75. center = true,
  76. border = {255, 255, 255}
  77. }
  78. }
  79. }