perf: 公开 wpfgui 的自定义任务

This commit is contained in:
晓丶梦丶仁
2025-04-27 17:27:47 +08:00
parent 1219fede26
commit 536864caa2
7 changed files with 20 additions and 8 deletions

View File

@@ -505,6 +505,8 @@ The primary instance is 0, and other instances are the numbers after the version
<system:String x:Key="Mission">Collect Rewards</system:String>
<system:String x:Key="AutoRoguelike">Auto I.S.</system:String>
<system:String x:Key="Reclamation">Reclamation Algorithm</system:String>
<system:String x:Key="Custom">CustomTask</system:String>
<system:String x:Key="CustomWarning">Don't use this function unless you know what you are doing</system:String>
<system:String x:Key="ReclamationTheme">Reclamation Algorithm Theme</system:String>
<system:String x:Key="ReclamationThemeFire">Fire Within the Sand</system:String>
<system:String x:Key="ReclamationThemeTales">Tales Within the Sand</system:String>

View File

@@ -505,6 +505,8 @@ C:\\leidian\\LDPlayer9
<system:String x:Key="Mission">報酬受取</system:String>
<system:String x:Key="AutoRoguelike">自動ローグ</system:String>
<system:String x:Key="Reclamation">生息演算</system:String>
<system:String x:Key="Custom">カスタムタスク</system:String>
<system:String x:Key="CustomWarning">この機能は、何をしているのか分からない限り使用しないでください</system:String>
<system:String x:Key="ReclamationTheme">主題</system:String>
<system:String x:Key="ReclamationThemeFire">砂中の火</system:String>
<system:String x:Key="ReclamationThemeTales">熱砂秘聞</system:String>

View File

@@ -506,6 +506,8 @@ C:\\leidian\\LDPlayer9
<system:String x:Key="Mission">보상 수령</system:String>
<system:String x:Key="AutoRoguelike">통합전략</system:String>
<system:String x:Key="Reclamation">생존연산</system:String>
<system:String x:Key="Custom">사용자 지정 작업</system:String>
<system:String x:Key="CustomWarning">무엇을 하고 있는지 모른다면 이 기능을 사용하지 마세요</system:String>
<system:String x:Key="ReclamationTheme">생존연산 테마</system:String>
<system:String x:Key="ReclamationThemeFire">모래 속의 불</system:String>
<system:String x:Key="ReclamationThemeTales">사막 이야기</system:String>

View File

@@ -505,7 +505,8 @@ C:\\leidian\\LDPlayer9。\n
<system:String x:Key="Mission">领取奖励</system:String>
<system:String x:Key="AutoRoguelike">自动肉鸽</system:String>
<system:String x:Key="Reclamation">生息演算</system:String>
<system:String x:Key="Custom">Debug</system:String>
<system:String x:Key="Custom">自定义任务</system:String>
<system:String x:Key="CustomWarning">请勿启用这个任务,除非你知道你正在做什么</system:String>
<system:String x:Key="ReclamationTheme">生息演算主题</system:String>
<system:String x:Key="ReclamationThemeFire">沙中之火</system:String>
<system:String x:Key="ReclamationThemeTales">沙洲遗闻</system:String>

View File

@@ -505,6 +505,8 @@ C:\\leidian\\LDPlayer9。\n
<system:String x:Key="Mission">領取獎勵</system:String>
<system:String x:Key="AutoRoguelike">自動肉鴿</system:String>
<system:String x:Key="Reclamation">生息演算</system:String>
<system:String x:Key="Custom">自定義任務</system:String>
<system:String x:Key="CustomWarning">請勿啟用此功能,除非您知道自己在做什麼</system:String>
<system:String x:Key="ReclamationTheme">生息演算主題</system:String>
<system:String x:Key="ReclamationThemeFire">沙中之火</system:String>
<system:String x:Key="ReclamationThemeTales">沙洲遺聞</system:String>

View File

@@ -679,14 +679,10 @@ namespace MaaWpfGui.ViewModels.UI
"Mall",
"Mission",
"AutoRoguelike",
"Reclamation"
"Reclamation",
"Custom"
];
if (Instances.VersionUpdateViewModel.IsDebugVersion() || File.Exists("DEBUG") || File.Exists("DEBUG.txt"))
{
taskList.Add("Custom");
}
var tempOrderList = new List<DragItemViewModel>(new DragItemViewModel[taskList.Count]);
var nonOrderList = new List<DragItemViewModel>();
for (int i = 0; i != taskList.Count; ++i)

View File

@@ -24,11 +24,18 @@
Margin="0,10"
Text="{Binding FormattedTaskNames}"
TextWrapping="Wrap" />
<TextBlock
xml:space="preserve"
FontSize="14"
Foreground="{DynamicResource PrimaryTextBrush}"
Text="{DynamicResource CustomWarning}"
TextAlignment="Left"
TextWrapping="Wrap" />
<TextBlock
xml:space="preserve"
FontSize="12"
Foreground="{DynamicResource TraceLogBrush}"
Text="Input Rules:&#10;• Comma &quot;,&quot; separated list: Executes first matching task.&#10;• Semicolon &quot;;&quot; separated groups: Executes each group sequentially.&#10;&#10;Examples:&#10;• 'TaskA, TaskB' → Runs TaskA (or TaskB if TaskA doesn't match)&#10;• 'TaskA; TaskB' → Runs both TaskA and TaskB&#10;• 'TaskA, TaskB; TaskC' → First runs TaskA/TaskB, then TaskC"
Text="&#10;Input Rules:&#10;• Comma &quot;,&quot; separated list: Executes first matching task.&#10;• Semicolon &quot;;&quot; separated groups: Executes each group sequentially.&#10;&#10;Examples:&#10;• 'TaskA, TaskB' → Runs TaskA (or TaskB if TaskA doesn't match)&#10;• 'TaskA; TaskB' → Runs both TaskA and TaskB&#10;• 'TaskA, TaskB; TaskC' → First runs TaskA/TaskB, then TaskC"
TextAlignment="Left"
TextWrapping="Wrap" />
</StackPanel>