diff --git a/SCTools/SCTool_Redesigned/Pages/mainNotes.xaml b/SCTools/SCTool_Redesigned/Pages/mainNotes.xaml
index 58287c7..7158ea5 100644
--- a/SCTools/SCTool_Redesigned/Pages/mainNotes.xaml
+++ b/SCTools/SCTool_Redesigned/Pages/mainNotes.xaml
@@ -9,40 +9,16 @@
mc:Ignorable="d"
d:DesignHeight="480" d:DesignWidth="480"
Title="mainNotes">
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/SCTools/SCTool_Redesigned/Pages/mainNotes.xaml.cs b/SCTools/SCTool_Redesigned/Pages/mainNotes.xaml.cs
index 915f4d2..98f3207 100644
--- a/SCTools/SCTool_Redesigned/Pages/mainNotes.xaml.cs
+++ b/SCTools/SCTool_Redesigned/Pages/mainNotes.xaml.cs
@@ -34,73 +34,41 @@ public partial class mainNotes : Page
{
internal static mainNotes UI;
- public mainNotes()
+ public mainNotes(int idx)
{
UI = this;
InitializeComponent();
-
- set_note(0);
- set_link(App.Settings.GameLanguage);
-
+ set_note(idx);
GoogleAnalytics.Hit(App.Settings.UUID, "/main", "Program Main");
}
- private void set_link(string language)
- {
- Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(delegate
- {
- Community_link1.Source = Base64ToImage(Properties.Resources.UI_Button_Image_Community_1).Source;
- Community_link1.ToolTip = Properties.Resources.UI_Button_Tooltip_Community_1;
- Community_link2.Source = Base64ToImage(Properties.Resources.UI_Button_Image_Community_2).Source;
- Community_link2.ToolTip = Properties.Resources.UI_Button_Tooltip_Community_2;
- }));
- }
- private void set_note(int idx)
+ public void set_note(int idx)
{
switch (idx)
{
case 0: //patchnote
- Menu_patchnote.Foreground = (SolidColorBrush)App.Current.Resources["KeyPointBrush"];
- Menu_credit.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
- Menu_qna.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
ShowReleasesNote();
break;
case 1: //qna
- Menu_patchnote.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
- Menu_credit.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
- Menu_qna.Foreground = (SolidColorBrush)App.Current.Resources["KeyPointBrush"];
+
ShowMarkdownDocument("QNA.md");
break;
case 2: //credit
- Menu_patchnote.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
- Menu_credit.Foreground = (SolidColorBrush)App.Current.Resources["KeyPointBrush"];
- Menu_qna.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+
ShowMarkdownDocument("CREDIT.md");
break;
default:
throw new ArgumentException("invalid note index " + idx.ToString());
}
}
- private void Menu_patchnote_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- set_note(0);
- }
- private void Menu_qna_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- set_note(1);
- }
- private void Menu_credit_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- set_note(2);
- }
private void OpenHyperlink(object sender, ExecutedRoutedEventArgs e)
{
var link = e.Parameter.ToString();
- if(!link.StartsWith("http://") && !link.StartsWith("https://"))
+ if (!link.StartsWith("http://") && !link.StartsWith("https://"))
{
link = "https://" + link;
}
@@ -112,7 +80,7 @@ private void OpenHyperlink(object sender, ExecutedRoutedEventArgs e)
}
catch (Exception ex)
{
- MessageBox.Show(Properties.Resources.MSG_Decs_CannotOpenLink+"\n"+ex.Message, Properties.Resources.MSG_Title_CannotOpenLink);
+ MessageBox.Show(Properties.Resources.MSG_Decs_CannotOpenLink + "\n" + ex.Message, Properties.Resources.MSG_Title_CannotOpenLink);
}
}
@@ -166,40 +134,20 @@ private void ShowFlowDocument(string name, string markdown)
}));
}
- private void Open_Community_1(object sender, MouseButtonEventArgs e) => Process.Start(Properties.Resources.UI_Button_Link_Community_1);
- private void Open_Community_2(object sender, MouseButtonEventArgs e) => Process.Start(Properties.Resources.UI_Button_Link_Community_2);
- private Image Base64ToImage(string image)
+ class MyXamlSchemaContext : XamlSchemaContext
{
- Image img = new Image();
- byte[] binaryData = Convert.FromBase64String(image);
- BitmapImage bi = new BitmapImage();
-
- bi.BeginInit();
- using (bi.StreamSource = new MemoryStream(binaryData))
+ public override bool TryGetCompatibleXamlNamespace(string xamlNamespace, out string compatibleNamespace)
{
- bi.CacheOption = BitmapCacheOption.OnLoad;
- bi.EndInit();
-
- img.Source = bi;
- }
-
- return img;
- }
- }
-
- class MyXamlSchemaContext : XamlSchemaContext
- {
- public override bool TryGetCompatibleXamlNamespace(string xamlNamespace, out string compatibleNamespace)
- {
- if (xamlNamespace.Equals("clr-namespace:Markdig.Wpf", StringComparison.Ordinal))
- {
- //compatibleNamespace = $"clr-namespace:Markdig.Wpf;assembly={Assembly.GetAssembly(typeof(Markdig.Wpf.Styles)).FullName}";
- compatibleNamespace = "";
- return true;
+ if (xamlNamespace.Equals("clr-namespace:Markdig.Wpf", StringComparison.Ordinal))
+ {
+ //compatibleNamespace = $"clr-namespace:Markdig.Wpf;assembly={Assembly.GetAssembly(typeof(Markdig.Wpf.Styles)).FullName}";
+ compatibleNamespace = "";
+ return true;
+ }
+ return base.TryGetCompatibleXamlNamespace(xamlNamespace, out compatibleNamespace);
}
- return base.TryGetCompatibleXamlNamespace(xamlNamespace, out compatibleNamespace);
}
}
}
diff --git a/SCTools/SCTool_Redesigned/Pages/selectPatchLang.xaml b/SCTools/SCTool_Redesigned/Pages/selectPatchLang.xaml
index 818c027..8d59eff 100644
--- a/SCTools/SCTool_Redesigned/Pages/selectPatchLang.xaml
+++ b/SCTools/SCTool_Redesigned/Pages/selectPatchLang.xaml
@@ -11,9 +11,9 @@
-
-
+ HorizontalAlignment="Center" Height="48" Margin="0,100,0,0" VerticalAlignment="Center" Width="480"/>
+
+
diff --git a/SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs b/SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs
index 767aff3..de2a6be 100644
--- a/SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs
+++ b/SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs
@@ -51,5 +51,5 @@
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.4.0")]
-[assembly: AssemblyFileVersion("1.0.4.0")]
+[assembly: AssemblyVersion("1.1.0.0")]
+[assembly: AssemblyFileVersion("1.1.0.0")]
diff --git a/SCTools/SCTool_Redesigned/Properties/Resources.ko-KR.resx b/SCTools/SCTool_Redesigned/Properties/Resources.ko-KR.resx
index 9ddada0..aeed48e 100644
--- a/SCTools/SCTool_Redesigned/Properties/Resources.ko-KR.resx
+++ b/SCTools/SCTool_Redesigned/Properties/Resources.ko-KR.resx
@@ -352,7 +352,7 @@
런처 업데이트 중
- 환영합니다.
+ 환영합니다
라이센스
diff --git a/SCTools/SCTool_Redesigned/Resources/BG0.png b/SCTools/SCTool_Redesigned/Resources/BG0.png
new file mode 100644
index 0000000..2f694b0
Binary files /dev/null and b/SCTools/SCTool_Redesigned/Resources/BG0.png differ
diff --git a/SCTools/SCTool_Redesigned/Resources/BG1.png b/SCTools/SCTool_Redesigned/Resources/BG1.png
new file mode 100644
index 0000000..b3c4907
Binary files /dev/null and b/SCTools/SCTool_Redesigned/Resources/BG1.png differ
diff --git a/SCTools/SCTool_Redesigned/Resources/Discord-Logo.png b/SCTools/SCTool_Redesigned/Resources/Discord-Logo.png
deleted file mode 100644
index d5346b7..0000000
Binary files a/SCTools/SCTool_Redesigned/Resources/Discord-Logo.png and /dev/null differ
diff --git a/SCTools/SCTool_Redesigned/Resources/Ncafe-Logo.png b/SCTools/SCTool_Redesigned/Resources/Ncafe-Logo.png
deleted file mode 100644
index 429b9dc..0000000
Binary files a/SCTools/SCTool_Redesigned/Resources/Ncafe-Logo.png and /dev/null differ
diff --git a/SCTools/SCTool_Redesigned/SCTool_Redesigned.csproj b/SCTools/SCTool_Redesigned/SCTool_Redesigned.csproj
index 733cf89..94b2713 100644
--- a/SCTools/SCTool_Redesigned/SCTool_Redesigned.csproj
+++ b/SCTools/SCTool_Redesigned/SCTool_Redesigned.csproj
@@ -423,14 +423,14 @@
-
+
+
-
+
-
-
+
diff --git a/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml b/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml
index 7020562..4ec073e 100644
--- a/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml
+++ b/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml
@@ -5,10 +5,11 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SCTool_Redesigned"
xmlns:lang="clr-namespace:SCTool_Redesigned.Properties"
- mc:Ignorable="d" Height="480" Width="960" Icon="/Shatagon;component/Resources/256ico_WtM_icon.ico" ResizeMode="NoResize" Title="{x:Static lang:Resources.UI_Title_ProgramTitle}" Background="{DynamicResource BackgroundBrush}" IsTabStop="False" ScrollViewer.VerticalScrollBarVisibility="Disabled" WindowStartupLocation="CenterScreen" Closed="Quit">
+ mc:Ignorable="d" Height="520" Width="960" Icon="/Shatagon;component/Resources/256ico_WtM_icon.ico" Title="{x:Static lang:Resources.UI_Title_ProgramTitle}" IsTabStop="False" ScrollViewer.VerticalScrollBarVisibility="Disabled" WindowStartupLocation="CenterScreen" Closed="Quit" Background="{DynamicResource BackgroundBrush}" ResizeMode="NoResize" WindowStyle="None">
+
@@ -17,32 +18,52 @@
+
+
-
+
+
-
diff --git a/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs b/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs
index 170e10e..7f33aaa 100644
--- a/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs
+++ b/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
+using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -29,7 +30,7 @@ public enum InstallerMode { install, uninstall, disable };
private InstallerMode _installmode;
private PrefaceWindow _prologue;
private AuthWindow _author;
-
+ ImageBrush _mainBG, _subBG;
public MainWindow()
{
@@ -42,6 +43,13 @@ public MainWindow()
_PhaseNumber = 0;
_prologue = new PrefaceWindow();
_author = new AuthWindow();
+ set_link(App.Settings.GameLanguage);
+ _mainBG = new ImageBrush(); _subBG = new ImageBrush();
+ _mainBG.ImageSource = new BitmapImage(new Uri(@"pack://application:,,,/Shatagon;component/Resources/BG1.png"));
+ //_mainBG.ImageSource = new BitmapImage(new Uri(@"/Resources/BG1.png", UriKind.Relative));
+ _mainBG.Stretch = Stretch.UniformToFill;
+ _subBG.ImageSource = new BitmapImage(new Uri(@"pack://application:,,,/Shatagon;component/Resources/BG0.png"));
+ _subBG.Stretch = Stretch.UniformToFill;
Phase = 0;
}
@@ -60,11 +68,18 @@ public int Phase
InstallBtn.Content = Properties.Resources.UI_Button_InstallLocalization;
UninstallBtn.Content = Properties.Resources.UI_Button_RemoveLocalization;
DisableBtn.Content = Properties.Resources.UI_Button_DisableLocalization;
- WelcomeText.Content = Properties.Resources.UI_Desc_Welcome;
+ Menu_patchnote.Text = Properties.Resources.UI_Tab_Main_ReleaseNote;
+ Menu_qna.Text = Properties.Resources.UI_Tab_Main_Qna;
+ Menu_credit.Text = Properties.Resources.UI_Tab_Main_Credit;
+
_author.AuthDescLabel.Text = Properties.Resources.UI_Title_Auth;
_author.ErrorLabel.Content = Properties.Resources.UI_Desc_AuthError;
_author.Applybtn.Content = Properties.Resources.UI_Button_AuthApply;
break;
+ case 2:
+ logoCanvas.SetValue(Grid.ColumnSpanProperty, 1);
+ logotitle.SetValue(Grid.ColumnSpanProperty, 1);
+ break;
case 3: //main Install
if (_PhaseNumber != value && RepositoryManager.GetLocalizationSource().IsPrivate && _installmode == 0) //Try auth for private repo
{
@@ -126,6 +141,7 @@ public int Phase
case 2: //select patch Language
DoNotCloseMainWindow = true;
_prologue.Close();
+ Background = _mainBG;
Show();
if (App.Settings.GameLanguage != null)
@@ -139,27 +155,46 @@ public int Phase
}
frame_left.Content = null;
- frame_right.Content = new Pages.selectPatchLang();
- frame_all.Content = null;
+ frame_right.Content = null;
+ frame_all.Content = new Pages.selectPatchLang();
logoCanvas.Visibility = Visibility.Visible;
logotitle.Visibility = Visibility.Visible;
+ logoCanvas.SetValue(Grid.ColumnSpanProperty, 2);
+ logotitle.SetValue(Grid.ColumnSpanProperty, 2);
+ logotitle.Content = Properties.Resources.UI_Desc_Welcome;
InstallBtn.Visibility = Visibility.Hidden;
UninstallBtn.Visibility = Visibility.Hidden;
- WelcomeText.Visibility = Visibility.Visible;
+ DisableBtn.Visibility = Visibility.Hidden;
NextBtn.Visibility = Visibility.Hidden;
PrevBtn.Visibility = Visibility.Hidden;
+ Community_link1.IsEnabled = false; Community_link1.Visibility = Visibility.Hidden;
+ Community_link2.IsEnabled = false; Community_link2.Visibility = Visibility.Hidden;
+ Menu_patchnote.IsEnabled = false; Menu_patchnote.Visibility = Visibility.Hidden;
+ Menu_qna.IsEnabled = false; Menu_qna.Visibility = Visibility.Hidden;
+ Menu_credit.IsEnabled = false; Menu_credit.Visibility = Visibility.Hidden;
break;
case 3: //main Install
+ Background = _mainBG;
frame_left.Content = null;
- frame_right.Content = new Pages.mainNotes();
+ frame_right.Content = new Pages.mainNotes(2);
frame_all.Content = null;
logoCanvas.Visibility = Visibility.Visible;
logotitle.Visibility = Visibility.Visible;
+ logotitle.Content = Properties.Resources.UI_Title_ProgramTitle;
InstallBtn.Visibility = Visibility.Visible;
- WelcomeText.Visibility = Visibility.Hidden;
NextBtn.Visibility = Visibility.Hidden;
PrevBtn.Visibility = Visibility.Hidden;
+ Community_link1.IsEnabled = true; Community_link1.Visibility = Visibility.Visible;
+ Community_link2.IsEnabled = true; Community_link2.Visibility = Visibility.Visible;
+ Menu_patchnote.IsEnabled = true; Menu_patchnote.Visibility = Visibility.Visible;
+ Menu_qna.IsEnabled = true; Menu_qna.Visibility = Visibility.Visible;
+ Menu_credit.IsEnabled = true; Menu_credit.Visibility = Visibility.Visible;
+ //Menu_credit_PreviewMouseLeftButtonDown(null,null);
+ Menu_patchnote.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+ Menu_credit.Foreground = (SolidColorBrush)App.Current.Resources["KeyPointBrush"];
+ Menu_qna.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+
if (App.Settings.LIVE_Localization.Installations.Count > 0 || App.Settings.PTU_Localization.Installations.Count > 0)
{
UninstallBtn.Visibility = Visibility.Visible;
@@ -170,6 +205,7 @@ public int Phase
break;
case 4: //select Dir
+ Background = _subBG;
frame_left.Content = null;
frame_right.Content = null;
frame_all.Content = new Pages.selectDir();
@@ -178,14 +214,19 @@ public int Phase
InstallBtn.Visibility = Visibility.Hidden;
UninstallBtn.Visibility = Visibility.Hidden;
DisableBtn.Visibility = Visibility.Hidden;
- WelcomeText.Visibility = Visibility.Hidden;
NextBtn.Visibility = (App.Settings.GameFolder == null) ? Visibility.Hidden : Visibility.Visible;
NextBtn.Text = Properties.Resources.UI_Button_Next;
PrevBtn.Visibility = Visibility.Visible;
PrevBtn.Text = Properties.Resources.UI_Button_Previous;
+ Community_link1.IsEnabled = false; Community_link1.Visibility = Visibility.Hidden;
+ Community_link2.IsEnabled = false; Community_link2.Visibility = Visibility.Hidden;
+ Menu_patchnote.IsEnabled = false; Menu_patchnote.Visibility = Visibility.Hidden;
+ Menu_qna.IsEnabled = false; Menu_qna.Visibility = Visibility.Hidden;
+ Menu_credit.IsEnabled = false; Menu_credit.Visibility = Visibility.Hidden;
break;
case 5: //select Version
+ Background = _subBG;
frame_left.Content = null;
frame_right.Content = null;
frame_all.Content = new Pages.selectVersion();
@@ -194,14 +235,19 @@ public int Phase
InstallBtn.Visibility = Visibility.Hidden;
UninstallBtn.Visibility = Visibility.Hidden;
DisableBtn.Visibility = Visibility.Hidden;
- WelcomeText.Visibility = Visibility.Hidden;
NextBtn.Visibility = Visibility.Visible;
NextBtn.Text = Properties.Resources.UI_Button_Install;
PrevBtn.Visibility = Visibility.Visible;
PrevBtn.Text = Properties.Resources.UI_Button_Previous;
+ Community_link1.IsEnabled = false; Community_link1.Visibility = Visibility.Hidden;
+ Community_link2.IsEnabled = false; Community_link2.Visibility = Visibility.Hidden;
+ Menu_patchnote.IsEnabled = false; Menu_patchnote.Visibility = Visibility.Hidden;
+ Menu_qna.IsEnabled = false; Menu_qna.Visibility = Visibility.Hidden;
+ Menu_credit.IsEnabled = false; Menu_credit.Visibility = Visibility.Hidden;
break;
case 6: //installing?
+ Background = _subBG;
frame_left.Content = null;
frame_right.Content = null;
frame_all.Content = new Pages.installProgress(_installmode);
@@ -210,13 +256,18 @@ public int Phase
InstallBtn.Visibility = Visibility.Hidden;
UninstallBtn.Visibility = Visibility.Hidden;
DisableBtn.Visibility = Visibility.Hidden;
- WelcomeText.Visibility = Visibility.Hidden;
NextBtn.Visibility = Visibility.Hidden;
PrevBtn.Visibility = Visibility.Visible;
PrevBtn.Text = Properties.Resources.UI_Button_Cancel;
+ Community_link1.IsEnabled = false; Community_link1.Visibility = Visibility.Hidden;
+ Community_link2.IsEnabled = false; Community_link2.Visibility = Visibility.Hidden;
+ Menu_patchnote.IsEnabled = false; Menu_patchnote.Visibility = Visibility.Hidden;
+ Menu_qna.IsEnabled = false; Menu_qna.Visibility = Visibility.Hidden;
+ Menu_credit.IsEnabled = false; Menu_credit.Visibility = Visibility.Hidden;
break;
case 7: //installComplete
+ Background = _subBG;
frame_left.Content = null;
frame_right.Content = null;
frame_all.Content = new Pages.installComplete();
@@ -225,12 +276,15 @@ public int Phase
InstallBtn.Visibility = Visibility.Hidden;
UninstallBtn.Visibility = Visibility.Hidden;
DisableBtn.Visibility = Visibility.Hidden;
- WelcomeText.Visibility = Visibility.Hidden;
NextBtn.Visibility = Visibility.Visible;
NextBtn.Text = Properties.Resources.UI_Button_Quit;
-
PrevBtn.Visibility = Visibility.Visible;
PrevBtn.Text = Properties.Resources.UI_Button_Return;
+ Community_link1.IsEnabled = false; Community_link1.Visibility = Visibility.Hidden;
+ Community_link2.IsEnabled = false; Community_link2.Visibility = Visibility.Hidden;
+ Menu_patchnote.IsEnabled = false; Menu_patchnote.Visibility = Visibility.Hidden;
+ Menu_qna.IsEnabled = false; Menu_qna.Visibility = Visibility.Hidden;
+ Menu_credit.IsEnabled = false; Menu_credit.Visibility = Visibility.Hidden;
break;
case 8:
@@ -244,6 +298,17 @@ public int Phase
}
}
+ private void set_link(string language)
+ {
+ Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(delegate
+ {
+ Community_link1.Source = Base64ToImage(Properties.Resources.UI_Button_Image_Community_1).Source;
+ Community_link1.ToolTip = Properties.Resources.UI_Button_Tooltip_Community_1;
+ Community_link2.Source = Base64ToImage(Properties.Resources.UI_Button_Image_Community_2).Source;
+ Community_link2.ToolTip = Properties.Resources.UI_Button_Tooltip_Community_2;
+ }));
+ }
+
private void Update_ToggleBtn() =>
DisableBtn.Content = RepositoryManager.TargetInstallation.IsEnabled ? Properties.Resources.UI_Button_DisableLocalization : Properties.Resources.UI_Button_EnableLocalization;
@@ -306,5 +371,63 @@ private void DisableBtn_Click(object sender, RoutedEventArgs e)
MessageBox.Show("패치 비활성화 완료");
Phase = 3;
}
+
+ private void Open_Community_1(object sender, MouseButtonEventArgs e) => Process.Start(Properties.Resources.UI_Button_Link_Community_1);
+
+ private void Open_Community_2(object sender, MouseButtonEventArgs e) => Process.Start(Properties.Resources.UI_Button_Link_Community_2);
+
+ private Image Base64ToImage(string image)
+ {
+ Image img = new Image();
+ byte[] binaryData = Convert.FromBase64String(image);
+ BitmapImage bi = new BitmapImage();
+
+ bi.BeginInit();
+ using (bi.StreamSource = new MemoryStream(binaryData))
+ {
+ bi.CacheOption = BitmapCacheOption.OnLoad;
+ bi.EndInit();
+
+ img.Source = bi;
+ }
+
+ return img;
+ }
+
+ private void Menu_patchnote_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ Menu_patchnote.Foreground = (SolidColorBrush)App.Current.Resources["KeyPointBrush"];
+ Menu_credit.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+ Menu_qna.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+
+ ((Pages.mainNotes)frame_right.Content).set_note(0);
+ }
+
+ private void Menu_qna_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ Menu_patchnote.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+ Menu_credit.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+ Menu_qna.Foreground = (SolidColorBrush)App.Current.Resources["KeyPointBrush"];
+
+ ((Pages.mainNotes)frame_right.Content).set_note(1);
+ }
+
+ private void Menu_credit_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ Menu_patchnote.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+ Menu_credit.Foreground = (SolidColorBrush)App.Current.Resources["KeyPointBrush"];
+ Menu_qna.Foreground = (SolidColorBrush)App.Current.Resources["TextBrush"];
+
+ ((Pages.mainNotes)frame_right.Content).set_note(2);
+ }
+ private void Border_MouseDown(object sender, MouseButtonEventArgs e)
+ {
+ DragMove();
+ }
+
+ private void Quit(object sender, RoutedEventArgs e)
+ {
+ Quit();
+ }
}
}