From 152c554904dd0fb97fff13aadfe1d5fed73c37dd Mon Sep 17 00:00:00 2001 From: Scighost Date: Wed, 22 Jan 2025 23:56:13 +0800 Subject: [PATCH] some improvement --- .../GameNotice/GameNoticeClient.cs | 6 +- src/Starward.Language/Lang.Designer.cs | 11 +- src/Starward.Language/Lang.resx | 1173 +++++++++-------- src/Starward.Language/Lang.zh-CN.resx | 95 +- .../Features/Gacha/GachaStatsCard.xaml | 12 +- .../Features/Gacha/ZZZGachaStatsCard.xaml | 12 +- .../GameSelector/GameSelector.xaml.cs | 8 + .../Features/Setting/SettingPage.xaml | 6 + src/Starward/Frameworks/AppSetting.cs | 4 +- 9 files changed, 674 insertions(+), 653 deletions(-) diff --git a/src/Starward.Core/GameNotice/GameNoticeClient.cs b/src/Starward.Core/GameNotice/GameNoticeClient.cs index da05ffc8a..ac631082a 100644 --- a/src/Starward.Core/GameNotice/GameNoticeClient.cs +++ b/src/Starward.Core/GameNotice/GameNoticeClient.cs @@ -44,11 +44,11 @@ public static string GetGameNoticeUrl(GameBiz biz, long uid, string? lang = null uid = uid == 0 ? 100000000 : uid; return biz.Value switch { - GameBiz.hk4e_cn or GameBiz.clgm_cn or GameBiz.hk4e_bilibili => $"https://webstatic.mihoyo.com/hk4e/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=hk4e_cn&channel_id=1&game=hk4e&game_biz=hk4e_cn&lang={lang}&level=60&platform=pc®ion=cn_gf01&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}", + GameBiz.hk4e_cn or GameBiz.clgm_cn or GameBiz.hk4e_bilibili => $"https://sdk.mihoyo.com/hk4e/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=hk4e_cn&channel_id=1&game=hk4e&game_biz=hk4e_cn&lang={lang}&level=60&platform=pc®ion=cn_gf01&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}", GameBiz.hk4e_global => $"https://sdk.hoyoverse.com/hk4e/announcement/index.html?announcement_version=1.37&auth_appid=announcement&bundle_id=hk4e_global&channel_id=1&game=hk4e&game_biz=hk4e_global&lang={lang}&level=60&platform=pc®ion=os_asia&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&uid={uid}", - GameBiz.hkrpg_cn or GameBiz.hkrpg_bilibili => $"https://webstatic.mihoyo.com/hkrpg/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=hkrpg_cn&channel_id=1&game=hkrpg&game_biz=hkrpg_cn&lang={lang}&level=70&platform=pc®ion=prod_gf_cn&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}", + GameBiz.hkrpg_cn or GameBiz.hkrpg_bilibili => $"https://sdk.mihoyo.com/hkrpg/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=hkrpg_cn&channel_id=1&game=hkrpg&game_biz=hkrpg_cn&lang={lang}&level=70&platform=pc®ion=prod_gf_cn&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}", GameBiz.hkrpg_global => $"https://sdk.hoyoverse.com/hkrpg/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=hkrpg_global&channel_id=1&game=hkrpg&game_biz=hkrpg_global&lang={lang}&level=1&platform=pc®ion=prod_official_asia&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}", - GameBiz.bh3_cn => $"https://webstatic.mihoyo.com/bh3/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=bh3_cn&channel_id=1&game=bh3&game_biz=bh3_cn&lang=zh-cn&level=88&platform=pc®ion=android01&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}", + GameBiz.bh3_cn => $"https://sdk.mihoyo.com/bh3/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=bh3_cn&channel_id=1&game=bh3&game_biz=bh3_cn&lang=zh-cn&level=88&platform=pc®ion=android01&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}", GameBiz.bh3_global or GameBiz.bh3_jp or GameBiz.bh3_kr or GameBiz.bh3_os or GameBiz.bh3_asia => $"https://sdk.hoyoverse.com/bh3/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=bh3_os&channel_id=1&game=bh3&game_biz=bh3_os&lang={lang}&level=88&platform=pc®ion=overseas01&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}", GameBiz.nap_cn or GameBiz.nap_bilibili => $"https://sdk.mihoyo.com/nap/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=nap_cn&channel_id=1&game=nap&game_biz=nap_cn&lang=zh-cn&level=60&platform=pc®ion=prod_gf_cn&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}&version=2.27", GameBiz.nap_global => $"https://sdk.hoyoverse.com/nap/announcement/index.html?auth_appid=announcement&authkey_ver=1&bundle_id=nap_global&channel_id=1&game=nap&game_biz=nap_global&lang={lang}&level=60&platform=pc®ion=prod_gf_jp&sdk_presentation_style=fullscreen&sdk_screen_transparent=true&sign_type=2&uid={uid}&version=2.27", diff --git a/src/Starward.Language/Lang.Designer.cs b/src/Starward.Language/Lang.Designer.cs index e09cbee61..d6a649a66 100644 --- a/src/Starward.Language/Lang.Designer.cs +++ b/src/Starward.Language/Lang.Designer.cs @@ -3866,7 +3866,7 @@ public static string SettingPage_JoinPreviewReleaseChannel { } /// - /// 查找类似 Keep RPC service running in the background 的本地化字符串。 + /// 查找类似 Keep RPC Service Running in the Background 的本地化字符串。 /// public static string SettingPage_KeepRPCServiceRunningInTheBackground { get { @@ -4018,6 +4018,15 @@ public static string SettingPage_RPCService_Desc { } } + /// + /// 查找类似 Detected that the application is in a removable storage device, it is not recommended to keep the RPC service running in the background. 的本地化字符串。 + /// + public static string SettingPage_RPCServiceWarningIfAppInRemovableStorage { + get { + return ResourceManager.GetString("SettingPage_RPCServiceWarningIfAppInRemovableStorage", resourceCulture); + } + } + /// /// 查找类似 Show Console 的本地化字符串。 /// diff --git a/src/Starward.Language/Lang.resx b/src/Starward.Language/Lang.resx index 3ab7ae441..4caa690b5 100644 --- a/src/Starward.Language/Lang.resx +++ b/src/Starward.Language/Lang.resx @@ -1,6 +1,6 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Package Size: - + Downloaded: - + Available Space: - + Required Space: - + Repair Mode: - + Voice Language: - + Chinese - + English - + Japanese - + Korean - + This feature is in the testing stage. If there is any game file damage, please use the official launcher to repair it. - + Available space may be not enough - + Pity - + Average - + Stats - + Nice to Meet You ~ - + Select Folder - + Select Language - + Select Game - + The app data will be saved at following folder by default: - + Would you like to choose this folder? - + This folder will be automatically deleted after the software update - + No write permission - + OK - + Choose Another - + Cancel - + It seems to be your first time using {Starward}. - + Go to Launcher - + Select Folder - + {Starward} supports some {miHoYo/HoYoverse} games, please select your target below, you can also change it at any time after entering the launcher. - + The last step ~ - + Close Software - + Downloading can be resumed after the next startup; closing the program during decompression will cause game file corruption. - + Close - + Cancel - + Software will be exited soon - + Repeat Start - + Confirm - + Parameter Error - + No Permission - + Please start as administrator - + Start - + Preparing - + Downloading - + Verifying - + Decompressing - + Something went wrong - + Retry - + Open Log - + Network Error - + Unknown Error - + Finished - + Pause - + Skip - + Verify Failed - + Failed to verify the following file: - + Redownload - + Ignore - + Stop - + Skipping verification may result in corrupted game files. - + Skip Verification - + Download Paused - + No Gacha Records - + Update Records - + Update (Saved URL) - + Update (All) - + Input URL - + Setting - + Other Settings - + Copy URL - + Authkey Timeout always occurs? - + Clear URL Cache Files - + Export as - + Import from JSON - + Show Novice Gacha Type - + Delete Records - + Language - + Cannot find saved URL of UID {0}. {0} = {uid} - + Game not installed - + Cannot find URL, please open the gacha records history page in game. - + Operation canceled - + Please open the gacha records page in game and try again. - + Warning - + Delete - + Deleted {0} gacha record(s) of UID {1}. {0} = {count} , {1} = {uid} - + All gacha records of UID {0} will be deleted, and you won't able to undo this operation. {0} = {uid} - + Wish Records - + Warp Records - + Getting UID - + This account has no gacha records in the last 6 months. - + Got {0} record(s), added {1} record(s). {0} = {getCount} , {1} = {addCount} - + Import {0} wish record(s) successfully. - + Import {0} warp record(s) successfully. - + Already the latest version - + Too many retries - + Cannot update automatically - + Custom - + Very Low - + Low - + Medium - + High - + Very High - + Off - + Start Arguments - + Resolution - + Full Screen - + Custom Resolution - + Voice Language - + Set this value before starting the game for the first time to avoid downloading some voice resources - + Graphics Setting - + Graphics Quality Preset - + Render Scale - + FPS - + V-Sync - + Anti-Aliasing - + Shadow Quality - + Reflection Quality - + Character Quality - + Environment Detail - + Bloom Effect - + Light Quality - + Apply - + Game not Installed - + Setting the FPS to 120 will make the in-game graphics settings unusable - + The settings applied while the game is running do not take effect - + Resolution must be greater than 0 - + For information on startup parameters see {Unity Standalone Player Command Line Arguments} - + On - + Install Game - + Update Game - + Play Time - + Refresh - + This Week - + This Month - + Last Time - + Pre-Install - + Current Login Account - + Switch Account - + Account Information - + Nickname - + Save - + Game Setting - + Installation Folder - + Locate - + Repair Game - + Custom Startup Executable - + Select - + Show Game Announcement - + Ignore Running Game Process - + Background Setting - + Use same background in all game region - + Please select an image with a pixel size matches the application window; oversized images will reduce performance. - + Start Game - + Game is Running - + Start - + Select Installation Folder - + Continue - + Reselect - + The following folder contains unfinished download tasks: - + Please select an empty folder for installing game, or locate the folder where executable file {0} is. - + If it is not the latest version, please modify the config.ini file in the game installation directory. - + Start to Verify - + Pre-install completed, would you like to verify the files? - + How to switch game region? - + Click the right mouse button on the game icon on the left. - + Launcher - + Screenshot - + Screenshot - + Open Folder - + Log - + Show Console - + App Settings - + Effective at next startup - + Open Log Folder - + Windows Size - + Normal Window Size Normal - + Small Window Size Small - + Test Network - + App Background - + Custom Background (Support Video) - + Dynamic Theme Color - + The app will download the required resources from CloudFlare, so make sure it can connect properly. - + Check for Update - + Current Version: - + Join Preview Release Channel - + File Manager - + Open Data Folder - + Reselect Data Folder - + Delete All Settings - + Clear Cached Files - + About - + Homepage - + Report Issue - + Release History - + This is a Logo - + Update - + Network Error - + The current location of the data folder is: - + Would like to reselect? (You need to migrate the data files manually before selecting) - + Yes - + After deleting, the software will be restarted automatically. - + New Version! - + Links: - + Build Time: - + Release Channel: - + Architecture: - + Download Installer - + Download Portable - + Remind me Later - + Ignore this Version - + Update Now - + You need to manually download the new version package - + Preview Channel - + Stable Channel - + Dev Channel - + Automatically calculate the theme color based on the background image, and use the system theme color by default. - + Release Page - + Use a third-party plugin to start instead. Game time cannot be recorded when enabled. - + Specify the language of gacha records, such as en-US. Replace en-US with the target language when translating - + Language - + Follow System - + To start, please select a folder to save your app data. - + Getting {0} with page {1} {0} = {gachaType} , {1} = {page} - + Hyperion Toolbox - + HoYoLAB Toolbox - + Log in - + Web Login - + Input Cookie - + Refresh Info - + Copy Cookie - + Delete Game Role - + Spiral Abyss - + Traveler's Diary - + Simulated Universe - + Forgotten Hall - + Trailblaze Monthly Calendar - + Click this button after logging in. - + Already added {0} game roles: {1} - + Summary - + Picked avatar battle count stats - + Combat Stats - + Most Defeats - + Strongest Single Strike - + Most Damage Taken - + Elemental Skills Unleashed - + Elemental Brusts Unleashed - + Get Details get primogems and mora details - + Real-Time Data - + Historical Data - + Acquired this month - + Acquired this day - + Primogems obtained - + Deepest Descent - + Battles Fought - + times battle count 12 times - + Accept - + Reject - + Warning Again - + Disclaimer - + The features of this page requires you to log in to your Hyperion/HoYoLAB account, and Starward will save your login credentials (Cookie) and impersonate you to send requests to miHoYo's server. This method is risky and we are not responsible if your account is abnormal or banned as a result. Do you accept the risk and continue to use it? - + Stellar Jade Sources - + Period - + Cycles used: - + Team Setup example: forgotten hall team setup 1 - + Account Error - + Network Error - + Verify Account - + Repair Mode - + It takes additional storage space when unzip. - + Ability Tree Buffs Activated - + Unlocked Curios - + Unlocked Blessings - + Number of Clears - + Highest Score - + Challenged On - + Characters Used - + Cached Characters - + Curios Obtained - + Blessings Obtained - + Daily Data - + Stellar Jade - + Pass & Special Pass - + Primogems - + Mora - + Floor {X} Spiral Abyss Floor {X} - + Chamber {X} Spiral Abyss Chamber {X} - + Screenshot folder does not exist - + The language of {0} gacha records has been changed to ({1}). The language of 123 gacha records has been changed to (en-us). - + Privacy Policy - + Tips - + Users in some areas may encounter network anomalies. You could solve this problem by switching CDNs. - + Select Server - + System Tray Icon - + Exit Launcher When Closing Window - + Exit - + System Tray - + Installer - + You could choose to exit or hide window and minimize to system tray. - + Hide - + Backup Screenshots - + Open Backup Folder - + Feature not Supported - + Last backup - + Backup Database - + Backed up {0} new screenshots. - + Game Notices - + Merging - + Required Nickname is required. - + Turn on if there's not enough free space for unzip. - + Confirm Delete - + Currently logged in account - + Attention - + Replace - + Save New Account with uid {0} already exists, replace it or save new? - + Account with uid {0} already exists, replace it or save new? - + Repair System Tray - + Fix the issue that cannot create system tray icon, this method will restart explorer. - + Account Records - + Delete this Month's Data - + Steps to get URL: - + - Open menu in game. - Click Feedback (Genshin) or Bug Report (Star Rail). - Copy the URL of web and paste into the box below. - + Note: Records language follows language setting in game and cannot be changed. - + Would you like to delete records of {0} in {1}? This operation cannot be canceled. Would you like to delete records of Stellar Jade in 2023-08? This operation cannot be canceled. - + Deleted {0} records of {1} in {2}. Deleted 123 records of Stellar Jade in 2023-08. - + Uninstall Game - + Clean Registry - + Delete Temporary Files - + Delete Game Assets - + Choose the steps of uninstallation. The uninstallation takes a long time, so please be patient. - + The official launcher needs to be uninstalled by yourself. - + Uninstallation Error - + Uninstallation Completed - + Please check the related logs. - + Donate - + URL Protocol (Experimental) - + Other software can use some of Starward's features through the URL protocol. - + Register URL Protocol - + Test URL Protocol - + Open in Browser - + Zoom out - + Zoom in - + Rotate - + Copy - + Open - + Startup Count - + Data Folder - + Open Log File - + Appearance - + File Management - + Completed - + Links - + Advanced - + This Day - + Close Window Option - + Minimize to system tray - + Exit completely - + Close window but keep system tray - + Experience means user experience - + You could change the option again in setting page. - + Your personal data is stored in the folder below. It is very important, please do not delete it casually. - + Theme Color - + By default, the theme color is determined through the background image. - + Use System Theme Color - + Always display navigation sidebar icons - + Features - + Hide game account switcher - + Disable red dot reminder for game notices - + Network Test - + Are you able to receive updates for Starward? - + Please select a folder to store your personal data, it is very important! - + Minimize to taskbar - + Do nothing - + After Starting Game - + Quick Cleared - + Pure Fiction - + Help us translate Starward - + Cache - + Log - + Image - + Browser - + Clear Cache - + The download task of {0} is already running. {0} is game name, like Genshin Impact. - + The folder does not exist. - + Please do not select the root directory of a drive. - + Saved account - + Account switching cannot take effect while game is running. - + Recommend enabling {0} and {1} in system settings for a better user experience. - + Transparency effects - + Animation effects - + Always failed to get gacha records? - + No Data - + Verify File Integrity - + Verify failed - + Current version is not the latest version ({0}). - + Click button to repair files. - + Repair Files - + Verify successfully! - + {0} files verify failed. - + Reinstall Game - + Switch Client - + Game Resource - + Select target game server - + This feature can quickly switch the client to the corresponding server, only needing to download some resources during the first switch. - + Start Switching - + The local game version is not the latest. - + The target server version is different from the local version. - + Ready to switch client - + File verification failed, please try again. - + File verification failed, please try to repair game resources. - + Latest Version - + Full Packages - + Diff Packages - + The folders YuanShen_Data and GenshinImpact_Data cannot exist at the same time. - + Show Chronicled Wish - + Update Device Fingerprint - + The device fingerprint is already updated. - + Image copied to clipboard - + Battle Chronicle - + Open the gacha records page in game, and then click the button on the right. - + via Cloud Game - + Click to Refresh - + Recently Updated Content - + Apocalyptic Shadow - + Auto Search - + Signal Search Records - + Defeated Boss - + Highest Difficulty Cleared - + Farthest Stage - + Times Challenged - + Select Installation Path - + Change - + Space Required to Unzip - + Space Available - + No write permission, please restart as administrator. - + Click to Restart - + Desktop Shortcut - + Installed? - + Locate Game - + Start Installation - + Default Game Installation Path - + The games will be installed in different subfolders, changing the default path will not move the installed game files. - + Speed Limit - + The number 0 means no speed limit. - + Download - + Paused - + Download task completed - + Download task failed - + No Write Permission - + Restart - + Please restart as administrator. - + Create Hard Link - + Creating hard link to install game clients in different servers, taking up very little additional storage space. - + Link target: - + The current server does not support pre-download. Please complete pre-download in the target server of the hard link. - + Please update the target server of the hard link to the latest version before updating the game files in this server. - + Link Path: - + The path you select must be on the same drive as the link path. - + Hard Link - + Retrieve All Data - + Imaginarium Theater - + Easy Mode - + Normal Mode - + Hard Mode - + Act {0} Imaginarium Theater Act {0} - + Past Performances - + Best Record - + Star Challenge Stellas - + Fantasia Flowers Used - + Triggered External Audience Support - + Supporting Cast Characters Assist Other Players - + Total Performance Duration - + Highest Damage Dealt - + Most Opponents Defeated - + Team that Completed the Performance Fastest - + Wondrous Boon - + Mystery Cache - + Visionary Mode - + Brilliant Blessing - + Removable storage device not connected. - + Polychrome Revenue Streams - + Inter-Knot Monthly Report - + Daily Activity Rewardeds - + Development Rewards - + Event Rewards - + Hollow Zero Rewards - + Shiyu Defense Rewards - + Mail Rewards - + Other Rewards - + Begin Time - + End Time - + Delete gacha records for a specific time period - + Warning: The selected time period includes gacha records from more than 6 months ago, which cannot be retrieved after deleting. - + This account has {0} gacha record(s). - + The selected time period includes {0} gacha records. - + Delete All - + Specific Time Period - + Resume Download - + Waiting - + Relocate - + Relocate Game - + Size - + Basic Information - + Startup Arguments - + Custom Background - + Game Packages - + Command Line Argument - + See more information about command line argument. - + Use Version Poster - + Actual Size of Installed Games - + Storage Space Saved by Hard Links - + Cannot decode file. - + An unknown error occurred. Please check the logs. - + Drag and drop image / video files. - + Calculating Calculating storage space usage. - + General General Setting - + For a better experience, please enable the following features in system settings. - + Last 7 Days - + Last Startup - + Auto-restart after update - + Display update content after restart - + WebView2 component initialization failed. - + RPC Service - + The RPC service is an independent process used to avoid restarting when downloading games, updating software, and other features that require administrator privileges. - - Keep RPC service running in the background - + + Keep RPC Service Running in the Background + + + Detected that the application is in a removable storage device, it is not recommended to keep the RPC service running in the background. + \ No newline at end of file diff --git a/src/Starward.Language/Lang.zh-CN.resx b/src/Starward.Language/Lang.zh-CN.resx index e79823135..71e3cb71f 100644 --- a/src/Starward.Language/Lang.zh-CN.resx +++ b/src/Starward.Language/Lang.zh-CN.resx @@ -372,29 +372,29 @@ 删除 - 已删除 UID {1} 的 {0} 条抽卡记录。 - {0} = {count} , {1} = {uid} - - - 即将删除 UID {0} 的所有抽卡记录,此操作不可撤销。 - {0} = {uid} - - - 祈愿记录 - - - 跃迁记录 - - - 正在获取 UID - - - 该账号最近 6 个月没有抽卡记录 - - - 共获取到 {0} 条记录,其中新增 {1} 条。 - {0} = {getCount} , {1} = {addCount} - + 已删除 UID {1} 的 {0} 条抽卡记录。 + {0} = {count} , {1} = {uid} + + + 即将删除 UID {0} 的所有抽卡记录,此操作不可撤销。 + {0} = {uid} + + + 祈愿记录 + + + 跃迁记录 + + + 正在获取 UID + + + 该账号最近 6 个月没有抽卡记录 + + + 共获取到 {0} 条记录,其中新增 {1} 条。 + {0} = {getCount} , {1} = {addCount} + 成功导入祈愿记录 {0} 条 @@ -1609,6 +1609,30 @@ 其他奖励 + + 起始时间 + + + 结束时间 + + + 删除特定时间段的抽卡记录 + + + 警告:所选时间段包含6个月之前的抽卡记录,删除后无法再次获取。 + + + 此账号有 {0} 条抽卡记录 + + + 所选时间段包含 {0} 条抽卡记录 + + + 全部删除 + + + 指定时间段 + 继续下载 @@ -1693,28 +1717,7 @@ 保持 RPC 服务后台运行 - - 起始时间 - - - 结束时间 - - - 删除特定时间段的抽卡记录 - - - 警告:所选时间段包含6个月之前的抽卡记录,删除后无法再次获取。 - - - 此账号有 {0} 条抽卡记录 - - - 所选时间段包含 {0} 条抽卡记录 + + 检测到应用处于可移动存储设备中,不建议保持 RPC 服务后台运行。 - - 全部删除 - - - 指定时间段 - \ No newline at end of file diff --git a/src/Starward/Features/Gacha/GachaStatsCard.xaml b/src/Starward/Features/Gacha/GachaStatsCard.xaml index 1ffa934d1..3c31e6e45 100644 --- a/src/Starward/Features/Gacha/GachaStatsCard.xaml +++ b/src/Starward/Features/Gacha/GachaStatsCard.xaml @@ -197,16 +197,14 @@ Visibility="{x:Bind IsPointerIn, Converter={StaticResource BoolToVisibilityReversedConverter}}" /> @@ -246,16 +244,14 @@ Visibility="{x:Bind IsPointerIn, Converter={StaticResource BoolToVisibilityReversedConverter}}" /> diff --git a/src/Starward/Features/Gacha/ZZZGachaStatsCard.xaml b/src/Starward/Features/Gacha/ZZZGachaStatsCard.xaml index 21dc198ee..7250eefc7 100644 --- a/src/Starward/Features/Gacha/ZZZGachaStatsCard.xaml +++ b/src/Starward/Features/Gacha/ZZZGachaStatsCard.xaml @@ -197,16 +197,14 @@ Visibility="{x:Bind IsPointerIn, Converter={StaticResource BoolToVisibilityReversedConverter}}" /> @@ -246,16 +244,14 @@ Visibility="{x:Bind IsPointerIn, Converter={StaticResource BoolToVisibilityReversedConverter}}" /> diff --git a/src/Starward/Features/GameSelector/GameSelector.xaml.cs b/src/Starward/Features/GameSelector/GameSelector.xaml.cs index cd592b380..104f36957 100644 --- a/src/Starward/Features/GameSelector/GameSelector.xaml.cs +++ b/src/Starward/Features/GameSelector/GameSelector.xaml.cs @@ -4,6 +4,7 @@ using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Controls.Primitives; +using Microsoft.UI.Xaml.Media; using Starward.Core; using Starward.Core.HoYoPlay; using Starward.Features.GameLauncher; @@ -679,6 +680,13 @@ private void Button_GameServer_Click(object sender, RoutedEventArgs e) } CurrentGameChanged?.Invoke(this, (server.GameId, false)); + // 关闭弹出的服务器选择菜单 + if (VisualTreeHelper.GetOpenPopupsForXamlRoot(this.XamlRoot).FirstOrDefault() is Popup popup) + { + popup.IsOpen = false; + } + HideFullBackground(); + _isGameBizDisplayPressed = false; AppSetting.CurrentGameBiz = server.GameBiz; } } diff --git a/src/Starward/Features/Setting/SettingPage.xaml b/src/Starward/Features/Setting/SettingPage.xaml index e53120408..d29b56806 100644 --- a/src/Starward/Features/Setting/SettingPage.xaml +++ b/src/Starward/Features/Setting/SettingPage.xaml @@ -544,6 +544,12 @@ Foreground="{ThemeResource TextFillColorSecondaryBrush}" Text="{x:Bind lang:Lang.SettingPage_RPCService_Desc}" TextWrapping="Wrap" /> + public static string? CachedGameInfo { - get => GetValue(); - set => SetValue(value); + get => DatabaseService.GetValue(nameof(CachedGameInfo), out _, default); + set => DatabaseService.SetValue(nameof(CachedGameInfo), value); }