formBasicControls.form 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. form basicControls
  2. {
  3. layout = LAYOUT_ABSOLUTE
  4. size = 600, 600
  5. consumeInputEvents = true
  6. batchingEnabled = false
  7. label title
  8. {
  9. position = 185, 0
  10. size = 200, 50
  11. text = This is a label.
  12. }
  13. button testButton
  14. {
  15. position = 20, 80
  16. size = 200, 100
  17. text = This is a button with a hover state.
  18. }
  19. checkbox testCheckbox
  20. {
  21. position = 20, 220
  22. size = 200, 40
  23. text = This is a checkbox.
  24. }
  25. slider testSlider
  26. {
  27. position = 25, 315
  28. size = 190, 60
  29. orientation = HORIZONTAL
  30. min = -100
  31. max = 100
  32. value = 0
  33. //step = 5
  34. text = This is a slider.
  35. valueTextVisible = true
  36. consumeInputEvents = true
  37. }
  38. label textBoxLabel
  39. {
  40. //style = iconNoBorder
  41. position = 25, 400
  42. size = 200, 60
  43. text = Label:
  44. }
  45. textBox testTextBox
  46. {
  47. position = 20, 450
  48. size = 250, 80
  49. text = This is a text box.
  50. consumeInputEvents = true
  51. }
  52. textBox testPasswordTextBox
  53. {
  54. position = 20, 540
  55. size = 250, 40
  56. text = PASSWORD
  57. consumeInputEvents = true
  58. inputMode = PASSWORD
  59. }
  60. container radioButtonContainer
  61. {
  62. layout = LAYOUT_VERTICAL
  63. position = 330, 75
  64. autoWidth = AUTO_SIZE_FIT
  65. autoHeight = AUTO_SIZE_FIT
  66. radioButton choice1
  67. {
  68. text = Radio button 1.
  69. group = testRadio
  70. autoWidth = AUTO_SIZE_FIT
  71. autoHeight = AUTO_SIZE_FIT
  72. selected = true
  73. }
  74. radioButton choice2 : choice1
  75. {
  76. text = Radio button 2.
  77. selected = false
  78. }
  79. radioButton choice3 : choice2
  80. {
  81. text = Radio button 3.
  82. }
  83. }
  84. image testImage
  85. {
  86. position = 300, 250
  87. autoWidth = AUTO_SIZE_FIT
  88. autoHeight = AUTO_SIZE_FIT
  89. path = res/png/logo.png
  90. }
  91. button alignedButton
  92. {
  93. margin
  94. {
  95. right = 50
  96. bottom = 100
  97. }
  98. alignment = ALIGN_BOTTOM_RIGHT
  99. size = 200, 100
  100. text = Alignment: bottom-right. Right margin: 50. Bottom margin: 100.
  101. }
  102. }