예제 #1
0
 public virtual bool Read(FileStream stream)
 {
     resourcePath   = Common.GetPath(stream.Name);
     resourceDialog = new OpenResourceDialog(System.AppDomain.CurrentDomain.BaseDirectory, "Open JP Resource", "JP Resource Files|*.d3dmesh;*.lang;*.prop;*.scene;*.skl|D3D Mesh|*.d3dmesh|Localization|*.lang|All files (*.*)|*.*");
     _stream        = stream;
     return(true);
 }
예제 #2
0
        public Form1()
        {
            InitializeComponent();
            string baseDirectory = System.AppDomain.CurrentDomain.BaseDirectory;

            resourceDialog = new OpenResourceDialog(baseDirectory, "Open JP Resource", "JP Resource Files|*.d3dmesh;*.lang;*.prop;*.scene;*.skl|D3D Mesh|*.d3dmesh|Localization|*.lang|All files (*.*)|*.*");
            textureDialog  = new OpenResourceDialog(baseDirectory, "Open JP texture directory", "JP Textures|*.dds|All files (*.*)|*.*");
        }