signup.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. return {
  2. { id = 'background',
  3. kind = 'Element',
  4. properties = {
  5. width = .999999,
  6. height = .999999,
  7. background = {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 = 'aeromatics',
  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 = 'aeromatics',
  33. text = '',
  34. placeholder = 'Password',
  35. border = {255, 255, 255}
  36. }
  37. },
  38. { id = 'passwordRetype',
  39. kind = 'Password',
  40. properties = {
  41. x = .2,
  42. y = .66,
  43. width = .4,
  44. height = .05,
  45. padding = 8,
  46. font = 'aeromatics',
  47. text = '',
  48. placeholder = 'Retype Password',
  49. border = {255, 255, 255}
  50. }
  51. },
  52. { id = 'signupButton',
  53. kind = 'Button',
  54. properties = {
  55. x = .2,
  56. y = .74,
  57. width = .1,
  58. height = .05,
  59. padding = 8,
  60. font = 'aeromatics',
  61. text = 'Sign up',
  62. center = true,
  63. border = {255, 255, 255}
  64. }
  65. },
  66. { id = 'cancelButton',
  67. kind = 'Button',
  68. properties = {
  69. x = .32,
  70. y = .74,
  71. width = .1,
  72. height = .05,
  73. padding = 8,
  74. font = 'aeromatics',
  75. text = 'Cancel',
  76. center = true,
  77. border = {255, 255, 255}
  78. }
  79. },
  80. { id = 'exitButton',
  81. kind = 'Button',
  82. properties = {
  83. x = .82,
  84. y = .90,
  85. width = .1,
  86. height = .05,
  87. padding = 8,
  88. font = 'aeromatics',
  89. text = 'Quit',
  90. center = true,
  91. border = {255, 255, 255}
  92. }
  93. }
  94. }