From 02118f4c0a83e08bde0fb2b7879697424c31fa04 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Mon, 17 Nov 2025 13:22:00 +0800 Subject: [PATCH] feat: add all essential dialogs --- BallanceTasEditor/BallanceTasEditor.csproj | 20 ++++- BallanceTasEditor/Views/AddFrameDialog.xaml | 58 ++++++++++++++ ...sDialog.xaml.cs => AddFrameDialog.xaml.cs} | 6 +- BallanceTasEditor/Views/EditFpsDialog.xaml | 53 +++++++++++++ BallanceTasEditor/Views/EditFpsDialog.xaml.cs | 24 ++++++ BallanceTasEditor/Views/GotoDialog.xaml | 27 ++++++- BallanceTasEditor/Views/MainWindow.xaml | 75 ++++++++++--------- BallanceTasEditor/Views/MainWindow.xaml.cs | 21 +++++- BallanceTasEditor/Views/NewFileDialog.xaml | 7 +- .../Views/SetupCountAndFpsDialog.xaml | 64 ---------------- BallanceTasEditor/Views/TasViewer.xaml | 12 +++ BallanceTasEditor/Views/TasViewer.xaml.cs | 25 +++++++ 12 files changed, 278 insertions(+), 114 deletions(-) create mode 100644 BallanceTasEditor/Views/AddFrameDialog.xaml rename BallanceTasEditor/Views/{SetupCountAndFpsDialog.xaml.cs => AddFrameDialog.xaml.cs} (75%) create mode 100644 BallanceTasEditor/Views/EditFpsDialog.xaml create mode 100644 BallanceTasEditor/Views/EditFpsDialog.xaml.cs delete mode 100644 BallanceTasEditor/Views/SetupCountAndFpsDialog.xaml create mode 100644 BallanceTasEditor/Views/TasViewer.xaml create mode 100644 BallanceTasEditor/Views/TasViewer.xaml.cs diff --git a/BallanceTasEditor/BallanceTasEditor.csproj b/BallanceTasEditor/BallanceTasEditor.csproj index b003af1..d3e4e8d 100644 --- a/BallanceTasEditor/BallanceTasEditor.csproj +++ b/BallanceTasEditor/BallanceTasEditor.csproj @@ -66,6 +66,12 @@ AboutDialog.xaml + + AddFrameDialog.xaml + + + EditFpsDialog.xaml + GotoDialog.xaml @@ -75,8 +81,8 @@ PreferenceDialog.xaml - - SetupCountAndFpsDialog.xaml + + TasViewer.xaml Designer @@ -94,6 +100,14 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -122,7 +136,7 @@ Designer MSBuild:Compile - + Designer MSBuild:Compile diff --git a/BallanceTasEditor/Views/AddFrameDialog.xaml b/BallanceTasEditor/Views/AddFrameDialog.xaml new file mode 100644 index 0000000..4d533b5 --- /dev/null +++ b/BallanceTasEditor/Views/AddFrameDialog.xaml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - diff --git a/BallanceTasEditor/Views/TasViewer.xaml b/BallanceTasEditor/Views/TasViewer.xaml new file mode 100644 index 0000000..2661d54 --- /dev/null +++ b/BallanceTasEditor/Views/TasViewer.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/BallanceTasEditor/Views/TasViewer.xaml.cs b/BallanceTasEditor/Views/TasViewer.xaml.cs new file mode 100644 index 0000000..4bc1c32 --- /dev/null +++ b/BallanceTasEditor/Views/TasViewer.xaml.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace BallanceTasEditor.Views { + /// + /// Interaction logic for TasViewer.xaml + /// + public partial class TasViewer : UserControl { + public TasViewer() { + InitializeComponent(); + } + } +}