mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
feat: 自动战斗-战斗列表增加单任务作业查看 (#10764)
This commit is contained in:
@@ -897,6 +897,15 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
ConfigurationHelper.SetValue(ConfigurationKeys.CopilotTaskList, JsonConvert.SerializeObject(jArray));
|
||||
}
|
||||
|
||||
// UI 绑定的方法
|
||||
// ReSharper disable once UnusedMember.Global
|
||||
public void SelectCopilotTask(int index)
|
||||
{
|
||||
Filename = CopilotItemViewModels[index].FilePath;
|
||||
ClearLog();
|
||||
UpdateFilename();
|
||||
}
|
||||
|
||||
// UI 绑定的方法
|
||||
// ReSharper disable once UnusedMember.Global
|
||||
public void DeleteCopilotTask(int index)
|
||||
|
||||
@@ -211,6 +211,7 @@
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<CheckBox
|
||||
Grid.Column="0"
|
||||
@@ -227,13 +228,29 @@
|
||||
Visibility="{c:Binding IsRaid}" />
|
||||
<Button
|
||||
Grid.Column="2"
|
||||
MinWidth="30"
|
||||
Margin="0"
|
||||
Padding="5,6,5,6"
|
||||
hc:IconElement.Geometry="{StaticResource ConfigGeometry}"
|
||||
hc:VisualElement.HighlightBackground="Transparent"
|
||||
hc:VisualElement.HighlightForeground="{DynamicResource PrimaryBrush}"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Command="{s:Action SelectCopilotTask}"
|
||||
CommandParameter="{c:Binding Index}"
|
||||
Foreground="{DynamicResource SecondaryTextBrush}"
|
||||
IsEnabled="{Binding ElementName=CopilotList, Path=DataContext.Idle}" />
|
||||
<Button
|
||||
Grid.Column="3"
|
||||
Margin="0"
|
||||
Padding="5,0,10,0"
|
||||
hc:IconElement.Geometry="{StaticResource CloseGeometry}"
|
||||
hc:VisualElement.HighlightBackground="Transparent"
|
||||
hc:VisualElement.HighlightForeground="{DynamicResource PrimaryBrush}"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Command="{s:Action DeleteCopilotTask}"
|
||||
CommandParameter="{c:Binding Index}"
|
||||
IsEnabled="{Binding ElementName=CopilotList, Path=DataContext.Idle}"
|
||||
Style="{StaticResource ButtonDashed}" />
|
||||
IsEnabled="{Binding ElementName=CopilotList, Path=DataContext.Idle}" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
|
||||
Reference in New Issue
Block a user