Skip to content

Commit

Permalink
html
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiao921 authored and harbingerofme committed Dec 23, 2021
1 parent 0ea53bf commit 03f0e5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion BepInEx.GUI/Views/ConsoleView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="BepInEx.GUI.Views.ConsoleView">


<Grid>

<Grid.RowDefinitions>
Expand Down Expand Up @@ -37,7 +38,7 @@
</Grid.ColumnDefinitions>

<Label Grid.Column="0" Content="Log Filter" Target="{Binding ElementName=SliderLogFilter}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
<Slider Grid.Column="1" Name="SliderLogFilter" TickFrequency="1" IsSnapToTickEnabled="True" Maximum="8" Value="{Binding ConsoleViewModel.LogFilterLevel, Mode=TwoWay}"/>
<Slider Grid.Column="1" Name="SliderLogFilter" TickFrequency="1" IsSnapToTickEnabled="True" Maximum="7" Value="{Binding ConsoleViewModel.LogFilterLevel, Mode=TwoWay}"/>

</Grid>

Expand Down
14 changes: 12 additions & 2 deletions BepInEx.GUI/Views/GeneralView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,22 @@
<RowDefinition Height="0.75*" />
</Grid.RowDefinitions>

<TextBlock Grid.Row="0" Text="{Binding GeneralViewModel.LoadedModCountText}" HorizontalAlignment="Left" VerticalAlignment="Center"/>
<TextBlock Grid.Row="0" Text="{Binding GeneralViewModel.LoadedModCountText, Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Center"/>

<ListBox Grid.Row="1" Name="LoadedModsList" Items="{Binding GeneralViewModel.Mods}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
<Grid>

<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.5*" />
<ColumnDefinition Width="0.5*" />
</Grid.ColumnDefinitions>

<TextBlock Grid.Column="0" Text="{Binding Name}" />
<TextBlock Grid.Column="1" Text="{Binding Version}" Margin="10,0,0,0" />

</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Expand Down

0 comments on commit 03f0e5e

Please sign in to comment.