diff --git a/BallanceTASEditor/Language/CHS.xaml b/BallanceTASEditor/Language/CHS.xaml
index bc5a152..df4d04e 100644
--- a/BallanceTASEditor/Language/CHS.xaml
+++ b/BallanceTASEditor/Language/CHS.xaml
@@ -43,7 +43,7 @@
剪切
复制
粘贴于后方
- 粘贴于前方
+ 粘贴于前方
删除
向后删除
向前删除
@@ -62,9 +62,10 @@
Ballance TAS 编辑器
基于 MIT 开源许可证发布
-版本:1.0 stable
+版本:1.1 stable
程序:yyc12345.
图标设计:plAer_2
+ 文件未关闭。您想直接退出吗?所有修改不会被保存。
您想要关闭这个TAS文件吗?
无法打开文件,文件可能不是合法的TAS文件。
输入新的数量(<=5 && >=30)
diff --git a/BallanceTASEditor/Language/DefaultLanguage.xaml b/BallanceTASEditor/Language/DefaultLanguage.xaml
index d22de0a..015967b 100644
--- a/BallanceTASEditor/Language/DefaultLanguage.xaml
+++ b/BallanceTASEditor/Language/DefaultLanguage.xaml
@@ -43,7 +43,7 @@
Cut
Copy
Paste after this
- Paste before this
+ Paste before this
Delete
Delete this frame
Delete last frame
@@ -62,9 +62,10 @@
Ballance TAS Editor
Under MIT License
-Version: 1.0 stable
+Version: 1.1 stable
Program: yyc12345.
Icon design: plAer_2
+ File is not closed. Do you want to just quit? All changes will not be saved.
Do you want to close this TAS file?
Fail to open file. This file might not a legal TAS file.
Input new count (<=5 && >=30)
diff --git a/BallanceTASEditor/MainWindow.xaml b/BallanceTASEditor/MainWindow.xaml
index 64109c2..1a449e5 100644
--- a/BallanceTASEditor/MainWindow.xaml
+++ b/BallanceTASEditor/MainWindow.xaml
@@ -8,7 +8,7 @@
xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
mc:Ignorable="d"
Title="{DynamicResource ui_MainWindow_Title}" Height="500" Width="800" KeyUp="funcWindow_KeyUp"
- input:InputMethod.IsInputMethodEnabled="False" MouseWheel="funcWindow_MouseWheel" Icon="icon.ico">
+ input:InputMethod.IsInputMethodEnabled="False" MouseWheel="funcWindow_MouseWheel" Icon="icon.ico" Closing="funcWindow_Closing">
@@ -145,11 +145,11 @@
-
+
-
+
@@ -242,16 +242,28 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BallanceTASEditor/MainWindow.xaml.cs b/BallanceTASEditor/MainWindow.xaml.cs
index 3d9a6db..d6f7fb4 100644
--- a/BallanceTASEditor/MainWindow.xaml.cs
+++ b/BallanceTASEditor/MainWindow.xaml.cs
@@ -124,6 +124,14 @@ namespace BallanceTASEditor {
RefreshUI(false);
}
+ private void funcWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) {
+ if (!(mFile is null)) {
+ if (!DialogUtil.ConfirmDialog(I18NProcessor.GetI18N("code_MainWindow_Closing"))) {
+ e.Cancel = true;
+ }
+ }
+ }
+
private void funcMenu_Display_ItemCount(object sender, RoutedEventArgs e) {
int newvalue = 0;
if (DialogUtil.InputNumber(I18NProcessor.GetI18N("code_MainWindow_Menu_Display_ItemCount"), 5, 30, ref newvalue)) {
@@ -392,7 +400,11 @@ namespace BallanceTASEditor {
uiMenu_Display_Undo.IsEnabled = true;
uiMenu_Display_Redo.IsEnabled = true;
- uiStatusbar.Visibility = Visibility.Visible;
+ uiStatusbar_Runtime_Mode.Visibility = Visibility.Visible;
+ uiStatusbar_Runtime_PasteMode.Visibility = Visibility.Visible;
+ uiStatusbar_Runtime_Selected.Visibility = Visibility.Visible;
+ uiStatusbar_Runtime_Separator1.Visibility = Visibility.Visible;
+ uiStatusbar_Runtime_Separator2.Visibility = Visibility.Visible;
} else {
uiEditorPanel.Visibility = Visibility.Collapsed;
uiEditorNote.Visibility = Visibility.Visible;
@@ -408,7 +420,11 @@ namespace BallanceTASEditor {
uiMenu_Display_Undo.IsEnabled = false;
uiMenu_Display_Redo.IsEnabled = false;
- uiStatusbar.Visibility = Visibility.Collapsed;
+ uiStatusbar_Runtime_Mode.Visibility = Visibility.Collapsed;
+ uiStatusbar_Runtime_PasteMode.Visibility = Visibility.Collapsed;
+ uiStatusbar_Runtime_Selected.Visibility = Visibility.Collapsed;
+ uiStatusbar_Runtime_Separator1.Visibility = Visibility.Collapsed;
+ uiStatusbar_Runtime_Separator2.Visibility = Visibility.Collapsed;
}
}
diff --git a/BallanceTASEditor/Properties/AssemblyInfo.cs b/BallanceTASEditor/Properties/AssemblyInfo.cs
index be90d6d..a036f2f 100644
--- a/BallanceTASEditor/Properties/AssemblyInfo.cs
+++ b/BallanceTASEditor/Properties/AssemblyInfo.cs
@@ -7,12 +7,12 @@ using System.Windows;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
-[assembly: AssemblyTitle("BallanceTASEditor")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("Ballance TAS Editor")]
+[assembly: AssemblyDescription("Ballance TAS Editor")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("BallanceTASEditor")]
-[assembly: AssemblyCopyright("Copyright © 2021")]
+[assembly: AssemblyCompany("Ballance Community")]
+[assembly: AssemblyProduct("Ballance TAS Editor")]
+[assembly: AssemblyCopyright("Copyright © Ballance Community 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -51,5 +51,5 @@ using System.Windows;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.1.0.0")]
+[assembly: AssemblyFileVersion("1.1.0.0")]