/* v0.96.2 change log
added code for handjob mode support
added right handjob mode fingers
*/
import flash.events.Event;
import flash.utils.Timer;
import flash.events.TimerEvent;
var main;
var page:modPage;
var ListBox:Class; //Important! Declares custom class - actual definition handled by loader
var princeList;
var labels:Array = [
"full shirt",
"one sleeve",
"no sleeves",
"no shirt"
];
if (this.parent.parent != null){
main = this.parent.parent;
var i:uint;
main.g.inGameMenu.loadData("hisSkin:0;hisTop:none,238,242,245,1;hisBottoms:none,27,29,29,1;hisFootwear:none,0,0,0,1"); //if white
page = new modPage();
main.addPage(page, false);
princeList = new ListBox(200, 96);
main.addIn(princeList, page);
princeList.y = 40;
princeList.x = 150;
for(var t:uint = 0; t < 4; t++) {
princeList.addItem(labels[t], t);
}
princeList.addEventListener("listboxChanged", itemSelect);
//---------------------------his components---------------------------\\
//---------------------------left foot
/**/ var hfootl=new hisfootl();
//adds as skin - follows HSL sliders on Options tab
main.loadCustomFull(hfootl,".|Him.leftLeg.calf.foot","x:0;y:0;r:0;a:1");
//---------------------------left calf
var hcalfl=new hiscalfl();
//adds as skin - follows HSL sliders on Options tab
main.loadCustomFull(hcalfl,".|Him.leftLeg.calf","x:0;y:0;r:0;a:1");
//---------------------------left thigh
var hthighl=new histhighl();
//adds as skin - follows HSL sliders on Options tab
main.loadCustomFull(hthighl,".|Him.leftLeg","x:0;y:0;r:0;a:1");
//---------------------------torso
var htorso=new historso();
main.loadCustomFull(htorso,".|Him.torsoLayer.torso","x:0;y:0;r:0;a:1");
//---------------------------right upper arm
var hupperarm = new hisupperarm();
main.him.armContainer.arm.upperArm.addChild(hupperarm);
//---------------------------right forearm
var hforearm = new hisforearm();
main.him.armContainer.arm.lowerArm.addChild(hforearm);
//---------------------------right hand
var hhand = new hishand();
main.him.armContainer.arm.hand.addChild(hhand);
//---------------------------left upper arm
var hupperarml = new hisupperarml();
main.him.leftArmContainer.arm.addChild(hupperarml);
//---------------------------left forearm
var hforearml = new hisforearml();
main.him.leftArmContainer.arm.foreArm.addChild(hforearml);
//---------------------------left hand
var hhandl = new hishandl();
main.him.leftArmContainer.arm.foreArm.hand.addChild(hhandl);
//---------------------------remove his components---------------------------\\
main.registerToRemove(hupperarm);
main.registerToRemove(hforearm);
main.registerToRemove(hhand);
main.registerToRemove(hupperarml);
main.registerToRemove(hforearml);
main.registerToRemove(hhandl);
// main.registerToRemove(penis);
var him = [hforearm, hupperarm, hthighl, hfootl, hcalfl, htorso, hupperarml, hhandl, hforearml, hhand]
for each(var j:MovieClip in him) {
j.stop();
}
main.unloadMod();
}
function itemSelect(event) {
var item:String = event.listButton.textLabel.tf.text; //get list item label
for each(var i:MovieClip in him) {
i.gotoAndStop(item); //go to frame label that matches list item label -
} // use timeline and properties window to set frame labels
switch(htorso.currentFrame) { //pick out part that has multiple frames to get current frame number -
case 1: // can also use frame label and do string match
//frame 1 stuff
break;
case 2:
//frame 2 stuff
break;
//...etc
}
}