RyLiveTools/Source/RuleItem/Rule_Variable.xaml
如果当时 0ec1400de9 ### 2024-04-12更新
------
####  V1.0.2404.1201
- 新增支持手动运行规则。
- 规则播放时间间隔不再针对全局声效,而只针对当前规则声效。
- 修复规则中播放文件夹可能导致无法执行的BUG。
- 修复规则不勾选礼物和点赞,则无法执行的BUG。
2024-04-13 10:13:30 +08:00

26 lines
1.8 KiB
XML

<UserControl
x:Class="LiveTools.Rule_Variable"
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:LiveTools.Content"
Margin="0,0,0,0"
Background="White"
xmlns:hc="https://handyorg.github.io/handycontrol" Loaded="UserControl_Loaded">
<Grid Height="120">
<Border Style="{StaticResource BorderTipPrimary}" Height="35" VerticalAlignment="Top">
<TextBlock Text="设置变量" Foreground="Black" FontWeight="Bold"/>
</Border>
<Button x:Name="BtnClose" HorizontalAlignment="Right" VerticalAlignment="Top" Height="32" Click="BtnClose_Click" Style="{StaticResource ButtonIcon}" Foreground="{DynamicResource DangerBrush}" hc:IconElement.Geometry="{StaticResource ErrorGeometry}"/>
<hc:ComboBox Name="CbbVariable" IsEditable="True" Margin="63,0,0,0" Height="28" VerticalAlignment="Center" HorizontalAlignment="Left" Width="156"/>
<hc:NumericUpDown x:Name="NumValue" HorizontalAlignment="Left" Margin="306,0,0,0" Value="1" Minimum="0" Maximum="1000000" VerticalAlignment="Center" Width="72"/>
<TextBlock Text="变量名称" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" RenderTransformOrigin="0.585,2.063"/>
<hc:ComboBox x:Name="CbbOpMode" SelectedIndex="0" Margin="224,0,0,0" Height="28" VerticalAlignment="Center" HorizontalAlignment="Left" Width="77">
<ComboBoxItem Content="增加"/>
<ComboBoxItem Content="减少"/>
<ComboBoxItem Content="设为"/>
</hc:ComboBox>
</Grid>
</UserControl>