From dac0c364831bc7907cf12f08f4bf4f3451594deb Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Sat, 15 May 2021 16:23:16 +0800 Subject: [PATCH] write shit --- BallanceTASEditor.csproj | 3 + Core/TASStruct.cs | 20 ++--- MainWindow.xaml | 18 ++--- MainWindow.xaml.cs | 114 ++++++++++++++++++++++++++++- UI/DialogUtil.cs | 17 ++++- UI/SelectionHelp.cs | 148 +++++++++++++++++++++++++++++++++++++ UI/TASFlow.xaml | 23 +++--- UI/TASFlow.xaml.cs | 153 ++++++++++++++++++++++++++++++++++++--- UI/TASViewer.cs | 98 ++++++++++++++++++++++--- UI/Util.cs | 24 ++++++ 10 files changed, 564 insertions(+), 54 deletions(-) create mode 100644 UI/SelectionHelp.cs create mode 100644 UI/Util.cs diff --git a/BallanceTASEditor.csproj b/BallanceTASEditor.csproj index ed15637..71587e1 100644 --- a/BallanceTASEditor.csproj +++ b/BallanceTASEditor.csproj @@ -34,6 +34,7 @@ 4 + @@ -56,11 +57,13 @@ MSBuild:Compile Designer + TASFlow.xaml + MSBuild:Compile Designer diff --git a/Core/TASStruct.cs b/Core/TASStruct.cs index 5391115..92d93ab 100644 --- a/Core/TASStruct.cs +++ b/Core/TASStruct.cs @@ -131,16 +131,16 @@ namespace BallanceTASEditor.Core.TASStruct { public const int FRAMEDATA_OFFSET_KEY_STATES = 4; } - public enum FrameDataField { - Key_Up, - Key_Down, - Key_Left, - Key_Right, - Key_Shift, - Key_Space, - Key_Q, - Key_Esc, - Key_Enter + public enum FrameDataField : int { + Key_Up = 0, + Key_Down = 1, + Key_Left = 2, + Key_Right = 3, + Key_Shift = 4, + Key_Space = 5, + Key_Q = 6, + Key_Esc = 7, + Key_Enter = 8 } } diff --git a/MainWindow.xaml b/MainWindow.xaml index e783f9f..e0ad970 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -23,7 +23,7 @@ - + @@ -41,7 +41,7 @@ - - -