PDA

View Full Version : need some help here....


mickachu
19th March 2003, 05:17
this may or not be a stupid question but. i want to put the songticker where the background isnt, if you know what i mean. just text, with no background at all. ive tried everything i can think of, but nothing seems to work at all.

matt_69
19th March 2003, 05:42
me thinks its not possible. everything needs a background to have sumthin place on it but prove me wrong

m*69

J_Bloggs
19th March 2003, 05:50
Wrong.

Just define a height and width for your layout, and no background. Then put a songticker in there. To be able to move it you'll need a layer in there that you can click and hold with the mouse.

You'll win2000 or higher with DTA enabled for the songticker to work like that, especially if you have antialias on.

matt_69
19th March 2003, 05:55
oh well
me not know much about that kinda stuff so i get proven wrong all the time hehe :D

m*69

J_Bloggs
19th March 2003, 06:36
I forgot to say, you need to add sysregion="1" to every object if you want it actually show up.

mickachu
20th March 2003, 02:06
thanks for the help. finally got it working now

mickachu
21st March 2003, 02:37
ok, i have this layer covering the volume control, which i want to fade away when the mouse is over it.
heres the script:

#include "../../../lib/std.mi"

Class AnimatedLayer AnimatedLayerHint;
Function StartAnimation(AnimatedLayer l, int start, int end, int speed);
Global AnimatedLayerHint volumeCover;

System.onScriptLoaded() {
Group sGroup = getScriptGroup();
volumeCover = sGroup.findObject("Volumecover");
}

volumeCover.onEnterArea() {
StartAnimation(volumeCover, 1, 15, 10);
}

volumeCover.onLeaveArea() {
StartAnimation(volumeCover, 15, 1, 20);
}

StartAnimation(AnimatedLayer l, int start, int end, int speed) {
l.stop();
l.setStartFrame(start);
l.setEndFrame(end);
l.setSpeed(speed);
l.setAutoReplay(0);
l.play();
}

and that works fine. but when i try to set ghost="1" for the layer it stops working. anyone know y?

frisbeemonkey
21st March 2003, 02:49
It stops working because onEnterArea() and onLeaveArea() are mouse events, and ghost="1" tells the Layer to ignore mouse events. I think you may want to leave ghost="0" but try rectrgn="0" instead.
Hope this helps,
~FrisbeeMonkey

mickachu
21st March 2003, 03:00
that didnt work either. is there a way, probly through maki, that i could tell the layer to pass mouse clicks down to underlying layers?

frisbeemonkey
21st March 2003, 03:40
Duh, sorry, I should have thought about this a little more. What would probably work best for you is to ghost="1" your cover, but then have the onEnterArea and onLeaveArea events linked to your Volume. This way, when the mouse is over your Volume control, the AnimatedLayer will open, and when it is off, it will close. Does that make sense?
~FrisbeeMonkey

mickachu
21st March 2003, 03:52
yes it does, suprizingly enough. ill have to get to work on it now. thanks a bunch

And after nearly an hour of butting heads with maki scripts the volume slider is done. thanks again to all for the help so far.