home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 40
/
MINAMI40.ISO
/
Extra
/
winamp3_0-full.exe
/
Wacs
/
xml
/
guiobjects
/
popupmenu
/
popupitem.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2002-06-25
|
3KB
|
134 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group2;
Global GuiObject GuiObject3;
Class GuiObject GuiObject4Class;
Global Int Int5;
Global Int Int6;
Global Int Int7;
Global GuiObject4Class GuiObject4Class8;
Global GuiObject4Class GuiObject4Class9;
Global GuiObject4Class GuiObject4Class10;
Global GuiObject4Class GuiObject4Class11;
Global GuiObject GuiObject12;
Global GuiObject GuiObject13;
Global GuiObject GuiObject14;
Function func490(Int 0);
Function func541(Int 0);
Function func592();
System.onScriptLoaded()
{
Group2 = System.getScriptGroup();
if(( Group2 == Null)) {
System.messageBox(( "popupitem\.maki\:\ cannot\ run\ outside\ a\ group"), ( "Error"), 0, ( ""));
return Null;
}
GuiObject12 = Group2.getObject(( "popup\.item\.checkmark"));
GuiObject4Class8 = GuiObject12;
GuiObject13 = Group2.getObject(( "popup\.item\.text"));
GuiObject4Class9 = GuiObject13;
GuiObject14 = Group2.getObject(( "popup\.item\.submenuarrow"));
GuiObject4Class10 = GuiObject14;
GuiObject3 = Group2.getObject(( "popup\.background"));
GuiObject4Class11 = GuiObject3;
Int6 = ( - 1);
Int7 = ( - 1);
return Null;
}
Int Group2.onNotify(String command, String param, int a, int b)
{
if(( command == ( "id"))) {
Int5 = System.StringToInteger(param);
}
if(( command == ( "arrow"))) {
func490(System.StringToInteger(param));
}
if(( command == ( "checkmark"))) {
func541(System.StringToInteger(param));
}
return Null;
}
GuiObject4Class.onEnterArea()
{
GuiObject3.cancelTarget();
GuiObject3.setAlpha(255);
return Null;
}
GuiObject4Class.onLeaveArea()
{
GuiObject3.setTargetA(0);
GuiObject3.setTargetSpeed(( 0.25));
GuiObject3.gotoTarget();
return Null;
}
GuiObject4Class.onLeftButtonDown(int x, int y)
{
Group2.endModal(Int5);
return Null;
}
func490(Int 0)
{
if(( Int7 == Int35)) {
return Null;
}
Int7 = Int35;
func592();
return Null;
}
func541(Int 0)
{
if(( Int6 == Int36)) {
return Null;
}
Int6 = Int36;
func592();
return Null;
}
func592()
{
Int Int38;
Int Int39;
Int38 = 2;
Int39 = 2;
if(( ! Int6)) {
if(( GuiObject12 != Null)) {
GuiObject12.hide();
}
} else {
if(( GuiObject12 != Null)) {
GuiObject12.show();
}
Int38 = ( Int38 + ( 10 + 2));
Int39 = ( Int39 + ( 10 + 2));
}
if(( ! Int7)) {
if(( GuiObject14 != Null)) {
GuiObject14.hide();
}
} else {
if(( GuiObject14 != Null)) {
GuiObject14.show();
}
Int39 = ( Int39 + ( 10 + 6));
}
Int39 = ( Int39 + 2);
if(( GuiObject13 != Null)) {
GuiObject13.setXmlParam(( "x"), System.integerToString(Int38));
GuiObject13.setXmlParam(( "w"), ( ( "\-") + System.integerToString(Int39)));
}
return Null;
}