Skip to content

Commit

Permalink
hide game notices page from navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Dec 3, 2023
1 parent db30aa4 commit 2bd677a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
28 changes: 14 additions & 14 deletions src/Starward/Pages/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
<FontIcon Glyph="&#xE80F;" />
</NavigationViewItem.Icon>
</NavigationViewItem>
<NavigationViewItem Name="NavigationViewItem_GameAnnounce"
<!--<NavigationViewItem Name="NavigationViewItem_GameAnnounce"
Content="{x:Bind lang:Lang.MainPage_GameNotices}"
Tag="GameNoticesPage">
<NavigationViewItem.Icon>
<FontIcon Glyph="&#xE789;" />
</NavigationViewItem.Icon>
</NavigationViewItem>
</NavigationViewItem>-->
<NavigationViewItem Name="NavigationViewItem_GameSetting"
Content="{x:Bind lang:Lang.LauncherPage_GameSetting}"
Tag="GameSettingPage">
Expand Down Expand Up @@ -355,7 +355,7 @@
</StackPanel>
</Button>
<!-- 2 -->
<Button x:Name="Button_Navigation_2"
<!--<Button x:Name="Button_Navigation_2"
Height="40"
Click="Button_Navigation_Click"
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}"
Expand All @@ -369,37 +369,37 @@
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Text="2" />
</StackPanel>
</Button>
</Button>-->
<!-- 3 -->
<Button x:Name="Button_Navigation_3"
Height="40"
Click="Button_Navigation_Click"
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}"
Tag="3">
Tag="2">
<StackPanel Orientation="Horizontal" Spacing="16">
<FontIcon FontSize="16"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Glyph="&#xE7FC;" />
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Text="3" />
Text="2" />
</StackPanel>
</Button>
<!-- 4 -->
<Button x:Name="Button_Navigation_4"
Height="40"
Click="Button_Navigation_Click"
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}"
Tag="4">
Tag="3">
<StackPanel Orientation="Horizontal" Spacing="16">
<FontIcon FontSize="16"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Glyph="&#xE91B;" />
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Text="4" />
Text="3" />
</StackPanel>
</Button>
<!-- 5 -->
Expand All @@ -408,7 +408,7 @@
x:Load="{x:Bind NavigationViewItem_GachaLog.Visibility, Converter={StaticResource VisibilityToBoolConverter}}"
Click="Button_Navigation_Click"
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}"
Tag="5">
Tag="4">
<StackPanel Orientation="Horizontal" Spacing="16">
<FontIcon x:Name="FontIcon_5"
FontSize="16"
Expand All @@ -418,7 +418,7 @@
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Text="5" />
Text="4" />
</StackPanel>
</Button>
<!-- 6 -->
Expand All @@ -427,7 +427,7 @@
x:Load="{x:Bind NavigationViewItem_HoyolabToolbox.Visibility, Converter={StaticResource VisibilityToBoolConverter}}"
Click="Button_Navigation_Click"
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}"
Tag="6">
Tag="5">
<StackPanel Orientation="Horizontal" Spacing="16">
<FontIcon x:Name="FontIcon_6"
FontSize="16"
Expand All @@ -437,7 +437,7 @@
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Text="6" />
Text="5" />
</StackPanel>
</Button>
<!-- 7 -->
Expand All @@ -446,7 +446,7 @@
x:Load="{x:Bind NavigationViewItem_SelfQuery.Visibility, Converter={StaticResource VisibilityToBoolConverter}}"
Click="Button_Navigation_Click"
Style="{ThemeResource DateTimePickerFlyoutButtonStyle}"
Tag="7">
Tag="6">
<StackPanel Orientation="Horizontal" Spacing="16">
<FontIcon x:Name="FontIcon_7"
FontSize="16"
Expand All @@ -456,7 +456,7 @@
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Text="7" />
Text="6" />
</StackPanel>
</Button>
</StackPanel>
Expand Down
18 changes: 9 additions & 9 deletions src/Starward/Pages/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -968,32 +968,32 @@ private void ShortcutNavigate(int num)
NavigationViewItem_Launcher.IsSelected = true;
NavigateTo(typeof(LauncherPage));
}
//if (num == 2)
//{
// NavigationViewItem_GameAnnounce.IsSelected = true;
// NavigateTo(typeof(GameNoticesPage));
//}
if (num == 2)
{
NavigationViewItem_GameAnnounce.IsSelected = true;
NavigateTo(typeof(GameNoticesPage));
}
if (num == 3)
{
NavigationViewItem_GameSetting.IsSelected = true;
NavigateTo(typeof(GameSettingPage));
}
if (num == 4)
if (num == 3)
{
NavigationViewItem_Screenshot.IsSelected = true;
NavigateTo(typeof(ScreenshotPage));
}
if (num == 5 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd)
if (num == 4 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd)
{
NavigationViewItem_GachaLog.IsSelected = true;
NavigateTo(typeof(GachaLogPage));
}
if (num == 6 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd)
if (num == 5 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd)
{
NavigationViewItem_HoyolabToolbox.IsSelected = true;
NavigateTo(typeof(HoyolabToolboxPage));
}
if (num == 7 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd)
if (num == 6 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd)
{
NavigationViewItem_SelfQuery.IsSelected = true;
NavigateTo(typeof(SelfQueryPage));
Expand Down

0 comments on commit 2bd677a

Please sign in to comment.