if(e.getSource()==mSetID){
// get file
openedFile of = fm.getActiveFile();
AreaIDPopUp a= new AreaIDPopUp(null);
adt obj = (adt) of.obj;
obj.mcnk[xpos*16+ypos].setAreaID(a.areaid);
}
else
if(e.getSource()==mHoleEditor){
// get file
openedFile of = fm.getActiveFile();
adt obj=(adt)of.obj;
HoleDialog a= new HoleDialog(null,obj.mcnk[xpos*16+ypos].getHoles());
obj.mcnk[xpos*16+ypos].setHoles(a.holeval);
}
else
if(e.getSource()==mFlagEditor){
// get file
openedFile of = fm.getActiveFile();
adt obj=(adt)of.obj;
FlagsDialog a= new FlagsDialog(null,obj.mcnk[xpos*16+ypos].getFlags());
obj.mcnk[xpos*16+ypos].setFlags(a.flagval);
}
else
if(e.getSource()==mAddTex){
// get file
openedFile of = fm.getActiveFile();
adt obj=(adt)of.obj;
String[] texs=new String[obj.mtex.entrys.length];
for(int k=0;k<obj.mtex.entrys.length;k++){
texs[k]=obj.mtex.entrys[k].toString();
}
TextureDialog a=new TextureDialog(null,texs,0,0);
obj.mcnk[xpos*16+ypos].setNLayers(obj.mcnk[xpos*16+ypos].getNLayers()+1);
obj.mcnk[xpos*16+ypos].mcly.add(a.textureid,a.groundid);
obj.mcnk[xpos*16+ypos].mcal.createLayer();
}
else
for(int i=0;i<mTextures.length;i++){
if(e.getSource()==mTextures[i]){
openedFile of = fm.getActiveFile();
adt obj=(adt)of.obj;
String[] texs=new String[obj.mtex.entrys.length];
for(int k=0;k<obj.mtex.entrys.length;k++){
texs[k]=obj.mtex.entrys[k].toString();
}
TextureDialog a=new TextureDialog(null,texs,obj.mcnk[xpos*16+ypos].mcly.GetTexID(i),obj.mcnk[xpos*16+ypos].mcly.GetGroundEffect(i));