| 1 | <Page |
| 2 | x:Class="RblxTool.Views.SniperPage" |
| 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | xmlns:models="using:RblxTool.Models"> |
| 6 | |
| 7 | <Grid Padding="{StaticResource PagePadding}" RowSpacing="16"> |
| 8 | <Grid.RowDefinitions> |
| 9 | <RowDefinition Height="Auto" /> |
| 10 | <RowDefinition Height="Auto" /> |
| 11 | <RowDefinition Height="*" /> |
| 12 | </Grid.RowDefinitions> |
| 13 | |
| 14 | <TextBlock Style="{StaticResource SectionTitle}" Text="Limited Sniper" /> |
| 15 | |
| 16 | <Border Grid.Row="1" Style="{StaticResource CardBorder}"> |
| 17 | <StackPanel Spacing="12"> |
| 18 | <TextBlock |
| 19 | FontSize="12" |
| 20 | Opacity="0.7" |
| 21 | TextWrapping="Wrap" |
| 22 | Text="One target per line: assetId, or assetId:maxPrice. Targets are resolved to their collectible id on start so resale listings are polled through the marketplace sales API." /> |
| 23 | <TextBox |
| 24 | x:Name="TargetsBox" |
| 25 | Height="110" |
| 26 | AcceptsReturn="True" |
| 27 | FontFamily="Consolas" |
| 28 | PlaceholderText="1365767
20573078:750" |
| 29 | TextWrapping="Wrap" /> |
| 30 | <Grid ColumnSpacing="20"> |
| 31 | <Grid.ColumnDefinitions> |
| 32 | <ColumnDefinition Width="*" /> |
| 33 | <ColumnDefinition Width="*" /> |
| 34 | <ColumnDefinition Width="*" /> |
| 35 | <ColumnDefinition Width="*" /> |
| 36 | <ColumnDefinition Width="Auto" /> |
| 37 | </Grid.ColumnDefinitions> |
| 38 | <StackPanel> |
| 39 | <TextBlock Style="{StaticResource FieldLabel}" Text="Default max price" /> |
| 40 | <NumberBox x:Name="MaxPriceBox" Minimum="0" Value="1000" SpinButtonPlacementMode="Compact" /> |
| 41 | </StackPanel> |
| 42 | <StackPanel Grid.Column="1"> |
| 43 | <TextBlock Style="{StaticResource FieldLabel}" Text="Buy under RAP fraction" /> |
| 44 | <NumberBox x:Name="UnderRapBox" Minimum="0" Maximum="1" SmallChange="0.05" Value="0" SpinButtonPlacementMode="Compact" /> |
| 45 | </StackPanel> |
| 46 | <StackPanel Grid.Column="2"> |
| 47 | <TextBlock Style="{StaticResource FieldLabel}" Text="Poll interval (ms)" /> |
| 48 | <NumberBox x:Name="IntervalBox" Minimum="120" Value="750" SpinButtonPlacementMode="Compact" /> |
| 49 | </StackPanel> |
| 50 | <StackPanel Grid.Column="3"> |
| 51 | <TextBlock Style="{StaticResource FieldLabel}" Text="Workers" /> |
| 52 | <NumberBox x:Name="ThreadsBox" Minimum="1" Maximum="32" Value="6" SpinButtonPlacementMode="Compact" /> |
| 53 | </StackPanel> |
| 54 | <StackPanel Grid.Column="4" Orientation="Horizontal" Spacing="8" VerticalAlignment="Bottom"> |
| 55 | <Button x:Name="StartButton" Click="OnStart" Content="Arm sniper" Style="{StaticResource AccentButtonStyle}" /> |
| 56 | <Button x:Name="StopButton" Click="OnStop" Content="Disarm" IsEnabled="False" /> |
| 57 | </StackPanel> |
| 58 | </Grid> |
| 59 | <StackPanel Orientation="Horizontal" Spacing="20"> |
| 60 | <ToggleSwitch x:Name="BuyToggle" Header="Purchase" IsOn="True" /> |
| 61 | <ToggleSwitch x:Name="DryRunToggle" Header="Dry run" /> |
| 62 | <ToggleSwitch x:Name="ReleasesToggle" Header="Watch new releases" /> |
| 63 | <StackPanel> |
| 64 | <TextBlock Style="{StaticResource FieldLabel}" Text="Release max price" /> |
| 65 | <NumberBox x:Name="ReleaseMaxPriceBox" Width="120" Minimum="0" Value="0" /> |
| 66 | </StackPanel> |
| 67 | </StackPanel> |
| 68 | </StackPanel> |
| 69 | </Border> |
| 70 | |
| 71 | <Border Grid.Row="2" Style="{StaticResource CardBorder}"> |
| 72 | <ListView x:Name="FeedList" SelectionMode="None"> |
| 73 | <ListView.ItemContainerStyle> |
| 74 | <Style TargetType="ListViewItem"> |
| 75 | <Setter Property="MinHeight" Value="0" /> |
| 76 | <Setter Property="Padding" Value="8,2,8,2" /> |
| 77 | </Style> |
| 78 | </ListView.ItemContainerStyle> |
| 79 | <ListView.ItemTemplate> |
| 80 | <DataTemplate x:DataType="models:FeedLine"> |
| 81 | <TextBlock |
| 82 | Style="{StaticResource LogText}" |
| 83 | Foreground="{x:Bind Brush}" |
| 84 | Text="{x:Bind Text}" /> |
| 85 | </DataTemplate> |
| 86 | </ListView.ItemTemplate> |
| 87 | </ListView> |
| 88 | </Border> |
| 89 | </Grid> |
| 90 | </Page> |