mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-21 21:50:12 +08:00
344 lines
15 KiB
XML
344 lines
15 KiB
XML
<Page x:Class="BetterGenshinImpact.View.Pages.TaskSettingsPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:BetterGenshinImpact.View.Pages"
|
|
xmlns:pages="clr-namespace:BetterGenshinImpact.ViewModel.Pages"
|
|
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
|
mc:Ignorable="d"
|
|
d:DataContext="{d:DesignInstance Type=pages:TaskSettingsPageViewModel}"
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
d:DesignHeight="850" d:DesignWidth="750"
|
|
Title="TaskSettingsPage">
|
|
|
|
<!--<Grid Margin="42,16,42,12">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Margin="0,0,0,10"
|
|
FontTypography="BodyStrong"
|
|
Text="独立自动化任务设置与启动" />
|
|
<Grid Grid.Row="1">
|
|
<ui:Button
|
|
Margin="0,0,8,0"
|
|
Width="120"
|
|
Height="32"
|
|
Content="启动当前任务"
|
|
Appearance="Primary"
|
|
Command="{Binding AddTaskCommand}" />
|
|
</Grid>
|
|
<TabControl Margin="0,8,0,0" Grid.Row="2">
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<StackPanel Orientation="Horizontal">
|
|
<ui:SymbolIcon Margin="0,0,6,0" Symbol="PlayingCards20" />
|
|
<TextBlock Text="自动七圣召唤" />
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
<Grid>
|
|
<TextBlock Margin="12" Text="World" />
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem IsSelected="True">
|
|
<TabItem.Header>
|
|
<StackPanel Orientation="Horizontal">
|
|
<ui:SymbolIcon Margin="0,0,6,0" Symbol="StoreMicrosoft16" />
|
|
<TextBlock Text="自动伐木" />
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
<Grid>
|
|
<TextBlock Margin="12" Text="Is a lie." />
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem IsSelected="True">
|
|
<TabItem.Header>
|
|
<StackPanel Orientation="Horizontal">
|
|
<ui:SymbolIcon Margin="0,0,6,0" Symbol="StoreMicrosoft16" />
|
|
<TextBlock Text="自动前进" />
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
<Grid>
|
|
<TextBlock Margin="12" Text="Is a lie." />
|
|
</Grid>
|
|
</TabItem>
|
|
</TabControl>
|
|
</Grid>-->
|
|
|
|
|
|
<StackPanel Margin="42,16,42,12">
|
|
<ui:TextBlock
|
|
Margin="0,0,0,8"
|
|
FontTypography="BodyStrong"
|
|
Text="独立任务设置" />
|
|
<ui:CardExpander Margin="0,0,0,12" ContentPadding="0" Icon="{ui:SymbolIcon PlayingCards20}">
|
|
<ui:CardExpander.Header>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontTypography="Body"
|
|
TextWrapping="Wrap"
|
|
Text="自动七圣召唤" />
|
|
<ui:TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
|
TextWrapping="Wrap">
|
|
全自动打牌 -
|
|
<Hyperlink
|
|
Command="{Binding GoToAutoGeniusInvokationUrlCommand}"
|
|
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
|
|
点击查看使用教程
|
|
</Hyperlink>
|
|
</ui:TextBlock>
|
|
<ui:Button
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Margin="0,0,24,0"
|
|
Content="{Binding SwitchAutoGeniusInvokationButtonText}"
|
|
Command="{Binding SwitchAutoGeniusInvokationCommand}" />
|
|
</Grid>
|
|
</ui:CardExpander.Header>
|
|
<StackPanel>
|
|
<Grid Margin="16">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontTypography="Body"
|
|
TextWrapping="Wrap"
|
|
Text="选择卡组" />
|
|
<ui:TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
|
TextWrapping="Wrap"
|
|
Text="选择你想要使用的卡组与策略" />
|
|
<ComboBox
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Margin="0,0,36,0"
|
|
ItemsSource="{Binding StrategyList}"
|
|
SelectedItem="{Binding Config.AutoGeniusInvokationConfig.StrategyName, Mode=TwoWay}"
|
|
Width="180"/>
|
|
</Grid>
|
|
<Grid Margin="16">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontTypography="Body"
|
|
TextWrapping="Wrap"
|
|
Text="设置延时(毫秒)" />
|
|
<ui:TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
|
TextWrapping="Wrap"
|
|
Text="如果频繁出现操作速度过快,操作动画未播放完毕的情况可以添加延时" />
|
|
<ui:NumberBox
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Margin="0,0,24,0"
|
|
Maximum="5000"
|
|
Minimum="0"
|
|
Value="{Binding Config.AutoGeniusInvokationConfig.SleepDelay, Mode=TwoWay}"
|
|
ValidationMode="InvalidInputOverwritten" />
|
|
</Grid>
|
|
</StackPanel>
|
|
</ui:CardExpander>
|
|
|
|
<ui:CardExpander Margin="0,0,0,12" ContentPadding="0" Icon="{ui:SymbolIcon LeafThree24}">
|
|
<ui:CardExpander.Header>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontTypography="Body"
|
|
TextWrapping="Wrap"
|
|
Text="自动伐木" />
|
|
<ui:TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
|
TextWrapping="Wrap">
|
|
需要装备「王树瑞佑」 -
|
|
<Hyperlink
|
|
Command="{Binding GoToAutoWoodUrlCommand}"
|
|
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
|
|
点击查看使用教程
|
|
</Hyperlink>
|
|
</ui:TextBlock>
|
|
<ui:Button
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Margin="0,0,24,0"
|
|
Content="{Binding SwitchAutoWoodButtonText}"
|
|
Command="{Binding SwitchAutoWoodCommand}" />
|
|
</Grid>
|
|
</ui:CardExpander.Header>
|
|
<StackPanel>
|
|
<Grid Margin="16">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontTypography="Body"
|
|
TextWrapping="Wrap"
|
|
Text="循环次数" />
|
|
<ui:TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
|
TextWrapping="Wrap"
|
|
Text="循环伐木多少次,输入 0 则为无限循环直到手动终止" />
|
|
<ui:TextBox x:Name="IntervalNumberBox"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
MinWidth="90"
|
|
Margin="0,0,24,0"
|
|
Text="{Binding AutoWoodRoundNum, Mode=TwoWay}" />
|
|
</Grid>
|
|
</StackPanel>
|
|
</ui:CardExpander>
|
|
|
|
<!--<ui:CardExpander Margin="0,0,0,12" ContentPadding="0" Icon="{ui:SymbolIcon Accessibility24}">
|
|
<ui:CardExpander.Header>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontTypography="Body"
|
|
TextWrapping="Wrap"
|
|
Text="自动前进" />
|
|
<ui:TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
|
TextWrapping="Wrap"
|
|
Text="自动朝着前方前进,自动飞行、游泳、爬山" />
|
|
<ui:Button
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Margin="0,0,24,0"
|
|
Content="绑定快捷键"
|
|
Command="{Binding GoToHotKeyPageCommand}" />
|
|
</Grid>
|
|
</ui:CardExpander.Header>
|
|
<StackPanel>
|
|
<Grid Margin="16">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontTypography="Body"
|
|
TextWrapping="Wrap"
|
|
Text="夜兰自动 E" />
|
|
<ui:TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
|
TextWrapping="Wrap"
|
|
Text="【开发中..】" />
|
|
<ui:ToggleSwitch
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Margin="0,0,36,0"
|
|
IsChecked="{Binding Config.AutoFishingConfig.AutoThrowRodEnabled, Mode=TwoWay}" />
|
|
</Grid>
|
|
</StackPanel>
|
|
</ui:CardExpander>-->
|
|
<!--<ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon PlayingCards20}">
|
|
<ui:CardControl.Header>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<ui:TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontTypography="Body"
|
|
TextWrapping="Wrap"
|
|
Text="自动战斗" />
|
|
<ui:TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
|
TextWrapping="Wrap"
|
|
Text="按下快捷键自动开始战斗" />
|
|
</Grid>
|
|
</ui:CardControl.Header>
|
|
<ui:Button
|
|
Margin="0,0,36,0"
|
|
Content="绑定快捷键"
|
|
Command="{Binding GoToHotKeyPageCommand}" />
|
|
</ui:CardControl>-->
|
|
</StackPanel>
|
|
</Page> |