Пример #1
0
 public void Save(string FilePath)
 {
     if (PropertyGrid.SelectedObject is SBSurface surface)
     {
         if (FilePath.EndsWith(".dds"))
         {
             IO_DDS.Export(FilePath, surface);
         }
         else
         {
             IO_NUTEXB.Export(FilePath, surface);
         }
     }
 }
Пример #2
0
        private SBSurface OpenFile(string FilePath)
        {
            SBSurface Surface = null;

            if (FilePath.EndsWith(".nutexb"))
            {
                Surface = IO_NUTEXB.Open(FilePath);
            }
            if (FilePath.EndsWith(".dds"))
            {
                Surface = IO_DDS.Import(FilePath);
            }

            return(Surface);
        }