formBasicControls.form 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. }
  42. label textBoxLabel
  43. {
  44. style = iconNoBorder
  45. position = 25, 400
  46. size = 200, 60
  47. text = Label:
  48. }
  49. textBox testTextBox
  50. {
  51. style = topLeftAlignedEntry
  52. position = 20, 450
  53. size = 250, 80
  54. text = This is a text box.
  55. consumeInputEvents = true
  56. }
  57. container radioButtonContainer
  58. {
  59. layout = LAYOUT_VERTICAL
  60. style = basic
  61. position = 330, 100
  62. size = 200, 140
  63. radioButton choice1
  64. {
  65. style = iconNoBorder
  66. text = Radio button 1.
  67. group = testRadio
  68. //position = 350, 80
  69. size = 180, 40
  70. selected = true
  71. }
  72. radioButton choice2 : choice1
  73. {
  74. text = Radio button 2.
  75. //position = 350, 130
  76. selected = false
  77. }
  78. radioButton choice3 : choice2
  79. {
  80. text = Radio button 3.
  81. //position = 350, 180
  82. }
  83. }
  84. image testImage
  85. {
  86. position = 300, 250
  87. style = basic
  88. size = 256, 256
  89. path = res/png/box-diffuse.png
  90. //srcRegion = 20, 20, 100, 100
  91. //dstRegion = 20, 20, 100, 100
  92. }
  93. button alignedButton
  94. {
  95. margin
  96. {
  97. right = 50
  98. bottom = 100
  99. }
  100. style = buttonStyle
  101. alignment = ALIGN_BOTTOM_RIGHT
  102. size = 200, 100
  103. text = Alignment: bottom-right. Right margin: 50. Bottom margin: 100.
  104. }
  105. }