WPF: Add links menu item

This commit is contained in:
Genteure 2021-07-15 19:57:41 +08:00
parent 9c33d64734
commit b09aca1bee
3 changed files with 64 additions and 2 deletions

View File

@ -71,8 +71,22 @@
<MenuItem Header="{l:Loc RoomListPage_Menu_AutoRecord_EnableAll}" Click="MenuItem_EnableAutoRecAll_Click"/> <MenuItem Header="{l:Loc RoomListPage_Menu_AutoRecord_EnableAll}" Click="MenuItem_EnableAutoRecAll_Click"/>
<MenuItem Header="{l:Loc RoomListPage_Menu_AutoRecord_DisableAll}" Click="MenuItem_DisableAutoRecAll_Click"/> <MenuItem Header="{l:Loc RoomListPage_Menu_AutoRecord_DisableAll}" Click="MenuItem_DisableAutoRecAll_Click"/>
</MenuItem> </MenuItem>
<MenuItem Header="赞助"> <MenuItem Header="{l:Loc RoomListPage_Menu_Links}">
<MenuItem Header="打开赞助页" Command="{x:Static m:Commands.OpenLink}" CommandParameter="https://rec.danmuji.org/link/sponsor/"/> <MenuItem Header="{l:Loc RoomListPage_Menu_Links_Website}" Command="{x:Static m:Commands.OpenLink}" CommandParameter="https://rec.danmuji.org/">
<MenuItem.Icon>
<ui:PathIcon Style="{StaticResource PathIconDataOpenInNew}"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{l:Loc RoomListPage_Menu_Links_FAQ}" Command="{x:Static m:Commands.OpenLink}" CommandParameter="https://rec.danmuji.org/link/faq/">
<MenuItem.Icon>
<ui:PathIcon Style="{StaticResource PathIconDataOpenInNew}"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{l:Loc RoomListPage_Menu_Links_Sponsor}" Command="{x:Static m:Commands.OpenLink}" CommandParameter="https://rec.danmuji.org/link/sponsor/">
<MenuItem.Icon>
<ui:PathIcon Style="{StaticResource PathIconDataOpenInNew}"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem> </MenuItem>
</Menu> </Menu>
<Separator/> <Separator/>

View File

@ -649,6 +649,42 @@ namespace BililiveRecorder.WPF.Properties {
} }
} }
/// <summary>
/// Looks up a localized string similar to 链接.
/// </summary>
public static string RoomListPage_Menu_Links {
get {
return ResourceManager.GetString("RoomListPage_Menu_Links", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 常见问题.
/// </summary>
public static string RoomListPage_Menu_Links_FAQ {
get {
return ResourceManager.GetString("RoomListPage_Menu_Links_FAQ", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 赞助.
/// </summary>
public static string RoomListPage_Menu_Links_Sponsor {
get {
return ResourceManager.GetString("RoomListPage_Menu_Links_Sponsor", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 网站.
/// </summary>
public static string RoomListPage_Menu_Links_Website {
get {
return ResourceManager.GetString("RoomListPage_Menu_Links_Website", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to 不排序. /// Looks up a localized string similar to 不排序.
/// </summary> /// </summary>

View File

@ -308,6 +308,18 @@
<data name="RoomListPage_Menu_File_SaveConfig" xml:space="preserve"> <data name="RoomListPage_Menu_File_SaveConfig" xml:space="preserve">
<value>保存设置</value> <value>保存设置</value>
</data> </data>
<data name="RoomListPage_Menu_Links" xml:space="preserve">
<value>链接</value>
</data>
<data name="RoomListPage_Menu_Links_FAQ" xml:space="preserve">
<value>常见问题</value>
</data>
<data name="RoomListPage_Menu_Links_Sponsor" xml:space="preserve">
<value>赞助</value>
</data>
<data name="RoomListPage_Menu_Links_Website" xml:space="preserve">
<value>网站</value>
</data>
<data name="RoomListPage_Menu_Sort_Default" xml:space="preserve"> <data name="RoomListPage_Menu_Sort_Default" xml:space="preserve">
<value>不排序</value> <value>不排序</value>
</data> </data>