-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Baka632/231229-AddStoryGlance
添加剧情概览界面
- Loading branch information
Showing
33 changed files
with
1,490 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[*.cs] | ||
|
||
# IDE0290: 使用主构造函数 | ||
dotnet_diagnostic.IDE0290.severity = silent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace ArknightsStoryText.UWP; | ||
|
||
internal static class CommonValues | ||
{ | ||
public const string NotifyUpdateStoriesMessageToken = "Notify_UpdateStories_MessageToken"; | ||
public const string NotifyUpdateStoryFileInfosMessageToken = "Notify_UpdateStoryFileInfos_MessageToken"; | ||
public const string NotifyPivotNavigationMessageToken = "Notify_PivotNavigation_MessageToken"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Windows.UI.Xaml.Data; | ||
|
||
namespace ArknightsStoryText.UWP.Helpers.Converter; | ||
|
||
public sealed class ActTypeToStringConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, string language) | ||
{ | ||
if (value is ActType actType) | ||
{ | ||
return actType switch | ||
{ | ||
ActType.MainStory => "MainStory".GetLocalized(), | ||
ActType.Activity => "ActivityStory".GetLocalized(), | ||
ActType.MiniStory => "MiniStory".GetLocalized(), | ||
ActType.Others => "OtherStory".GetLocalized(), | ||
_ => throw new NotImplementedException(), | ||
}; | ||
} | ||
else | ||
{ | ||
return DependencyProperty.UnsetValue; | ||
} | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, string language) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Windows.System.Profile; | ||
|
||
namespace ArknightsStoryText.UWP.Helpers; | ||
|
||
/// <summary> | ||
/// 为确定当前设备环境提供帮助方法的类 | ||
/// </summary> | ||
public static class EnvironmentHelper | ||
{ | ||
/// <summary> | ||
/// 确定设备是否为 Windows 10 Mobile | ||
/// </summary> | ||
/// <returns>若是 Windows 10 Mobile,则返回 <see langword="true"/>,否则返回 <see langword="false"/></returns> | ||
public static bool IsWindowsMobile => AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Mobile"; | ||
|
||
/// <summary> | ||
/// 确定设备的 Windows 版本是否为 Windows 11 | ||
/// </summary> | ||
/// <returns>若是 Windows 11,则返回 <see langword="true"/>,否则返回 <see langword="false"/></returns> | ||
public static bool IsWindows11 => Environment.OSVersion.Version.Build >= 22000; | ||
|
||
/// <summary> | ||
/// 确定设备的 Windows 内部版本号是否大于等于指定的版本号 | ||
/// </summary> | ||
/// <param name="buildVersion">内部版本号</param> | ||
/// <returns>若大于等于指定的版本号,则返回 <see langword="true"/>,否则返回 <see langword="false"/></returns> | ||
public static bool IsSystemBuildVersionEqualOrGreaterThan(int buildVersion) | ||
{ | ||
return Environment.OSVersion.Version.Build >= buildVersion; | ||
} | ||
} |
Oops, something went wrong.