forked from BAndysc/WoWDatabaseEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UX] Configuration check-up list added in about page for newcomers
- Loading branch information
Showing
5 changed files
with
160 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,54 @@ | ||
<UserControl x:Class="WoWDatabaseEditorCore.Avalonia.Views.AboutView" | ||
xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<DockPanel Margin="20" LastChildFill="True"> | ||
<TextBlock DockPanel.Dock="Bottom" IsVisible="{Binding VersionKnown}" Text="{Binding ReleaseData}" TextWrapping="WrapWithOverflow" /> | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:converters="clr-namespace:WDE.Common.Avalonia.Converters;assembly=WDE.Common.Avalonia"> | ||
<UserControl.Resources> | ||
<converters:InverseBoolConverter x:Key="InversedBoolConverter" /> | ||
</UserControl.Resources> | ||
<ScrollViewer HorizontalScrollBarVisibility="Disabled"> | ||
<DockPanel Margin="20" LastChildFill="True"> | ||
<TextBlock DockPanel.Dock="Bottom" IsVisible="{Binding VersionKnown}" Text="{Binding ReleaseData}" TextWrapping="WrapWithOverflow" /> | ||
<StackPanel> | ||
<Border BorderThickness="0,0,0,2" BorderBrush="#FF5FA2DA"> | ||
<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom"> | ||
<Image Source="../Icon.png" Width="56" Height="56" /> | ||
<TextBlock VerticalAlignment="Bottom" FontSize="34" FontFamily="Segoe UI Light" TextWrapping="WrapWithOverflow">World of Warcraft Database Editor</TextBlock> | ||
</StackPanel> | ||
</Border> | ||
<WrapPanel Orientation="Horizontal" Margin="0, 10, 0, 0"> | ||
<TextBlock FontWeight="Bold" Text="WoW Database Editor" /> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text=" is an application used to create scripts (behaviours) in TrinityCore based servers." /> | ||
</WrapPanel> | ||
<WrapPanel Orientation="Horizontal" Margin="0, 10, 0, 0"> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text="To start work, add new "file" to the solution - File -> Load. To edit script, double click on selected item in Solution Explorer." /> | ||
</WrapPanel> | ||
<WrapPanel Orientation="Horizontal" Margin="0, 10, 0, 0"> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text="Items in Solution Explorer are saved automatically, but scripts themselves are not. Remember to save them (export to database)" /> | ||
</WrapPanel> | ||
<WrapPanel Orientation="Horizontal" Margin="0, 10, 0, 0"> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text="Database is not required, but in that case features are limited. It is database editor by design." /> | ||
</WrapPanel> | ||
</StackPanel> | ||
</DockPanel> | ||
<Border BorderThickness="0,0,0,2" BorderBrush="#FF5FA2DA"> | ||
<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom"> | ||
<Image Source="../Icon.png" Width="56" Height="56" /> | ||
<TextBlock VerticalAlignment="Bottom" FontSize="34" FontFamily="Segoe UI Light" TextWrapping="WrapWithOverflow">World of Warcraft Database Editor</TextBlock> | ||
</StackPanel> | ||
</Border> | ||
<WrapPanel Orientation="Horizontal" Margin="0, 10, 0, 0"> | ||
<TextBlock FontWeight="Bold" Text="WoW Database Editor" /> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text=" is an application used to create scripts (behaviours) in TrinityCore based servers." /> | ||
</WrapPanel> | ||
<WrapPanel Orientation="Horizontal" Margin="0, 10, 0, 0"> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text="To start work, add new "file" to the solution - File -> Add. To edit script, double click on selected item in Solution Explorer." /> | ||
</WrapPanel> | ||
<WrapPanel Orientation="Horizontal" Margin="0, 10, 0, 0"> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text="Items in Solution Explorer are saved automatically, but scripts themselves are not. Remember to save them (export to database)" /> | ||
</WrapPanel> | ||
<WrapPanel Orientation="Horizontal" Margin="0, 10, 0, 0"> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text="Database is not required, but in that case features are limited. It is database editor by design." /> | ||
</WrapPanel> | ||
|
||
<Border Margin="0,35,0,0" BorderThickness="0,0,0,2" BorderBrush="#FF5FA2DA"> | ||
<TextBlock FontSize="26">Configuration check-up list</TextBlock> | ||
</Border> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow">In order to enable all features, you have to configure the editor first.</TextBlock> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow" IsVisible="{Binding AllConfigured}">Congratulations! You have everything configured properly!</TextBlock> | ||
<ItemsControl Items="{Binding ConfigurationChecks}"> | ||
<ItemsControl.ItemTemplate> | ||
<DataTemplate> | ||
<DockPanel LastChildFill="True" Margin="0,10,0,0"> | ||
<CheckBox MinWidth="0" VerticalAlignment="Center" IsChecked="{Binding Fulfilled, Mode=OneWay}" IsHitTestVisible="False" /> | ||
<StackPanel Orientation="Vertical"> | ||
<TextBlock FontWeight="Bold" Text="{Binding Title}"/> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding Description}" /> | ||
</StackPanel> | ||
</DockPanel> | ||
</DataTemplate> | ||
</ItemsControl.ItemTemplate> | ||
</ItemsControl> | ||
<Button Margin="0,10,0,0" IsVisible="{Binding AllConfigured, Converter={StaticResource InversedBoolConverter}}" Command="{Binding OpenSettingsCommand}">Open settings to configure</Button> | ||
</StackPanel> | ||
</DockPanel> | ||
</ScrollViewer> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,62 @@ | ||
<UserControl x:Class="WoWDatabaseEditorCore.WPF.Views.AboutView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:viewHelpers="clr-namespace:WDE.Common.WPF.ViewHelpers;assembly=WDE.Common.WPF" | ||
Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"> | ||
<Grid Margin="20"> | ||
<StackPanel> | ||
<Border BorderThickness="0,0,0,2" BorderBrush="#FF5FA2DA"> | ||
<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom"> | ||
<Image Source="/Icon.ico" Width="56" Height="56" /> | ||
<TextBlock VerticalAlignment="Bottom" FontSize="34" FontFamily="Segoe UI Light" TextWrapping="WrapWithOverflow">World of Warcraft Database Editor</TextBlock> | ||
</StackPanel> | ||
</Border> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow"> | ||
<Run FontWeight="Bold" Text="WoW Database Editor" /><Run Text=" " /> | ||
<Run Text="is an application used to create scripts (behaviours) in TrinityCore based servers." /> | ||
</TextBlock> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow"> | ||
<Run Text="To start work, add new "file" to the solution " /> | ||
<Run Text="- File -> Load. " /> | ||
<Run Text="To edit script, double click on selected item in Solution Explorer." /> | ||
</TextBlock> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow"> | ||
<Run | ||
Text="Items in Solution Explorer are saved automatically, but scripts themselves are not. Remember to save them " /> | ||
<Run Text="(" /><Run Text="export to database" /><Run Text=")." /> | ||
</TextBlock> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow"> | ||
<Run Text="Database is not required" /><Run Text=", " /><Run Text="but in that" /> | ||
<Run Text=" case features are limited." /><Run Text=" " /> | ||
<Run Text="It is database editor by design" /><Run Text="." /> | ||
</TextBlock> | ||
</StackPanel> | ||
</Grid> | ||
<UserControl.Resources> | ||
<viewHelpers:BooleanToVisibilityConverter WhenTrue="Visible" WhenFalse="Collapsed" x:Key="BooleanToVisibilityConverter"/> | ||
<viewHelpers:BooleanToVisibilityConverter WhenTrue="Collapsed" WhenFalse="Visible" x:Key="InverseBooleanToVisibilityConverter"/> | ||
</UserControl.Resources> | ||
<ScrollViewer HorizontalScrollBarVisibility="Disabled"> | ||
<DockPanel Margin="20" LastChildFill="True"> | ||
<TextBlock DockPanel.Dock="Bottom" Visibility="{Binding VersionKnown, Converter={StaticResource BooleanToVisibilityConverter}}" Text="{Binding ReleaseData}" TextWrapping="WrapWithOverflow" /> | ||
<StackPanel> | ||
<Border BorderThickness="0,0,0,2" BorderBrush="#FF5FA2DA"> | ||
<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom"> | ||
<Image Source="/Icon.ico" Width="56" Height="56" /> | ||
<TextBlock VerticalAlignment="Bottom" FontSize="34" FontFamily="Segoe UI Light" TextWrapping="WrapWithOverflow">World of Warcraft Database Editor</TextBlock> | ||
</StackPanel> | ||
</Border> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow"> | ||
<Run FontWeight="Bold" Text="WoW Database Editor" /><Run Text=" " /> | ||
<Run Text="is an application used to create scripts (behaviours) in TrinityCore based servers." /> | ||
</TextBlock> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow"> | ||
<Run Text="To start work, add new "file" to the solution " /> | ||
<Run Text="- File -> Load. " /> | ||
<Run Text="To edit script, double click on selected item in Solution Explorer." /> | ||
</TextBlock> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow"> | ||
<Run | ||
Text="Items in Solution Explorer are saved automatically, but scripts themselves are not. Remember to save them " /> | ||
<Run Text="(" /><Run Text="export to database" /><Run Text=")." /> | ||
</TextBlock> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow"> | ||
<Run Text="Database is not required" /><Run Text=", " /><Run Text="but in that" /> | ||
<Run Text=" case features are limited." /><Run Text=" " /> | ||
<Run Text="It is database editor by design" /><Run Text="." /> | ||
</TextBlock> | ||
|
||
<Border Margin="0,35,0,0" BorderThickness="0,0,0,2" BorderBrush="#FF5FA2DA"> | ||
<TextBlock FontSize="26">Configuration check-up list</TextBlock> | ||
</Border> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow">In order to enable all features, you have to configure the editor first.</TextBlock> | ||
<TextBlock Margin="0,10,0,0" TextWrapping="WrapWithOverflow" Visibility="{Binding AllConfigured, Converter={StaticResource BooleanToVisibilityConverter}}">Congratulations! You have everything configured properly!</TextBlock> | ||
<ItemsControl ItemsSource="{Binding ConfigurationChecks}"> | ||
<ItemsControl.ItemTemplate> | ||
<DataTemplate> | ||
<DockPanel LastChildFill="True" Margin="0,10,0,0"> | ||
<CheckBox MinWidth="0" VerticalAlignment="Center" IsChecked="{Binding Fulfilled, Mode=OneWay}" IsHitTestVisible="False" /> | ||
<StackPanel Orientation="Vertical" Margin="5,0,0,0"> | ||
<TextBlock FontWeight="Bold" Text="{Binding Title}"/> | ||
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding Description}" /> | ||
</StackPanel> | ||
</DockPanel> | ||
</DataTemplate> | ||
</ItemsControl.ItemTemplate> | ||
</ItemsControl> | ||
<Button Margin="0,10,0,0" Visibility="{Binding AllConfigured, Converter={StaticResource InverseBooleanToVisibilityConverter}}" Command="{Binding OpenSettingsCommand}">Open settings to configure</Button> | ||
</StackPanel> | ||
</DockPanel> | ||
</ScrollViewer> | ||
</UserControl> |