//DECLARE Global NAMES//
global string $Xslider ;
global string $Yslider ;
global string $Zslider ;
//END of Global Declaration//
//-___________---------------------________________--------------------------
//----------------------------------------------------------//
//INTERFACE//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
global proc LeongPyramid_UI()
{
global string $wn;
global string $Xslider ;
global string $Yslider ;
global string $Zslider ;
//avoid duplicate window
if(`window -exists $wn`)
deleteUI $wn;
//UI window
$wn =`window -title "leong Pyramid generator" -h 400 -w 400` ;
columnLayout;
//for defining size of pyramid//
//units//
//X-axis//
$Xslider =
`floatSliderGrp -min 0 -max 10
-value 5
-field true
-label "Units in X-axis"`;
//Y-axis//
$Yslider =
`floatSliderGrp -min 0 -max 10
-value 5
-field true
-label "Units in Y-axis"`;
//Z-axis//
$Zslider =
`floatSliderGrp -min 0 -max 10
-value 5
-field true
-label "Units in X-axis"`;
//create Pyramid//
button -label "Make Pyramid" -command "makePyr1";
button -label "delete Current" -command "deletestuff()";
button -label "DUPLICATE" -command "Dup_Pyr()";
//editpyramid_location//
showWindow;
}
LeongPyramid_UI();
|