diff --git a/EasyZoneBuilder.GUI/DarkTheme.xaml b/EasyZoneBuilder.GUI/DarkTheme.xaml index 328ed84..88a5d7d 100644 --- a/EasyZoneBuilder.GUI/DarkTheme.xaml +++ b/EasyZoneBuilder.GUI/DarkTheme.xaml @@ -122,9 +122,9 @@ - - - + + + diff --git a/EasyZoneBuilder.GUI/Mod.xaml.cs b/EasyZoneBuilder.GUI/Mod.xaml.cs index 1443b40..bce20e1 100644 --- a/EasyZoneBuilder.GUI/Mod.xaml.cs +++ b/EasyZoneBuilder.GUI/Mod.xaml.cs @@ -43,8 +43,11 @@ private async void writeFastFileBtn_Click( object sender, RoutedEventArgs e ) if ( selectedMod.SelectedItem is Core.Mod sMod ) { writeFastFileBtn.IsEnabled = false; + object oldContent = writeFastFileBtn.Content; + writeFastFileBtn.Content = "Writing..."; sMod.CSV.Push(); await sMod.BuildZone(); + writeFastFileBtn.Content = oldContent; writeFastFileBtn.IsEnabled = true; MessageBox.Show($"Wrote to mod.ff successfully!", "Success", MessageBoxButton.OK, MessageBoxImage.Information); } diff --git a/EasyZoneBuilder.GUI/Zone.xaml.cs b/EasyZoneBuilder.GUI/Zone.xaml.cs index 0e6a3ef..cc05497 100644 --- a/EasyZoneBuilder.GUI/Zone.xaml.cs +++ b/EasyZoneBuilder.GUI/Zone.xaml.cs @@ -29,12 +29,15 @@ private async void readFastFileBtn_Click( object sender, RoutedEventArgs e ) if ( selectedZone.SelectedItem is string ss && selectedAssetType.SelectedItem is string sat ) { readFastFileBtn.IsEnabled = false; + object oldBtnContext = readFastFileBtn.Content; + readFastFileBtn.Content = "Reading..."; AssetList.ItemsSource = Array.Empty(); AssetsFoundLabel.Content = "Assets Found: 0"; IEnumerable assets = await ZoneBuilder.ListAssets(AssetTypeUtil.Parse(sat), ss); cvs.Source = assets; AssetList.ItemsSource = cvs.View; AssetsFoundLabel.Content = "Assets Found: " + assets.Count(); + readFastFileBtn.Content = oldBtnContext; readFastFileBtn.IsEnabled = true; } }