ToolboxDialog.gui.taml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. <GuiSpriteCtrl
  2. Name="ToolboxDialog"
  3. Profile="GuiDefaultProfile"
  4. HorizSizing="relative"
  5. VertSizing="relative"
  6. Position="0 0"
  7. Extent="1024 768"
  8. MinExtent="320 320"
  9. Visible="1"
  10. Image="@asset=Sandbox:blueGradient"
  11. imageColor="255 255 255 220"
  12. constrainProportions="0">
  13. <!-- Close Toolbox -->
  14. <GuiButtonCtrl
  15. Name="ToolBoxCancelButton"
  16. Profile="BlueButtonProfile"
  17. Text="Hide Tools"
  18. ButtonType="PushButton"
  19. command="toggleToolbox(true);"
  20. canSaveDynamicFields="0"
  21. isContainer="0"
  22. HorizSizing="relative"
  23. VertSizing="relative"
  24. Position="924 738"
  25. Extent="100 30"
  26. MinExtent="8 2"
  27. canSave="1"
  28. Visible="1"
  29. Active="1"
  30. hovertime="1000"
  31. groupNum="-1"
  32. useMouseEvents="1" />
  33. <!-- Background and Resolution Panel -->
  34. <GuiControl
  35. Profile="GuiDefaultProfile"
  36. HorizSizing="relative"
  37. VertSizing="relative"
  38. Position="761 600"
  39. Extent="320 132">
  40. <!-- Background Color -->
  41. <GuiControl
  42. canSaveDynamicFields="0"
  43. isContainer="0"
  44. Profile="GuiLabelProfile"
  45. HorizSizing="relative"
  46. VertSizing="relative"
  47. Position="0 4"
  48. Extent="128 15"
  49. MinExtent="8 2"
  50. canSave="1"
  51. Visible="1"
  52. Active="0"
  53. hovertime="1000"
  54. toolTipProfile="GuiToolTipProfile"
  55. toolTip="Selects the background color for the scene."
  56. text="Background Color:"
  57. maxLength="255"
  58. truncate="0" />
  59. <GuiDropDownCtrl
  60. Name="BackgroundColorSelectList"
  61. canSaveDynamicFields="0"
  62. isContainer="0"
  63. Profile="GuiDropDownProfile"
  64. HorizSizing="relative"
  65. VertSizing="relative"
  66. Position="0 22"
  67. Extent="180 25"
  68. MinExtent="8 2"
  69. canSave="1"
  70. Visible="1"
  71. Active="1"
  72. hovertime="1000"
  73. toolTipProfile="GuiToolTipProfile"
  74. toolTip="Selects the background color for the scene."
  75. tooltipWidth="250"
  76. scrollBarThickness="12" />
  77. <!-- Resolution -->
  78. <GuiControl
  79. Name="ResolutionSelectLabel"
  80. canSaveDynamicFields="0"
  81. isContainer="0"
  82. Profile="GuiLabelProfile"
  83. HorizSizing="relative"
  84. VertSizing="relative"
  85. Position="0 60"
  86. Extent="128 15"
  87. MinExtent="8 2"
  88. canSave="1"
  89. Visible="0"
  90. Active="1"
  91. hovertime="1000"
  92. toolTipProfile="GuiToolTipProfile"
  93. toolTip="Selects the screen resolution for the window."
  94. text="Resolution:"
  95. maxLength="255"
  96. truncate="0" />
  97. <GuiDropDownCtrl
  98. Name="ResolutionSelectList"
  99. canSaveDynamicFields="0"
  100. isContainer="0"
  101. Profile="GuiDropDownProfile"
  102. HorizSizing="relative"
  103. VertSizing="relative"
  104. Position="0 78"
  105. Extent="180 25"
  106. MinExtent="8 2"
  107. canSave="1"
  108. Visible="0"
  109. Active="1"
  110. hovertime="1000"
  111. toolTipProfile="GuiToolTipProfile"
  112. toolTip="Selects the screen resolution for the window."
  113. tooltipWidth="250" />
  114. <!-- Fullscreen Option -->
  115. <GuiCheckBoxCtrl
  116. Name="FullscreenOptionButton"
  117. canSaveDynamicFields="0"
  118. isContainer="0"
  119. Profile="GuiCheckBoxProfile"
  120. HorizSizing="relative"
  121. VertSizing="relative"
  122. Position="0 102"
  123. Extent="180 30"
  124. MinExtent="8 2"
  125. canSave="1"
  126. Visible="0"
  127. Active="1"
  128. hovertime="1000"
  129. useMouseEvents="1"
  130. Text="Fullscreen"
  131. tooltipprofile="GuiToolTipProfile"
  132. ToolTip="Whether the window is full-screen or not."
  133. Command="setFullscreenOption(FullscreenOptionButton.getStateOn());"/>
  134. </GuiControl>
  135. <!-- Toy Custom Controls -->
  136. <GuiScrollCtrl
  137. Name="CustomControlsScroller"
  138. canSaveDynamicFields="1"
  139. isContainer="1"
  140. Profile="GuiTransparentScrollProfile"
  141. ThumbProfile = "GuiScrollThumbProfile"
  142. TrackProfile = "GuiScrollTrackProfile"
  143. ArrowProfile = "GuiScrollArrowProfile"
  144. HorizSizing="relative"
  145. VertSizing="relative"
  146. Position="365 30"
  147. Extent="315 730"
  148. MinExtent="315 730"
  149. canSave="1"
  150. Visible="1"
  151. Active="1"
  152. willFirstRespond="1"
  153. hScrollBar="alwaysOff"
  154. vScrollBar="dynamic"
  155. constantThumbHeight="0"
  156. showArrowButtons="1"
  157. scrollBarThickness="14" >
  158. <GuiControl
  159. Name="ToyCustomControls"
  160. Profile="GuiSunkenContainerProfile"
  161. HorizSizing="relative"
  162. VertSizing="relative"
  163. Position="0 0"
  164. Extent="301 705" />
  165. </GuiScrollCtrl>
  166. <!-- Toy Selection Panel -->
  167. <GuiControl
  168. Profile="GuiDefaultProfile"
  169. HorizSizing="relative"
  170. VertSizing="relative"
  171. Position="32 32"
  172. Extent="300 900">
  173. <!-- Toy Category -->
  174. <GuiControl
  175. canSaveDynamicFields="0"
  176. isContainer="0"
  177. Profile="GuiLabelProfile"
  178. HorizSizing="relative"
  179. VertSizing="relative"
  180. Position="0 0"
  181. Extent="120 15"
  182. MinExtent="8 2"
  183. canSave="1"
  184. Visible="1"
  185. Active="0"
  186. hovertime="1000"
  187. toolTipProfile="GuiToolTipProfile"
  188. toolTip="Selects the toy category to play with."
  189. text="Toy Category:"
  190. maxLength="255"
  191. truncate="0" />
  192. <GuiTextEditCtrl
  193. Name="ToyCategorySelectList"
  194. Position="22 18"
  195. Extent="170 25"
  196. MinExtent="25 2"
  197. HorizSizing="relative"
  198. VertSizing="relative"
  199. Text=" "
  200. toy="Sandbox"
  201. shouldResetToy="0"
  202. callback="switchCategory"
  203. isContainer="0"
  204. active="1"
  205. Profile="GuiSpinnerProfile"
  206. tooltipprofile="GuiToolTipProfile"
  207. hovertime="1000" />
  208. <GuiButtonCtrl
  209. Name="CategoryDownButton"
  210. command="ToyCategorySelectList.previousCategory();"
  211. canSaveDynamicFields="0"
  212. isContainer="0"
  213. Profile="GuiMinusButtonProfile"
  214. HorizSizing="relative"
  215. VertSizing="relative"
  216. Position="0 18"
  217. Extent="22 25"
  218. MinExtent="8 2"
  219. canSave="1"
  220. Visible="1"
  221. Active="1"
  222. hovertime="1000"
  223. text="" />
  224. <GuiButtonCtrl
  225. Name="CategoryUpButton"
  226. command="ToyCategorySelectList.nextCategory();"
  227. canSaveDynamicFields="0"
  228. isContainer="0"
  229. Profile="GuiPlusButtonProfile"
  230. HorizSizing="relative"
  231. VertSizing="relative"
  232. Position="192 18"
  233. Extent="22 25"
  234. MinExtent="8 2"
  235. canSave="1"
  236. Visible="1"
  237. Active="1"
  238. text="" />
  239. <!-- Toy Selection -->
  240. <GuiButtonCtrl
  241. Name="PreviousToyButton"
  242. canSaveDynamicFields="0"
  243. command="ToyListScroller.scrollToPrevious();"
  244. isContainer="0"
  245. Profile="GuiNorthButtonProfile"
  246. HorizSizing="relative"
  247. VertSizing="relative"
  248. Position="105 65"
  249. Extent="69 23"
  250. MinExtent="12 4"
  251. canSave="1"
  252. Visible="1"
  253. Active="1"
  254. Text="" />
  255. <GuiButtonCtrl
  256. Name="NextToyButton"
  257. command="ToyListScroller.scrollToNext();"
  258. canSaveDynamicFields="0"
  259. isContainer="0"
  260. Profile="GuiSouthButtonProfile"
  261. HorizSizing="relative"
  262. VertSizing="relative"
  263. Position="105 700"
  264. Extent="69 23"
  265. MinExtent="12 4"
  266. canSave="1"
  267. Visible="1"
  268. Active="1"
  269. Text="" />
  270. <!-- Toy Selection Scrollbox -->
  271. <GuiControl
  272. Name="ToyScrollerContainer"
  273. canSaveDynamicFields="0"
  274. isContainer="1"
  275. Profile="GuiSunkenContainerProfile"
  276. HorizSizing="relative"
  277. VertSizing="relative"
  278. Position="0 95"
  279. Extent="280 600"
  280. MinExtent="280 600"
  281. canSave="1"
  282. Visible="1"
  283. Active="1"
  284. hovertime="1000">
  285. <GuiScrollCtrl
  286. Name="ToyListScroller"
  287. canSaveDynamicFields="1"
  288. isContainer="1"
  289. Profile="GuiTransparentScrollProfile"
  290. ThumbProfile = "GuiScrollThumbProfile"
  291. TrackProfile = "GuiScrollTrackProfile"
  292. ArrowProfile = "GuiScrollArrowProfile"
  293. HorizSizing="relative"
  294. VertSizing="relative"
  295. Position="0 5"
  296. Extent="258 575"
  297. MinExtent="258 575"
  298. canSave="1"
  299. Visible="1"
  300. Active="1"
  301. hovertime="1000"
  302. willFirstRespond="1"
  303. hScrollBar="alwaysOff"
  304. vScrollBar="alwaysOn"
  305. constantThumbHeight="0"
  306. showArrowButtons="0"
  307. scrollBarThickness="14" >
  308. <GuiGridCtrl
  309. Name="ToyListArray"
  310. canSaveDynamicFields="0"
  311. internalName="objectList"
  312. isContainer="1"
  313. Profile="GuiTransparentProfile"
  314. HorizSizing="relative"
  315. VertSizing="relative"
  316. Position="0 1"
  317. Extent="230 300"
  318. MinExtent="230 50"
  319. canSave="1"
  320. Visible="1"
  321. Active="1"
  322. tooltipprofile="GuiToolTipProfile"
  323. hovertime="1000"
  324. MaxColCount="1"
  325. CellSizeX="188"
  326. CellSizeY="50"
  327. CellSpacingX="0"
  328. CellSpacingY="8"
  329. CellModeX="Variable" />
  330. </GuiScrollCtrl>
  331. </GuiControl>
  332. </GuiControl>
  333. <!-- Options Panel -->
  334. <GuiControl
  335. Profile="GuiSunkenContainerProfile"
  336. HorizSizing="relative"
  337. VertSizing="relative"
  338. Position="750 30"
  339. Extent="240 566"
  340. minExtent="240 566">
  341. <GuiControl
  342. Profile="GuiLabelProfile"
  343. HorizSizing="relative"
  344. VertSizing="relative"
  345. Position="0 0"
  346. Extent="240 20"
  347. MinExtent="24 2"
  348. canSave="1"
  349. Visible="1"
  350. Active="0"
  351. hovertime="1000"
  352. toolTipProfile="GuiToolTipProfile"
  353. toolTip="Toggles debug rendering modes."
  354. text="Debug Options:" />
  355. <!-- Metrics Option -->
  356. <GuiCheckBoxCtrl
  357. name="MetricsOptionCheckBox"
  358. Command="setMetricsOption(MetricsOptionCheckBox.getStateOn());"
  359. canSaveDynamicFields="0"
  360. isContainer="0"
  361. Profile="GuiCheckBoxProfile"
  362. HorizSizing="relative"
  363. VertSizing="relative"
  364. Position="0 20"
  365. Extent="180 30"
  366. MinExtent="8 2"
  367. canSave="1"
  368. Visible="1"
  369. Active="1"
  370. tooltipprofile="GuiToolTipProfile"
  371. ToolTip="Displays the complete debug metrics for a scene."
  372. hovertime="100"
  373. text="Full Metrics" />
  374. <!-- FPS Metrics Option -->
  375. <GuiCheckBoxCtrl
  376. name="FpsMetricsOptionCheckBox"
  377. Command="setFPSMetricsOption(FpsMetricsOptionCheckBox.getStateOn());"
  378. canSaveDynamicFields="0"
  379. isContainer="0"
  380. Profile="GuiCheckBoxProfile"
  381. HorizSizing="relative"
  382. VertSizing="relative"
  383. Position="0 65"
  384. Extent="180 30"
  385. MinExtent="8 2"
  386. canSave="1"
  387. Visible="1"
  388. Active="1"
  389. tooltipprofile="GuiToolTipProfile"
  390. ToolTip="Displays the current frames per second if Full Metrics is off."
  391. hovertime="100"
  392. text="FPS Metric"/>
  393. <!-- Controllers Option -->
  394. <GuiCheckBoxCtrl
  395. name="ControllersOptionCheckBox"
  396. Command="setControllersOption(ControllersOptionCheckBox.getStateOn());"
  397. canSaveDynamicFields="0"
  398. isContainer="0"
  399. Profile="GuiCheckBoxProfile"
  400. HorizSizing="relative"
  401. VertSizing="relative"
  402. Position="0 110"
  403. Extent="180 30"
  404. MinExtent="8 2"
  405. canSave="1"
  406. Visible="1"
  407. Active="1"
  408. tooltipprofile="GuiToolTipProfile"
  409. ToolTip="Displays a controller overlay if available."
  410. hovertime="100"
  411. text="Controllers"
  412. groupNum="-1"
  413. buttonType="ToggleButton"
  414. useMouseEvents="0" />
  415. <!-- Joints Option -->
  416. <GuiCheckBoxCtrl
  417. name="JointsOptionCheckBox"
  418. Command="setJointsOption(JointsOptionCheckBox.getStateOn());"
  419. canSaveDynamicFields="0"
  420. isContainer="0"
  421. Profile="GuiCheckBoxProfile"
  422. HorizSizing="relative"
  423. VertSizing="relative"
  424. Position="0 155"
  425. Extent="180 30"
  426. MinExtent="8 2"
  427. canSave="1"
  428. Visible="1"
  429. Active="1"
  430. tooltipprofile="GuiToolTipProfile"
  431. ToolTip="Displays an overlay of the joints currently in the scene."
  432. hovertime="100"
  433. text="Joints"
  434. groupNum="-1"
  435. buttonType="ToggleButton"
  436. useMouseEvents="0" />
  437. <!-- Wireframe Option -->
  438. <GuiCheckBoxCtrl
  439. name="WireframeOptionCheckBox"
  440. Command="setWireframeOption(WireframeOptionCheckBox.getValue());"
  441. canSaveDynamicFields="0"
  442. isContainer="0"
  443. Profile="GuiCheckBoxProfile"
  444. HorizSizing="relative"
  445. VertSizing="relative"
  446. Position="0 200"
  447. Extent="180 30"
  448. MinExtent="8 2"
  449. canSave="1"
  450. Visible="1"
  451. Active="1"
  452. tooltipprofile="GuiToolTipProfile"
  453. ToolTip="Renders all objects as wireframes."
  454. hovertime="100"
  455. text="Wireframe"
  456. groupNum="-1"
  457. buttonType="ToggleButton"
  458. useMouseEvents="0" />
  459. <!-- AABB Option -->
  460. <GuiCheckBoxCtrl
  461. Name="AABBOptionCheckBox"
  462. canSaveDynamicFields="0"
  463. isContainer="0"
  464. Profile="GuiCheckBoxProfile"
  465. HorizSizing="relative"
  466. VertSizing="relative"
  467. Position="0 245"
  468. Extent="180 30"
  469. MinExtent="8 2"
  470. canSave="1"
  471. Visible="1"
  472. Command="setAABBOption(AABBOptionCheckBox.getStateOn());"
  473. Active="1"
  474. tooltipprofile="GuiToolTipProfile"
  475. ToolTip="Displays Axis-Aligned Bounding Boxes - Boxes that will not rotate as the objects rotate."
  476. tooltipWidth="250"
  477. hovertime="1000"
  478. text="AABBs"
  479. groupNum="-1"
  480. buttonType="ToggleButton"
  481. useMouseEvents="0"
  482. useInactiveState="0" />
  483. <!-- OOBB Option -->
  484. <GuiCheckBoxCtrl
  485. Name="OOBBOptionCheckBox"
  486. canSaveDynamicFields="0"
  487. isContainer="0"
  488. Profile="GuiCheckBoxProfile"
  489. HorizSizing="relative"
  490. VertSizing="relative"
  491. Position="0 290"
  492. Extent="180 30"
  493. MinExtent="8 2"
  494. canSave="1"
  495. Visible="1"
  496. Command="setOOBBOption(OOBBOptionCheckBox.getStateOn());"
  497. Active="1"
  498. tooltipprofile="GuiToolTipProfile"
  499. ToolTip="Displays Object-Orientated Bounding Boxes - boxes that that rotate as the objects rotate."
  500. tooltipWidth="250"
  501. hovertime="1000"
  502. text="OOBBs"
  503. groupNum="-1"
  504. buttonType="ToggleButton"
  505. useMouseEvents="0"
  506. useInactiveState="0" />
  507. <!-- Sleep Option -->
  508. <GuiCheckBoxCtrl
  509. Name="SleepOptionCheckBox"
  510. canSaveDynamicFields="0"
  511. isContainer="0"
  512. Profile="GuiCheckBoxProfile"
  513. HorizSizing="relative"
  514. VertSizing="relative"
  515. Position="0 335"
  516. Extent="180 30"
  517. MinExtent="8 2"
  518. canSave="1"
  519. Visible="1"
  520. Command="setSleepOption(SleepOptionCheckBox.getStateOn());"
  521. Active="1"
  522. tooltipprofile="GuiToolTipProfile"
  523. ToolTip="Displays sleeping overlay."
  524. tooltipWidth="250"
  525. hovertime="1000"
  526. text="Sleeping"
  527. groupNum="-1"
  528. buttonType="ToggleButton"
  529. useMouseEvents="0"
  530. useInactiveState="0" />
  531. <!-- Collision-Shapes Option -->
  532. <GuiCheckBoxCtrl
  533. Name="CollisionOptionCheckBox"
  534. canSaveDynamicFields="0"
  535. isContainer="0"
  536. Profile="GuiCheckBoxProfile"
  537. HorizSizing="relative"
  538. VertSizing="relative"
  539. Position="0 380"
  540. Extent="180 30"
  541. MinExtent="8 2"
  542. canSave="1"
  543. Visible="1"
  544. Command="setCollisionOption(CollisionOptionCheckBox.getStateOn());"
  545. Active="1"
  546. tooltipprofile="GuiToolTipProfile"
  547. ToolTip="Renders all collision-shapes for the scene."
  548. tooltipWidth="250"
  549. hovertime="1000"
  550. text="Collision Shapes"
  551. groupNum="-1"
  552. buttonType="ToggleButton"
  553. useMouseEvents="0"
  554. useInactiveState="0" />
  555. <!-- Position Option -->
  556. <GuiCheckBoxCtrl
  557. Name="PositionOptionCheckBox"
  558. canSaveDynamicFields="0"
  559. isContainer="0"
  560. Profile="GuiCheckBoxProfile"
  561. HorizSizing="relative"
  562. VertSizing="relative"
  563. Position="0 425"
  564. Extent="180 30"
  565. MinExtent="8 2"
  566. canSave="1"
  567. Visible="1"
  568. Command="setPositionOption(PositionOptionCheckBox.getStateOn());"
  569. Active="1"
  570. tooltipprofile="GuiToolTipProfile"
  571. ToolTip="Displays the position and center-of-mass overlays."
  572. tooltipWidth="250"
  573. hovertime="1000"
  574. text="Positions"
  575. groupNum="-1"
  576. buttonType="ToggleButton"
  577. useMouseEvents="0"
  578. useInactiveState="0" />
  579. <!-- Sort-Point Option -->
  580. <GuiCheckBoxCtrl
  581. Name="SortOptionCheckBox"
  582. canSaveDynamicFields="0"
  583. isContainer="0"
  584. Profile="GuiCheckBoxProfile"
  585. HorizSizing="relative"
  586. VertSizing="relative"
  587. Position="0 470"
  588. Extent="180 30"
  589. MinExtent="8 2"
  590. canSave="1"
  591. Visible="1"
  592. Command="setSortOption(SortOptionCheckBox.getStateOn());"
  593. Active="1"
  594. tooltipprofile="GuiToolTipProfile"
  595. ToolTip="Shows the sort-point overlay. Sort points can affect the order that sprites are rendered within a layer."
  596. tooltipWidth="250"
  597. hovertime="1000"
  598. text="Sort Points"
  599. groupNum="-1"
  600. buttonType="ToggleButton"
  601. useMouseEvents="0"
  602. useInactiveState="0" />
  603. <!-- Scene-Batching Option -->
  604. <GuiCheckBoxCtrl
  605. Name="BatchOptionCheckBox"
  606. canSaveDynamicFields="0"
  607. isContainer="0"
  608. Profile="GuiCheckBoxProfile"
  609. HorizSizing="relative"
  610. VertSizing="relative"
  611. Position="0 515"
  612. Extent="180 30"
  613. MinExtent="8 2"
  614. canSave="1"
  615. Visible="1"
  616. Command="SandboxScene.setBatchingEnabled(!SandboxScene.getBatchingEnabled());"
  617. Active="1"
  618. tooltipprofile="GuiToolTipProfile"
  619. ToolTip="Turns on render batching. The batcher will attempt to draw multiple sprites with a single draw command. This typically takes planning."
  620. tooltipWidth="250"
  621. hovertime="1000"
  622. text="Batching"
  623. groupNum="-1"
  624. buttonType="ToggleButton"
  625. useMouseEvents="0"
  626. useInactiveState="0" />
  627. </GuiControl>
  628. </GuiSpriteCtrl>