home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Util / Winamp / Skins / Anime_Shogo.wal / scripts / eqbyregion.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-08-17  |  8KB  |  424 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Layer Layer11;
  6. Global Layer Layer12;
  7. Global Layer Layer13;
  8. Global Layer Layer14;
  9. Global Layer Layer15;
  10. Global Layer Layer16;
  11. Global Layer Layer17;
  12. Global Layer Layer18;
  13. Global Layer Layer19;
  14. Global Layer Layer20;
  15. Global Layer Layer21;
  16. Global Map Map22;
  17. Global Boolean Boolean23;
  18.  
  19. Function func1370(Int 0, Layer 0);
  20. Function func3567(Layer 0, Int 0, Int 0, Int 0);
  21.  
  22. System.onScriptLoaded()
  23. {
  24. Group Group24;
  25. Group24 = System.getScriptGroup();
  26. Layer11 = Group24.findObject(( "EQPreamp"));
  27. Layer12 = Group24.findObject(( "EQBar0"));
  28. Layer13 = Group24.findObject(( "EQBar1"));
  29. Layer14 = Group24.findObject(( "EQBar2"));
  30. Layer15 = Group24.findObject(( "EQBar3"));
  31. Layer16 = Group24.findObject(( "EQBar4"));
  32. Layer17 = Group24.findObject(( "EQBar5"));
  33. Layer18 = Group24.findObject(( "EQBar6"));
  34. Layer19 = Group24.findObject(( "EQBar7"));
  35. Layer20 = Group24.findObject(( "EQBar8"));
  36. Layer21 = Group24.findObject(( "EQBar9"));
  37. Map22 = ( new Map);
  38. Map22.loadMap(( "eq\.bar\.map"));
  39. func1370(( 128 - System.getEqPreamp()), Layer11);
  40. func1370(( 128 - System.getEqBand(0)), Layer12);
  41. func1370(( 128 - System.getEqBand(1)), Layer13);
  42. func1370(( 128 - System.getEqBand(2)), Layer14);
  43. func1370(( 128 - System.getEqBand(3)), Layer15);
  44. func1370(( 128 - System.getEqBand(4)), Layer16);
  45. func1370(( 128 - System.getEqBand(5)), Layer17);
  46. func1370(( 128 - System.getEqBand(6)), Layer18);
  47. func1370(( 128 - System.getEqBand(7)), Layer19);
  48. func1370(( 128 - System.getEqBand(8)), Layer20);
  49. func1370(( 128 - System.getEqBand(9)), Layer21);
  50. return Null;
  51. }
  52.  
  53. System.onEqPreampChanged(int newvalue)
  54. {
  55. func1370(( 128 - newvalue), Layer11);
  56. return Null;
  57. }
  58.  
  59. System.onEqBandChanged(int band, int newvalue)
  60. {
  61. if(( band == 0)) {
  62. func1370(( 128 - newvalue), Layer12);
  63. } else {
  64. if(( band == 1)) {
  65. func1370(( 128 - newvalue), Layer13);
  66. } else {
  67. if(( band == 2)) {
  68. func1370(( 128 - newvalue), Layer14);
  69. } else {
  70. if(( band == 3)) {
  71. func1370(( 128 - newvalue), Layer15);
  72. } else {
  73. if(( band == 4)) {
  74. func1370(( 128 - newvalue), Layer16);
  75. } else {
  76. if(( band == 5)) {
  77. func1370(( 128 - newvalue), Layer17);
  78. } else {
  79. if(( band == 6)) {
  80. func1370(( 128 - newvalue), Layer18);
  81. } else {
  82. if(( band == 7)) {
  83. func1370(( 128 - newvalue), Layer19);
  84. } else {
  85. if(( band == 8)) {
  86. func1370(( 128 - newvalue), Layer20);
  87. } else {
  88. if(( band == 9)) {
  89. func1370(( 128 - newvalue), Layer21);
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }
  100. return Null;
  101. }
  102.  
  103. func1370(Int 0, Layer 0)
  104. {
  105. Region Region51;
  106. Region51 = ( new Region);
  107. Region51.loadFromMap(Map22, Int49, 0);
  108. Layer50.setRegion(Region51);
  109. delete Region51;
  110. return Null;
  111. }
  112.  
  113. Layer11.onLeftButtonDown(int x, int y)
  114. {
  115. func3567(Layer11, 10, x, y);
  116. Boolean23 = 1;
  117. return Null;
  118. }
  119.  
  120. Layer11.onLeftButtonUp(int x, int y)
  121. {
  122. if(Boolean23) {
  123. Boolean23 = 0;
  124. }
  125. return Null;
  126. }
  127.  
  128. Layer11.onMouseMove(int x, int y)
  129. {
  130. if(Boolean23) {
  131. func3567(Layer11, 10, x, y);
  132. }
  133. return Null;
  134. }
  135.  
  136. Layer12.onLeftButtonDown(int x, int y)
  137. {
  138. func3567(Layer12, 0, x, y);
  139. Boolean23 = 1;
  140. return Null;
  141. }
  142.  
  143. Layer12.onLeftButtonUp(int x, int y)
  144. {
  145. if(Boolean23) {
  146. Boolean23 = 0;
  147. }
  148. return Null;
  149. }
  150.  
  151. Layer12.onMouseMove(int x, int y)
  152. {
  153. if(Boolean23) {
  154. func3567(Layer12, 0, x, y);
  155. }
  156. return Null;
  157. }
  158.  
  159. Layer13.onLeftButtonDown(int x, int y)
  160. {
  161. func3567(Layer13, 1, x, y);
  162. Boolean23 = 1;
  163. return Null;
  164. }
  165.  
  166. Layer13.onLeftButtonUp(int x, int y)
  167. {
  168. if(Boolean23) {
  169. Boolean23 = 0;
  170. }
  171. return Null;
  172. }
  173.  
  174. Layer13.onMouseMove(int x, int y)
  175. {
  176. if(Boolean23) {
  177. func3567(Layer13, 1, x, y);
  178. }
  179. return Null;
  180. }
  181.  
  182. Layer14.onLeftButtonDown(int x, int y)
  183. {
  184. func3567(Layer14, 2, x, y);
  185. Boolean23 = 1;
  186. return Null;
  187. }
  188.  
  189. Layer14.onLeftButtonUp(int x, int y)
  190. {
  191. if(Boolean23) {
  192. Boolean23 = 0;
  193. }
  194. return Null;
  195. }
  196.  
  197. Layer14.onMouseMove(int x, int y)
  198. {
  199. if(Boolean23) {
  200. func3567(Layer14, 2, x, y);
  201. }
  202. return Null;
  203. }
  204.  
  205. Layer15.onLeftButtonDown(int x, int y)
  206. {
  207. func3567(Layer15, 3, x, y);
  208. Boolean23 = 1;
  209. return Null;
  210. }
  211.  
  212. Layer15.onLeftButtonUp(int x, int y)
  213. {
  214. if(Boolean23) {
  215. Boolean23 = 0;
  216. }
  217. return Null;
  218. }
  219.  
  220. Layer15.onMouseMove(int x, int y)
  221. {
  222. if(Boolean23) {
  223. func3567(Layer15, 3, x, y);
  224. }
  225. return Null;
  226. }
  227.  
  228. Layer16.onLeftButtonDown(int x, int y)
  229. {
  230. func3567(Layer16, 4, x, y);
  231. Boolean23 = 1;
  232. return Null;
  233. }
  234.  
  235. Layer16.onLeftButtonUp(int x, int y)
  236. {
  237. if(Boolean23) {
  238. Boolean23 = 0;
  239. }
  240. return Null;
  241. }
  242.  
  243. Layer16.onMouseMove(int x, int y)
  244. {
  245. if(Boolean23) {
  246. func3567(Layer16, 4, x, y);
  247. }
  248. return Null;
  249. }
  250.  
  251. Layer17.onLeftButtonDown(int x, int y)
  252. {
  253. func3567(Layer17, 5, x, y);
  254. Boolean23 = 1;
  255. return Null;
  256. }
  257.  
  258. Layer17.onLeftButtonUp(int x, int y)
  259. {
  260. if(Boolean23) {
  261. Boolean23 = 0;
  262. }
  263. return Null;
  264. }
  265.  
  266. Layer17.onMouseMove(int x, int y)
  267. {
  268. if(Boolean23) {
  269. func3567(Layer17, 5, x, y);
  270. }
  271. return Null;
  272. }
  273.  
  274. Layer18.onLeftButtonDown(int x, int y)
  275. {
  276. func3567(Layer18, 6, x, y);
  277. Boolean23 = 1;
  278. return Null;
  279. }
  280.  
  281. Layer18.onLeftButtonUp(int x, int y)
  282. {
  283. if(Boolean23) {
  284. Boolean23 = 0;
  285. }
  286. return Null;
  287. }
  288.  
  289. Layer18.onMouseMove(int x, int y)
  290. {
  291. if(Boolean23) {
  292. func3567(Layer18, 6, x, y);
  293. }
  294. return Null;
  295. }
  296.  
  297. Layer19.onLeftButtonDown(int x, int y)
  298. {
  299. func3567(Layer19, 7, x, y);
  300. Boolean23 = 1;
  301. return Null;
  302. }
  303.  
  304. Layer19.onLeftButtonUp(int x, int y)
  305. {
  306. if(Boolean23) {
  307. Boolean23 = 0;
  308. }
  309. return Null;
  310. }
  311.  
  312. Layer19.onMouseMove(int x, int y)
  313. {
  314. if(Boolean23) {
  315. func3567(Layer19, 7, x, y);
  316. }
  317. return Null;
  318. }
  319.  
  320. Layer20.onLeftButtonDown(int x, int y)
  321. {
  322. func3567(Layer20, 8, x, y);
  323. Boolean23 = 1;
  324. return Null;
  325. }
  326.  
  327. Layer20.onLeftButtonUp(int x, int y)
  328. {
  329. if(Boolean23) {
  330. Boolean23 = 0;
  331. }
  332. return Null;
  333. }
  334.  
  335. Layer20.onMouseMove(int x, int y)
  336. {
  337. if(Boolean23) {
  338. func3567(Layer20, 8, x, y);
  339. }
  340. return Null;
  341. }
  342.  
  343. Layer21.onLeftButtonDown(int x, int y)
  344. {
  345. func3567(Layer21, 9, x, y);
  346. Boolean23 = 1;
  347. return Null;
  348. }
  349.  
  350. Layer21.onLeftButtonUp(int x, int y)
  351. {
  352. if(Boolean23) {
  353. Boolean23 = 0;
  354. }
  355. return Null;
  356. }
  357.  
  358. Layer21.onMouseMove(int x, int y)
  359. {
  360. if(Boolean23) {
  361. func3567(Layer21, 9, x, y);
  362. }
  363. return Null;
  364. }
  365.  
  366. func3567(Layer 0, Int 0, Int 0, Int 0)
  367. {
  368. Int Int123;
  369. Int123 = Map22.getValue(( Int121 - Layer119.getLeft()), ( Int122 - Layer119.getTop()));
  370. Int123 = ( 128 - Int123);
  371. if(( Int120 == 0)) {
  372. System.setEqBand(0, Int123);
  373. } else {
  374. if(( Int120 == 1)) {
  375. System.setEqBand(1, Int123);
  376. } else {
  377. if(( Int120 == 2)) {
  378. System.setEqBand(2, Int123);
  379. } else {
  380. if(( Int120 == 3)) {
  381. System.setEqBand(3, Int123);
  382. } else {
  383. if(( Int120 == 4)) {
  384. System.setEqBand(4, Int123);
  385. } else {
  386. if(( Int120 == 5)) {
  387. System.setEqBand(5, Int123);
  388. } else {
  389. if(( Int120 == 6)) {
  390. System.setEqBand(6, Int123);
  391. } else {
  392. if(( Int120 == 7)) {
  393. System.setEqBand(7, Int123);
  394. } else {
  395. if(( Int120 == 8)) {
  396. System.setEqBand(8, Int123);
  397. } else {
  398. if(( Int120 == 9)) {
  399. System.setEqBand(9, Int123);
  400. } else {
  401. if(( Int120 == 10)) {
  402. System.setEqPreamp(Int123);
  403. }
  404. }
  405. }
  406. }
  407. }
  408. }
  409. }
  410. }
  411. }
  412. }
  413. }
  414. return Null;
  415. }
  416.  
  417. System.onScriptUnloading()
  418. {
  419. delete Map22;
  420. return Null;
  421. }
  422.  
  423.  
  424.