home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2003-11-16 | 1.9 KB | 75 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global Group Group2;
- Global Slider Slider3;
- Global Int Int4;
- Global Timer Timer5;
- Global Text Text6;
-
-
- System.onScriptLoaded()
- {
- Group2 = System.getScriptGroup();
- Slider3 = Group2.findObject(( "shadeSeekerGhost"));
- Text6 = Group2.findObject(( "SongtickerShade"));
- Timer5 = ( new Timer);
- Timer5.setDelay(1000);
- return Null;
- }
-
- Timer5.onTimer()
- {
- Text6.setText(( ""));
- Timer5.stop();
- return Null;
- }
-
- System.onScriptUnloading()
- {
- delete Timer5;
- return Null;
- }
-
- Slider3.onSetPosition(int newpos)
- {
- Float Float12;
- Int Int17;
- Float Float15;
- if(Int4) {
- Float12 = newpos;
- Float12 = ( ( Float12 / 255) * 100);
- Float15 = System.getPlayItemLength();
- if(( Float15 != 0)) {
- Int17 = ( ( Float15 * Float12) / 100);
- Timer5.start();
- Text6.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int17)) + ( "\/")) + System.integerToTime(Float15)) + ( "\ \(")) + System.integerToString(Float12)) + ( "\%\)\ ")));
- }
- }
- return Null;
- }
-
- Slider3.onLeftButtonDown(int x, int y)
- {
- Int4 = 1;
- return Null;
- }
-
- Slider3.onLeftButtonUp(int x, int y)
- {
- Int4 = 0;
- Timer5.start();
- Text6.setText(( ""));
- return Null;
- }
-
- Slider3.onSetFinalPosition(int pos)
- {
- Timer5.start();
- Text6.setText(( ""));
- return Null;
- }
-
-
-