home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 January
/
PCWorld_2004-01_cd.bin
/
Software
/
topware
/
winamp5
/
winamp50beta2.exe
/
$_14327_
/
videoavs.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-10-19
|
16KB
|
1,094 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global ConfigAttribute ConfigAttribute3;
Global ConfigAttribute ConfigAttribute4;
Global ConfigAttribute ConfigAttribute5;
Global ConfigAttribute ConfigAttribute6;
Global ConfigAttribute ConfigAttribute7;
Global ConfigAttribute ConfigAttribute8;
Global ConfigAttribute ConfigAttribute9;
Global ConfigAttribute ConfigAttribute10;
Global ConfigAttribute ConfigAttribute11;
Global ConfigAttribute ConfigAttribute12;
Global ConfigAttribute ConfigAttribute13;
Global ConfigAttribute ConfigAttribute14;
Global ConfigAttribute ConfigAttribute15;
Global ConfigAttribute ConfigAttribute16;
Global ConfigAttribute ConfigAttribute17;
Global ConfigAttribute ConfigAttribute18;
Global ConfigAttribute ConfigAttribute19;
Global Int Int68;
Global Group Group71;
Global Group Group72;
Global Group Group73;
Global Group Group74;
Global Group Group75;
Global Group Group76;
Global Group Group77;
Global Button Button78;
Global Button Button79;
Global Button Button80;
Global Button Button81;
Global Button Button82;
Global Button Button83;
Global Button Button84;
Global Button Button85;
Global Layout Layout86;
Global Layout Layout87;
Global Layer Layer88;
Global Layer Layer89;
Global Layer Layer90;
Global Int Int91;
Global Timer Timer92;
Global Int Int93;
Global Int Int94;
Global Int Int95;
Global Int Int96;
Global Timer Timer97;
Global Int Int98;
Global Timer Timer99;
Global Int Int100;
Global Int Int101;
Global Int Int102;
Global Int Int103;
Global Int Int104;
Global Int Int105;
Global Int Int106;
Global Int Int107;
Global Int Int108;
Global Int Int109;
Global Int Int110;
Global Int Int111;
Global Int Int112;
Global GuiObject GuiObject113;
Global Int Int114;
Global Int Int115;
Global Container Container116;
Global Int Int117;
Function func0();
Function func2491(Int 0);
Function func3310(Int 0);
Function func5237();
Function func5278();
Function func5401();
Function func5648();
Function func5801();
Function func6048();
Function func6201();
Function func6283();
Function func6605();
Function func6648();
Function func6691();
Function func7270();
Function func7440();
Function func7714();
Function func7893();
Function func8133();
Function func8162();
Function func8191();
Function func8223();
Function func8261();
Function func8358();
Function func8922();
func0()
{
ConfigAttribute ConfigAttribute43;
ConfigItem ConfigItem36;
ConfigItem ConfigItem28;
ConfigItem ConfigItem34;
ConfigAttribute ConfigAttribute45;
ConfigAttribute ConfigAttribute41;
ConfigItem ConfigItem25;
ConfigAttribute ConfigAttribute50;
ConfigItem ConfigItem31;
ConfigItem ConfigItem38;
ConfigAttribute ConfigAttribute40;
ConfigAttribute ConfigAttribute42;
ConfigItem ConfigItem22;
ConfigItem22 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
ConfigItem25 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
ConfigItem28 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
ConfigItem31 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
ConfigItem34 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
ConfigItem36 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
ConfigItem38 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
ConfigAttribute40 = ConfigItem36.newAttribute(( "Winamp\ Modern"), ( ""));
ConfigAttribute40.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
ConfigAttribute41 = ConfigItem22.newAttribute(( "Drawers"), ( ""));
ConfigAttribute41.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
ConfigAttribute42 = ConfigItem22.newAttribute(( "Menus"), ( ""));
ConfigAttribute42.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
ConfigAttribute43 = ConfigItem22.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
ConfigAttribute43.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
ConfigAttribute45 = ConfigItem22.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
ConfigAttribute45.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
ConfigAttribute3 = ConfigItem25.newAttribute(( "Animate\ Video\/Vis\ Drawer"), ( "0"));
ConfigAttribute4 = ConfigItem25.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
ConfigAttribute50 = ConfigItem25.newAttribute(( "sep1"), ( ""));
ConfigAttribute50.setData(( "\-"));
ConfigAttribute7 = ConfigItem25.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
ConfigAttribute8 = ConfigItem25.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
ConfigAttribute9 = ConfigItem25.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
if(( ConfigAttribute7.getData() == ( "1"))) {
ConfigAttribute7.onDataChanged();
} else {
ConfigAttribute8.onDataChanged();
}
ConfigAttribute11 = ConfigItem28.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
ConfigAttribute12 = ConfigItem28.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
ConfigAttribute13 = ConfigItem28.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
ConfigAttribute5 = ConfigItem22.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
ConfigAttribute6 = ConfigItem22.newAttribute(( "Detach\ Video\ Window"), ( "0"));
ConfigAttribute10 = ConfigItem38.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
ConfigAttribute17 = ConfigItem22.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
ConfigAttribute14 = ConfigItem31.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
ConfigAttribute15 = ConfigItem31.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
ConfigAttribute16 = ConfigItem31.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
ConfigAttribute19 = ConfigItem34.newAttribute(( "Open\ Context\ Menu"), ( "1"));
ConfigAttribute18 = ConfigItem34.newAttribute(( "Open\ Configuration"), ( "0"));
return Null;
}
ConfigAttribute7.onDataChanged()
{
if(Int68) {
return Null;
}
Int68 = 1;
ConfigAttribute8.setData(( "0"));
ConfigAttribute7.setData(( "1"));
Int68 = 0;
return Null;
}
ConfigAttribute8.onDataChanged()
{
if(Int68) {
return Null;
}
Int68 = 1;
ConfigAttribute7.setData(( "0"));
ConfigAttribute8.setData(( "1"));
Int68 = 0;
return Null;
}
ConfigAttribute14.onDataChanged()
{
if(Int68) {
return Null;
}
Int68 = 1;
ConfigAttribute15.setData(( "0"));
ConfigAttribute16.setData(( "0"));
Int68 = 0;
return Null;
}
ConfigAttribute15.onDataChanged()
{
if(Int68) {
return Null;
}
Int68 = 1;
ConfigAttribute14.setData(( "0"));
ConfigAttribute16.setData(( "0"));
Int68 = 0;
return Null;
}
ConfigAttribute16.onDataChanged()
{
if(Int68) {
return Null;
}
Int68 = 1;
ConfigAttribute14.setData(( "0"));
ConfigAttribute15.setData(( "0"));
Int68 = 0;
return Null;
}
ConfigAttribute19.onDataChanged()
{
if(Int68) {
return Null;
}
Int68 = 1;
ConfigAttribute18.setData(( "0"));
Int68 = 0;
func8922();
return Null;
}
ConfigAttribute18.onDataChanged()
{
if(Int68) {
return Null;
}
Int68 = 1;
ConfigAttribute19.setData(( "0"));
Int68 = 0;
func8922();
return Null;
}
System.onScriptLoaded()
{
Int101 = 0;
func0();
Group71 = System.getScriptGroup();
Button78 = Group71.findObject(( "videoavs\.open"));
Button79 = Group71.findObject(( "videoavs\.close"));
Button80 = Group71.findObject(( "button\.vid\.max"));
Button81 = Group71.findObject(( "button\.vid\.restore"));
Layer88 = Group71.findObject(( "player\.main\.resizer"));
Layer89 = Group71.findObject(( "drawer\.resizer"));
Group72 = Group71.findObject(( "buttons\.video"));
Group73 = Group71.findObject(( "buttons\.vis"));
Group74 = Group71.findObject(( "buttons\.video\.detach"));
Group75 = Group71.findObject(( "buttons\.vis\.detach"));
Button82 = Group75.findObject(( "button\.vis\.detach"));
Button83 = Group74.findObject(( "button\.vid\.detach"));
Group76 = Group71.findObject(( "buttons\.video\.switchto"));
Group77 = Group71.findObject(( "buttons\.vis\.switchto"));
Button84 = Group77.findObject(( "button\.vis\.Switchto"));
Button85 = Group76.findObject(( "button\.vid\.Switchto"));
Layer90 = Group71.findObject(( "openclosehider"));
Layout86 = Group71.getParentLayout();
Container116 = Layout86.getContainer();
GuiObject113 = Group71.findObject(( "AVSGroup"));
Int91 = 0;
GuiObject113.hide();
func5648();
func6048();
if(( ( ConfigAttribute5.getData() == ( "1")) && ( ConfigAttribute6.getData() == ( "1")))) {
Layer90.show();
} else {
Layer90.hide();
}
Int108 = ( - 1);
Int110 = 0;
Timer92 = ( new Timer);
Timer92.setDelay(1);
Timer97 = ( new Timer);
Timer97.setDelay(1);
Timer99 = ( new Timer);
Timer99.setDelay(1000);
return Null;
}
Layout86.onSetVisible(Boolean onoff)
{
if(( ! Int117)) {
Int117 = 1;
if(( ! Layout87)) {
Layout87 = Container116.getLayout(( "shade"));
if(( Layout87 == Null)) {
System.debugString(( "shade\ \=\=\ NULL\!"), 0);
} else {
System.debugString(( "shade\ is\ ok"), 0);
}
}
func8922();
}
return Null;
}
System.onScriptUnloading()
{
delete Timer92;
delete Timer97;
delete Timer99;
return Null;
}
Layout86.onTargetReached()
{
System.unlockUI();
if(( ConfigAttribute7.getData() == ( "1"))) {
Layout86.reverseTarget(0);
}
if(( Int91 == 1)) {
func6201();
System.setPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 1);
} else {
if(( Int91 == 2)) {
GuiObject113.hide();
System.setPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
}
}
Int91 = 0;
return Null;
}
func2491(Int 0)
{
Int Int147;
Int Int161;
Int Int156;
Int Int158;
Int Int155;
Int Int149;
Int Int154;
Int Int157;
System.setPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 1);
Int147 = System.getPrivateInt(( "winamp5"), ( "VideoAVSHeight"), 510);
if(( Int147 == 280)) {
Int147 = 510;
}
Int149 = Layout86.getGuiW();
if(( Int147 == Layout86.getHeight())) {
Int144 = 0;
}
Layer88.setXmlParam(( "resize"), ( "bottomright"));
Layer89.setXmlParam(( "resize"), ( "bottomright"));
Button78.hide();
Layout86.setXmlParam(( "minimum_h"), ( "380"));
Int154 = 0;
if(( ConfigAttribute7.getData() == ( "1"))) {
Int154 = 1;
}
Int155 = 0;
if(( Int144 && System.StringToInteger(ConfigAttribute3.getData()))) {
Int155 = 1;
}
if(( ConfigAttribute9.getData() == ( "1"))) {
Int114 = 0;
Int115 = 0;
if(Int154) {
Int156 = Layout86.getGuiY();
Int157 = Layout86.clientToScreenH(Layout86.getGuiH());
if(( ( Int156 + Int157) > ( Layout86.clientToScreenH(Int147) + System.getViewportTop()))) {
Int154 = 0;
Int114 = 1;
}
} else {
Int158 = 0;
if(( ! System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0))) {
Int158 = 116;
}
Int161 = Layout86.getGuiY();
if(( ( Int161 + Layout86.clientToScreenH(( Int147 - Int158))) < ( System.getViewportTop() + System.getViewportHeight()))) {
Int154 = 1;
Int115 = 1;
}
}
}
Int91 = 1;
Layout86.setTargetX(Layout86.getGuiX());
Layout86.setTargetY(Layout86.getGuiY());
Layout86.setTargetW(Int149);
Layout86.setTargetH(Int147);
Layout86.reverseTarget(Int154);
Layout86.setTargetSpeed(Int155);
Layout86.gotoTarget();
System.lockUI();
System.setPrivateInt(( "winamp5"), ( "VideoAVSHeight"), Int147);
GuiObject113.show();
return Null;
}
func3310(Int 0)
{
Int Int165;
Int Int167;
Int Int163;
func5648();
func6048();
System.setPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
if(( Int91 == 0)) {
Int163 = Layout86.getHeight();
System.setPrivateInt(( "winamp5"), ( "VideoAVSHeight"), Int163);
}
Layer88.setXmlParam(( "resize"), ( "right"));
Layer89.setXmlParam(( "resize"), ( "right"));
Button78.show();
func6283();
Int165 = 0;
if(( ConfigAttribute7.getData() == ( "1"))) {
Int165 = 1;
}
Layout86.setXmlParam(( "minimum_h"), ( "280"));
Int167 = 0;
if(( Int162 && System.StringToInteger(ConfigAttribute3.getData()))) {
Int167 = 1;
}
if(( ConfigAttribute9.getData() == ( "1"))) {
if(Int115) {
Int165 = 1;
}
if(Int114) {
Int165 = 0;
}
}
Int91 = 2;
Layout86.setTargetX(Layout86.getGuiX());
Layout86.setTargetY(Layout86.getGuiY());
Layout86.setTargetW(Layout86.getGuiW());
Layout86.setTargetH(280);
Layout86.reverseTarget(Int165);
Layout86.setTargetSpeed(Int167);
Layout86.gotoTarget();
System.lockUI();
return Null;
}
Button78.onLeftClick()
{
Int Int170;
Int Int168;
Int168 = System.getStatus();
if(( ( Int168 == 1) || ( Int168 == ( - 1)))) {
if(( ! System.isVideo())) {
if(( ConfigAttribute5.getData() == ( "0"))) {
func6648();
} else {
if(( ConfigAttribute6.getData() == ( "0"))) {
func6605();
} else {
func6691();
}
}
} else {
if(( ConfigAttribute6.getData() == ( "0"))) {
func6605();
} else {
if(( ConfigAttribute5.getData() == ( "0"))) {
func6648();
} else {
func6691();
}
}
}
} else {
Int170 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
if(( ( Int170 == 2) && ( ConfigAttribute5.getData() == ( "0")))) {
func6648();
} else {
if(( ( Int170 == 1) && ( ConfigAttribute6.getData() == ( "0")))) {
func6605();
} else {
if(( ConfigAttribute5.getData() == ( "0"))) {
func6648();
} else {
if(( ConfigAttribute6.getData() == ( "0"))) {
func6605();
} else {
func6691();
}
}
}
}
}
return Null;
}
Button79.onLeftClick()
{
func3310(1);
return Null;
}
Boolean System.onGetCancelComponent(String guid, boolean goingvisible)
{
Int Int176;
Int Int175;
if(Int100) {
return 0;
}
if(( ( ( guid == ( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}")) && ( ! goingvisible)) && Int102)) {
return 0;
}
if(( ( ( guid == ( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}")) && ( ! goingvisible)) && Int103)) {
return 0;
}
if(( ( ( guid == ( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}")) && goingvisible) && Int105)) {
return 0;
}
if(( ( ( guid == ( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}")) && goingvisible) && Int104)) {
return 0;
}
if(( ! Layout86.isVisible())) {
return 0;
}
Int175 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
Int176 = System.getPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
if(( Int176 == 0)) {
if(( guid == ( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}"))) {
if(( ConfigAttribute6.getData() == ( "0"))) {
if(goingvisible) {
func6605();
return ( - 1);
}
}
}
if(( guid == ( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}"))) {
if(( ConfigAttribute5.getData() == ( "0"))) {
if(goingvisible) {
func6648();
return ( - 1);
}
}
}
} else {
if(( Int176 == 1)) {
if(goingvisible) {
if(( ( guid == ( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}")) && ( Int175 == 2))) {
if(( ConfigAttribute6.getData() == ( "0"))) {
Int175 = 1;
func5648();
func5237();
return ( - 1);
}
} else {
if(( ( guid == ( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}")) && ( Int175 == 1))) {
if(( ConfigAttribute5.getData() == ( "0"))) {
Int175 = 2;
func8261();
func6048();
func5278();
return ( - 1);
}
}
}
}
}
}
if(( ( ! goingvisible) && ( Int176 == 1))) {
if(( ( guid == ( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}")) && ( Int175 == 1))) {
func6048();
func3310(1);
return 0;
}
if(( ( guid == ( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}")) && ( Int175 == 2))) {
func5648();
if(( ( ( ( System.getStatus() == 1) || ( System.getStatus() == ( - 1))) && System.isVideo()) && ( ConfigAttribute6.getData() == ( "0")))) {
func5237();
} else {
func3310(1);
}
return 0;
}
}
return 0;
}
Timer92.onTimer()
{
Int Int177;
Int Int178;
Int Int179;
Int Int180;
Timer92.stop();
Int177 = Int94;
Int178 = Int93;
Int179 = Int96;
Int180 = Int95;
Int94 = 0;
Int93 = 0;
Int96 = 0;
Int95 = 0;
if(( Int177 == 1)) {
func5801();
}
if(( Int178 == 1)) {
func5401();
}
if(( Int180 == 1)) {
func5648();
}
if(( Int179 == 1)) {
func6048();
}
return Null;
}
func5237()
{
Int94 = 1;
Int96 = 0;
Timer92.start();
return Null;
}
func5278()
{
Int93 = 1;
Int95 = 0;
Timer92.start();
return Null;
}
func5401()
{
GuiObject GuiObject182;
Int104 = 1;
System.setPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 1);
System.setPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
GuiObject182 = System.getScriptGroup().findObject(( "myviswnd"));
if(( GuiObject182 != Null)) {
Int100 = 1;
GuiObject182.show();
Int100 = 0;
}
Group72.hide();
Group74.hide();
Group76.hide();
Group73.show();
Group75.show();
if(( ConfigAttribute6.getData() == ( "0"))) {
Group77.show();
}
Int104 = 0;
return Null;
}
func5648()
{
GuiObject GuiObject183;
Int93 = 0;
Int103 = 1;
GuiObject183 = System.getScriptGroup().findObject(( "myviswnd"));
if(( GuiObject183 != Null)) {
Int100 = 1;
GuiObject183.hide();
Int100 = 0;
}
Group73.hide();
Group75.hide();
Group77.hide();
Int103 = 0;
return Null;
}
func5801()
{
GuiObject GuiObject185;
Int105 = 1;
System.setPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 1);
System.setPrivateInt(( "winamp5"), ( "VideoAVSState"), 1);
GuiObject185 = System.getScriptGroup().findObject(( "myvideownd"));
if(( GuiObject185 != Null)) {
Int100 = 1;
GuiObject185.show();
Int100 = 0;
}
Group73.hide();
Group75.hide();
Group77.hide();
Group72.show();
Group74.show();
if(( ConfigAttribute5.getData() == ( "0"))) {
Group76.show();
}
Int105 = 0;
return Null;
}
func6048()
{
GuiObject GuiObject186;
Int94 = 0;
Int102 = 1;
GuiObject186 = System.getScriptGroup().findObject(( "myvideownd"));
if(( GuiObject186 != Null)) {
Int100 = 1;
GuiObject186.hide();
Int100 = 0;
}
Group72.hide();
Group74.hide();
Group76.hide();
Int102 = 0;
return Null;
}
func6201()
{
Int Int187;
Int187 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
if(( Int187 == 1)) {
func5237();
}
if(( Int187 == 2)) {
func5278();
}
return Null;
}
func6283()
{
Int Int188;
Int188 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
func6048();
func5648();
return Null;
}
Button80.onLeftClick()
{
Int Int190;
Int Int189;
Int Int192;
Int Int191;
Int106 = Layout86.getGuiX();
Int107 = Layout86.getGuiY();
Int108 = Layout86.getGuiW();
Int109 = Layout86.getGuiH();
Button81.show();
Button80.hide();
Int189 = System.getViewportLeft();
Int190 = System.getViewportTop();
Int191 = System.getViewportWidth();
Int192 = System.getViewportHeight();
Int110 = 1;
Layout86.resize(Int189, Int190, Int191, ( Int192 + 119));
return Null;
}
Button81.onLeftClick()
{
Button80.show();
Button81.hide();
Layout86.resize(Int106, Int107, Int108, Int109);
return Null;
}
func6605()
{
System.setPrivateInt(( "winamp5"), ( "VideoAVSState"), 1);
func2491(1);
return Null;
}
func6648()
{
System.setPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
func2491(1);
return Null;
}
func6691()
{
System.setPrivateInt(( "winamp5"), ( "VideoAVSState"), 0);
func2491(1);
return Null;
}
Layout86.onResize(int x, int y, int w, int h)
{
if(( ! Int110)) {
Button80.show();
Button81.hide();
}
Int110 = 0;
if(( ( ! Layout86.isGoingToTarget()) && ( ! Int101))) {
Int101 = 1;
if(( h < 280)) {
System.setPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 1);
func2491(0);
} else {
System.setPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
}
}
return Null;
}
Button82.onLeftClick()
{
ConfigAttribute5.setData(( "1"));
return Null;
}
Button83.onLeftClick()
{
ConfigAttribute6.setData(( "1"));
return Null;
}
Button84.onLeftClick()
{
func5648();
func5801();
return Null;
}
Button85.onLeftClick()
{
func8261();
func6048();
func5401();
return Null;
}
ConfigAttribute6.onDataChanged()
{
if(( ConfigAttribute6.getData() == ( "1"))) {
func7270();
Group77.hide();
if(( ConfigAttribute5.getData() == ( "1"))) {
Layer90.show();
}
} else {
if(( ConfigAttribute6.getData() == ( "0"))) {
func7714();
Group77.show();
Layer90.hide();
}
}
return Null;
}
ConfigAttribute5.onDataChanged()
{
if(( ConfigAttribute5.getData() == ( "1"))) {
func7440();
Group76.hide();
if(( ConfigAttribute6.getData() == ( "1"))) {
Layer90.show();
}
} else {
if(( ConfigAttribute5.getData() == ( "0"))) {
func7893();
Group76.show();
Layer90.hide();
}
}
return Null;
}
func7270()
{
Int Int200;
Int Int199;
Int Int198;
Int198 = System.isNamedWindowVisible(( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}"));
Int199 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
Int200 = System.getPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
if(( ! Int198)) {
return Null;
}
if(( Int199 != 1)) {
return Null;
}
if(( Int200 == 1)) {
func8261();
func3310(1);
}
func8162();
return Null;
}
func7440()
{
Int Int203;
Int Int201;
Int Int202;
Int201 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
Int202 = System.getPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
if(( Int201 != 2)) {
return Null;
}
Int203 = System.isNamedWindowVisible(( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}"));
if(( ! Int203)) {
return Null;
}
if(( Int202 == 1)) {
func5648();
if(( ( ( ( System.getStatus() == 1) || ( System.getStatus() == ( - 1))) && System.isVideo()) && ( ConfigAttribute6.getData() == ( "0")))) {
System.setPrivateInt(( "winamp5"), ( "VideoAVSState"), 1);
func5237();
} else {
func3310(1);
}
}
func8133();
return Null;
}
func7714()
{
Int Int204;
Int Int206;
Int Int205;
func8261();
Int204 = System.isNamedWindowVisible(( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}"));
if(Int204) {
System.hideNamedWindow(( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}"));
Int205 = System.getPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
Int206 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
if(( Int206 == 2)) {
func5648();
}
if(( Int205 == 0)) {
func6605();
} else {
func5237();
}
}
return Null;
}
func7893()
{
Int Int208;
Int Int209;
Int Int207;
func8261();
Int207 = System.isNamedWindowVisible(( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}"));
if(Int207) {
System.hideNamedWindow(( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}"));
Int208 = System.getPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
Int209 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
if(( Int209 == 1)) {
func6048();
}
if(( Int208 == 0)) {
func6648();
} else {
func5278();
}
}
return Null;
}
Timer97.onTimer()
{
Timer97.stop();
if(( Int98 == 2)) {
func8223();
}
if(( Int98 == 1)) {
func8191();
}
return Null;
}
func8133()
{
Int98 = 1;
Timer97.start();
return Null;
}
func8162()
{
Int98 = 2;
Timer97.start();
return Null;
}
func8191()
{
System.showWindow(( "\{0000000A\-000C\-0010\-FF7B\-01014263450C\}"), ( ""), 0);
return Null;
}
func8223()
{
System.showWindow(( "\{F0816D7B\-FFFC\-4343\-80F2\-E8199AA15CC3\}"), ( ""), 0);
func8358();
return Null;
}
func8261()
{
ConfigAttribute ConfigAttribute213;
ConfigItem ConfigItem211;
ConfigItem211 = Config.getItem(( "\{0542AFA4\-48D9\-4c9f\-8900\-5739D52C114F\}"));
if(ConfigItem211) {
ConfigAttribute213 = ConfigItem211.getAttribute(( "Prevent\ video\ playback\ Stop\ on\ video\ window\ Close"));
if(ConfigAttribute213) {
ConfigAttribute213.setData(( "1"));
}
}
Timer99.start();
return Null;
}
func8358()
{
ConfigAttribute ConfigAttribute215;
ConfigItem ConfigItem214;
Timer99.stop();
ConfigItem214 = Config.getItem(( "\{0542AFA4\-48D9\-4c9f\-8900\-5739D52C114F\}"));
if(ConfigItem214) {
ConfigAttribute215 = ConfigItem214.getAttribute(( "Prevent\ video\ playback\ Stop\ on\ video\ window\ Close"));
if(ConfigAttribute215) {
ConfigAttribute215.setData(( "0"));
}
}
return Null;
}
Timer99.onTimer()
{
func8358();
return Null;
}
Layout86.onUserResize(int x, int y, int w, int h)
{
Int Int220;
Int Int221;
Int220 = System.getPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
if(( Int220 == 1)) {
Int221 = Layout86.getHeight();
if(( Int221 != 280)) {
System.debugString(( ( "h\ \=\ ") + System.integerToString(Int221)), 0);
System.setPrivateInt(( "winamp5"), ( "VideoAVSHeight"), Int221);
}
}
return Null;
}
Container116.onBeforeSwitchToLayout(Layout oldlayout, Layout newlayout)
{
Int Int226;
Int Int225;
Int225 = System.getPrivateInt(( "winamp5"), ( "VideoAVSOpenState"), 0);
Int226 = System.getPrivateInt(( "winamp5"), ( "VideoAVSState"), 2);
if(( ( ( ( ( oldlayout == Layout86) && ( Int225 == 1)) && ( Int226 == 1)) && ( System.getStatus() == 1)) && System.isVideo())) {
func8261();
Int111 = 1;
}
if(( ( ( oldlayout == Layout86) && ( Int225 == 1)) && ( Int226 == 2))) {
Int112 = 1;
}
return Null;
}
Container116.onSwitchToLayout(Layout newlayout)
{
if(Int111) {
Int111 = 0;
func8223();
}
if(Int112) {
Int112 = 0;
func8191();
}
return Null;
}
func8922()
{
Button Button229;
Button229 = System.getScriptGroup().findObject(( "button\.vis\.misc"));
if(Button229) {
if(( ConfigAttribute19.getData() == ( "1"))) {
Button229.setXmlParam(( "action"), ( "Vis_Menu"));
} else {
Button229.setXmlParam(( "action"), ( "Vis_Cfg"));
}
}
return Null;
}