home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 November
/
CDVD1105.ISO
/
Util
/
Winamp
/
Skins
/
Anime_Shogo.wal
/
scripts
/
frame.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-08-17
|
7KB
|
257 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group11;
Global Group Group12;
Global Group Group13;
Global String String14;
Global String String15;
Global String String16;
Global String String17;
Global String String18;
Global String String19;
Global String String20;
Global String String21;
Global Layer Layer22;
Global Layer Layer23;
Global Layer Layer24;
Global Layer Layer25;
Global Layer Layer26;
Global Layer Layer27;
Global Text Text28;
Global Button Button29;
Global Timer Timer30;
Global Double Double31;
Global Double Double32;
Global Boolean Boolean33;
Function func1212(String "0");
Function func2572(Int 0, Int 0);
System.onScriptLoaded()
{
String String38;
Group11 = System.getScriptGroup();
Text28 = Group11.findObject(( "window\.titlebar\.title"));
Layer23 = Group11.findObject(( "component\.play\.left"));
Layer24 = Group11.findObject(( "component\.play\.middle"));
Layer25 = Group11.findObject(( "component\.play\.right"));
String38 = System.getParam();
String14 = System.getToken(String38, ( "\,"), 0);
String15 = System.getToken(String38, ( "\,"), 1);
String16 = System.getToken(String38, ( "\,"), 2);
String17 = System.getToken(String38, ( "\,"), 3);
String18 = System.getToken(String38, ( "\,"), 4);
String19 = System.getToken(String38, ( "\,"), 5);
String20 = System.getToken(String38, ( "\,"), 6);
String21 = System.getToken(String38, ( "\,"), 7);
Button29 = Group11.findObject(( "sysmenu"));
Layer26 = Group11.findObject(( "component\.vu\.left"));
Layer27 = Group11.findObject(( "component\.vu\.right"));
Boolean33 = System.getPrivateInt(System.getSkinName(), ( "StdVU"), 1);
Timer30 = ( new Timer);
Timer30.setDelay(30);
Timer30.start();
return Null;
}
System.onSetXuiParam(String param, String value)
{
if(( param == ( "content"))) {
func1212(value);
Group13 = Group11.findObject(( "wasabi\.titlebar"));
Layer22 = Group13.findObject(( "mousetrap"));
}
if(( ( param == ( "padtitleright")) || ( param == ( "padtitleleft")))) {
if(( Group13 != Null)) {
Group13.setXmlParam(param, value);
}
}
if(( param == ( "shade"))) {
if(( Layer22 != Null)) {
Layer22.setXmlParam(( "dblclickaction"), ( ( "switch\;") + value));
} else {
System.messageBox(( "Cannot\ set\ shade\ parameter\ for\ StandardFrame\ object\,\ no\ mousetrap\ found"), ( "Skin\ Error"), 0, ( ""));
}
}
return Null;
}
Int Group11.onNotify(String command, String param, int a, int b)
{
String String68;
String String67;
String67 = System.getToken(command, ( "\,"), 0);
String68 = System.getToken(command, ( "\,"), 1);
if(( ( ( ( String67 == ( "content")) || ( String67 == ( "padtitleright"))) || ( String67 == ( "padtitleleft"))) || ( String67 == ( "shade")))) {
System.onSetXuiParam(String67, String68);
}
return Null;
}
func1212(String "0")
{
Group12 = System.newGroup(String69);
if(( Group12 == Null)) {
System.messageBox(( ( ( "group\ \"") + String69) + ( "\"\ not\ found")), ( "ButtonGroup"), 0, ( ""));
return Null;
}
Group12.setXmlParam(( "x"), String14);
Group12.setXmlParam(( "y"), String15);
Group12.setXmlParam(( "w"), String16);
Group12.setXmlParam(( "h"), String17);
Group12.setXmlParam(( "relatx"), String18);
Group12.setXmlParam(( "relaty"), String19);
Group12.setXmlParam(( "relatw"), String20);
Group12.setXmlParam(( "relath"), String21);
Group12.init(Group11);
return Null;
}
Button29.onLeftClick()
{
LayoutStatus LayoutStatus82;
LayoutStatus82 = Group11.findObject(( "sysmenu\.status"));
LayoutStatus82.callme(( "\{system\}"));
return Null;
}
Layer23.onEnterArea()
{
Text28.setXmlParam(( "default"), ( "Double\ Click\ To\ Play"));
Layer23.setXmlParam(( "image"), ( "frame\.play\.left\.hover"));
Layer24.setXmlParam(( "image"), ( "frame\.play\.middle\.hover"));
Layer25.setXmlParam(( "image"), ( "frame\.play\.right\.hover"));
return Null;
}
Layer24.onEnterArea()
{
Text28.setXmlParam(( "default"), ( "Double\ Click\ To\ Play"));
Layer23.setXmlParam(( "image"), ( "frame\.play\.left\.hover"));
Layer24.setXmlParam(( "image"), ( "frame\.play\.middle\.hover"));
Layer25.setXmlParam(( "image"), ( "frame\.play\.right\.hover"));
return Null;
}
Layer25.onEnterArea()
{
Text28.setXmlParam(( "default"), ( "Double\ Click\ To\ Play"));
Layer23.setXmlParam(( "image"), ( "frame\.play\.left\.hover"));
Layer24.setXmlParam(( "image"), ( "frame\.play\.middle\.hover"));
Layer25.setXmlParam(( "image"), ( "frame\.play\.right\.hover"));
return Null;
}
Layer23.onLeaveArea()
{
Text28.setXmlParam(( "default"), ( "\:componentname"));
Layer23.setXmlParam(( "image"), ( "frame\.play\.left"));
Layer24.setXmlParam(( "image"), ( "frame\.play\.middle"));
Layer25.setXmlParam(( "image"), ( "frame\.play\.right"));
return Null;
}
Layer24.onLeaveArea()
{
Text28.setXmlParam(( "default"), ( "\:componentname"));
Layer23.setXmlParam(( "image"), ( "frame\.play\.left"));
Layer24.setXmlParam(( "image"), ( "frame\.play\.middle"));
Layer25.setXmlParam(( "image"), ( "frame\.play\.right"));
return Null;
}
Layer25.onLeaveArea()
{
Text28.setXmlParam(( "default"), ( "\:componentname"));
Layer23.setXmlParam(( "image"), ( "frame\.play\.left"));
Layer24.setXmlParam(( "image"), ( "frame\.play\.middle"));
Layer25.setXmlParam(( "image"), ( "frame\.play\.right"));
return Null;
}
Layer23.onLeftButtonDblClk(int x, int y)
{
System.play();
complete;
return Null;
}
Layer24.onLeftButtonDblClk(int x, int y)
{
System.play();
complete;
return Null;
}
Layer25.onLeftButtonDblClk(int x, int y)
{
System.play();
complete;
return Null;
}
Timer30.onTimer()
{
Double31 = System.getLeftVuMeter();
Double32 = System.getRightVuMeter();
if(Boolean33) {
func2572(Double31, Double32);
}
return Null;
}
func2572(Int 0, Int 0)
{
Layer26.setTargetA(Int100);
Layer26.setTargetSpeed(( 0.0500000007450581));
Layer26.gotoTarget();
Layer27.setTargetA(Int101);
Layer27.setTargetSpeed(( 0.0500000007450581));
Layer27.gotoTarget();
return Null;
}
Layer26.onLeftButtonUp(int x, int y)
{
if(Boolean33) {
Boolean33 = 0;
Layer26.setTargetA(0);
Layer26.setTargetSpeed(( 0.5));
Layer26.gotoTarget();
Layer27.setTargetA(0);
Layer27.setTargetSpeed(( 0.5));
Layer27.gotoTarget();
} else {
Boolean33 = 1;
}
return Null;
}
Layer27.onLeftButtonUp(int x, int y)
{
if(Boolean33) {
Boolean33 = 0;
Layer26.setTargetA(0);
Layer26.setTargetSpeed(( 0.5));
Layer26.gotoTarget();
Layer27.setTargetA(0);
Layer27.setTargetSpeed(( 0.5));
Layer27.gotoTarget();
} else {
Boolean33 = 1;
}
return Null;
}
System.onScriptUnloading()
{
System.setPrivateInt(System.getSkinName(), ( "StdVU"), Boolean33);
Timer30.stop();
delete Timer30;
return Null;
}