private void ButtonBrowseImportSkeletonFLVER_Click(object sender, RoutedEventArgs e) { var browseDialog = new OpenFileDialog() { Filter = "All Files (*.*)|*.*", Title = "Choose FLVER Model to import skeleton from (supports loading from inside BNDs)", CheckFileExists = false, }; if (browseDialog.ShowDialog() == true) { var loadedFile = SFHelper.ReadFile <FLVER2>(this, browseDialog.FileName); TextBoxImportSkeletonFLVER.Text = loadedFile.Uri; } }
private void ButtonBrowseTPFOutputMain_Click(object sender, RoutedEventArgs e) { var browseDialog = new OpenFileDialog() { Filter = "All Files (*.*)|*.*", Title = "Choose where to save TPF Textures (supports saving inside BNDs)", CheckFileExists = false, }; if (browseDialog.ShowDialog() == true) { if ((browseDialog.FileName.ToUpper().EndsWith(".TPF") || browseDialog.FileName.ToUpper().EndsWith(".TPF.DCX")) && File.Exists(browseDialog.FileName)) { TextBoxTPFOutputMain.Text = browseDialog.FileName; } else { var loadedFile = SFHelper.ReadFile <TPF>(this, browseDialog.FileName); TextBoxTPFOutputMain.Text = loadedFile.Uri; } } }