formBasicControls.form 2.3 KB

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