Old 28th November 2003, 19:09   #521
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
just a quick bat file for use with pngcrush (handy dos utility to reduce your bloated pngs ), this will crush the pngs in the specific folder & move the originals to a new folder (for safe keeping ) & then move the new crushed pngs back to the original folder
handy for the last skin optimisations
use at own risk it works on my box

@ECHO OFF
REM ********************************************************************************************************
REM
REM this will pngcrush all pngs and output the new crushed pngs to the output folder
REM it will create a source folder within your folder and move the original pngs to that for safe keeping
REM copy pngcrush.exe and this file to each of your png folders you want to crush
REM USE AT OWN RISK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
REM
REM ********************************************************************************************************
REM Basic pngcrush -d dir [other options] files.png ...

CLS

@ECHO ON

ECHO Making an Originalsource folder
md originals
pause

ECHO Crushing those bloated pngs
pngcrush -d output *.png *.png
pause

ECHO Moving all original pngs to source folder
move *.png originals\
pause

ECHO Moving all crushed pngs to original folder
move output\*.png
pause

ECHO Complete
pause
SLoB is offline   Reply With Quote
Old 30th November 2003, 23:36   #522
-=RoNtZ=-
Major Dude
 
-=RoNtZ=-'s Avatar
 
Join Date: Feb 2002
Location: Universe > Milkyway > Sol > Earth > Europe > Germany > Bavaria > Near Nuremberg
Posts: 1,346
Send a message via ICQ to -=RoNtZ=- Send a message via AIM to -=RoNtZ=- Send a message via Yahoo to -=RoNtZ=-
hey guys... it's me... again *g*...
i just wanted to be safe that i can't enable desktopalpha in any way, when i've included the colorthemes list in the skin.
or am i wrong there? (i hope so)

Frozen skins: Gravestone Betaskins: Mushroom ::-:: The Claw
In development: TechnodropFinished: Draculas Helmet (<-- still waiting for some color themes!) ::-:: Hal's eye
-=RoNtZ=- is offline   Reply With Quote
Old 30th November 2003, 23:58   #523
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
the window you have included the colorthemes list in cannot have desktopalpha.
there is ONE workaround for that, but it's tricky and it might not work for you..
Check Invicta, it uses the workaround for the shademode playlist drawer.
I think what they did was make the colorthemes list it's own groupdef outside of any window and then locked it to a window and set owner and shit..
It's all in there but like I said, a bit tricky perhaps and might not work for you..

-Plague
Plague is offline   Reply With Quote
Old 1st December 2003, 00:24   #524
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
this is one of the last things i want to do on my wip skin atm is to get the playlist in the stick mode, ill post a generic workaround when i get it working, ill be doing it in the next few days as beta 3 is now done (tonite)
only got any additional wa5 changes to make to it & more colour themes, btw would be nice if ya could check it out grfx, code have all been improved , i dont like the NON dta mode on it but it works more or less in this mode. http://slob.org.uk/wa5/UFO_beta3.wal
ive started a part of the pl just got the xml repositioning to do for the playlist
SLoB is offline   Reply With Quote
Old 1st December 2003, 01:26   #525
-=RoNtZ=-
Major Dude
 
-=RoNtZ=-'s Avatar
 
Join Date: Feb 2002
Location: Universe > Milkyway > Sol > Earth > Europe > Germany > Bavaria > Near Nuremberg
Posts: 1,346
Send a message via ICQ to -=RoNtZ=- Send a message via AIM to -=RoNtZ=- Send a message via Yahoo to -=RoNtZ=-
hmmm... i have it in an extra group, include this group in another one and include THIS group in another and include this to the mainplayer... i already checked invicta out, but that's to difficult for me...perhaps i've gotta make an extra window for the colorthemes, as always :-/ ...

Frozen skins: Gravestone Betaskins: Mushroom ::-:: The Claw
In development: TechnodropFinished: Draculas Helmet (<-- still waiting for some color themes!) ::-:: Hal's eye
-=RoNtZ=- is offline   Reply With Quote
Old 7th December 2003, 05:03   #526
matt_69
Sunshine
(Major Dude)
 
matt_69's Avatar
 
Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
hey guys,
with texts in winamp, is it possible to add a stroke to the outside thru layer effects or sumthin? just wanting to know cause in my new skin just wanting to use lower and upper case but can't add stroke unless its a bitmap, and as we all know u can't have 2 cases in it . n e help that u can give is very appreciated.

-matt

matt_69 is offline   Reply With Quote
Old 19th December 2003, 17:59   #527
coder2000
Junior Member
 
Join Date: Jun 2003
Location: Middle of North America
Posts: 3
Send a message via ICQ to coder2000
I know its been said many times but I am having problems with the drawer script. This is my first time actually working on a skin for any version of winamp and I am unsure of many things. I will pm someone the skin as it is grossly incomplete.
coder2000 is offline   Reply With Quote
Old 2nd January 2004, 22:00   #528
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
Hey guys. Acctualy this one geos to IPlaytheSpoon but if some of you can help me, then just do it. Ok here is my problem. I´ve used the dropdown list code from Iplaythespoons skin classix. My problem is i dun know what i am doing wrong but some how it dun wanna work. I hope you can help me. Check the attch. It contains the xml and maki file.
Attached Files
File Type: zip config.zip (1.5 KB, 222 views)
carlosp is offline   Reply With Quote
Old 3rd January 2004, 08:45   #529
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
what parts not working? i see some potential problems, but id like to know whats not working...
iPlayTheSpoons is offline   Reply With Quote
Old 3rd January 2004, 12:06   #530
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
If you looked in the maki you can see i wanna hide or show some party in the skin and that part deosn´t work. Nothing happens when i choose a string in the dropdown menu. That is my problem
carlosp is offline   Reply With Quote
Old 5th January 2004, 14:19   #531
-=RoNtZ=-
Major Dude
 
-=RoNtZ=-'s Avatar
 
Join Date: Feb 2002
Location: Universe > Milkyway > Sol > Earth > Europe > Germany > Bavaria > Near Nuremberg
Posts: 1,346
Send a message via ICQ to -=RoNtZ=- Send a message via AIM to -=RoNtZ=- Send a message via Yahoo to -=RoNtZ=-
i dunno if it'S been asked before, but i'll just asked. if it's already been answered please just tell me so.

ok: alpha-fading:
in winamp3 it was no problem letting an object fade in or out with gototarget.
similar thing in winamp5, but in wa5 it'S looking like he would do it with breaks, and that's looking pretty silly. any ideas how to solve that?
please don't tell me to shorten the fading time, it's ok as it is, and in wa3 it's working fine....

Frozen skins: Gravestone Betaskins: Mushroom ::-:: The Claw
In development: TechnodropFinished: Draculas Helmet (<-- still waiting for some color themes!) ::-:: Hal's eye
-=RoNtZ=- is offline   Reply With Quote
Old 6th January 2004, 16:29   #532
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
hey guys. There is a wa5 bug with the old cutomsvis script. You can ask rontz. Sometime the vis disapears even if there is no empty frame in the png. I made a new one with somechanges.Here is the code. It isn´t anthing special, but works without any bugs:

code:


function loadAdvVis();


Global AnimatedLayer MainVis;
Global Timer VisTimer;
Global Double Level, OneFrame;
Global Int LastFrame, firstframe;

loadAdvVis(){

MainVis = normal.findObject("Vis.Animation");

VisTimer = new Timer;
VisTimer.setDelay(50);
VisTimer.start();
MainVis.setSpeed(50);
OneFrame = 255/(MainVis.getLength());
firstframe = MainVis.getLength() + System.getLeftVuMeter()/50;

}

System.onScriptUnloading() {
VisTimer.stop();
delete VisTimer;
}


VisTimer.onTimer() {
Int Frame;
MainVis.setStartFrame(random(firstframe));
MainVis.setEndFrame(Frame);
MainVis.play();
LastFrame = Frame;
}




Hope you like it
carlosp is offline   Reply With Quote
Old 17th January 2004, 19:50   #533
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
no, carlos, i dont much like it. in the future dont change a script to "fix" it when youre not even doing it the right way. next time one of my scripts isnt working for you, contact me, and ill fix it the right way. thank you
iPlayTheSpoons is offline   Reply With Quote
Old 18th January 2004, 22:02   #534
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
OK !
carlosp is offline   Reply With Quote
Old 8th February 2004, 09:53   #535
Mad Irishman
Junior Member
 
Join Date: Feb 2004
Posts: 23
Ok. Here's a twisted question. Earlier posts told us how to make Treble and Bass knobs, but I want a 'combination' knob. Move it one way and the treble goes up(Base Down), the other does the reverse. You could kinda say that its a Eq-Slider, in that the dial will influence the highest point, and the rest will fall into line. (Preferably by a curve, though I'm not fussed.)

ie: at 50% the eq would look like this

....--....
..-||||-..
-||||||||-
||||||||||

And 100% like this:

.......--
....--|||
.--||||||
|||||||||
Where the Dashes are the highest points of the eq-bars,
Do you get the picture?
Mad Irishman is offline   Reply With Quote
Old 14th February 2004, 13:31   #536
watercolours
Member
 
Join Date: Feb 2004
Posts: 92
i have a prob with the autorepeatvolumebuttons.maki. it seems like it's not working properly. it gave the volume adjusting fxn to buttons but not as mentioned. clicking on (whether i hold or not) doesn't effect volume level. but when i use mouse wheel while the curser is over either of them volume changes.

<!-- Shade Volume Control -->
<groupdef id="player.shade.group.volume.control" w="28" h="25">
<button id="VolUp" x="0" y="0" image="player.shade.button.volup" hoverImage="player.shade.button.volup.over" downImage="player.shade.button.volup.down" tooltip="+ volume +"/>
<button id="VolDown" x="0" y="12" image="player.shade.button.voldown" hoverImage="player.shade.button.voldown.over" downImage="player.shade.button.voldown.down" tooltip="- volume -"/>
</groupdef>

<layout id="shade" w="300" h="24" droptarget="pldr">
<group id="player.shade.group.base" x="0" y="0"/>
<group id="player.shade.group.display" x="33" y="4"/>
<group id="player.shade.group.controlbuttons" x="157" y="6"/>
<group id="player.shade.group.volume.control" x="273" y="0"/>
<group id="player.shade.group.winbuttons" x="8" y="9"/>
<script id="ARVB" file="scripts/autorepeatvolumebuttons.maki"/>
<script id="oldtimer" file="scripts/oldtimer.maki"/>
<script id="mainscript" file="scripts/main.maki"/>
</layout>
watercolours is offline   Reply With Quote
Old 18th February 2004, 21:30   #537
kgraphik
Senior Member
 
kgraphik's Avatar
 
Join Date: Apr 2003
Location: New York City
Posts: 142
Send a message via AIM to kgraphik
does anyone know how to go about putting the status of repeat and shuffle in the songticker like in the winamp5 modern skin?
kgraphik is offline   Reply With Quote
Old 18th February 2004, 22:28   #538
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
thi i what you need:

code:

Class ToggleButton HintToggleButton;
Class ConfigAttribute ToggleConfigAttribute;

Global HintToggleButton ToggleXFade, ToggleShuffle, ToggleRepeat;
Global ToggleConfigAttribute attr_repeat, attr_shuffle, attr_crossfade;
system.onscriptloaded(){

ToggleXFade = Normal.findobject("Crossfade");
ToggleShuffle = Normal.findobject("Shuffle");
ToggleRepeat = Normal.findobject("repeat");

if (ToggleXFade != NULL && attr_crossfade != NULL) ToggleXFade.setActivated(StringToInteger(attr_crossfade.getData()));
if (ToggleShuffle != NULL && attr_shuffle != NULL) ToggleShuffle.setActivated(StringToInteger(attr_shuffle.getData()));
if (ToggleRepeat != NULL && attr_repeat != NULL) ToggleRepeat.setActivated(StringToInteger(attr_repeat.getData()));
}

HintToggleButton.onLeftButtonDown(int x, int y) {
if (HintToggleButton == ToggleXFade){
setSuperText("Crossfade");
}
else if (HintToggleButton == ToggleRepeat){
setSuperText("Repeat");
}
else if (HintToggleButton == ToggleShuffle){
setSuperText("Shuffle");
}
}

HintToggleButton.onToggle(int onoff) {
String cmd, txt;
txt="none";
if (HintToggleButton == ToggleXFade) {
txt = "Crossfade";
} else if (HintToggleButton == ToggleRepeat) {
txt = "Repeat";
} else if (HintToggleButton == ToggleShuffle) {
txt = "Shuffle";
}
if (txt != "none") {
String s;
if (onoff) s = "on"; else s = "off";
setSuperText (txt + " " + s);
}
}




Probably need to change it a little bit.
carlosp is offline   Reply With Quote
Old 19th February 2004, 01:26   #539
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
umm, for example, you need to specify what attr_repeat, attr_shuffle, attr_crossfade are... you haven't..

edit:
PHP Code:
  ConfigItem item;
  
item Config.getItem("Playlist editor");
  if (
item != NULL) {
    
attr_repeat item.getAttribute("repeat");
    
attr_shuffle item.getAttribute("shuffle");
  }
  
item Config.getItem("Audio options");
  if (
item != NULL) {
    
attr_crossfade item.getAttribute("Enable crossfading");
  } 
plus, you don't need half of what you wrote, cos normally, you handle all that in the XML, all you need this script for, is to display the values in the songticker..

-Plague
Plague is offline   Reply With Quote
Old 21st February 2004, 02:36   #540
AWM3000
Junior Member
 
Join Date: Mar 2001
Posts: 29
How could a script change the crossfade length in Winamp 5.02? The abscence of a Configurification Registry is making this difficult for me...I was thinking of having a button popup a menu of crossfade times. I notice that the Modern Skin has a crossfade-length chooser, but it doesn't really work--changing the crossfade number doesn't produce any effect.
AWM3000 is offline   Reply With Quote
Old 21st February 2004, 20:18   #541
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
It deos my friend. You need to choose directsound as output and then just try it again. You can make a set the corsfade lenght throw a popup.You make a crossfade slider in your xml file. Then you get the slider position throw this:
PHP Code:
int crossLength crossfadeSlider.getpoition(); 
Then you change that int with your popup menu and post the state to the slider. Think it should work this way.
carlosp is offline   Reply With Quote
Old 21st February 2004, 22:24   #542
AWM3000
Junior Member
 
Join Date: Mar 2001
Posts: 29
Thanks for the reply! However, returning the position of the slider will return a value between 0 and 255, which isn't necessarily the value itself of the crossfade time, right?
AWM3000 is offline   Reply With Quote
Old 22nd February 2004, 15:36   #543
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
The silder it self tells winamp how long the crossfade length acctauly is.
code:

<slider id="slider.crossfade" cfgattrib="{F1239F09-8CC6-4081-8519-C2AE99FCB14C};Crossfade time" high="20" x="186" y="178" w="83" h="14" thumb="equalizer.normal.button.slider.horizontal" downthumb="equalizer.normal.button.slider.horizontal" />


The maximum of silder is 20 secs. That means if slider position is 255 length is 20 secs. You just change the value of your integer and then you can post the rigth value to the slider.
carlosp is offline   Reply With Quote
Old 22nd February 2004, 17:57   #544
Bizzeh
Forum Pirate
Beta Team
 
Bizzeh's Avatar
 
Join Date: Oct 2001
Posts: 2,032
Quote:
Originally posted by Plague
umm, for example, you need to specify what attr_repeat, attr_shuffle, attr_crossfade are... you haven't..

edit:
PHP Code:
  ConfigItem item;
  
item Config.getItem("Playlist editor");
  if (
item != NULL) {
    
attr_repeat item.getAttribute("repeat");
    
attr_shuffle item.getAttribute("shuffle");
  }
  
item Config.getItem("Audio options");
  if (
item != NULL) {
    
attr_crossfade item.getAttribute("Enable crossfading");
  } 
plus, you don't need half of what you wrote, cos normally, you handle all that in the XML, all you need this script for, is to display the values in the songticker..

-Plague
carlos, you can do it in maki
Bizzeh is offline   Reply With Quote
Old 22nd February 2004, 18:15   #545
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
yea, just use:
PHP Code:
  item Config.getItem("Crossfader");
  if (
item != NULL) {
    
attr_crossfade_time item.getAttribute("Crossfade time");
  } 
Just like you would have in Winamp3/wasabi.player

and yes, you need config.mi for it, so what?
just get it from wasabi.player or winamp3 or whatever.

-Plague
Plague is offline   Reply With Quote
Old 22nd February 2004, 18:15   #546
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
How you mean? Isn't it maki allready?
carlosp is offline   Reply With Quote
Old 22nd February 2004, 18:22   #547
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
Quote:
Originally posted by carlosp
How you mean? Isn't it maki allready?
umm, no.
what you do, is control it in xml and then just control the slider from maki, you don't actually control the values from maki, which means that it's not reliable.

if you still dont have a clue how to do this, I have put together an example script for y'all which brings up a menu, when pressing a button, which contains Shuffle, Repeat, Crossfade and Crossfade Length (toggle between 0 and 1 sec in this example).

-Plague
Attached Files
File Type: m shuf-rep-xfade-xfadetime-example.m (2.8 KB, 281 views)
Plague is offline   Reply With Quote
Old 22nd February 2004, 19:56   #548
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
Ahh, i see. I didn´t thought about that. Now i undertand what you mean. It won't work with the way which was in my mind. But it is that easy You are the WASABI god
carlosp is offline   Reply With Quote
Old 23rd February 2004, 21:48   #549
Bizzeh
Forum Pirate
Beta Team
 
Bizzeh's Avatar
 
Join Date: Oct 2001
Posts: 2,032
doing it the whole maki way is the PROPPER way to do it
Bizzeh is offline   Reply With Quote
Old 24th February 2004, 13:11   #550
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
You say it!
carlosp is offline   Reply With Quote
Old 3rd March 2004, 17:40   #551
TitusAndronicus
Junior Member
 
TitusAndronicus's Avatar
 
Join Date: Nov 2003
Location: Star Base IV
Posts: 15
Back to Opacity

Quote:
Originally posted by TitusAndronicus
I am looking for a autorepeating, seek type, Opacity button pair.
Now that we have WinAmp5, does anyone have any suggestions on how to make a autorepeating Opacity button?

For some background, in the last half of page 12 we were trying to solve the proble using WinAmp3, but ended with no resolution.
TitusAndronicus is offline   Reply With Quote
Old 3rd March 2004, 21:06   #552
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
is there a way to cut the normal onrightmouse button popup out? i am making a skin and i dun want the user to get to the prefrences window(dun ask why).
carlosp is offline   Reply With Quote
Old 10th March 2004, 17:43   #553
pukkaboy
Major Dude
 
pukkaboy's Avatar
 
Join Date: Jul 2000
Location: The United Kingdom of Fools.
Posts: 599
Send a message via ICQ to pukkaboy
play2pause fix

i noticed frisbeemonkey's play2pause script doesn't work on wa5.02 very well so i fixed it up

PHP Code:
//----------------------------------------------------------------------------- 
// play2pause.m 
// 
// Example of a Play/Pause Script 
// created by Gonzotek & Vica. 
// 
// modified by FrisbeeMonkey 
//----------------------------------------------------------------------------- 

//                         USING THIS SCRIPT: 
//***************************************************************************** 
//  1.  Define play and pause buttons in your XML. 
//  2.  Make sure their ids are "Play" and "Pause" 
//  3.  Copy this script (and play2pause.maki) to your scripts folder. 
//  4.  If you don't have play2pause.maki, compile this script. 
//  5.  Add this line to the group that contains your play and pause buttons: 
//        <script id="play2pause" file="scripts/play2pause.maki"/> 
//  6.  Refresh your skin(F5) and try it out. 
//***************************************************************************** 

// never forget to include std.mi 
#include "std.mi" 

//declares global variables for use in script 
Global Group ButtonsGrp
Global 
Button PlayPause

//when the script is loaded, do this 
System.onScriptLoaded() { 

  
//gets the group that has the objects we want 
  
ButtonsGrp getScriptGroup(); 

  
//gets the "id" tags as defined in player-normal-group.xml for the two buttons 
  
Pause ButtonsGrp.getObject("Pause"); 
  
Play ButtonsGrp.getObject("Play"); 

  
// hides both buttons until playing status is determined 
  
Pause.hide(); 
  
Play.hide(); 

  
//determines whether Winamp is playing or paused(or stopped), then shows the buttons accordingly 
//system.getstatus returns -1 for paused, 0 for stopped, 1 for playing 
  
if (system.getstatus() > 0) { 
    
Pause.show(); 
Play.hide(); 
  } else { 
Play.show(); 
Pause.hide(); 


}
//end onScriptLoaded() 


// If winamp is playing, hides the play button and shows pause 
System.onPlay() 

  
Play.hide(); 
  
Pause.show(); 
}
//end onPlay() 


// If winamp is paused, hides pause and shows play 
System.onPause() 

  
Play.show(); 
  
Pause.hide(); 
}
//end onPause() 

// If winamp is stopped, shows play and hides pause 
System.onStop() 

  
Play.show(); 
  
Pause.hide(); 
}
//end onStop() 


// After paused and button is again pressed starting play, will show pause and hide play 
System.onResume() 

  
Play.hide(); 
  
Pause.show(); 

and the file
Attached Files
File Type: maki play2pause.maki (1.8 KB, 251 views)

Croquet is the only real form of happiness
Proud member of the Correct Grammar Association™. (CGA)
'All of your bases belong to us!'
pukkaboy is offline   Reply With Quote
Old 30th March 2004, 14:15   #554
Mad Irishman
Junior Member
 
Join Date: Feb 2004
Posts: 23
Ok. You can probably forget about the Equalizer question.
I think I'v found a way to do it using a string of values
and function to rotate those values.

Next question...
I want to take two images and be able to selectively mask the main image by pointing it to a specific colour on the second.
ie: in the images attached, if I specify blue, only the section corresponding to blue in my map should be visible on the source image.

I think it can be done using the map objects in MAKI, but so far it only seams to map using an
'If Darker Than # then hide.'

Please Help!!!
Attached Files
File Type: zip puzzleimages.zip (63.5 KB, 203 views)
Mad Irishman is offline   Reply With Quote
Old 31st March 2004, 05:24   #555
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
you can use a map not in a file but in the maki file using a bitmap of some sort.
the_dude4444 is offline   Reply With Quote
Old 28th April 2004, 14:06   #556
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
hi i wrote this bass up script any body can use it, this script can be easily modde to change the highs.


// this script was created by hector hernandez aka "Boricuaso"
// Do what you like with this script, if found usefull
// oh this is my first script so its provably the worst writen one ever
// but it does work so if you know of a more affitient way to
// write this same script please email me so i can learn and update it"
// hector.hernanadez1@us.army.mil
// how to use:
// make 2 buttons
// id="bassup" and id="bassdown",
// if you dont have an
// id="songticker" make a dummy one.
// thats it
//-------------------------------------------------------------
// never forget to include std.mi
#include "../../../lib/std.mi"



Global Button ToneUp,ToneDown;
Global Text SongTicker;
Global Timer Songtickertimer;
Global Group findGroup;
Global Int banda, bandb, bandc;

//when script is loaded, do this
System.onScriptLoaded() {



findGroup = getScriptGroup(); // it looks for the apropiate group
ToneUp = findGroup.findObject("bassup"); // find bassup button
ToneDown = findGroup.findObject("bassdown"); // finds bassdown button
SongTicker = findGroup.findObject("songticker"); // finds songticker
SongTickerTimer = new Timer;
SongTickerTimer.setDelay(750); // it tells the ticker for how long to display all text



banda = 0; // it sets witch eq band gets moved i was experimenting
bandb = 1;
bandc = 2;




}

//it automaticaly closes the song tiker

SongTickerTimer.onTimer() {
SongTicker.setText("");
stop();
}



// toneup button changes tone click from -127 to 127

toneup.onLeftButtonUp(int x, int y) { // it detects click on that button
int toneupStatus = getPrivateInt("bass", "tone up", 0); //bass:if kyou have another script with this int you may get a conflict, tone up:it looks for this on the other private int,
SongTickerTimer.stop(); // stops the timer for displaying the status
SongTickerTimer.start(); // it starts it



if (toneupStatus == 0) { // this is a position of the eq band we have 21 of them the set private int refers to this value
System.setEqBand(banda, -120); // the (looks for what is band a, what level to set the band)
System.setEqBand(bandb, -108);
System.setEqBand(bandc, -84);
setPrivateInt("bass", "tone up", 1); // if you hit the up button on this position its going to tone up status 1
setPrivateInt("bass", "tonedown", 20); // if you hit the down button lits going to send the slider to tonedown 20
SongTicker.setText("tone min -20%"); // it will display -20 on the song ticker

} if (toneupStatus == 1) {
System.setEqBand(banda, -108);
System.setEqBand(bandb, -84);
System.setEqBand(bandc, -72);
setPrivateInt("bass", "tone up", 2);
setPrivateInt("bass", "tonedown", 20);
SongTicker.setText("tone -18%");

} if (toneupStatus == 2) {
System.setEqBand(banda, -96);
System.setEqBand(bandb, -84);
System.setEqBand(bandc, -72);
setPrivateInt("bass", "tone up", 3);
setPrivateInt("bass", "tonedown", 19);
SongTicker.setText("tone -16");

} if (toneupStatus == 3) {

System.setEqBand(banda, -84);
System.setEqBand(bandb, -72);
System.setEqBand(bandc, -60);
setPrivateInt("bass", "tone up", 4);
setPrivateInt("bass", "tonedown", 18);
SongTicker.setText("tone -14%");

} if (toneupStatus == 4) {
System.setEqBand(banda, -72);
System.setEqBand(bandb, -60);
System.setEqBand(bandc, -48);
setPrivateInt("bass", "tone up", 5);
setPrivateInt("bass", "tonedown", 17);
SongTicker.setText("tone -12%");

} if (toneupStatus == 5) {
System.setEqBand(banda, -60);
System.setEqBand(bandb, -48);
System.setEqBand(bandc, -36);
setPrivateInt("bass", "tone up", 6);
setPrivateInt("bass", "tonedown", 16);
SongTicker.setText("tone -10%");

} if (toneupStatus == 6) {
System.setEqBand(banda, -48);
System.setEqBand(bandb, -36);
System.setEqBand(bandc, -24);
setPrivateInt("bass", "tone up", 7);
setPrivateInt("bass", "tonedown", 15);
SongTicker.setText("tone -8%");

} if (toneupStatus == 7) {
System.setEqBand(banda, -36);
System.setEqBand(bandb, -24);
System.setEqBand(bandc, -12);
setPrivateInt("bass", "tone up", 8);
setPrivateInt("bass", "tonedown", 14);
SongTicker.setText("tone -6%");

} if (toneupStatus == 8) {
System.setEqBand(banda, -24);
System.setEqBand(bandb, -12);
System.setEqBand(bandc, -0);
setPrivateInt("bass", "tone up", 9);
setPrivateInt("bass", "tonedown", 13);
SongTicker.setText("tone -4%");

} if (toneupStatus == 9) {
System.setEqBand(banda, -12);
System.setEqBand(bandb, -0);
System.setEqBand(bandc, -0);
setPrivateInt("bass", "tone up", 10);
setPrivateInt("bass", "tonedown", 12);
SongTicker.setText("tone -2%");

} if (toneupStatus == 10) {
System.setEqBand(banda, 0);
System.setEqBand(bandb, 0);
System.setEqBand(bandc, 0);
setPrivateInt("bass", "tone up", 11);
setPrivateInt("bass", "tonedown", 11);
SongTicker.setText("tone 0%");

} if (toneupStatus == 11) {
System.setEqBand(banda, 12);
System.setEqBand(bandb, 0);
System.setEqBand(bandc, 0);
setPrivateInt("bass", "tone up", 12);
setPrivateInt("bass", "tonedown", 10);
SongTicker.setText("tone + 2%");

} if (toneupStatus == 12) {
System.setEqBand(banda, 24);
System.setEqBand(bandb, 12);
System.setEqBand(bandc, 0);
setPrivateInt("bass", "tone up", 13);
setPrivateInt("bass", "tonedown", 9);
SongTicker.setText("tone +4%");

} if (toneupStatus == 13) {
System.setEqBand(banda, 36);
System.setEqBand(bandb, 24);
System.setEqBand(bandc, 12);
setPrivateInt("bass", "tone up", 14);
setPrivateInt("bass", "tonedown", 8);
SongTicker.setText("tone +6%");

} if (toneupStatus == 14) {
System.setEqBand(banda, 48);
System.setEqBand(bandb, 36);
System.setEqBand(bandc, 24);
setPrivateInt("bass", "tone up", 15);
setPrivateInt("bass", "tonedown", 7);
SongTicker.setText("tone +8%");

} if (toneupStatus == 15) {
System.setEqBand(banda, 60);
System.setEqBand(bandb, 48);
System.setEqBand(bandc, 36);
setPrivateInt("bass", "tone up", 16);
setPrivateInt("bass", "tonedown", 6);
SongTicker.setText("tone +10%");

} if (toneupStatus == 16) {
System.setEqBand(banda, 72);
System.setEqBand(bandb, 60);
System.setEqBand(bandc, 48);
setPrivateInt("bass", "tone up", 17);
setPrivateInt("bass", "tonedown", 5);
SongTicker.setText("tone +12%");

} if (toneupStatus == 17) {
System.setEqBand(banda, 84);
System.setEqBand(bandb, 72);
System.setEqBand(bandc, 60);
setPrivateInt("bass", "tone up", 18);
setPrivateInt("bass", "tonedown", 4);
SongTicker.setText("tone +14%");

} if (toneupStatus == 18) {
System.setEqBand(banda, 96);
System.setEqBand(bandb, 84);
System.setEqBand(bandc, 72);
setPrivateInt("bass", "tone up", 19);
setPrivateInt("bass", "tonedown", 3);
SongTicker.setText("tone +16%");

} if (toneupStatus == 19) {
System.setEqBand(banda, 108);
System.setEqBand(bandb, 96);
System.setEqBand(bandc, 84);
setPrivateInt("bass", "tone up", 20);
setPrivateInt("bass", "tonedown", 2);
SongTicker.setText("tone +18%");

} if (toneupStatus == 20) {
System.setEqBand(banda, 120);
System.setEqBand(bandb, 108);
System.setEqBand(bandc, 96);
setPrivateInt("bass", "tone up", 20);
setPrivateInt("bass", "tonedown", 1);
SongTicker.setText("tone max +20%");

}
}


// tonedown button changes tone click from-127 to 0 to 127

ToneDown.onLeftButtonUp(int x, int y) {
int tonedownStatus = getPrivateInt("bass", "tonedown", 0);
SongTickerTimer.stop();
SongTickerTimer.start();
SongTicker.setText("tone down");

if (tonedownStatus == 0) {
System.setEqBand(banda, 120);
System.setEqBand(bandb, 108);
System.setEqBand(bandc, 96);
setPrivateInt("bass", "tonedown", 1);
setPrivateInt("bass", "tone up", 20);
SongTicker.setText("tone max +20%");

} if (tonedownStatus == 1) {
System.setEqBand(banda, 108);
System.setEqBand(bandb, 96);
System.setEqBand(bandc, 84);
setPrivateInt("bass", "tonedown", 2);
setPrivateInt("bass", "tone up", 20);
SongTicker.setText("tone +18%");

} if (tonedownStatus == 2) {
System.setEqBand(banda, 96);
System.setEqBand(bandb, 84);
System.setEqBand(bandc, 72);
setPrivateInt("bass", "tonedown", 3);
setPrivateInt("bass", "tone up", 19);
SongTicker.setText("tone +16%");

} if (tonedownStatus == 3) {
System.setEqBand(banda, 84);
System.setEqBand(bandb, 72);
System.setEqBand(bandc, 60);
setPrivateInt("bass", "tonedown", 4);
setPrivateInt("bass", "tone up", 18);
SongTicker.setText("tone +14%");

} if (tonedownStatus == 4) {
System.setEqBand(banda, 72);
System.setEqBand(bandb, 60);
System.setEqBand(bandc, 48);
setPrivateInt("bass", "tonedown", 5);
setPrivateInt("bass", "tone up", 17);
SongTicker.setText("tone +12%");

} if (tonedownStatus == 5) {
System.setEqBand(banda, 60);
System.setEqBand(bandb, 48);
System.setEqBand(bandc, 36);
setPrivateInt("bass", "tonedown", 6);
setPrivateInt("bass", "tone up", 16);
SongTicker.setText("tone +10%");

} if (tonedownStatus == 6) {
System.setEqBand(banda, 48);
System.setEqBand(bandb, 36);
System.setEqBand(bandc, 24);
setPrivateInt("bass", "tonedown", 7);
setPrivateInt("bass", "tone up", 15);
SongTicker.setText("tone +8%");

} if (tonedownStatus == 7) {
System.setEqBand(banda, 36);
System.setEqBand(bandb, 24);
System.setEqBand(bandc, 12);
setPrivateInt("bass", "tonedown", 8);
setPrivateInt("bass", "tone up", 14);
SongTicker.setText("tone +6%");

} if (tonedownStatus == 8) {
System.setEqBand(banda, 24);
System.setEqBand(bandb, 12);
System.setEqBand(bandc, 0);
setPrivateInt("bass", "tonedown", 9);
setPrivateInt("bass", "tone up", 13);
SongTicker.setText("tone +4%");

} if (tonedownStatus == 9) {
System.setEqBand(banda, 12);
System.setEqBand(bandb, 0);
System.setEqBand(bandc, 0);
setPrivateInt("bass", "tonedown", 10);
setPrivateInt("bass", "tone up", 12);
SongTicker.setText("tone +2%");

} if (tonedownStatus == 10) {
System.setEqBand(banda, 0);
System.setEqBand(bandb, 0);
System.setEqBand(bandc, 0);
setPrivateInt("bass", "tonedown", 11);
setPrivateInt("bass", "tone up", 11);
SongTicker.setText("tone 0%");

} if (tonedownStatus == 11) {
System.setEqBand(banda, -12);
System.setEqBand(bandb, -0);
System.setEqBand(bandc, -0);
setPrivateInt("bass", "tonedown", 12);
setPrivateInt("bass", "tone up", 10);
SongTicker.setText("tone -2%");

} if (tonedownStatus == 12) {
System.setEqBand(banda, -24);
System.setEqBand(bandb, -12);
System.setEqBand(bandc, -0);
setPrivateInt("bass", "tonedown", 13);
setPrivateInt("bass", "tone up", 9);
SongTicker.setText("tone -4%");

} if (tonedownStatus == 13) {
System.setEqBand(banda, -36);
System.setEqBand(bandb, -24);
System.setEqBand(bandc, -12);
setPrivateInt("bass", "tonedown", 14);
setPrivateInt("bass", "tone up", 8);
SongTicker.setText("tone -6%");

} if (tonedownStatus == 14) {
System.setEqBand(banda, -48);
System.setEqBand(bandb, -36);
System.setEqBand(bandc, -24);
setPrivateInt("bass", "tonedown", 15);
setPrivateInt("bass", "tone up", 7);
SongTicker.setText("tone -8%");

} if (tonedownStatus == 15) {
System.setEqBand(banda, -60);
System.setEqBand(bandb, -48);
System.setEqBand(bandc, -36);
setPrivateInt("bass", "tonedown", 16);
setPrivateInt("bass", "tone up", 6);
SongTicker.setText("tone -10%");

} if (tonedownStatus == 16) {
System.setEqBand(banda, -72);
System.setEqBand(bandb, -60);
System.setEqBand(bandc, -48);
setPrivateInt("bass", "tonedown", 17);
setPrivateInt("bass", "tone up", 5);
SongTicker.setText("tone -12%");

} if (tonedownStatus == 17) {
System.setEqBand(banda, -84);
System.setEqBand(bandb, -72);
System.setEqBand(bandc, -60);
setPrivateInt("bass", "tonedown", 18);
setPrivateInt("bass", "tone up", 4);
SongTicker.setText("tone -14%");

} if (tonedownStatus == 18) {
System.setEqBand(banda, -96);
System.setEqBand(bandb, -84);
System.setEqBand(bandc, -72);
setPrivateInt("bass", "tonedown", 19);
setPrivateInt("bass", "tone up", 3);
SongTicker.setText("tone -16%");

} if (tonedownStatus == 19) {
System.setEqBand(banda, -108);
System.setEqBand(bandb, -96);
System.setEqBand(bandc, -84);
setPrivateInt("bass", "tonedown", 20);
setPrivateInt("bass", "tone up", 2);
SongTicker.setText("tone -18%");


} if (tonedownStatus == 20) {
System.setEqBand(banda, -120);
System.setEqBand(bandb, -108);
System.setEqBand(bandc, -96);
setPrivateInt("bass", "tonedown", 20);
setPrivateInt("bass", "tone up", 1);
SongTicker.setText("tone min -20%");



}
}
Boricuaso is offline   Reply With Quote
Old 28th April 2004, 18:26   #557
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
quick question on timers
ive noticed a few ways timers are destroyed/not destroyed in various scripts on various skins, whats the impact of the following in the script unload :-

not destroying the timer (does wa5 take care of it?)
setting the timer to stop before deleting it (any point in this?)
just deleting the timer without stopping it

any1 cast any light?
SLoB is offline   Reply With Quote
Old 28th April 2004, 19:01   #558
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
anything you 'new' should be deleted on script unload.
I doubt there's any real point in stopping the timer before deleting, but it certainly doesn't harm

-Plague
Plague is offline   Reply With Quote
Old 23rd May 2004, 02:07   #559
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
GREAT work here people!
When I came here first time I didn't know what maki is, and now i can write maki for anything i need!
Well not ANYthing. I have one question:
Is it possible to change Color Themes from a script (I need it for one skin)?
If anyone knows something please help!

P.S. I hope that you colud understand me because of my english.


krckoorascic is offline   Reply With Quote
Old 23rd May 2004, 02:53   #560
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
sorry, nope.. not possible..
you can make buttons that switch to the previous/next theme in the list and then use maki to control those buttons if you want, but other than that, no.

-Plague
Plague 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