profiler.gui 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiControl(ProfilerGui) {
  3. position = "0 0";
  4. extent = "1024 768";
  5. minExtent = "8 2";
  6. horizSizing = "right";
  7. vertSizing = "bottom";
  8. profile = "GuiDefaultProfile";
  9. visible = "1";
  10. active = "1";
  11. tooltipProfile = "GuiToolTipProfile";
  12. hovertime = "1000";
  13. isContainer = "1";
  14. canSave = "1";
  15. canSaveDynamicFields = "1";
  16. new GuiWindowCtrl(ppProfilerWindow) {
  17. text = "Profiler Manager";
  18. resizeWidth = "0";
  19. resizeHeight = "0";
  20. canMove = "1";
  21. canClose = "1";
  22. canMinimize = "0";
  23. canMaximize = "0";
  24. canCollapse = "0";
  25. closeCommand = "Canvas.popDialog(ProfilerGui);";
  26. edgeSnap = "0";
  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 = "306 216";
  34. extent = "415 199";
  35. minExtent = "8 8";
  36. horizSizing = "center";
  37. vertSizing = "center";
  38. profile = "GuiWindowProfile";
  39. visible = "1";
  40. active = "1";
  41. tooltipProfile = "GuiToolTipProfile";
  42. hovertime = "1000";
  43. isContainer = "1";
  44. canSave = "1";
  45. canSaveDynamicFields = "0";
  46. new GuiCheckBoxCtrl(ppShowFps) {
  47. text = "Show Fps";
  48. groupNum = "-1";
  49. buttonType = "ToggleButton";
  50. useMouseEvents = "0";
  51. position = "13 24";
  52. extent = "127 30";
  53. minExtent = "8 2";
  54. horizSizing = "right";
  55. vertSizing = "bottom";
  56. profile = "GuiCheckBoxProfile";
  57. visible = "1";
  58. active = "1";
  59. tooltipProfile = "GuiToolTipProfile";
  60. tooltip = "Enable or Disable the Fps counter";
  61. hovertime = "1000";
  62. isContainer = "0";
  63. canSave = "1";
  64. canSaveDynamicFields = "0";
  65. };
  66. new GuiCheckBoxCtrl(ppShowGfx) {
  67. text = "Show Gfx";
  68. groupNum = "-1";
  69. buttonType = "ToggleButton";
  70. useMouseEvents = "0";
  71. position = "13 40";
  72. extent = "127 30";
  73. minExtent = "8 2";
  74. horizSizing = "right";
  75. vertSizing = "bottom";
  76. profile = "GuiCheckBoxProfile";
  77. visible = "1";
  78. active = "1";
  79. tooltipProfile = "GuiToolTipProfile";
  80. tooltip = "Enable or Disable the Gfx";
  81. hovertime = "1000";
  82. isContainer = "0";
  83. canSave = "1";
  84. canSaveDynamicFields = "0";
  85. };
  86. new GuiCheckBoxCtrl(ppShowShadow) {
  87. text = "Show Shadow";
  88. groupNum = "-1";
  89. buttonType = "ToggleButton";
  90. useMouseEvents = "0";
  91. position = "13 56";
  92. extent = "127 30";
  93. minExtent = "8 2";
  94. horizSizing = "right";
  95. vertSizing = "bottom";
  96. profile = "GuiCheckBoxProfile";
  97. visible = "1";
  98. active = "1";
  99. tooltipProfile = "GuiToolTipProfile";
  100. tooltip = "Enable or Disable the Shdow";
  101. hovertime = "1000";
  102. isContainer = "0";
  103. canSave = "1";
  104. canSaveDynamicFields = "0";
  105. };
  106. new GuiCheckBoxCtrl(ppShowNet) {
  107. text = "Show Net";
  108. groupNum = "-1";
  109. buttonType = "ToggleButton";
  110. useMouseEvents = "0";
  111. position = "13 136";
  112. extent = "127 30";
  113. minExtent = "8 2";
  114. horizSizing = "right";
  115. vertSizing = "bottom";
  116. profile = "GuiCheckBoxProfile";
  117. visible = "1";
  118. active = "1";
  119. tooltipProfile = "GuiToolTipProfile";
  120. tooltip = "Enable or Disable the Network activity";
  121. hovertime = "1000";
  122. isContainer = "0";
  123. canSave = "1";
  124. canSaveDynamicFields = "0";
  125. };
  126. new GuiCheckBoxCtrl(ppShowForest) {
  127. text = "Show Forest";
  128. groupNum = "-1";
  129. buttonType = "ToggleButton";
  130. useMouseEvents = "0";
  131. position = "13 120";
  132. extent = "127 30";
  133. minExtent = "8 2";
  134. horizSizing = "right";
  135. vertSizing = "bottom";
  136. profile = "GuiCheckBoxProfile";
  137. visible = "1";
  138. active = "1";
  139. tooltipProfile = "GuiToolTipProfile";
  140. tooltip = "Enable or Disable the Forest";
  141. hovertime = "1000";
  142. isContainer = "0";
  143. canSave = "1";
  144. canSaveDynamicFields = "0";
  145. };
  146. new GuiCheckBoxCtrl(ppShowGroundcover) {
  147. text = "Show Groundcover";
  148. groupNum = "-1";
  149. buttonType = "ToggleButton";
  150. useMouseEvents = "0";
  151. position = "13 104";
  152. extent = "127 30";
  153. minExtent = "8 2";
  154. horizSizing = "right";
  155. vertSizing = "bottom";
  156. profile = "GuiCheckBoxProfile";
  157. visible = "1";
  158. active = "1";
  159. tooltipProfile = "GuiToolTipProfile";
  160. tooltip = "Enable or Disable the Groundcover";
  161. hovertime = "1000";
  162. isContainer = "0";
  163. canSave = "1";
  164. canSaveDynamicFields = "0";
  165. };
  166. new GuiCheckBoxCtrl(ppShowTerrain) {
  167. text = "Show Terrain";
  168. groupNum = "-1";
  169. buttonType = "ToggleButton";
  170. useMouseEvents = "0";
  171. position = "13 88";
  172. extent = "127 30";
  173. minExtent = "8 2";
  174. horizSizing = "right";
  175. vertSizing = "bottom";
  176. profile = "GuiCheckBoxProfile";
  177. visible = "1";
  178. active = "1";
  179. tooltipProfile = "GuiToolTipProfile";
  180. tooltip = "Enable or Disable the Terrain";
  181. hovertime = "1000";
  182. isContainer = "0";
  183. canSave = "1";
  184. canSaveDynamicFields = "0";
  185. };
  186. new GuiCheckBoxCtrl(ppShowSfx) {
  187. text = "Show Sfx";
  188. groupNum = "-1";
  189. buttonType = "ToggleButton";
  190. useMouseEvents = "0";
  191. position = "13 72";
  192. extent = "127 30";
  193. minExtent = "8 2";
  194. horizSizing = "right";
  195. vertSizing = "bottom";
  196. profile = "GuiCheckBoxProfile";
  197. visible = "1";
  198. active = "1";
  199. tooltipProfile = "GuiToolTipProfile";
  200. tooltip = "Enable or Disable the Sfx";
  201. hovertime = "1000";
  202. isContainer = "0";
  203. canSave = "1";
  204. canSaveDynamicFields = "0";
  205. };
  206. new GuiButtonCtrl(ppOptionsEnableDisable) {
  207. text = "On/Off OSD";
  208. groupNum = "-1";
  209. buttonType = "PushButton";
  210. useMouseEvents = "0";
  211. position = "309 38";
  212. extent = "93 23";
  213. minExtent = "8 8";
  214. horizSizing = "right";
  215. vertSizing = "bottom";
  216. profile = "GuiButtonProfile";
  217. visible = "1";
  218. active = "1";
  219. command = "showMetrics(true);";
  220. tooltipProfile = "GuiToolTipProfile";
  221. tooltip = "Apply the setting from the dialog box";
  222. hovertime = "1000";
  223. isContainer = "0";
  224. canSave = "1";
  225. canSaveDynamicFields = "0";
  226. };
  227. new GuiButtonCtrl(ppOptionsUpdate) {
  228. text = "Update";
  229. groupNum = "-1";
  230. buttonType = "PushButton";
  231. useMouseEvents = "0";
  232. position = "200 38";
  233. extent = "93 23";
  234. minExtent = "8 8";
  235. horizSizing = "right";
  236. vertSizing = "bottom";
  237. profile = "GuiButtonProfile";
  238. visible = "1";
  239. active = "1";
  240. command = "showMetrics(false);";
  241. tooltipProfile = "GuiToolTipProfile";
  242. tooltip = "Update the profiler with the new parameters";
  243. hovertime = "1000";
  244. isContainer = "0";
  245. canSave = "1";
  246. canSaveDynamicFields = "0";
  247. };
  248. new GuiButtonCtrl(ppOptionsDoProfiling) {
  249. text = "DoProfiling";
  250. groupNum = "-1";
  251. buttonType = "PushButton";
  252. useMouseEvents = "0";
  253. position = "309 141";
  254. extent = "93 23";
  255. minExtent = "8 8";
  256. horizSizing = "right";
  257. vertSizing = "bottom";
  258. profile = "GuiButtonProfile";
  259. visible = "1";
  260. active = "1";
  261. command = "doProfileFromGui();";
  262. tooltipProfile = "GuiToolTipProfile";
  263. tooltip = "Does the profile for the ammount of time specified ";
  264. hovertime = "1000";
  265. isContainer = "0";
  266. canSave = "1";
  267. canSaveDynamicFields = "0";
  268. };
  269. new GuiTextCtrl(DurationLabel) {
  270. text = "Duration[ms]";
  271. maxLength = "1024";
  272. margin = "0 0 0 0";
  273. padding = "0 0 0 0";
  274. anchorTop = "1";
  275. anchorBottom = "0";
  276. anchorLeft = "1";
  277. anchorRight = "0";
  278. position = "200 144";
  279. extent = "39 21";
  280. minExtent = "8 2";
  281. horizSizing = "right";
  282. vertSizing = "bottom";
  283. profile = "GuiTextRightProfile";
  284. visible = "1";
  285. active = "1";
  286. tooltipProfile = "GuiToolTipProfile";
  287. hovertime = "1000";
  288. isContainer = "1";
  289. canSave = "1";
  290. canSaveDynamicFields = "0";
  291. };
  292. new GuiTextEditCtrl(Duration) {
  293. historySize = "0";
  294. tabComplete = "0";
  295. sinkAllKeyEvents = "0";
  296. password = "0";
  297. passwordMask = "*";
  298. text = "1000";
  299. maxLength = "1024";
  300. margin = "0 0 0 0";
  301. padding = "0 0 0 0";
  302. anchorTop = "1";
  303. anchorBottom = "0";
  304. anchorLeft = "1";
  305. anchorRight = "0";
  306. position = "249 144";
  307. extent = "53 18";
  308. minExtent = "8 2";
  309. horizSizing = "right";
  310. vertSizing = "bottom";
  311. profile = "GuiTextEditProfile";
  312. visible = "1";
  313. active = "1";
  314. tooltipProfile = "GuiToolTipProfile";
  315. hovertime = "1000";
  316. isContainer = "1";
  317. canSave = "1";
  318. canSaveDynamicFields = "0";
  319. };
  320. };
  321. };
  322. //--- OBJECT WRITE END ---