I am completely stumped with this. I'm trying to build a character control GUI with a background image and buttons or some other clickable object laid over the top but I can't get it working. The buttons are not clickable and behind the image and I have no idea why. I've basically pieced this code together from other character gui's so I'm at a loss. Any help would be appreciated.
string $title = "Control Window";
int $width = 640;
int $height = 700;
//create window
if(window -q -exists UIWin){
deleteUI UIWin;
}
string $win = window -title $title -widthHeight $width $height;
// create tablayout
string $tabs = tabLayout -innerMarginWidth 5 -innerMarginHeight 5;
//Body Tab
string $tab_cl1 = columnLayout -w $width -h $height -adj 0 Body;
// create a formLayout
string $form= formLayout -numberOfDivisions 640;
//createButton
string $bodyButton =button -w 70 -h 20 -label "Body" -ann "Select body control" -c print "body select" ;
string $chestButton =button -w 70 -h 20 -label "chest" -ann "Select chest control" -c print "chest select" ;
//creat image
string $BodyPage = image -image "guiTail.png";
// FormLayout edit
formLayout -edit
-attachForm $bodyButton "top" 300
-attachForm $bodyButton "left" 200
-attachForm $chestButton "top" 40
-attachForm $chestButton "left" 400
-attachForm $BodyPage "top" 0
-attachForm $BodyPage "left" 0
$form;
setParent..;
setParent..;
//Show Window
showWindow $win;