EditorTerrainWindow.xml 11 KB

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