NavEditorGui.gui 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiNavEditorCtrl(NavEditorGui, EditorGuiGroup) {
  3. canSaveDynamicFields = "0";
  4. Enabled = "1";
  5. isContainer = "1";
  6. Profile = "NavEditorProfile";
  7. HorizSizing = "width";
  8. VertSizing = "height";
  9. Position = "0 0";
  10. Extent = "800 600";
  11. MinExtent = "8 8";
  12. canSave = "1";
  13. Visible = "1";
  14. tooltipprofile = "GuiToolTipProfile";
  15. hovertime = "1000";
  16. Docking = "None";
  17. Margin = "0 0 0 0";
  18. Padding = "0 0 0 0";
  19. AnchorTop = "0";
  20. AnchorBottom = "0";
  21. AnchorLeft = "0";
  22. AnchorRight = "0";
  23. cameraZRot = "0";
  24. forceFOV = "0";
  25. renderMissionArea = "0";
  26. missionAreaFillColor = "255 0 0 20";
  27. missionAreaFrameColor = "255 0 0 128";
  28. allowBorderMove = "0";
  29. borderMovePixelSize = "20";
  30. borderMoveSpeed = "0.1";
  31. consoleFrameColor = "255 0 0 255";
  32. consoleFillColor = "0 0 0 0";
  33. consoleSphereLevel = "1";
  34. consoleCircleSegments = "32";
  35. consoleLineWidth = "1";
  36. GizmoProfile = "GlobalGizmoProfile";
  37. new GuiWindowCollapseCtrl(NavEditorTreeWindow) {
  38. internalName = "";
  39. canSaveDynamicFields = "0";
  40. Enabled = "1";
  41. isContainer = "1";
  42. Profile = "ToolsGuiWindowProfile";
  43. HorizSizing = "windowRelative";
  44. VertSizing = "windowRelative";
  45. Position = getWord($pref::Video::mode, 0) - 360
  46. SPC getWord(EditorGuiToolbar.extent, 1) + 6;
  47. Extent = "360 180";
  48. MinExtent = "300 120";
  49. canSave = "1";
  50. isDecoy = "0";
  51. Visible = "1";
  52. tooltipprofile = "GuiToolTipProfile";
  53. hovertime = "1000";
  54. Margin = "0 0 0 0";
  55. Padding = "0 0 0 0";
  56. AnchorTop = "1";
  57. AnchorBottom = "0";
  58. AnchorLeft = "1";
  59. AnchorRight = "0";
  60. resizeWidth = "1";
  61. resizeHeight = "1";
  62. canMove = "1";
  63. canClose = "0";
  64. canMinimize = "0";
  65. canMaximize = "0";
  66. minSize = "50 50";
  67. EdgeSnap = "1";
  68. text = ":: Navigation Editor";
  69. new GuiButtonCtrl() {
  70. Profile = "ToolsGuiButtonProfile";
  71. buttonType = "PushButton";
  72. HorizSizing = "right";
  73. VertSizing = "bottom";
  74. position = "115 2";
  75. extent = "90 18";
  76. text = "New NavMesh";
  77. command = "Canvas.pushDialog(CreateNewNavMeshDlg);";
  78. };
  79. new GuiContainer(NavEditorTreePanel){
  80. profile = GuiDefaultProfile;
  81. Position = "5 25";
  82. Extent = "200 120";
  83. Docking = "Client";
  84. Margin = "3 1 3 3 ";
  85. HorizSizing = "width";
  86. VertSizing = "height";
  87. isContainer = "1";
  88. new GuiScrollCtrl() {
  89. canSaveDynamicFields = "0";
  90. Enabled = "1";
  91. isContainer = "1";
  92. Profile = "GuiEditorScrollProfile";
  93. HorizSizing = "width";
  94. VertSizing = "height";
  95. Position = "0 0";
  96. Extent = "200 118";
  97. MinExtent = "8 8";
  98. canSave = "1";
  99. isDecoy = "0";
  100. Visible = "1";
  101. tooltipprofile = "GuiToolTipProfile";
  102. hovertime = "1000";
  103. Docking = "Client";
  104. Margin = "0 0 0 0";
  105. Padding = "0 0 0 0";
  106. AnchorTop = "1";
  107. AnchorBottom = "0";
  108. AnchorLeft = "1";
  109. AnchorRight = "0";
  110. willFirstRespond = "1";
  111. hScrollBar = "alwaysOff";
  112. vScrollBar = "dynamic";
  113. lockHorizScroll = "true";
  114. lockVertScroll = "false";
  115. constantThumbHeight = "0";
  116. childMargin = "0 0";
  117. mouseWheelScrollSpeed = "-1";
  118. new GuiTreeViewCtrl(NavTreeView) {
  119. canSaveDynamicFields = "0";
  120. Enabled = "1";
  121. isContainer = "1";
  122. Profile = "ToolsGuiTreeViewProfile";
  123. HorizSizing = "right";
  124. VertSizing = "bottom";
  125. Position = "1 1";
  126. Extent = "193 21";
  127. MinExtent = "8 8";
  128. canSave = "1";
  129. Visible = "1";
  130. hovertime = "1000";
  131. tabSize = "16";
  132. textOffset = "2";
  133. fullRowSelect = "0";
  134. itemHeight = "21";
  135. destroyTreeOnSleep = "1";
  136. MouseDragging = "0";
  137. MultipleSelections = "0";
  138. DeleteObjectAllowed = "1";
  139. DragToItemAllowed = "0";
  140. showRoot = "0";
  141. internalNamesOnly = "0";
  142. };
  143. };
  144. };
  145. // window / panel buttons
  146. new GuiBitmapButtonCtrl(NavEditorGui_UnDockBtn) {
  147. canSaveDynamicFields = "0";
  148. internalName = "";
  149. Enabled = "1";
  150. isContainer = "0";
  151. Profile = "ToolsGuiButtonProfile";
  152. HorizSizing = "left";
  153. VertSizing = "bottom";
  154. Position = "330 1";
  155. Extent = "18 18";
  156. MinExtent = "8 8";
  157. canSave = "1";
  158. Visible = "0";
  159. Command = "NavEditorGui.releaseSidePanel();";
  160. tooltipprofile = "ToolsGuiToolTipProfile";
  161. ToolTip = "Detach Sidepanel";
  162. hovertime = "1000";
  163. bitmapAsset = "ToolsModule:panel_undock_n_image";
  164. text = "";
  165. groupNum = "-1";
  166. buttonType = "PushButton";
  167. useMouseEvents = "0";
  168. };
  169. new GuiBitmapButtonCtrl(NavEditorGui_DockBtn) {
  170. canSaveDynamicFields = "0";
  171. internalName = "";
  172. Enabled = "1";
  173. isContainer = "0";
  174. Profile = "ToolsGuiButtonProfile";
  175. HorizSizing = "left";
  176. VertSizing = "bottom";
  177. Position = "330 1";
  178. Extent = "18 18";
  179. MinExtent = "8 8";
  180. canSave = "1";
  181. Visible = "0";
  182. Command = "NavEditorGui.dockSidePanel();";
  183. tooltipprofile = "ToolsGuiToolTipProfile";
  184. ToolTip = "Dock Sidepanel";
  185. hovertime = "1000";
  186. bitmapAsset = "ToolsModule:panel_dock_n_image";
  187. text = "";
  188. groupNum = "-1";
  189. buttonType = "PushButton";
  190. useMouseEvents = "0";
  191. };
  192. new GuiBitmapButtonCtrl(NavEditorGui_HideBtn) {
  193. canSaveDynamicFields = "0";
  194. internalName = "";
  195. Enabled = "1";
  196. isContainer = "0";
  197. Profile = "ToolsGuiButtonProfile";
  198. HorizSizing = "left";
  199. VertSizing = "bottom";
  200. Position = "312 1";
  201. Extent = "18 18";
  202. MinExtent = "8 8";
  203. canSave = "1";
  204. Visible = "1";
  205. Command = "NavEditorGui.hideSidePanel();";
  206. tooltipprofile = "ToolsGuiToolTipProfile";
  207. ToolTip = "Hide Sidepanel";
  208. hovertime = "1000";
  209. bitmapAsset = "ToolsModule:panel_hide_n_image";
  210. text = "";
  211. groupNum = "-1";
  212. buttonType = "PushButton";
  213. useMouseEvents = "0";
  214. };
  215. new GuiBitmapButtonCtrl(NavEditorGui_ShowBtn) {
  216. canSaveDynamicFields = "0";
  217. internalName = "";
  218. Enabled = "1";
  219. isContainer = "0";
  220. Profile = "ToolsGuiButtonProfile";
  221. HorizSizing = "right";
  222. VertSizing = "bottom";
  223. Position = "4 1";
  224. Extent = "18 18";
  225. MinExtent = "8 8";
  226. canSave = "1";
  227. Visible = "1";
  228. Command = "NavEditorGui.showSidePanel();";
  229. tooltipprofile = "ToolsGuiToolTipProfile";
  230. ToolTip = "Show Sidepanel";
  231. hovertime = "1000";
  232. bitmapAsset = "ToolsModule:panel_show_n_image";
  233. text = "";
  234. groupNum = "-1";
  235. buttonType = "PushButton";
  236. useMouseEvents = "0";
  237. };
  238. };
  239. new GuiWindowCollapseCtrl(NavEditorOptionsWindow) {
  240. internalName = "Window";
  241. canSaveDynamicFields = "0";
  242. Enabled = "1";
  243. isContainer = "1";
  244. Profile = "ToolsGuiWindowProfile";
  245. HorizSizing = "windowRelative";
  246. VertSizing = "windowRelative";
  247. Position = getWord($pref::Video::mode, 0) - 360
  248. SPC getWord(EditorGuiToolbar.extent, 1) + getWord(NavEditorTreeWindow.extent, 1) + 6;
  249. Extent = "360" SPC getWord($pref::Video::mode, 1) - getWord(NavEditorTreeWindow.extent, 1) - getWord(EditorGuiToolbar.extent, 1) - 65;
  250. MinExtent = "300 300";
  251. canSave = "1";
  252. Visible = "1";
  253. tooltipprofile = "GuiToolTipProfile";
  254. hovertime = "1000";
  255. Margin = "0 0 0 0";
  256. Padding = "0 0 0 0";
  257. AnchorTop = "0";
  258. AnchorBottom = "0";
  259. AnchorLeft = "0";
  260. AnchorRight = "0";
  261. resizeWidth = "1";
  262. resizeHeight = "1";
  263. canMove = "1";
  264. canClose = "0";
  265. canMinimize = "0";
  266. canMaximize = "0";
  267. minSize = "50 50";
  268. EdgeSnap = "1";
  269. text = ":: Navigation Editor - Properties";
  270. new GuiContainer(NavEditorOptionsPanel){ //Actions
  271. isContainer = "1";
  272. Profile = "inspectorStyleRolloutDarkProfile";
  273. HorizSizing = "width";
  274. VertSizing = "bottom";
  275. Position = "4 24";
  276. Extent = "202 85";
  277. Docking = "Top";
  278. Margin = "3 3 3 3";
  279. internalName = "ActionsBox";
  280. new GuiTextCtrl(){
  281. Profile = "EditorTextProfile";
  282. HorizSizing = "right";
  283. VertSizing = "bottom";
  284. Position = "5 0";
  285. Extent = "86 18";
  286. text = "Actions";
  287. };
  288. new GuiStackControl()
  289. {
  290. internalName = "SelectActions";
  291. position = "7 21";
  292. extent = "190 64";
  293. new GuiButtonCtrl() {
  294. Profile = "ToolsGuiButtonProfile";
  295. buttonType = "PushButton";
  296. HorizSizing = "right";
  297. VertSizing = "bottom";
  298. Extent = "182 18";
  299. text = "Build NavMesh";
  300. command = "NavEditorGui.buildSelectedMeshes();";
  301. };
  302. new GuiControl() {
  303. profile = "GuiDefaultProfile";
  304. Extent = "182 20";
  305. position = "0 20";
  306. new GuiCheckboxCtrl() {
  307. internalName = "BackgroundBuildButton";
  308. text = "Background";
  309. groupNum = "-1";
  310. buttonType = "ToggleButton";
  311. useMouseEvents = "0";
  312. extent = "75 20";
  313. minExtent = "8 2";
  314. profile = "ToolsGuiCheckBoxProfile";
  315. visible = "1";
  316. active = "1";
  317. variable = "NavEditorGui.backgroundBuild";
  318. tooltipProfile = "GuiToolTipProfile";
  319. hovertime = "1000";
  320. isContainer = "0";
  321. canSave = "1";
  322. canSaveDynamicFields = "0";
  323. };
  324. new GuiCheckboxCtrl() {
  325. position = "75 0";
  326. internalName = "SaveIntermediatesButton";
  327. text = "Keep intermediates";
  328. groupNum = "-1";
  329. buttonType = "ToggleButton";
  330. useMouseEvents = "0";
  331. extent = "105 20";
  332. profile = "ToolsGuiCheckBoxProfile";
  333. visible = "1";
  334. active = "1";
  335. variable = "NavEditorGui.saveIntermediates";
  336. tooltipProfile = "GuiToolTipProfile";
  337. hovertime = "1000";
  338. isContainer = "0";
  339. canSave = "1";
  340. canSaveDynamicFields = "0";
  341. };
  342. };
  343. new GuiCheckboxCtrl() {
  344. internalName = "BuildSoundButton";
  345. text = "Play sound when done";
  346. groupNum = "-1";
  347. buttonType = "ToggleButton";
  348. useMouseEvents = "0";
  349. extent = "150 20";
  350. minExtent = "8 2";
  351. profile = "ToolsGuiCheckBoxProfile";
  352. visible = "1";
  353. active = "1";
  354. variable = "NavEditorGui.playSoundWhenDone";
  355. tooltipProfile = "GuiToolTipProfile";
  356. hovertime = "1000";
  357. isContainer = "0";
  358. canSave = "1";
  359. canSaveDynamicFields = "0";
  360. };
  361. };
  362. new GuiStackControl()
  363. {
  364. internalName = "LinkActions";
  365. position = "7 21";
  366. extent = "190 64";
  367. new GuiButtonCtrl() {
  368. Profile = "ToolsGuiButtonProfile";
  369. buttonType = "PushButton";
  370. HorizSizing = "right";
  371. VertSizing = "bottom";
  372. Extent = "182 18";
  373. text = "Rebuild links";
  374. command = "NavEditorGui.buildLinks();";
  375. };
  376. };
  377. new GuiStackControl()
  378. {
  379. internalName = "CoverActions";
  380. position = "7 21";
  381. extent = "190 64";
  382. new GuiButtonCtrl() {
  383. Profile = "ToolsGuiButtonProfile";
  384. buttonType = "PushButton";
  385. HorizSizing = "right";
  386. VertSizing = "bottom";
  387. Extent = "182 18";
  388. text = "Create Cover";
  389. command = "NavEditorGui.createCoverPoints();";
  390. };
  391. new GuiButtonCtrl() {
  392. Profile = "ToolsGuiButtonProfile";
  393. buttonType = "PushButton";
  394. HorizSizing = "right";
  395. VertSizing = "bottom";
  396. Extent = "182 18";
  397. text = "Delete Cover";
  398. command = "NavEditorGui.deleteCoverPoints();";
  399. };
  400. };
  401. new GuiStackControl()
  402. {
  403. internalName = "TileActions";
  404. position = "7 21";
  405. extent = "190 64";
  406. new GuiButtonCtrl() {
  407. Profile = "ToolsGuiButtonProfile";
  408. buttonType = "PushButton";
  409. HorizSizing = "right";
  410. VertSizing = "bottom";
  411. Extent = "182 18";
  412. text = "Rebuild tile";
  413. command = "NavEditorGui.buildTile();";
  414. };
  415. };
  416. new GuiStackControl()
  417. {
  418. internalName = "TestActions";
  419. position = "7 21";
  420. extent = "190 64";
  421. new GuiButtonCtrl() {
  422. Profile = "ToolsGuiButtonProfile";
  423. buttonType = "PushButton";
  424. HorizSizing = "right";
  425. VertSizing = "bottom";
  426. Extent = "180 18";
  427. text = "Spawn";
  428. command = "NavEditorGui.spawnPlayer();";
  429. };
  430. new GuiControl() {
  431. profile = "GuiDefaultProfile";
  432. Extent = "190 18";
  433. new GuiButtonCtrl() {
  434. Profile = "ToolsGuiButtonProfile";
  435. buttonType = "PushButton";
  436. HorizSizing = "right";
  437. VertSizing = "bottom";
  438. Extent = "90 18";
  439. text = "Delete";
  440. command = "NavEditorGui.getPlayer().delete();";
  441. };
  442. new GuiButtonCtrl() {
  443. position = "100 0";
  444. Profile = "ToolsGuiButtonProfile";
  445. buttonType = "PushButton";
  446. HorizSizing = "right";
  447. VertSizing = "bottom";
  448. Extent = "90 18";
  449. text = "Find cover";
  450. command = "NavEditorGui.findCover();";
  451. };
  452. };
  453. new GuiControl() {
  454. profile = "GuiDefaultProfile";
  455. Extent = "190 18";
  456. new GuiButtonCtrl() {
  457. Profile = "ToolsGuiButtonProfile";
  458. buttonType = "PushButton";
  459. HorizSizing = "right";
  460. VertSizing = "bottom";
  461. Extent = "90 18";
  462. text = "Follow";
  463. command = "NavEditorGui.followObject();";
  464. };
  465. new GuiButtonCtrl() {
  466. position = "100 0";
  467. Profile = "ToolsGuiButtonProfile";
  468. buttonType = "PushButton";
  469. HorizSizing = "right";
  470. VertSizing = "bottom";
  471. Extent = "90 18";
  472. text = "Stop";
  473. command = "NavEditorGui.getPlayer().stop();";
  474. };
  475. };
  476. };
  477. };
  478. new GuiContainer(NavEditorInspector){
  479. isContainer = "1";
  480. Profile = "inspectorStyleRolloutDarkProfile";
  481. HorizSizing = "width";
  482. VertSizing = "bottom";
  483. Position = "4 112";
  484. Extent = "202 31";
  485. Docking = "Top";
  486. Margin = "0 0 3 3";
  487. new GuiTextCtrl(){
  488. profile = "EditorTextProfile";
  489. HorizSizing = "right";
  490. VertSizing = "bottom";
  491. Position = "5 0";
  492. Extent = "121 18";
  493. text = "Inspector";
  494. };
  495. };
  496. new GuiScrollCtrl(NavEditorOptScroll) {
  497. canSaveDynamicFields = "0";
  498. Enabled = "1";
  499. isContainer = "1";
  500. Profile = "GuiEditorScrollProfile";
  501. HorizSizing = "width";
  502. VertSizing = "height";
  503. Position = "4 129";
  504. Extent = "202 357";
  505. MinExtent = "8 2";
  506. canSave = "1";
  507. Visible = "1";
  508. tooltipprofile = "GuiToolTipProfile";
  509. hovertime = "1000";
  510. Docking = "Client";
  511. Margin = "-14 41 3 3";
  512. Padding = "0 0 0 0";
  513. AnchorTop = "0";
  514. AnchorBottom = "0";
  515. AnchorLeft = "0";
  516. AnchorRight = "0";
  517. willFirstRespond = "1";
  518. hScrollBar = "alwaysOff";
  519. vScrollBar = "dynamic";
  520. lockHorizScroll = "true";
  521. lockVertScroll = "false";
  522. constantThumbHeight = "0";
  523. childMargin = "0 0";
  524. internalName = "PropertiesBox";
  525. new GuiInspector(NavInspector) {
  526. StackingType = "Vertical";
  527. HorizStacking = "Left to Right";
  528. VertStacking = "Top to Bottom";
  529. Padding = "1";
  530. name = "NavInspector";
  531. canSaveDynamicFields = "0";
  532. Enabled = "1";
  533. isContainer = "1";
  534. Profile = "ToolsGuiTransparentProfile";
  535. HorizSizing = "width";
  536. VertSizing = "height";
  537. Position = "1 1";
  538. Extent = "178 16";
  539. MinExtent = "16 16";
  540. canSave = "1";
  541. Visible = "1";
  542. tooltipprofile = "GuiToolTipProfile";
  543. hovertime = "1000";
  544. dividerMargin = "5";
  545. };
  546. new GuiStackControl() {
  547. internalName = "LinkProperties";
  548. position = "7 21";
  549. extent = "186 64";
  550. padding = "2 2 2 2";
  551. new GuiCheckBoxCtrl() {
  552. internalName = "LinkWalkFlag";
  553. class = "NavMeshLinkFlagButton";
  554. text = " Walk";
  555. buttonType = "ToggleButton";
  556. useMouseEvents = "0";
  557. extent = "159 15";
  558. minExtent = "8 2";
  559. horizSizing = "right";
  560. vertSizing = "bottom";
  561. profile = "ToolsGuiCheckBoxProfile";
  562. visible = "1";
  563. active = "0";
  564. tooltipProfile = "GuiToolTipProfile";
  565. toolTip = "This link is just ordinary flat ground.";
  566. hovertime = "1000";
  567. isContainer = "0";
  568. canSave = "1";
  569. canSaveDynamicFields = "0";
  570. };
  571. new GuiCheckBoxCtrl() {
  572. internalName = "LinkJumpFlag";
  573. class = "NavMeshLinkFlagButton";
  574. text = " Jump";
  575. buttonType = "ToggleButton";
  576. useMouseEvents = "0";
  577. extent = "159 15";
  578. minExtent = "8 2";
  579. horizSizing = "right";
  580. vertSizing = "bottom";
  581. profile = "ToolsGuiCheckBoxProfile";
  582. visible = "1";
  583. active = "0";
  584. tooltipProfile = "GuiToolTipProfile";
  585. toolTip = "Does this link require a jump?";
  586. hovertime = "1000";
  587. isContainer = "0";
  588. canSave = "1";
  589. canSaveDynamicFields = "0";
  590. };
  591. new GuiCheckBoxCtrl() {
  592. internalName = "LinkDropFlag";
  593. class = "NavMeshLinkFlagButton";
  594. text = " Drop";
  595. buttonType = "ToggleButton";
  596. useMouseEvents = "0";
  597. extent = "159 15";
  598. minExtent = "8 2";
  599. horizSizing = "right";
  600. vertSizing = "bottom";
  601. profile = "ToolsGuiCheckBoxProfile";
  602. visible = "1";
  603. active = "0";
  604. tooltipProfile = "GuiToolTipProfile";
  605. toolTip = "Does this link involve a significant drop?";
  606. hovertime = "1000";
  607. isContainer = "0";
  608. canSave = "1";
  609. canSaveDynamicFields = "0";
  610. };
  611. new GuiCheckBoxCtrl() {
  612. internalName = "LinkLedgeFlag";
  613. class = "NavMeshLinkFlagButton";
  614. text = " Ledge";
  615. buttonType = "ToggleButton";
  616. useMouseEvents = "0";
  617. extent = "159 15";
  618. minExtent = "8 2";
  619. horizSizing = "right";
  620. vertSizing = "bottom";
  621. profile = "ToolsGuiCheckBoxProfile";
  622. visible = "1";
  623. active = "0";
  624. tooltipProfile = "GuiToolTipProfile";
  625. toolTip = "Should the character jump at the next ledge?";
  626. hovertime = "1000";
  627. isContainer = "0";
  628. canSave = "1";
  629. canSaveDynamicFields = "0";
  630. };
  631. new GuiCheckBoxCtrl() {
  632. internalName = "LinkClimbFlag";
  633. class = "NavMeshLinkFlagButton";
  634. text = " Climb";
  635. buttonType = "ToggleButton";
  636. useMouseEvents = "0";
  637. extent = "159 15";
  638. minExtent = "8 2";
  639. horizSizing = "right";
  640. vertSizing = "bottom";
  641. profile = "ToolsGuiCheckBoxProfile";
  642. visible = "1";
  643. active = "0";
  644. tooltipProfile = "GuiToolTipProfile";
  645. toolTip = "Does this link involve climbing?";
  646. hovertime = "1000";
  647. isContainer = "0";
  648. canSave = "1";
  649. canSaveDynamicFields = "0";
  650. };
  651. new GuiCheckBoxCtrl() {
  652. internalName = "LinkTeleportFlag";
  653. class = "NavMeshLinkFlagButton";
  654. text = " Teleport";
  655. buttonType = "ToggleButton";
  656. useMouseEvents = "0";
  657. extent = "159 15";
  658. minExtent = "8 2";
  659. horizSizing = "right";
  660. vertSizing = "bottom";
  661. profile = "ToolsGuiCheckBoxProfile";
  662. visible = "1";
  663. active = "0";
  664. tooltipProfile = "GuiToolTipProfile";
  665. toolTip = "Is this link a teleporter?";
  666. hovertime = "1000";
  667. isContainer = "0";
  668. canSave = "1";
  669. canSaveDynamicFields = "0";
  670. };
  671. };
  672. new GuiStackControl() {
  673. internalName = "TileProperties";
  674. position = "7 21";
  675. extent = "186 64";
  676. padding = "2 2 2 2";
  677. new GuiCheckBoxCtrl() {
  678. text = " Display input geometry";
  679. buttonType = "ToggleButton";
  680. useMouseEvents = "0";
  681. extent = "159 15";
  682. minExtent = "8 2";
  683. horizSizing = "right";
  684. vertSizing = "bottom";
  685. profile = "ToolsGuiCheckBoxProfile";
  686. visible = "1";
  687. active = "1";
  688. tooltipProfile = "GuiToolTipProfile";
  689. hovertime = "1000";
  690. isContainer = "0";
  691. canSave = "1";
  692. canSaveDynamicFields = "0";
  693. variable = "$Nav::Editor::renderInput";
  694. };
  695. new GuiCheckBoxCtrl() {
  696. text = " Display voxels";
  697. buttonType = "ToggleButton";
  698. useMouseEvents = "0";
  699. extent = "159 15";
  700. minExtent = "8 2";
  701. horizSizing = "right";
  702. vertSizing = "bottom";
  703. profile = "ToolsGuiCheckBoxProfile";
  704. visible = "1";
  705. active = "1";
  706. tooltipProfile = "GuiToolTipProfile";
  707. hovertime = "1000";
  708. isContainer = "0";
  709. canSave = "1";
  710. canSaveDynamicFields = "0";
  711. variable = "$Nav::Editor::renderVoxels";
  712. };
  713. };
  714. new GuiStackControl() {
  715. internalName = "TestProperties";
  716. position = "7 21";
  717. extent = "186 64";
  718. padding = "2 2 2 2";
  719. new GuiTextCtrl() {
  720. text = "Cover";
  721. profile = "ToolsGuiTextProfile";
  722. extent = "180 20";
  723. minExtent = "8 2";
  724. visible = "1";
  725. };
  726. new GuiTextEditCtrl() {
  727. internalName = "CoverRadius";
  728. text = "10";
  729. profile = "ToolsGuiTextEditProfile";
  730. extent = "40 20";
  731. minExtent = "8 2";
  732. visible = "1";
  733. tooltipProfile = "GuiToolTipProfile";
  734. toolTip = "Radius for cover-finding.";
  735. };
  736. new GuiTextEditCtrl() {
  737. internalName = "CoverPosition";
  738. text = "LocalClientConnection.getControlObject().getPosition();";
  739. profile = "ToolsGuiTextEditProfile";
  740. extent = "140 20";
  741. minExtent = "8 2";
  742. visible = "1";
  743. tooltipProfile = "GuiToolTipProfile";
  744. toolTip = "Position to find cover from.";
  745. };
  746. new GuiTextCtrl() {
  747. text = "Follow";
  748. profile = "ToolsuiTextProfile";
  749. extent = "180 20";
  750. minExtent = "8 2";
  751. visible = "1";
  752. };
  753. new GuiTextEditCtrl() {
  754. internalName = "FollowRadius";
  755. text = "1";
  756. profile = "ToolsGuiTextEditProfile";
  757. extent = "40 20";
  758. minExtent = "8 2";
  759. visible = "1";
  760. tooltipProfile = "GuiToolTipProfile";
  761. toolTip = "Radius for following.";
  762. };
  763. new GuiTextEditCtrl() {
  764. internalName = "FollowObject";
  765. text = "LocalClientConnection.player";
  766. profile = "ToolsGuiTextEditProfile";
  767. extent = "140 20";
  768. minExtent = "8 2";
  769. visible = "1";
  770. tooltipProfile = "GuiToolTipProfile";
  771. toolTip = "Object to follow.";
  772. };
  773. new GuiTextCtrl() {
  774. text = "Movement";
  775. profile = "ToolsGuiTextProfile";
  776. extent = "180 20";
  777. minExtent = "8 2";
  778. visible = "1";
  779. };
  780. new GuiCheckBoxCtrl() {
  781. internalName = "LinkWalkFlag";
  782. class = "NavMeshTestFlagButton";
  783. text = " Walk";
  784. buttonType = "ToggleButton";
  785. useMouseEvents = "0";
  786. extent = "159 15";
  787. minExtent = "8 2";
  788. horizSizing = "right";
  789. vertSizing = "bottom";
  790. profile = "ToolsGuiCheckBoxProfile";
  791. visible = "1";
  792. active = "0";
  793. tooltipProfile = "GuiToolTipProfile";
  794. toolTip = "Can this character walk on ground?";
  795. hovertime = "1000";
  796. isContainer = "0";
  797. canSave = "1";
  798. canSaveDynamicFields = "0";
  799. };
  800. new GuiCheckBoxCtrl() {
  801. internalName = "LinkJumpFlag";
  802. class = "NavMeshTestFlagButton";
  803. text = " Jump";
  804. buttonType = "ToggleButton";
  805. useMouseEvents = "0";
  806. extent = "159 15";
  807. minExtent = "8 2";
  808. horizSizing = "right";
  809. vertSizing = "bottom";
  810. profile = "ToolsGuiCheckBoxProfile";
  811. visible = "1";
  812. active = "0";
  813. tooltipProfile = "GuiToolTipProfile";
  814. toolTip = "Can this character jump?";
  815. hovertime = "1000";
  816. isContainer = "0";
  817. canSave = "1";
  818. canSaveDynamicFields = "0";
  819. };
  820. new GuiCheckBoxCtrl() {
  821. internalName = "LinkDropFlag";
  822. class = "NavMeshTestFlagButton";
  823. text = " Drop";
  824. buttonType = "ToggleButton";
  825. useMouseEvents = "0";
  826. extent = "159 15";
  827. minExtent = "8 2";
  828. horizSizing = "right";
  829. vertSizing = "bottom";
  830. profile = "ToolsGuiCheckBoxProfile";
  831. visible = "1";
  832. active = "0";
  833. tooltipProfile = "GuiToolTipProfile";
  834. toolTip = "Can this character drop over edges?";
  835. hovertime = "1000";
  836. isContainer = "0";
  837. canSave = "1";
  838. canSaveDynamicFields = "0";
  839. };
  840. new GuiCheckBoxCtrl() {
  841. internalName = "LinkLedgeFlag";
  842. class = "NavMeshTestFlagButton";
  843. text = " Ledge";
  844. buttonType = "ToggleButton";
  845. useMouseEvents = "0";
  846. extent = "159 15";
  847. minExtent = "8 2";
  848. horizSizing = "right";
  849. vertSizing = "bottom";
  850. profile = "ToolsGuiCheckBoxProfile";
  851. visible = "1";
  852. active = "0";
  853. tooltipProfile = "GuiToolTipProfile";
  854. toolTip = "Can this character jump from ledges?";
  855. hovertime = "1000";
  856. isContainer = "0";
  857. canSave = "1";
  858. canSaveDynamicFields = "0";
  859. };
  860. new GuiCheckBoxCtrl() {
  861. internalName = "LinkClimbFlag";
  862. class = "NavMeshTestFlagButton";
  863. text = " Climb";
  864. buttonType = "ToggleButton";
  865. useMouseEvents = "0";
  866. extent = "159 15";
  867. minExtent = "8 2";
  868. horizSizing = "right";
  869. vertSizing = "bottom";
  870. profile = "ToolsGuiCheckBoxProfile";
  871. visible = "1";
  872. active = "0";
  873. tooltipProfile = "GuiToolTipProfile";
  874. toolTip = "Can this character climb?";
  875. hovertime = "1000";
  876. isContainer = "0";
  877. canSave = "1";
  878. canSaveDynamicFields = "0";
  879. };
  880. new GuiCheckBoxCtrl() {
  881. internalName = "LinkTeleportFlag";
  882. class = "NavMeshTestFlagButton";
  883. text = " Teleport";
  884. buttonType = "ToggleButton";
  885. useMouseEvents = "0";
  886. extent = "159 15";
  887. minExtent = "8 2";
  888. horizSizing = "right";
  889. vertSizing = "bottom";
  890. profile = "ToolsGuiCheckBoxProfile";
  891. visible = "1";
  892. active = "0";
  893. tooltipProfile = "GuiToolTipProfile";
  894. toolTip = "Can this character teleport?";
  895. hovertime = "1000";
  896. isContainer = "0";
  897. canSave = "1";
  898. canSaveDynamicFields = "0";
  899. };
  900. };
  901. };
  902. new GuiMLTextCtrl(NavFieldInfoControl) {
  903. canSaveDynamicFields = "0";
  904. Enabled = "1";
  905. isContainer = "0";
  906. Profile = "GuiInspectorFieldInfoMLTextProfile";
  907. HorizSizing = "width";
  908. VertSizing = "top";
  909. position = "8" SPC getWord(NavEditorOptionsWindow.extent, 1) - 40;
  910. Extent = "330 42";
  911. MinExtent = "8 2";
  912. canSave = "1";
  913. Visible = "1";
  914. tooltipprofile = "GuiToolTipProfile";
  915. hovertime = "1000";
  916. lineSpacing = "2";
  917. allowColorChars = "0";
  918. maxChars = "-1";
  919. useURLMouseCursor = "0";
  920. };
  921. };
  922. };
  923. //--- OBJECT WRITE END ---