Package starlight.taliis.core.files

Examples of starlight.taliis.core.files.adt


    // get file
    openedFile of = fm.getActiveFile();
   
    if (of == null || !(of.obj instanceof adt))
      return null;
    adt obj = (adt) of.obj;
    for(Plugin p : pp) {
      if(p.getClass().toString().endsWith("mpqFileRequest"))
        dLoader=new dbcLoader(fm, p)
    }
    // create buffered image
View Full Code Here


   * - copy
   * - delete
   */
  private void initPopup(int x,int y) {
    openedFile of = fm.getActiveFile();
    adt obj=(adt)of.obj;
    MCNK f=obj.mcnk[x*16+y];
    int ID=0;
   
    ID=f.getAreaID();
    int tex=f.getNLayers();
View Full Code Here

      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));
 
View Full Code Here

    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);
      paintPicture();
    }
  }
 
View Full Code Here

    openedFile of = fm.getActiveFile();



    // get data
    adt obj = (adt) of.obj;
   
    //create colorpalette
    int tempid[]={0};
    for (int x = 0; x < 16; x++)
      for (int y = 0; y < 16; y++) {
View Full Code Here

    openedFile of = fm.getActiveFile();
   
    if(of==null || !(of.obj instanceof adt)) return null;
   
    // get data
    adt obj = (adt)of.obj;

    // 3D Init
    GLCanvas glScene = null;
    Tutorial2 glEvents = null;
   
View Full Code Here

   
  }

 
  public wowfile load(File f) {
    return new adt( fileLoader.openBuffer(f.getAbsolutePath()) );
  }
View Full Code Here

    // get file
    openedFile of = fm.getActiveFile();

    if (of == null || !(of.obj instanceof adt))
      return null;
    adt obj = (adt) of.obj;
    // create buffered image

    BufferedImage img = new BufferedImage(144, 144, BufferedImage.TYPE_BYTE_GRAY);
    for(int x=0; x<16; x++) {
      for(int y=0; y<16; y++) {
View Full Code Here

    if (of == null || !(of.obj instanceof adt))
      return;

    // get data
    adt obj = (adt) of.obj;
    BufferedImage img = new BufferedImage(144, 144, BufferedImage.TYPE_BYTE_GRAY);

        String filename = of.f.getAbsolutePath();
        File f = new File(filename + ".png");
        try {
View Full Code Here

    openedFile of = fm.getActiveFile();
   
    if(of==null || !(of.obj instanceof adt)) return;
   
    // get data
    adt obj = (adt)of.obj;
   
    // create buffered image
    BufferedImage img = new BufferedImage(144, 144, BufferedImage.TYPE_BYTE_GRAY);

View Full Code Here

TOP

Related Classes of starlight.taliis.core.files.adt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.