Example #1
0
        void mLoadPaletteButton_Click(object sender, EventArgs e)
        {
            mDontDoInvokeCallback = true;

            OpenFileDialog d = new OpenFileDialog();

            d.Filter           = "Terrain Texture Palette (*" + SimTerrainType.mTextureSetExtention + ")|*" + SimTerrainType.mTextureSetExtention;
            d.InitialDirectory = CoreGlobals.getWorkPaths().mTerrainTexturesPath;
            if (d.ShowDialog() == DialogResult.OK)
            {
                SimTerrainType.loadActiveSetFromPalette(d.FileName);
                init();
                // TerrainGlobals.getTexturing().reloadActiveTextures(true);
            }

            mDontDoInvokeCallback = false;
        }