shapeEdAnimWindow.ed.gui 16 KB

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