shapeEdAnimWindow.ed.gui 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. //--- OBJECT WRITE BEGIN ---
  2. %guiContent = new GuiWindowCtrl(ShapeEdAnimWindow) {
  3. canSaveDynamicFields = "0";
  4. isContainer = "1";
  5. Profile = "ToolsGuiToolbarWindowProfile";
  6. HorizSizing = "width";
  7. VertSizing = "top";
  8. Position = -1 SPC getWord(ShapeEdPreviewGui.extent,0)-94;
  9. Extent = "817 53";
  10. MinExtent = "475 53";
  11. canSave = "1";
  12. Visible = "1";
  13. tooltipprofile = "ToolsGuiToolTipProfile";
  14. hovertime = "1000";
  15. Margin = "4 4 4 4";
  16. Padding = "0 0 0 0";
  17. AnchorTop = "1";
  18. AnchorBottom = "0";
  19. AnchorLeft = "1";
  20. AnchorRight = "0";
  21. resizeWidth = "1";
  22. resizeHeight = "0";
  23. canMove = "1";
  24. canClose = "0";
  25. canMinimize = "0";
  26. canMaximize = "0";
  27. minSize = "50 50";
  28. EdgeSnap = "0";
  29. canCollapse = "0";
  30. text = "";
  31. new GuiContainer() {
  32. canSaveDynamicFields = "0";
  33. isContainer = "1";
  34. Profile = "ToolsGuiDefaultProfile";
  35. HorizSizing = "width";
  36. VertSizing = "top";
  37. Position = "5 10";
  38. Extent = "809 ";
  39. MinExtent = "8 8";
  40. canSave = "1";
  41. Visible = "1";
  42. tooltipprofile = "ToolsGuiToolTipProfile";
  43. hovertime = "1000";
  44. // Sequence playback controls
  45. new GuiControl() {
  46. canSaveDynamicFields = "0";
  47. isContainer = "1";
  48. Profile = "ToolsGuiDefaultProfile";
  49. HorizSizing = "width";
  50. VertSizing = "top";
  51. Position = "0 3";
  52. Extent = "809 38";
  53. MinExtent = "8 2";
  54. canSave = "1";
  55. Visible = "1";
  56. tooltipprofile = "ToolsGuiToolTipProfile";
  57. hovertime = "1000";
  58. new GuiTextCtrl() {
  59. HorizSizing = "left";
  60. VertSizing = "top";
  61. position = "740 19";
  62. Extent = "35 16";
  63. text = "Frame:";
  64. };
  65. new GuiTextCtrl() {
  66. HorizSizing = "left";
  67. VertSizing = "top";
  68. Profile = "ToolsGuiTextProfile";
  69. position = "778 19";
  70. Extent = "26 18";
  71. Variable = "$ShapeEdCurrentFrame";
  72. };
  73. new GuiTextEditCtrl() {
  74. internalName = "seqIn";
  75. canSaveDynamicFields = "0";
  76. isContainer = "0";
  77. Profile = "ToolsGuiTextEditProfile";
  78. HorizSizing = "right";
  79. VertSizing = "bottom";
  80. Position = "0 0";
  81. Extent = "28 18";
  82. MinExtent = "8 2";
  83. canSave = "1";
  84. Visible = "1";
  85. AltCommand = "ShapeEdSequences.onEditSeqInOut(\"in\", $ThisControl.getText());";
  86. tooltipprofile = "ToolsGuiToolTipProfile";
  87. ToolTip = "Set the In Point to the Current Frame";
  88. hovertime = "1000";
  89. Margin = "0 0 0 0";
  90. Padding = "0 0 0 0";
  91. AnchorTop = "1";
  92. AnchorBottom = "0";
  93. AnchorLeft = "1";
  94. AnchorRight = "0";
  95. maxLength = "5";
  96. historySize = "0";
  97. password = "0";
  98. tabComplete = "0";
  99. sinkAllKeyEvents = "0";
  100. passwordMask = "*";
  101. };
  102. new GuiSliderCtrl(ShapeEdSeqSlider) {
  103. canSaveDynamicFields = "0";
  104. isContainer = "0";
  105. Profile = "ToolsGuiSliderProfile";
  106. HorizSizing = "width";
  107. VertSizing = "bottom";
  108. Position = "35 4";
  109. Extent = "736 20";
  110. MinExtent = "8 2";
  111. canSave = "1";
  112. Visible = "1";
  113. tooltipprofile = "ToolsGuiToolTipProfile";
  114. hovertime = "1000";
  115. range = "0 255";
  116. ticks = "0";
  117. value = "0";
  118. Variable = "$ShapeEdCurrentFrame";
  119. };
  120. new GuiTextEditCtrl() {
  121. internalName = "seqOut";
  122. canSaveDynamicFields = "0";
  123. isContainer = "0";
  124. Profile = "ToolsGuiTextEditProfile";
  125. HorizSizing = "left";
  126. VertSizing = "bottom";
  127. Position = "778 0";
  128. Extent = "28 18";
  129. MinExtent = "8 2";
  130. canSave = "1";
  131. Visible = "1";
  132. AltCommand = "ShapeEdSequences.onEditSeqInOut(\"out\", $ThisControl.getText());";
  133. tooltipprofile = "ToolsGuiToolTipProfile";
  134. ToolTip = "Set the Out Point to the Current Frame";
  135. hovertime = "1000";
  136. Margin = "0 0 0 0";
  137. Padding = "0 0 0 0";
  138. AnchorTop = "1";
  139. AnchorBottom = "0";
  140. AnchorLeft = "1";
  141. AnchorRight = "0";
  142. maxLength = "5";
  143. historySize = "0";
  144. password = "0";
  145. tabComplete = "0";
  146. sinkAllKeyEvents = "0";
  147. passwordMask = "*";
  148. };
  149. // VCR style buttons: back step_back play step_fwd fwd
  150. new GuiControl() {
  151. canSaveDynamicFields = "0";
  152. isContainer = "1";
  153. Profile = "ToolsGuiDefaultProfile";
  154. HorizSizing = "center";
  155. VertSizing = "top";
  156. position = "194 17";
  157. extent = "420 18";
  158. MinExtent = "8 2";
  159. canSave = "1";
  160. Visible = "1";
  161. tooltipprofile = "ToolsGuiToolTipProfile";
  162. hovertime = "1000";
  163. new GuiButtonCtrl() {
  164. canSaveDynamicFields = "0";
  165. isContainer = "0";
  166. Profile = "ToolsGuiButtonProfile";
  167. HorizSizing = "right";
  168. VertSizing = "bottom";
  169. Position = "0 0";
  170. Extent = "28 18";
  171. MinExtent = "8 2";
  172. canSave = "1";
  173. Visible = "1";
  174. Command = "ShapeEdSequences.onEditSeqInOut(\"in\", ShapeEdSeqSlider.getValue());";
  175. tooltipprofile = "ToolsGuiToolTipProfile";
  176. ToolTip = "Set the in position to the current frame (I)";
  177. hovertime = "1000";
  178. text = "in";
  179. groupNum = "-1";
  180. buttonType = "PushButton";
  181. useMouseEvents = "0";
  182. };
  183. new GuiBitmapButtonCtrl() {
  184. canSaveDynamicFields = "0";
  185. isContainer = "0";
  186. Profile = "ToolsGuiButtonProfile";
  187. HorizSizing = "right";
  188. VertSizing = "bottom";
  189. Position = "48 0";
  190. Extent = "18 18";
  191. MinExtent = "8 2";
  192. canSave = "1";
  193. Visible = "1";
  194. Command = "ShapeEdAnimWindow.setKeyframe( ShapeEdAnimWindow-->seqIn.getText() );";
  195. tooltipprofile = "ToolsGuiToolTipProfile";
  196. ToolTip = "Skip to in frame (SHIFT -)";
  197. hovertime = "1000";
  198. groupNum = "0";
  199. buttonType = "PushButton";
  200. useMouseEvents = "0";
  201. bitmap = "tools/shapeEditor/images/back_btn";
  202. };
  203. new GuiBitmapButtonCtrl() {
  204. canSaveDynamicFields = "0";
  205. isContainer = "0";
  206. Profile = "ToolsGuiButtonProfile";
  207. HorizSizing = "right";
  208. VertSizing = "bottom";
  209. Position = "76 0";
  210. Extent = "18 18";
  211. MinExtent = "8 2";
  212. canSave = "1";
  213. Visible = "1";
  214. Command = "ShapeEdAnimWindow.setKeyframe( mCeil(ShapeEdSeqSlider.getValue() - 1) );";
  215. tooltipprofile = "ToolsGuiToolTipProfile";
  216. ToolTip = "Previous frame (-)";
  217. hovertime = "1000";
  218. groupNum = "0";
  219. buttonType = "PushButton";
  220. useMouseEvents = "0";
  221. bitmap = "tools/shapeEditor/images/stepback_btn";
  222. internalName = "stepBkwdBtn";
  223. };
  224. new GuiControl() {
  225. canSaveDynamicFields = "0";
  226. isContainer = "1";
  227. Profile = "ToolsGuiDefaultProfile";
  228. HorizSizing = "right";
  229. VertSizing = "bottom";
  230. Position = "114 0";
  231. Extent = "94 18";
  232. MinExtent = "8 2";
  233. canSave = "1";
  234. Visible = "1";
  235. tooltipprofile = "ToolsGuiToolTipProfile";
  236. hovertime = "1000";
  237. new GuiBitmapButtonCtrl() {
  238. internalName = "playBkwdBtn";
  239. canSaveDynamicFields = "0";
  240. isContainer = "0";
  241. Profile = "ToolsGuiButtonProfile";
  242. HorizSizing = "right";
  243. VertSizing = "bottom";
  244. Position = "0 0";
  245. Extent = "18 18";
  246. MinExtent = "8 2";
  247. canSave = "1";
  248. Visible = "1";
  249. Command = "ShapeEdAnimWindow.setNoProxySequence(); ShapeEdAnimWindow.setThreadDirection( -1 );";
  250. tooltipprofile = "ToolsGuiToolTipProfile";
  251. ToolTip = "Play sequence in reverse";
  252. hovertime = "1000";
  253. groupNum = "0";
  254. buttonType = "RadioButton";
  255. useMouseEvents = "0";
  256. bitmap = "tools/shapeEditor/images/playbkwd_btn";
  257. };
  258. new GuiBitmapButtonCtrl() {
  259. internalName = "pauseBtn";
  260. canSaveDynamicFields = "0";
  261. isContainer = "0";
  262. Profile = "ToolsGuiButtonProfile";
  263. HorizSizing = "right";
  264. VertSizing = "bottom";
  265. Position = "38 0";
  266. Extent = "18 18";
  267. MinExtent = "8 2";
  268. canSave = "1";
  269. Visible = "1";
  270. Command = "ShapeEdAnimWindow.setThreadDirection( 0 );";
  271. tooltipprofile = "ToolsGuiToolTipProfile";
  272. ToolTip = "Toggle pause (SPACE)";
  273. hovertime = "1000";
  274. groupNum = "0";
  275. buttonType = "RadioButton";
  276. useMouseEvents = "0";
  277. bitmap = "tools/shapeEditor/images/pause_btn";
  278. };
  279. new GuiBitmapButtonCtrl() {
  280. internalName = "playFwdBtn";
  281. canSaveDynamicFields = "0";
  282. isContainer = "0";
  283. Profile = "ToolsGuiButtonProfile";
  284. HorizSizing = "right";
  285. VertSizing = "bottom";
  286. Position = "76 0";
  287. Extent = "18 18";
  288. MinExtent = "8 2";
  289. canSave = "1";
  290. Visible = "1";
  291. Command = "ShapeEdAnimWindow.setNoProxySequence(); ShapeEdAnimWindow.setThreadDirection( 1 );";
  292. tooltipprofile = "ToolsGuiToolTipProfile";
  293. ToolTip = "Play sequence";
  294. hovertime = "1000";
  295. groupNum = "0";
  296. buttonType = "RadioButton";
  297. useMouseEvents = "0";
  298. bitmap = "tools/shapeEditor/images/playfwd_btn";
  299. };
  300. };
  301. new GuiBitmapButtonCtrl() {
  302. canSaveDynamicFields = "0";
  303. isContainer = "0";
  304. Profile = "ToolsGuiButtonProfile";
  305. HorizSizing = "right";
  306. VertSizing = "bottom";
  307. position = "228 0";
  308. Extent = "18 18";
  309. MinExtent = "8 2";
  310. canSave = "1";
  311. Visible = "1";
  312. Command = "ShapeEdAnimWindow.setKeyframe( mFloor(ShapeEdSeqSlider.getValue() + 1) );";
  313. tooltipprofile = "ToolsGuiToolTipProfile";
  314. ToolTip = "Next frame (+)";
  315. hovertime = "1000";
  316. groupNum = "0";
  317. buttonType = "PushButton";
  318. useMouseEvents = "0";
  319. bitmap = "tools/shapeEditor/images/stepfwd_btn";
  320. internalName = "stepFwdBtn";
  321. };
  322. new GuiBitmapButtonCtrl() {
  323. canSaveDynamicFields = "0";
  324. isContainer = "0";
  325. Profile = "ToolsGuiButtonProfile";
  326. HorizSizing = "right";
  327. VertSizing = "bottom";
  328. position = "266 0";
  329. Extent = "18 18";
  330. MinExtent = "8 2";
  331. canSave = "1";
  332. Visible = "1";
  333. Command = "ShapeEdAnimWindow.setKeyframe( ShapeEdAnimWindow-->seqOut.getText() );";
  334. tooltipprofile = "ToolsGuiToolTipProfile";
  335. ToolTip = "Skip to out frame (SHIFT +)";
  336. hovertime = "1000";
  337. groupNum = "0";
  338. buttonType = "PushButton";
  339. useMouseEvents = "0";
  340. bitmap = "tools/shapeEditor/images/fwd_btn";
  341. };
  342. new GuiButtonCtrl() {
  343. canSaveDynamicFields = "0";
  344. isContainer = "0";
  345. Profile = "ToolsGuiButtonProfile";
  346. horizSizing = "right";
  347. VertSizing = "bottom";
  348. position = "306 0";
  349. Extent = "28 18";
  350. MinExtent = "8 2";
  351. canSave = "1";
  352. Visible = "1";
  353. Command = "ShapeEdSequences.onEditSeqInOut(\"out\", ShapeEdSeqSlider.getValue());";
  354. tooltipprofile = "ToolsGuiToolTipProfile";
  355. ToolTip = "Set the out position to the current frame (O)";
  356. hovertime = "1000";
  357. text = "out";
  358. groupNum = "-1";
  359. buttonType = "PushButton";
  360. useMouseEvents = "0";
  361. };
  362. new GuiBitmapButtonCtrl() {
  363. internalName = "pingpong";
  364. canSaveDynamicFields = "0";
  365. isContainer = "0";
  366. Profile = "ToolsGuiButtonProfile";
  367. horizSizing = "left";
  368. VertSizing = "bottom";
  369. position = "365 0";
  370. Extent = "18 18";
  371. MinExtent = "8 2";
  372. canSave = "1";
  373. Visible = "1";
  374. Command = "ShapeEdAnimWindow.togglePingPong();";
  375. tooltipprofile = "ToolsGuiToolTipProfile";
  376. ToolTip = "Toggle 'pingpong' mode on the current thread";
  377. hovertime = "1000";
  378. groupNum = "0";
  379. buttonType = "ToggleButton";
  380. useMouseEvents = "0";
  381. bitmap = "tools/shapeEditor/images/pingpong_btn";
  382. };
  383. new GuiTextEditCtrl() {
  384. internalName = "timeScale";
  385. Profile = "ToolsGuiTextEditProfile";
  386. horizSizing = "left";
  387. VertSizing = "bottom";
  388. position = "390 0";
  389. extent = "30 18";
  390. MinExtent = "8 2";
  391. canSave = "1";
  392. Visible = "1";
  393. Text = "1.0";
  394. AltCommand = "ShapeEdShapeView.setTimeScale( $ThisControl.getText() );";
  395. tooltipprofile = "ToolsGuiToolTipProfile";
  396. ToolTip = "Edit this value to change the playback speed for all threads";
  397. hovertime = "1000";
  398. canSaveDynamicFields = "0";
  399. };
  400. };
  401. };
  402. new GuiBitmapButtonCtrl() {
  403. internalName = "seqInBar";
  404. Profile = "ToolsGuiDefaultProfile";
  405. HorizSizing = "right";
  406. VertSizing = "bottom";
  407. position = "39 0";
  408. Extent = "8 13";
  409. MinExtent = "1 1";
  410. bitmap = "tools/shapeEditor/images/seq_bar-in";
  411. ToolTip = "Set the In Point to the Current Frame";
  412. Command = "ShapeEdSequences.onEditSeqInOut(\"in\", ShapeEdSeqSlider.getValue());";
  413. };
  414. new GuiBitmapButtonCtrl() {
  415. internalName = "seqOutBar";
  416. Profile = "ToolsGuiDefaultProfile";
  417. HorizSizing = "left";
  418. VertSizing = "bottom";
  419. position = "765 0";
  420. Extent = "8 13";
  421. MinExtent = "1 1";
  422. bitmap = "tools/shapeEditor/images/seq_bar-out";
  423. ToolTip = "Set the Out Point to the Current Frame";
  424. Command = "ShapeEdSequences.onEditSeqInOut(\"out\", ShapeEdSeqSlider.getValue());";
  425. };
  426. };
  427. };
  428. //--- OBJECT WRITE END ---