function finishinit()
{
var igm = g.inGameMenu;
if(addnipplebutton == 1)
{
var Button:Class = main.lDOM.getDefinition("Modules.Controls.Button") as Class;
var cbNipple = new Button(16, 16, "\u03f8");
cbNipple.x = 198;
cbNipple.y = 272;
cbNipple.setTextSize(10);
cbNipple.addEventListener(MouseEvent.CLICK, cbNippleToggled);
main.g.inGameMenu.costumeMenu.addChild(cbNipple);
}
g.characterControl.collarControl.registerRGBButton(igm.costumeMenu.rgbCollar, igm.underwearSwatch, 256);
g.characterControl.collarControl.registerSecondaryRGBButton(igm.costumeMenu.rgbCollar2, igm.underwearSwatch, 256);
g.characterControl.gagControl.registerRGBButton(igm.costumeMenu.rgbGag, igm.underwearSwatch, 256);
g.characterControl.cuffsControl.registerRGBButton(igm.costumeMenu.rgbCuffs, igm.underwearSwatch, 256);
g.characterControl.cuffsControl.registerSecondaryRGBButton(igm.costumeMenu.rgbCuffs2, igm.underwearSwatch, 256);
g.characterControl.ankleCuffsControl.registerRGBButton(igm.costumeMenu.rgbAnkleCuffs, igm.underwearSwatch, 256);
g.characterControl.ankleCuffsControl.registerSecondaryRGBButton(igm.costumeMenu.rgbAnkleCuffs2, igm.underwearSwatch, 256);
g.characterControl.armwearControl.registerRGBButton(igm.costumeMenu.rgbArmwear, igm.underwearSwatch, 256);
g.characterControl.bottomsControl.registerRGBButton(igm.costumeMenu.rgbBottoms, igm.underwearSwatch, 256);
g.characterControl.bottomsControl.registerSecondaryRGBButton(igm.costumeMenu.rgbBottoms2, igm.underwearSwatch, 256);
g.characterControl.footwearControl.registerRGBButton(igm.costumeMenu.rgbFootwear, igm.underwearSwatch, 256);
g.characterControl.footwearControl.registerSecondaryRGBButton(igm.costumeMenu.rgbFootwear2, igm.underwearSwatch, 256);
g.characterControl.eyewearControl.registerRGBButton(igm.costumeMenu.rgbEyewear, igm.underwearSwatch, 256);
g.characterControl.pantiesControl.registerRGBButton(igm.costumeMenu.rgbPanties, igm.underwearSwatch, 256);
g.characterControl.braControl.registerRGBButton(igm.costumeMenu.rgbBra, igm.underwearSwatch, 256);
g.characterControl.tonguePiercingControl.registerRGBButton(igm.costumeMenu.rgbTonguePiercing, igm.underwearSwatch, 256);
g.characterControl.nipplePiercingControl.registerRGBButton(igm.costumeMenu.rgbNipplePiercing, igm.underwearSwatch, 256);
g.characterControl.bellyPiercingControl.registerRGBButton(igm.costumeMenu.rgbBellyPiercing, igm.underwearSwatch, 256);
g.characterControl.earringControl.registerRGBButton(igm.costumeMenu.rgbEarring, igm.underwearSwatch, 256);
g.characterControl.headwearControl.registerRGBButton(igm.costumeMenu.rgbHeadwear, igm.underwearSwatch, 256);
g.characterControl.headwearControl.registerSecondaryRGBButton(igm.costumeMenu.rgbHeadwear2, igm.underwearSwatch, 256);
var mb = g.him.bodies[0];
mb.topControl.registerRGBButton(mb._bodyMenu.rgbTop, mb.hisSwatch, 489);
mb.bottomsControl.registerRGBButton(mb._bodyMenu.rgbBottoms, mb.hisSwatch, 489);
mb.footwearControl.registerRGBButton(mb._bodyMenu.rgbFootwear, mb.hisSwatch, 489);
g.him.penisControl.registerRGBButton(g.him.characterMenu.rgbPenis, igm.underwearSwatch, 489);
var fb = g.him.bodies[1];
fb.footwearControl.registerRGBButton(fb._bodyMenu.rgbFootwear, fb.herSwatch, 489);
var hpc = g.her._penisControl;
hpc.penisControl.registerRGBButton(igm.costumeMenu.rgbPenis, igm.underwearSwatch, 489);
if(preventtopalphashuffle == 1)
{
var lProxy:Class;
lProxy = main.lDOM.getDefinition("Modules.lProxy");
//var prox = lProxy.createProxy(g.characterControl,"setTopFill")
//prox.addPre(setTopFill,true);
//prox.hooked = false;
var shufp = lProxy.createProxy(g.inGameMenu,"shuffle")
shufp.addPre(shuffle,true);
shufp.hooked = true;
var shufp2 = lProxy.createProxy(g.inGameMenu,"shuffle")
shufp.addPost(shufflep,true);
shufp.hooked = true;
g.characterControl.topControl.fillFunction = setTopFill;
}
main.updateStatusCol("all alpha sliders loaded","#00ff00");
main.unloadMod();
}