Old 6th April 2017, 03:06   #1
scottiescotsman
Senior Member
 
Join Date: Aug 2015
Posts: 180
layer swap

Long time no see lol
Ok What I have is a
code:

<groupdef id="layer" x="0" y="0" w="393" h="400">

<layer id="eq" x="0" y="0" w="393" h="400">
##stuff##
</layer>
<layer id="art" x="0" y="0" w="393" h="400">
##stuff##
</layer>
<layer id="osc" x="0" y="0" w="393" h="400">
##stuff##
</layer>
<layer id="tape" x="0" y="0" w="393" h="400">
##stuff##
</layer>

<script id="layerswap" file="scripts/layerswap.maki"/>

</groupdef>


And have added a maki script
code:

#include <lib/std.mi>

Global Layer Layer1, Layer2, Layer3, Layer4;

System.onScriptLoaded() {

group pGroup = getScriptGroup();

Layer1 = pGroup.getObject("eq");
Layer2 = pGroup.getObject("art");
Layer3 = pGroup.getObject("osc");
Layer4 = pGroup.getObject("tape");

Layer1.hide();
Layer2.hide();
Layer3.hide();
Layer4.hide();

}



So why doesn't it blank the layers out, and I have tried it with buttons but doesn't work either
scottiescotsman is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump