Faceless
Content Creator
- Joined
- Jun 12, 2011
Strictly speaking, that's not true. My Mileena costume, for instance, ties the gloves to the shirt RGB sliders, and ignores the skin HSL sliders. If you care, here's how I managed it:Mike said:This would require the loader because the vanilla template doesn't have a hand costume layer. Hue shifting the hands would mean hue shifting the whole body at the same time.
Here's what I have so far, not sure that's what you're looking for since there aren't any references.
code goes in the main settings frame (where you make your registerMod() calls etc)
Code:
//top = shirt mod
//bottom = pants mod
//arms = body mod
//collar = collar mod
import flash.events.Event;
import flash.display.MovieClip;
import flash.filters.ColorMatrixFilter;
var top_back = top.back.rgbFill;
//equivalent to default HSL slider values
var filter = new ColorMatrixFilter(new Array(
0, 1, 0, 0, 0,
1, 0, 0, 0, 0,
0, 0, 1, 0, 0,
0, 0, 0, 1, 0)
);
addEventListener(Event.ENTER_FRAME, followColorSlider);
function followColorSlider(e:Event) {
bottom.backside.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
bottom.leftCalf.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
bottom.leftThigh.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
bottom.chest.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
bottom.rightThigh.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
bottom.rightCalf.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
bottom.back.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
collar.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
arms.leftUpperArm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
arms.leftForearm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
arms.leftHand.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
arms.behindBackHands.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
arms.rightUpperArm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
arms.rightForearm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
arms.rightHand.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
arms.leftUpperArm.filters = [filter];
arms.leftForearm.filters = [filter];
arms.leftHand.filters = [filter];
arms.behindBackHands.filters = [filter];
arms.rightUpperArm.filters = [filter];
arms.rightForearm.filters = [filter];
arms.rightHand.filters = [filter];
}
Of course, the vanilla template doesn't support handjob mode, so it probably is better to go with the loader.