public void ContextMenuLoad(object source, ContextMenuArgs e)
        {
            string filename = DialogHelpers.GetFilePath("Open world file", "world.OSMP");

            if (filename != "")
            {
                Load(filename);
            }
        }
        public void SaveWorld()
        {
            string filename = DialogHelpers.GetFilePath("Save world file", "world.OSMP");

            if (filename != "")
            {
                Console.WriteLine(filename);
                Store(filename);
                DialogHelpers.ShowInfoMessageModal(null, "World save completed");
            }
        }
Exemple #3
0
        public void LoadWorld()
        {
            string filename = DialogHelpers.GetFilePath("Open Prim Blender file file", ".PRIMS");

            if (filename != "")
            {
                LogFile.WriteLine(filename);
                Restore(filename);
                DialogHelpers.ShowInfoMessageModal(null, "World load from prim blender completed");
            }
        }
Exemple #4
0
        public void SaveWorld()
        {
            string filename = DialogHelpers.GetFilePath("Save Prim Blender file file", "world.PRIMS");

            if (filename != "")
            {
                LogFile.WriteLine(filename);
                Store(filename);
                DialogHelpers.ShowInfoMessageModal(null, "World export to prim blender completed");
            }
        }
Exemple #5
0
        public void AssignTextureSingleFaceClick( object source, ContextMenuArgs e )
        {
            if( ! ( entity is Prim ) )
            {
                return;
            }
            
            int FaceNumber = Picker3dController.GetInstance().GetClickedFace( entity as Prim, iMouseX, iMouseY );

            string filename = DialogHelpers.GetFilePath("Select image file (*.bmp,*.jpg,*.gif,*.tga):","*.JPG");
            if( filename != "" )
            {
                Console.WriteLine ( filename );
                if( File.Exists( filename ) )
                {
                    AssignTexture( FaceNumber, new Uri( filename ) );
                }
            }
        }
Exemple #6
0
        public void AssignTextureAllFacesClick( object source, ContextMenuArgs e )
        {
            if (!(entity is Prim))
            {
                return;
            }

            int FaceNumber = FractalSpline.Primitive.AllFaces;

            string filename = DialogHelpers.GetFilePath( "Select image file (*.bmp,*.jpg,*.gif,*.tga):", "*.JPG" );
            if (filename != "")
            {
                Console.WriteLine( filename );
                if (File.Exists( filename ))
                {
                    AssignTexture( FaceNumber, new Uri( filename ) );
                }
            }
        }