|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2008
Posts: 26
|
maki help
//here is my maki please read the bottom
#include "std.mi" Global layer idummy, tempdummy; //idummy for foreground; tempdummy for temp holder Global layer partone, parttwo, partthree, partfour; //parts for layers holder - in order Global togglebutton painloop; // loopbutton Global togglebutton onepain, twopain, threepain, fourpain; //buttons to activate layers - in order Global Group allmypains; System.onScriptLoaded(){ allmypains = getScriptGroup(); idummy=allmypains.findObject("inforeground"); //change to foreground value partone=allmypains.findObject("bgone"); //get all layer values -in order parttwo=allmypains.findObject("bgtwo"); partthree=allmypains.findObject("bgthree"); partfour=allmypains.findObject("bgfour"); onepain=allmypains.findObject("changebuttonone"); //get all pain buttons- in order twopain=allmypains.findObject("changebuttontwo"); threepain=allmypains.findObject("changebuttonthree"); fourpain=allmypains.findObject("changebuttonfour"); painloop=allmypains.findObject("bgloopbutton"); //get loop button idummy = partone; //set first layer to foreground tempdummy = idummy; //tempdummy get value since idummy will change value } //---------------------------------------------------------------- onepain.onLeftButtonUp(int x, int y) { // buttons1 onclick if (idummy != partone){ idummy = partone; tempdummy = partone; } } onepain.onEnterArea(int x, int y){ if (idummy != partone){ idummy = partone; } } onepain.onLeaveArea(int x, int y){ if (idummy != partone){ idummy = tempdummy; } } //------------ //I wanted to know how to set(change the value of) the inforeground layer //I you don't understand what I am talking about look at the image below //bihen.deviantart.com/art/winamp-77116028 //I am trying to loop the layers too is there anyway? and how. thanks |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jan 2006
Location: /\/¯¯¯¯¯\/\ , South-Africa
Posts: 1,026
|
Cant see what you want to do but I can tell you that to change a layer or a image in a button you do this:
PHP Code:
PHP Code:
PHP Code:
Hope this helps
ClassicPro© v2.01 : This plugin allows you to use cPro skins in Winamp. ClassicPro skins are all SUI skins and loads very quickly. ClassicPro skins is even easier to skin than Winamp Classic skins. A new layout have been added since version 2. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2008
Posts: 26
|
actually
i am trying to use the buttons to set layers 1 or 2 or 3 or 4 to the inforeground layer
idummy = partone is where I am doingwrong. I want the inforeground layer to change to the link in layer bgone by the way is there a way to animate the layers using buttons to activate it, if they are placed in the same image file. i saw it in the post called MAKI Cheats that it's possible but I don't uderstand it. |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Jan 2006
Location: /\/¯¯¯¯¯\/\ , South-Africa
Posts: 1,026
|
Here is what I'll do if I understand you right:
Xml: PHP Code:
PHP Code:
![]() As for the animation: PHP Code:
http://wiki.skinconsortium.com/index...tedlayer.2F.3E But had a quick look at the bitmap used there... You only need one bitmap... if the AnimatedLayer is 50pixels high... then your image you use there should also be: no. frames x 50... Like this: ..\Winamp\Skins\Big Bento\window\beatvis.png And in std.mi you'll find lots of functions for AnimatedLayer... just search for it
ClassicPro© v2.01 : This plugin allows you to use cPro skins in Winamp. ClassicPro skins are all SUI skins and loads very quickly. ClassicPro skins is even easier to skin than Winamp Classic skins. A new layout have been added since version 2. |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2008
Posts: 26
|
PHP Code:
PHP Code:
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Feb 2008
Posts: 26
|
PHP Code:
PHP Code:
|
|
|
|
|
|
#7 |
|
Major Dude
Join Date: Jul 2003
Location: UK
Posts: 1,316
|
hmm, thats just nasty
why don't you try using a xui button, that way you only need to do one lot of code for x amount of buttons |
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Jan 2006
Location: /\/¯¯¯¯¯\/\ , South-Africa
Posts: 1,026
|
Attach the skin... will be easier to take a look then
ClassicPro© v2.01 : This plugin allows you to use cPro skins in Winamp. ClassicPro skins are all SUI skins and loads very quickly. ClassicPro skins is even easier to skin than Winamp Classic skins. A new layout have been added since version 2. |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Feb 2008
Posts: 26
|
hmm, thats just nasty
why don't you try using a xui button, that way you only need to do one lot of code for x amount of buttons I wish I know how to do it but I am a beginner at this. i'll see what can I do with the attachnment of the skin. I can't go online often. |
|
|
|
|
|
#10 |
|
Major Dude
Join Date: Jul 2003
Location: UK
Posts: 1,316
|
check some of the recent sc skins, some of them have xui buttons where u can nab the code from
u have 1 xui button, do/have all the maki code for it and then just put an instance in of it in the xml file as needed, once u get your head round it, they are simple objects but powerful and will help to reduce code and maintenance |
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Feb 2008
Posts: 26
|
here's the link just click on download the zip will popup
http://bihen.deviantart.com/art/winamp-77116028 please take a look at the scripts/m maki files first I don't maybe it's the skins I dl from the net but it seems to make winamp disfunctional. btw. I searched for xui but nothing helpful came up. |
|
|
|
|
|
#12 |
|
Major Dude
Join Date: Jan 2006
Location: /\/¯¯¯¯¯\/\ , South-Africa
Posts: 1,026
|
Ok fuyou
Did this: - Started the maki from scratch - Used only one layer - Moved the script out of the button group to the top group (player.xml) -added the loop & change on hover Tell me if this is what you want. Just replace all the stuff with this stuff in the attachment Think you will understand maki a little better after you look at the new code ![]() EDIT: Forgot to tell you what your MAIN problem was: - The script was placed in the buttons group and not in the top group... this meens that your script found the buttons but couldn't find the layers. I moved the script to player.xml so that it can 'see' everything. ClassicPro© v2.01 : This plugin allows you to use cPro skins in Winamp. ClassicPro skins are all SUI skins and loads very quickly. ClassicPro skins is even easier to skin than Winamp Classic skins. A new layout have been added since version 2. |
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Feb 2008
Posts: 26
|
A big thanks for helping. I'll try it.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|