formBasicControls.form 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. container radioButtonContainer
  59. {
  60. layout = LAYOUT_VERTICAL
  61. style = basic
  62. position = 330, 100
  63. size = 200, 140
  64. radioButton choice1
  65. {
  66. style = iconNoBorder
  67. text = Radio button 1.
  68. group = testRadio
  69. //position = 350, 80
  70. size = 180, 40
  71. selected = true
  72. }
  73. radioButton choice2 : choice1
  74. {
  75. text = Radio button 2.
  76. //position = 350, 130
  77. selected = false
  78. }
  79. radioButton choice3 : choice2
  80. {
  81. text = Radio button 3.
  82. //position = 350, 180
  83. }
  84. }
  85. image testImage
  86. {
  87. position = 300, 250
  88. style = basic
  89. size = 256, 256
  90. path = res/png/box-diffuse.png
  91. //srcRegion = 20, 20, 100, 100
  92. //dstRegion = 20, 20, 100, 100
  93. }
  94. button alignedButton
  95. {
  96. margin
  97. {
  98. right = 50
  99. bottom = 100
  100. }
  101. style = buttonStyle
  102. alignment = ALIGN_BOTTOM_RIGHT
  103. size = 200, 100
  104. text = Alignment: bottom-right. Right margin: 50. Bottom margin: 100.
  105. }
  106. }