EditorTerrainWindow.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <element type="Window">
  2. <attribute name="Name" value="TerrainWindow" />
  3. <attribute name="Is Movable" value="true" />
  4. <attribute name="Is Resizable" value="true" />
  5. <attribute name="Resize Border" value="6 6 6 6" />
  6. <attribute name="Layout Mode" value="Vertical" />
  7. <attribute name="Layout Spacing" value="4" />
  8. <attribute name="Layout Border" value="6 6 6 6" />
  9. <!-- drag bar -->
  10. <element>
  11. <attribute name="Name" value="Title Bar" />
  12. <attribute name="Min Size" value="184 16" />
  13. <attribute name="Max Size" value="2147483647 16" />
  14. <attribute name="Layout Mode" value="Horizontal" />
  15. <attribute name="Layout Spacing" value="8" />
  16. <element type="Text">
  17. <attribute name="Text" value="Terrain Editor" />
  18. <attribute name="Auto Localizable" value="false" />
  19. </element>
  20. <element type="Button" style="CloseButton">
  21. <attribute name="Name" value="CloseButton" />
  22. </element>
  23. </element>
  24. <element type="BorderImage" style="EditorDivider" />
  25. <!-- actions bar -->
  26. <element type="Text">
  27. <attribute name="Name" value="ActionsText" />
  28. <attribute name="Text" value="Actions" />
  29. <attribute name="Text Alignment" value="Left" />
  30. <attribute name="Auto Localizable" value="false" />
  31. </element>
  32. <element>
  33. <attribute name="Layout Mode" value="Horizontal" />
  34. <attribute name="Min Size" value="0 34" />
  35. <attribute name="Max Size" value="999999 34" />
  36. <element type="LineEdit">
  37. <attribute name="Name" value="CreateTerrainValue" />
  38. <attribute name="Min Size" value="40 20" />
  39. <attribute name="Max Size" value="40 20" />
  40. </element>
  41. <element type="Button">
  42. <attribute name="Name" value="CreateTerrainButton" />
  43. <attribute name="Position" value="104 0" />
  44. <attribute name="Layout Mode" value="Horizontal" />
  45. <attribute name="Layout Border" value="1 1 1 1" />
  46. <attribute name="Min Size" value="0 20" />
  47. <attribute name="Max Size" value="130 20" />
  48. <element type="Text">
  49. <attribute name="Text" value="Create Terrain" />
  50. <attribute name="Text Alignment" value="Center" />
  51. <attribute name="Auto Localizable" value="false" />
  52. </element>
  53. </element>
  54. </element>
  55. <!-- toolbar -->
  56. <element type="Text">
  57. <attribute name="Name" value="ToolsText" />
  58. <attribute name="Text" value="Tools" />
  59. <attribute name="Text Alignment" value="Left" />
  60. <attribute name="Auto Localizable" value="false" />
  61. </element>
  62. <element>
  63. <attribute name="Layout Mode" value="Horizontal" />
  64. <attribute name="Min Size" value="0 34" />
  65. <attribute name="Max Size" value="999999 34" />
  66. <element type="Checkbox" style="TerrainEditorCheckbox">
  67. <attribute name="Name" value="RaiseLowerHeight" />
  68. <element type="BorderImage">
  69. <attribute name="Texture" value="Texture2D;Textures/Editor/EditorIcons.png" />
  70. <attribute name="Image Rect" value="0 224 30 254" />
  71. <attribute name="Position" value="2 2" />
  72. <attribute name="Min Size" value="30 30" />
  73. <attribute name="Max Size" value="30 30" />
  74. </element>
  75. </element>
  76. <element type="Checkbox" style="TerrainEditorCheckbox">
  77. <attribute name="Name" value="SetHeight"/>
  78. <element type="BorderImage">
  79. <attribute name="Texture" value="Texture2D;Textures/Editor/EditorIcons.png" />
  80. <attribute name="Image Rect" value="32 224 62 254" />
  81. <attribute name="Position" value="2 2" />
  82. <attribute name="Min Size" value="30 30" />
  83. <attribute name="Max Size" value="30 30" />
  84. </element>
  85. </element>
  86. <element type="Checkbox" style="TerrainEditorCheckbox">
  87. <attribute name="Name" value="SmoothHeight" />
  88. <element type="BorderImage">
  89. <attribute name="Texture" value="Texture2D;Textures/Editor/EditorIcons.png" />
  90. <attribute name="Image Rect" value="64 224 94 254" />
  91. <attribute name="Position" value="2 2" />
  92. <attribute name="Min Size" value="30 30" />
  93. <attribute name="Max Size" value="30 30" />
  94. </element>
  95. </element>
  96. <!-- Disable these for now -->
  97. <!--<element type="Checkbox" style="TerrainEditorCheckbox">
  98. <attribute name="Name" value="PaintBrush" />
  99. <element type="BorderImage">
  100. <attribute name="Texture" value="Texture2D;Textures/Editor/EditorIcons.png" />
  101. <attribute name="Image Rect" value="96 224 126 254" />
  102. <attribute name="Position" value="2 2" />
  103. <attribute name="Min Size" value="30 30" />
  104. <attribute name="Max Size" value="30 30" />
  105. </element>
  106. </element>
  107. <element type="Checkbox" style="TerrainEditorCheckbox">
  108. <attribute name="Name" value="PaintTrees" />
  109. <element type="BorderImage">
  110. <attribute name="Texture" value="Texture2D;Textures/Editor/EditorIcons.png" />
  111. <attribute name="Image Rect" value="96 224 126 254" />
  112. <attribute name="Position" value="2 2" />
  113. <attribute name="Min Size" value="30 30" />
  114. <attribute name="Max Size" value="30 30" />
  115. </element>
  116. </element>
  117. <element type="Checkbox" style="TerrainEditorCheckbox">
  118. <attribute name="Name" value="PaintFoliage" />
  119. <element type="BorderImage">
  120. <attribute name="Texture" value="Texture2D;Textures/Editor/EditorIcons.png" />
  121. <attribute name="Image Rect" value="96 224 126 254" />
  122. <attribute name="Position" value="2 2" />
  123. <attribute name="Min Size" value="30 30" />
  124. <attribute name="Max Size" value="30 30" />
  125. </element>
  126. </element>-->
  127. </element>
  128. <!-- current tool description -->
  129. <element type="BorderImage" style="EditorToolBar">
  130. <attribute name="Name" value="CurrentToolDesc" />
  131. <attribute name="Layout Mode" value="Horizontal" />
  132. <attribute name="Layout Spacing" value="4" />
  133. <attribute name="Horiz Alignment" value="Center" />
  134. <attribute name="Min Size" value="0 30" />
  135. <attribute name="Max Size" value="999999 30" />
  136. <element type="Text">
  137. <attribute name="Name" value="CurrentToolDescText" />
  138. <attribute name="Text" value="Raise or lower terrain using the current brush" />
  139. <attribute name="Auto Localizable" value="false" />
  140. <attribute name="Position" value="16 16" />
  141. </element>
  142. </element>
  143. <!-- brushes -->
  144. <element type="Text">
  145. <attribute name="Name" value="Brushes" />
  146. <attribute name="Text" value="Brushes" />
  147. <attribute name="Text Alignment" value="Left" />
  148. <attribute name="Auto Localizable" value="false" />
  149. </element>
  150. <element type="ListView" style="ListView">
  151. <attribute name="Name" value="BrushesContainer" />
  152. </element>
  153. <!-- settings -->
  154. <element type="Text">
  155. <attribute name="Text" value="Settings" />
  156. <attribute name="Text Alignment" value="Left" />
  157. <attribute name="Auto Localizable" value="false" />
  158. <attribute name="Position" value="0 16" />
  159. </element>
  160. <element type="BorderImage" style="EditorToolBar">
  161. <attribute name="Name" value="SettingsArea" />
  162. <attribute name="Layout Mode" value="Vertical" />
  163. <attribute name="Layout Spacing" value="4" />
  164. <attribute name="Horiz Alignment" value="Center" />
  165. <element type="Text">
  166. <attribute name="Name" value="BrushSizeLabel" />
  167. <attribute name="Text" value="Brush Size" />
  168. <attribute name="Text Alignment" value="Left" />
  169. <attribute name="Auto Localizable" value="false" />
  170. </element>
  171. <element type="Slider">
  172. <attribute name="Name" value="BrushSize" />
  173. <attribute name="Min Size" value="100 10" />
  174. <attribute name="Max Size" value="999999 10" />
  175. <attribute name="Range" value="25" />
  176. <attribute name="Value" value="12.5" />
  177. </element>
  178. <element type="Text">
  179. <attribute name="Name" value="BrushOpacityLabel" />
  180. <attribute name="Text" value="Brush Opacity" />
  181. <attribute name="Text Alignment" value="Left" />
  182. <attribute name="Auto Localizable" value="false" />
  183. </element>
  184. <element type="Slider">
  185. <attribute name="Name" value="BrushOpacity" />
  186. <attribute name="Min Size" value="100 10" />
  187. <attribute name="Max Size" value="999999 10" />
  188. <attribute name="Range" value="25" />
  189. <attribute name="Value" value="12.5" />
  190. <attribute name="Is Visible" value="false" />
  191. </element>
  192. <element type="Text">
  193. <attribute name="Name" value="BrushHeightLabel" />
  194. <attribute name="Text" value="Brush Height" />
  195. <attribute name="Text Alignment" value="Left" />
  196. <attribute name="Auto Localizable" value="false" />
  197. </element>
  198. <element type="Slider">
  199. <attribute name="Name" value="BrushHeight" />
  200. <attribute name="Min Size" value="100 10" />
  201. <attribute name="Max Size" value="999999 10" />
  202. <attribute name="Range" value="25" />
  203. <attribute name="Value" value="12.5" />
  204. <attribute name="Is Visible" value="false" />
  205. </element>
  206. </element>
  207. </element>