window_console.gui 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiControl(windowConsoleDlg) {
  3. position = "0 0";
  4. extent = "1024 768";
  5. minExtent = "8 2";
  6. horizSizing = "right";
  7. vertSizing = "bottom";
  8. profile = "ToolsGuiDefaultNonModalProfile";
  9. visible = "1";
  10. active = "1";
  11. tooltipProfile = "GuiToolTipProfile";
  12. hovertime = "1000";
  13. isContainer = "1";
  14. canSave = "1";
  15. canSaveDynamicFields = "0";
  16. new GuiWindowCtrl(windowConsoleControl) {
  17. text = ":: Console Log";
  18. resizeWidth = "1";
  19. resizeHeight = "1";
  20. canMove = "1";
  21. canClose = "1";
  22. canMinimize = "0";
  23. canMaximize = "1";
  24. canCollapse = "0";
  25. closeCommand = "windowConsoleDlg.hideWindow();";
  26. edgeSnap = "1";
  27. margin = "0 0 0 0";
  28. padding = "0 0 0 0";
  29. anchorTop = "1";
  30. anchorBottom = "0";
  31. anchorLeft = "1";
  32. anchorRight = "0";
  33. //position = "204 80";
  34. Position = "0" SPC getWord($pref::Video::mode, 1) - 300 - 60;
  35. extent = "720 300";
  36. minExtent = "920 120";
  37. horizSizing = "windowRelative";
  38. vertSizing = "windowRelative";
  39. profile = "ToolsGuiWindowProfile";
  40. visible = "1";
  41. active = "1";
  42. tooltipProfile = "GuiToolTipProfile";
  43. hovertime = "1000";
  44. isContainer = "1";
  45. canSave = "1";
  46. canSaveDynamicFields = "0";
  47. new GuiContainer() {
  48. position = "16 23";
  49. extent = "691 21";
  50. profile = "ToolsGuiDefaultProfile";
  51. tooltipProfile = "ToolsGuiToolTipProfile";
  52. horizSizing = "width";
  53. new GuiTextCtrl() {
  54. text = "Filters:";
  55. position = "8 0";
  56. extent = "40 20";
  57. profile = "ToolsGuiTextBoldRightProfile";
  58. tooltipProfile = "ToolsGuiToolTipProfile";
  59. };
  60. new GuiCheckBoxCtrl(windowConsoleDlgErrorFilterBtn) {
  61. text = " Errors ( )";
  62. position = "70 1";
  63. extent = "113 20";
  64. profile = "ToolsGuiCheckBoxErrorProfile";
  65. tooltipProfile = "ToolsGuiToolTipProfile";
  66. };
  67. new GuiCheckBoxCtrl(windowConsoleDlgWarnFilterBtn) {
  68. text = " Warnings ( )";
  69. position = "170 1";
  70. extent = "113 20";
  71. profile = "ToolsGuiCheckBoxWarnProfile";
  72. tooltipProfile = "ToolsGuiToolTipProfile";
  73. };
  74. new GuiCheckBoxCtrl(windowConsoleDlgNormalFilterBtn) {
  75. text = " Normal Messages ( )";
  76. position = "290 1";
  77. extent = "113 20";
  78. profile = "ToolsGuiCheckBoxMsgProfile";
  79. tooltipProfile = "ToolsGuiToolTipProfile";
  80. };
  81. new GuiButtonCtrl() {
  82. text = "Clear Log !";
  83. buttonType = "PushButton";
  84. useMouseEvents = "0";
  85. position = "610 1";
  86. extent = "80 20";
  87. minExtent = "8 2";
  88. horizSizing = "left";
  89. vertSizing = "bottom";
  90. profile = "ToolsGuiButtonHLYellowProfile";
  91. visible = "1";
  92. active = "1";
  93. command = "cls();";
  94. tooltipProfile = "ToolsGuiToolTipProfile";
  95. ToolTip = "WARNING: This will clear the console!";
  96. hovertime = "1000";
  97. isContainer = "0";
  98. canSave = "0";
  99. canSaveDynamicFields = "0";
  100. };
  101. new GuiButtonCtrl() {
  102. text = "Quit Torque !";
  103. buttonType = "PushButton";
  104. useMouseEvents = "0";
  105. position = "520 1";
  106. extent = "80 20";
  107. minExtent = "8 2";
  108. horizSizing = "left";
  109. vertSizing = "bottom";
  110. profile = "ToolsGuiButtonHLRedProfile";
  111. visible = "1";
  112. active = "1";
  113. command = "quit();";
  114. tooltipProfile = "ToolsGuiToolTipProfile";
  115. ToolTip = "WARNING: Quit the engine without saving!";
  116. hovertime = "1000";
  117. isContainer = "0";
  118. canSave = "0";
  119. canSaveDynamicFields = "0";
  120. };
  121. new GuiButtonCtrl(windowConsoleResetTimeBtn) {
  122. text = "0:00";
  123. buttonType = "PushButton";
  124. useMouseEvents = "0";
  125. position = "481 1";
  126. extent = "30 20";
  127. minExtent = "8 2";
  128. horizSizing = "left";
  129. vertSizing = "bottom";
  130. profile = "ToolsGuiButtonProfile";
  131. visible = "1";
  132. active = "1";
  133. command = "windowConsoleDlg.timeStampReset();";
  134. tooltipProfile = "ToolsGuiToolTipProfile";
  135. ToolTip = "Set the timestamp to 0";
  136. hovertime = "1000";
  137. isContainer = "0";
  138. canSave = "0";
  139. canSaveDynamicFields = "0";
  140. };
  141. new GuiButtonCtrl(windowConsoleTimestampBtn) {
  142. text = "Time: Off";
  143. buttonType = "ToggleButton";
  144. useMouseEvents = "0";
  145. position = "400 1";
  146. extent = "80 20";
  147. minExtent = "8 2";
  148. horizSizing = "left";
  149. vertSizing = "bottom";
  150. profile = "ToolsGuiButtonProfile";
  151. visible = "1";
  152. active = "1";
  153. command = "windowConsoleDlg.timeStamp();";
  154. tooltipProfile = "ToolsGuiToolTipProfile";
  155. ToolTip = "Show the time stamp to console messages";
  156. hovertime = "1000";
  157. isContainer = "0";
  158. canSave = "0";
  159. canSaveDynamicFields = "0";
  160. };
  161. new GuiButtonCtrl(windowConsoleDumpBtn) {
  162. text = "Profiler: Off";
  163. buttonType = "ToggleButton";
  164. useMouseEvents = "0";
  165. position = "310 1";
  166. extent = "80 20";
  167. minExtent = "8 2";
  168. horizSizing = "left";
  169. vertSizing = "bottom";
  170. profile = "ToolsGuiButtonProfile";
  171. visible = "1";
  172. active = "1";
  173. command = "windowConsoleDlg.profilerDump();";
  174. tooltipProfile = "ToolsGuiToolTipProfile";
  175. ToolTip = "Turn the profiler on";
  176. hovertime = "1000";
  177. isContainer = "0";
  178. canSave = "0";
  179. canSaveDynamicFields = "0";
  180. };
  181. new GuiButtonCtrl(windowInfoDumpBtn) {
  182. text = "Info";
  183. buttonType = "PushButton";
  184. useMouseEvents = "0";
  185. position = "250 1";
  186. extent = "50 20";
  187. minExtent = "8 2";
  188. horizSizing = "left";
  189. vertSizing = "bottom";
  190. profile = "ToolsGuiButtonProfile";
  191. visible = "1";
  192. active = "1";
  193. command = "windowConsoleDlg.infoDump();";
  194. tooltipProfile = "ToolsGuiToolTipProfile";
  195. ToolTip = "Show the engine, app and build info";
  196. hovertime = "1000";
  197. isContainer = "0";
  198. canSave = "0";
  199. canSaveDynamicFields = "0";
  200. };
  201. new GuiButtonCtrl(windowConLargerBtn) {
  202. text = "A +";
  203. buttonType = "PushButton";
  204. useMouseEvents = "0";
  205. position = "210 1";
  206. extent = "30 20";
  207. minExtent = "8 2";
  208. horizSizing = "left";
  209. vertSizing = "bottom";
  210. profile = "ToolsGuiButtonLTextProfile";
  211. visible = "1";
  212. active = "1";
  213. command = "windowConsoleDlg.incFont();";
  214. tooltipProfile = "ToolsGuiToolTipProfile";
  215. ToolTip = "Increase font size";
  216. hovertime = "1000";
  217. isContainer = "0";
  218. canSave = "0";
  219. canSaveDynamicFields = "0";
  220. };
  221. new GuiButtonCtrl(windowConSmallerBtn) {
  222. text = "A -";
  223. buttonType = "PushButton";
  224. useMouseEvents = "0";
  225. position = "179 1";
  226. extent = "30 20";
  227. minExtent = "8 2";
  228. horizSizing = "left";
  229. vertSizing = "bottom";
  230. profile = "ToolsGuiButtonSTextProfile";
  231. visible = "1";
  232. active = "1";
  233. command = "windowConsoleDlg.decFont();";
  234. tooltipProfile = "ToolsGuiToolTipProfile";
  235. ToolTip = "Decrease font size";
  236. hovertime = "1000";
  237. isContainer = "0";
  238. canSave = "0";
  239. canSaveDynamicFields = "0";
  240. };
  241. };
  242. new GuiScrollCtrl() {
  243. margin = "2 2 2 2";
  244. position = "0 48";
  245. extent = "718 217";
  246. minExtent = "8 8";
  247. horizSizing = "width";
  248. vertSizing = "height";
  249. profile = "ToolsConsoleScrollProfile";
  250. tooltipProfile = "GuiConsoleProfile";
  251. internalName = "Scroll";
  252. new GuiConsole(windowConsoleMessageLogView) {
  253. position = "1 1";
  254. extent = "482 217";
  255. horizSizing = "width";
  256. profile = "ToolsGuiConsoleProfile";
  257. tooltipProfile = "ToolsGuiToolTipProfile";
  258. };
  259. };
  260. new GuiConsoleEditCtrl(windowConsoleEntry) {
  261. historySize = "40";
  262. maxLength = "255";
  263. anchorTop = "0";
  264. anchorBottom = "1";
  265. position = "54 272";
  266. extent = "520 16";
  267. minExtent = "8 8";
  268. horizSizing = "width";
  269. vertSizing = "top";
  270. profile = "ToolsConsoleTextEditProfile";
  271. altCommand = "windowConsoleEntry::eval();";
  272. tooltipProfile = "ToolsGuiToolTipProfile";
  273. };
  274. new GuiTextCtrl() {
  275. text = "Cmd:";
  276. position = "12 270";
  277. extent = "30 20";
  278. horizSizing = "right";
  279. vertSizing = "top";
  280. profile = "ToolsGuiTextBoldRightProfile";
  281. tooltipProfile = "ToolsGuiToolTipProfile";
  282. };
  283. new GuiButtonCtrl() {
  284. text = "Repeat Last";
  285. buttonType = "PushButton";
  286. useMouseEvents = "0";
  287. position = "590 270";
  288. extent = "80 20";
  289. minExtent = "8 2";
  290. horizSizing = "left";
  291. vertSizing = "top";
  292. profile = "ToolsGuiButtonProfile";
  293. visible = "1";
  294. active = "1";
  295. command = "windowConsoleEntry.repeatLast();";
  296. tooltipProfile = "ToolsGuiToolTipProfile";
  297. ToolTip = "Show the last entry in the command line.";
  298. hovertime = "1000";
  299. isContainer = "0";
  300. canSave = "0";
  301. canSaveDynamicFields = "0";
  302. };
  303. new GuiBitmapButtonCtrl(windowConsole_UnDockBtn) {
  304. canSaveDynamicFields = "0";
  305. internalName = "";
  306. Enabled = "1";
  307. isContainer = "0";
  308. Profile = "ToolsGuiButtonProfile";
  309. HorizSizing = "left";
  310. VertSizing = "bottom";
  311. Position = "660 1";
  312. Extent = "18 18";
  313. MinExtent = "8 8";
  314. canSave = "1";
  315. Visible = "1";
  316. Command = "windowConsoleControl.releasePanel();";
  317. tooltipprofile = "ToolsGuiToolTipProfile";
  318. ToolTip = "Detach Panel";
  319. hovertime = "1000";
  320. bitmapAsset = "ToolsModule:panel_undock_n_image";
  321. text = "";
  322. groupNum = "-1";
  323. buttonType = "PushButton";
  324. useMouseEvents = "0";
  325. };
  326. new GuiBitmapButtonCtrl(windowConsole_DockBtn) {
  327. canSaveDynamicFields = "0";
  328. internalName = "";
  329. Enabled = "1";
  330. isContainer = "0";
  331. Profile = "ToolsGuiButtonProfile";
  332. HorizSizing = "left";
  333. VertSizing = "bottom";
  334. Position = "660 1";
  335. Extent = "18 18";
  336. MinExtent = "8 8";
  337. canSave = "1";
  338. Visible = "0";
  339. Command = "windowConsoleControl.dockPanel();";
  340. tooltipprofile = "ToolsGuiToolTipProfile";
  341. ToolTip = "Dock Panel";
  342. hovertime = "1000";
  343. bitmapAsset = "ToolsModule:panel_dock_n_image";
  344. text = "";
  345. groupNum = "-1";
  346. buttonType = "PushButton";
  347. useMouseEvents = "0";
  348. };
  349. };
  350. };
  351. //--- OBJECT WRITE END ---