home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Programy / winamp501_full.exe / $_14327_ / configtabs.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2003-11-16  |  11KB  |  449 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global ConfigAttribute ConfigAttribute3;
  6. Global ConfigAttribute ConfigAttribute4;
  7. Global ConfigAttribute ConfigAttribute5;
  8. Global ConfigAttribute ConfigAttribute6;
  9. Global ConfigAttribute ConfigAttribute7;
  10. Global ConfigAttribute ConfigAttribute8;
  11. Global ConfigAttribute ConfigAttribute9;
  12. Global ConfigAttribute ConfigAttribute10;
  13. Global ConfigAttribute ConfigAttribute11;
  14. Global ConfigAttribute ConfigAttribute12;
  15. Global ConfigAttribute ConfigAttribute13;
  16. Global ConfigAttribute ConfigAttribute14;
  17. Global ConfigAttribute ConfigAttribute15;
  18. Global ConfigAttribute ConfigAttribute16;
  19. Global ConfigAttribute ConfigAttribute17;
  20. Global ConfigAttribute ConfigAttribute18;
  21. Global ConfigAttribute ConfigAttribute19;
  22. Global ConfigAttribute ConfigAttribute20;
  23. Global ConfigAttribute ConfigAttribute21;
  24. Global ConfigAttribute ConfigAttribute22;
  25. Global ConfigAttribute ConfigAttribute23;
  26. Global ConfigAttribute ConfigAttribute24;
  27. Global ConfigAttribute ConfigAttribute25;
  28. Global ConfigAttribute ConfigAttribute26;
  29. Global ConfigAttribute ConfigAttribute27;
  30. Global ConfigAttribute ConfigAttribute28;
  31. Global ConfigAttribute ConfigAttribute29;
  32. Global Group Group103;
  33. Global Group Group104;
  34. Global Group Group105;
  35. Global Group Group106;
  36. Global Group Group107;
  37. Global Group Group108;
  38. Global Group Group109;
  39. Global Group Group110;
  40. Global Group Group111;
  41. Global Group Group112;
  42. Global Group Group113;
  43. Global Group Group114;
  44. Global Group Group115;
  45. Global Layer Layer116;
  46. Global Layer Layer117;
  47. Global Layer Layer118;
  48. Global Button Button119;
  49. Global Button Button120;
  50. Global Group Group121;
  51. Global Group Group122;
  52. Global Group Group123;
  53. Global GuiObject GuiObject124;
  54. Global Layout Layout125;
  55. Global Int Int126;
  56. Global Boolean Boolean128;
  57. Global Timer Timer129;
  58.  
  59. Function func0();
  60. Function func2412(Int 0);
  61. Function func2580(Int 0);
  62. Function func2819(Int 0);
  63. Function func3110(Int 0);
  64. Function func3667(Int 0);
  65. Function func4272();
  66.  
  67. func0()
  68. {
  69. ConfigAttribute ConfigAttribute71;
  70. ConfigItem ConfigItem57;
  71. ConfigAttribute ConfigAttribute61;
  72. ConfigAttribute ConfigAttribute59;
  73. ConfigItem ConfigItem41;
  74. ConfigItem ConfigItem50;
  75. ConfigAttribute ConfigAttribute62;
  76. ConfigAttribute ConfigAttribute65;
  77. ConfigItem ConfigItem44;
  78. ConfigItem ConfigItem32;
  79. ConfigAttribute ConfigAttribute60;
  80. ConfigItem ConfigItem38;
  81. ConfigItem ConfigItem55;
  82. ConfigItem ConfigItem53;
  83. ConfigItem ConfigItem47;
  84. ConfigItem ConfigItem35;
  85. ConfigAttribute ConfigAttribute66;
  86. ConfigAttribute ConfigAttribute64;
  87. ConfigItem32 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
  88. ConfigItem35 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
  89. ConfigItem38 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
  90. ConfigItem41 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
  91. ConfigItem44 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
  92. ConfigItem47 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
  93. ConfigItem50 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
  94. ConfigItem53 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
  95. ConfigItem55 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
  96. ConfigItem57 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
  97. ConfigAttribute59 = ConfigItem55.newAttribute(( "Winamp\ Modern"), ( ""));
  98. ConfigAttribute59.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
  99. ConfigAttribute60 = ConfigItem32.newAttribute(( "Drawers"), ( ""));
  100. ConfigAttribute60.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
  101. ConfigAttribute61 = ConfigItem32.newAttribute(( "Menus"), ( ""));
  102. ConfigAttribute61.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
  103. ConfigAttribute62 = ConfigItem32.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
  104. ConfigAttribute62.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
  105. ConfigAttribute64 = ConfigItem32.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
  106. ConfigAttribute64.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
  107. ConfigAttribute65 = ConfigItem32.newAttribute(( "Notifications"), ( ""));
  108. ConfigAttribute65.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
  109. ConfigAttribute66 = ConfigItem32.newAttribute(( "Songticker"), ( ""));
  110. ConfigAttribute66.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
  111. ConfigAttribute3 = ConfigItem35.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
  112. ConfigAttribute4 = ConfigItem35.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
  113. ConfigAttribute71 = ConfigItem35.newAttribute(( "sep1"), ( ""));
  114. ConfigAttribute71.setData(( "\-"));
  115. ConfigAttribute7 = ConfigItem35.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
  116. ConfigAttribute8 = ConfigItem35.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
  117. ConfigAttribute9 = ConfigItem35.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
  118. if(( ConfigAttribute7.getData() == ( "1"))) {
  119. ConfigAttribute7.onDataChanged();
  120. } else {
  121. ConfigAttribute8.onDataChanged();
  122. }
  123. ConfigAttribute11 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
  124. ConfigAttribute12 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
  125. ConfigAttribute13 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
  126. ConfigAttribute71 = ConfigItem32.newAttribute(( "sep1"), ( ""));
  127. ConfigAttribute71.setData(( "\-"));
  128. ConfigAttribute5 = ConfigItem32.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
  129. ConfigAttribute6 = ConfigItem32.newAttribute(( "Detach\ Video\ Window"), ( "0"));
  130. ConfigAttribute10 = ConfigItem57.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
  131. ConfigAttribute71 = ConfigItem32.newAttribute(( "sep2"), ( ""));
  132. ConfigAttribute71.setData(( "\-"));
  133. ConfigAttribute17 = ConfigItem32.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
  134. ConfigAttribute14 = ConfigItem41.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
  135. ConfigAttribute15 = ConfigItem41.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
  136. ConfigAttribute16 = ConfigItem41.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
  137. ConfigAttribute19 = ConfigItem44.newAttribute(( "Open\ Context\ Menu"), ( "1"));
  138. ConfigAttribute18 = ConfigItem44.newAttribute(( "Open\ Configuration"), ( "0"));
  139. ConfigAttribute22 = ConfigItem47.newAttribute(( "Show\ always"), ( "0"));
  140. ConfigAttribute21 = ConfigItem47.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
  141. ConfigAttribute20 = ConfigItem47.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
  142. ConfigAttribute23 = ConfigItem47.newAttribute(( "Never\ show"), ( "1"));
  143. ConfigAttribute71 = ConfigItem47.newAttribute(( "sep1"), ( ""));
  144. ConfigAttribute71.setData(( "\-"));
  145. ConfigAttribute27 = ConfigItem47.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
  146. ConfigAttribute24 = ConfigItem53.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
  147. ConfigAttribute25 = ConfigItem53.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
  148. ConfigAttribute26 = ConfigItem53.newAttribute(( "Notifications\ display\ time"), ( "2000"));
  149. ConfigAttribute28 = ConfigItem50.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
  150. ConfigAttribute29 = ConfigItem50.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
  151. return Null;
  152. }
  153.  
  154. System.onScriptLoaded()
  155. {
  156. Int Int152;
  157. Int Int154;
  158. Int Int156;
  159. Int Int151;
  160. func0();
  161. Group103 = System.getScriptGroup();
  162. Layout125 = Group103.getParentLayout();
  163. Group106 = Group103.findObject(( "config\.tabs"));
  164. Group107 = Group103.findObject(( "config\.tab\.eq\.on"));
  165. Group108 = Group103.findObject(( "config\.tab\.eq\.off"));
  166. Group109 = Group103.findObject(( "config\.tab\.options\.on"));
  167. Group110 = Group103.findObject(( "config\.tab\.options\.off"));
  168. Group111 = Group103.findObject(( "config\.tab\.colorthemes\.on"));
  169. Group112 = Group103.findObject(( "config\.tab\.colorthemes\.off"));
  170. GuiObject124 = Group103.findObject(( "colorthemes"));
  171. Group104 = Group103.findObject(( "player\.main"));
  172. Group105 = Group103.findObject(( "AVSGroup"));
  173. Group113 = Group103.findObject(( "player\.normal\.drawer\.eq"));
  174. Group114 = Group103.findObject(( "player\.normal\.drawer\.options"));
  175. Group115 = Group103.findObject(( "player\.normal\.drawer\.colorthemes"));
  176. Layer116 = Group103.findObject(( "mousetrapTabEQ"));
  177. Layer117 = Group103.findObject(( "mousetrapTabOPTIONS"));
  178. Layer118 = Group103.findObject(( "mousetrapTabCOLORTHEMES"));
  179. Button119 = Group103.findObject(( "drawer\.button\.close"));
  180. Button120 = Group103.findObject(( "drawer\.button\.open"));
  181. Group121 = Group103.findObject(( "player\.normal\.drawer"));
  182. Group122 = Group103.findObject(( "player\.normal\.drawer\.shadow"));
  183. Group123 = Group103.findObject(( "player\.normal\.drawer\.content"));
  184. Int151 = Group107.getWidth();
  185. Int152 = Group109.getWidth();
  186. Int154 = ( Int151 - 3);
  187. Int156 = ( ( Int151 + Int152) - 6);
  188. Group109.setXmlParam(( "x"), System.integerToString(Int154));
  189. Group110.setXmlParam(( "x"), System.integerToString(Int154));
  190. Group112.setXmlParam(( "x"), System.integerToString(Int156));
  191. Group111.setXmlParam(( "x"), System.integerToString(Int156));
  192. Int126 = 1;
  193. func2412(System.getPrivateInt(( "winamp5"), ( "ConfigTab"), 1));
  194. Int126 = 0;
  195. if(System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0)) {
  196. func2819(0);
  197. func3667(1);
  198. } else {
  199. func3667(0);
  200. }
  201. Boolean128 = 1;
  202. Timer129 = ( new Timer);
  203. Timer129.setDelay(250);
  204. return Null;
  205. }
  206.  
  207. System.onScriptUnloading()
  208. {
  209. delete Timer129;
  210. return Null;
  211. }
  212.  
  213. func2412(Int 0)
  214. {
  215. Group107.hide();
  216. Group109.hide();
  217. Group111.hide();
  218. if(( Int163 == 1)) {
  219. Group107.show();
  220. }
  221. if(( Int163 == 2)) {
  222. Group109.show();
  223. }
  224. if(( Int163 == 3)) {
  225. Group111.show();
  226. }
  227. func2580(Int163);
  228. System.setPrivateInt(( "winamp5"), ( "ConfigTab"), Int163);
  229. func4272();
  230. return Null;
  231. }
  232.  
  233. func2580(Int 0)
  234. {
  235. if(( Int165 == 1)) {
  236. Group113.show();
  237. Group114.hide();
  238. Group115.hide();
  239. }
  240. if(( Int165 == 2)) {
  241. Group113.hide();
  242. Group114.show();
  243. Group115.hide();
  244. }
  245. if(( Int165 == 3)) {
  246. Group113.hide();
  247. Group114.hide();
  248. Group115.show();
  249. }
  250. return Null;
  251. }
  252.  
  253. Layer116.onLeftButtonDown(int x, int y)
  254. {
  255. func2412(1);
  256. return Null;
  257. }
  258.  
  259. Layer117.onLeftButtonDown(int x, int y)
  260. {
  261. func2412(2);
  262. return Null;
  263. }
  264.  
  265. Layer118.onLeftButtonDown(int x, int y)
  266. {
  267. func2412(3);
  268. return Null;
  269. }
  270.  
  271. func2819(Int 0)
  272. {
  273. Button120.hide();
  274. Button119.show();
  275. Layout125.beforeRedock();
  276. if(( Int172 && ( ConfigAttribute4.getData() == ( "1")))) {
  277. System.lockUI();
  278. Group121.setTargetX(Group121.getGuiX());
  279. Group121.setTargetY(( - 147));
  280. Group121.setTargetW(Group121.getGuiW());
  281. Group121.setTargetH(Group121.getGuiH());
  282. Group121.setTargetSpeed(1);
  283. Group121.gotoTarget();
  284. } else {
  285. Group121.setXmlParam(( "y"), ( "\-147"));
  286. System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
  287. GuiObject124.show();
  288. func3667(1);
  289. func4272();
  290. Layout125.redock();
  291. }
  292. Group122.show();
  293. return Null;
  294. }
  295.  
  296. func3110(Int 0)
  297. {
  298. Layout125.beforeRedock();
  299. GuiObject124.hide();
  300. Button119.hide();
  301. Button120.show();
  302. if(( Int176 && ( ConfigAttribute4.getData() == ( "1")))) {
  303. System.lockUI();
  304. Group121.setTargetX(Group121.getGuiX());
  305. Group121.setTargetY(( - 263));
  306. Group121.setTargetW(Group121.getGuiW());
  307. Group121.setTargetH(Group121.getGuiH());
  308. Group121.setTargetSpeed(1);
  309. Group121.gotoTarget();
  310. } else {
  311. Group121.setXmlParam(( "y"), ( "\-263"));
  312. Group122.hide();
  313. System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
  314. func3667(0);
  315. func4272();
  316. Layout125.redock();
  317. }
  318. return Null;
  319. }
  320.  
  321. Button119.onLeftClick()
  322. {
  323. func3110(1);
  324. return Null;
  325. }
  326.  
  327. Button120.onLeftClick()
  328. {
  329. func2819(1);
  330. return Null;
  331. }
  332.  
  333. Group121.onTargetReached()
  334. {
  335. if(Button119.isVisible()) {
  336. System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
  337. GuiObject124.show();
  338. func3667(1);
  339. } else {
  340. Group122.hide();
  341. System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
  342. func3667(0);
  343. }
  344. func4272();
  345. Layout125.redock();
  346. System.unlockUI();
  347. return Null;
  348. }
  349.  
  350. func3667(Int 0)
  351. {
  352. Int Int180;
  353. Int180 = 0;
  354. if(( ConfigAttribute11.getData() == ( "0"))) {
  355. Int180 = 17;
  356. }
  357. if(Int179) {
  358. Layout125.snapAdjust(0, 0, 0, ( 0 + Int180));
  359. } else {
  360. Layout125.snapAdjust(0, 0, 0, ( 116 + Int180));
  361. }
  362. return Null;
  363. }
  364.  
  365. ConfigAttribute11.onDataChanged()
  366. {
  367. Int Int183;
  368. Int Int184;
  369. Int183 = 0;
  370. if(( ConfigAttribute11.getData() == ( "0"))) {
  371. Int183 = 17;
  372. }
  373. Layout125.beforeRedock();
  374. Int184 = System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
  375. if(Int184) {
  376. Layout125.snapAdjust(0, 0, 0, ( 0 + Int183));
  377. } else {
  378. Layout125.snapAdjust(0, 0, 0, ( 116 + Int183));
  379. }
  380. Layout125.redock();
  381. return Null;
  382. }
  383.  
  384. Layout125.onResize(int x, int y, int w, int h)
  385. {
  386. Int Int190;
  387. Int190 = ( ( w / 2) - 163);
  388. Group123.setXmlParam(( "x"), System.integerToString(Int190));
  389. return Null;
  390. }
  391.  
  392. ConfigAttribute10.onDataChanged()
  393. {
  394. if(Int126) {
  395. return Null;
  396. }
  397. Int126 = 1;
  398. if(( ConfigAttribute10.getData() == ( "1"))) {
  399. Layout125.getContainer().switchToLayout(( "normal"));
  400. Timer129.start();
  401. }
  402. if(( ConfigAttribute10.getData() == ( "0"))) {
  403. func3110(1);
  404. }
  405. Int126 = 0;
  406. return Null;
  407. }
  408.  
  409. Timer129.onTimer()
  410. {
  411. Timer129.stop();
  412. func2412(1);
  413. if(Button120.isVisible()) {
  414. func2819(1);
  415. }
  416. return Null;
  417. }
  418.  
  419. func4272()
  420. {
  421. Int Int163;
  422. if(Int126) {
  423. return Null;
  424. }
  425. Int126 = 1;
  426. if(( ( Int163 == 1) && ( ! Button120.isVisible()))) {
  427. ConfigAttribute10.setData(( "1"));
  428. } else {
  429. ConfigAttribute10.setData(( "0"));
  430. }
  431. Int126 = 0;
  432. return Null;
  433. }
  434.  
  435. System.onKeyDown(String key)
  436. {
  437. if(( key == ( "alt\+g"))) {
  438. if(( ConfigAttribute10.getData() == ( "0"))) {
  439. ConfigAttribute10.setData(( "1"));
  440. } else {
  441. ConfigAttribute10.setData(( "0"));
  442. }
  443. complete;
  444. }
  445. return Null;
  446. }
  447.  
  448.  
  449.