|
|
|
|
<Window x:Class="rabi_splitter_WPF.MainWindow"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:local="clr-namespace:rabi_splitter_WPF"
|
|
|
|
|
mc:Ignorable="d" SizeToContent="Width"
|
|
|
|
|
Title="Irisu is watching you" d:DataContext="{d:DesignData local:MainContext}" d:DesignWidth="835.476" Height="403.069">
|
|
|
|
|
<Window.Resources>
|
|
|
|
|
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
|
|
|
|
<local:InverseBooleanConverter x:Key="InverseBooleanConverter"/>
|
|
|
|
|
</Window.Resources>
|
|
|
|
|
<DockPanel>
|
|
|
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left">
|
|
|
|
|
<TextBlock Text="v0.3.2" Margin="0,0,30,0" VerticalAlignment="Top" />
|
|
|
|
|
<TextBlock Text="GitHub" MouseUp="TextBlock_MouseUp" Cursor="Hand" Foreground="Blue" TextDecorations="Underline" VerticalAlignment="Top" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<DockPanel Margin="5" DockPanel.Dock="Top">
|
|
|
|
|
<StackPanel Margin="0,0,100,0" Width="356">
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,0,0,3">
|
|
|
|
|
<TextBlock TextWrapping="Wrap" Text="LiveSplit Server Port" VerticalAlignment="Center" FontSize="16" Margin="0,0,10,0"/>
|
|
|
|
|
<TextBox TextWrapping="Wrap" Text="{Binding ServerPort}" VerticalAlignment="Center" HorizontalAlignment="Center" VerticalContentAlignment="Center" FontSize="16" Padding="6,0"/>
|
|
|
|
|
<Button x:Name="BtnConnect" Content="Connect" VerticalAlignment="Center" FontSize="16" Width="80" Click="BtnConnect_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,0,0,3">
|
|
|
|
|
<TextBlock TextWrapping="Wrap" Text="Rabi-Ribi Status:" FontSize="16"/>
|
|
|
|
|
<TextBlock TextWrapping="Wrap" Text="{Binding GameVer}" FontSize="16"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Height="280">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="1*"/>
|
|
|
|
|
<ColumnDefinition Width="1*"/>
|
|
|
|
|
<ColumnDefinition Width="1*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" TextWrapping="Wrap" Text="{Binding Text1}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" TextWrapping="Wrap" Text="{Binding Text2}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="2" TextWrapping="Wrap" Text="{Binding Text3}" FontSize="16"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0" TextWrapping="Wrap" Text="{Binding Text4}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" Text="{Binding Text5}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" TextWrapping="Wrap" Text="{Binding Text6}" FontSize="16"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="0" TextWrapping="Wrap" Text="{Binding Text7}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="1" TextWrapping="Wrap" Text="{Binding Text8}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="2" TextWrapping="Wrap" Text="{Binding Text9}" FontSize="16"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="0" TextWrapping="Wrap" Text="{Binding Text10}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="1" TextWrapping="Wrap" Text="{Binding Text11}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="2" TextWrapping="Wrap" Text="{Binding Text12}" FontSize="16"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="0" TextWrapping="Wrap" Text="{Binding Text13}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="1" TextWrapping="Wrap" Text="{Binding Text14}" FontSize="16"/>
|
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="2" TextWrapping="Wrap" Text="{Binding Text15}" FontSize="16"/>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<DockPanel>
|
|
|
|
|
<TextBlock TextWrapping="Wrap" Text="debug area" Height="15.24" Width="352.251" DockPanel.Dock="Top"/>
|
|
|
|
|
<CheckBox x:Name="BossEventDebug" IsEnabled="False" Content="(DEBUG)BOSS event tracked" FontSize="15" VerticalAlignment="Top" HorizontalAlignment="Left" IsChecked="{Binding BossEvent, Mode=TwoWay}" DockPanel.Dock="Top"/>
|
|
|
|
|
<Grid x:Name="DebugPanel" d:DataContext="{d:DesignData local:DebugContext}" DockPanel.Dock="Top">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="1*"/>
|
|
|
|
|
<RowDefinition Height="1*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<DataGrid x:Name="Grid" ItemsSource="{Binding BossList}" CanUserAddRows="False" IsReadOnly="True" AutoGenerateColumns="False" SelectionUnit="FullRow"
|
|
|
|
|
d:DataContext="{d:DesignData local:BossData}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding BossIdx}" ClipboardContentBinding="{Binding BossIdx}" Header="Index"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding BossID}" ClipboardContentBinding="{Binding BossID}" Header="Entity ID"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding BossHP}" ClipboardContentBinding="{Binding BossHP}" Header="HP"/>
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
<TextBox TextWrapping="Wrap" Text="{Binding DebugLog, Mode=TwoWay}" Grid.Row="1" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" TextChanged="TextBox_TextChanged" VerticalScrollBarVisibility="Visible"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
</Window>
|
|
|
|
|
|