Feature/multiple launch commands 1858 - #1890
Open
Cooper1896 wants to merge 2 commits into
Open
Conversation
added 2 commits
July 16, 2026 11:10
- 新增 GameLaunchScheme 数据模型 (Id/Name/ExecutablePath/Arguments/RunAsAdmin) 以及内置默认预设 (沿用现有 '自定义启动程序 + 命令行参数' 设置) - AppConfig 新增每游戏区服的 LaunchSchemes 与 SelectedLaunchSchemeId 存储 - GameLauncherService.StartGameAsync 增加可选 scheme 参数: 自定义预设优先使用其自身 ExecutablePath / Arguments, 否则回退到默认游戏启动流程(保持向后兼容) - StartGameButton 在设置齿轮左侧新增下拉按钮,展开 MenuFlyout 列出所有启动预设,选中项带勾号;仅当存在自定义预设时显示 - 点击预设菜单项:立即以该预设启动游戏并记住选择 - 设置对话框 '启动参数' 页新增 '启动方式' 区域, 可增/删/上下调整自定义预设,编辑名称、启动程序、命令行参数与管理员权限选项 - 新增 LaunchSchemesChangedMessage 用于跨界面同步预设变更 - 新增中/英文本地化字符串
设置对话框的 FlipView 高度固定为 480,添加多个启动预设 后原有 StackPanel 直接置于 FlipViewItem 会被裁剪且无法滚动。 将 '启动参数' 页 StackPanel 包在 ScrollViewer 中, 支持鼠标滚轮和滚动条。
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1858