|
| 1 | +<Window x:Class="Trinity_Configs_Migrator.MainWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:Trinity_Configs_Migrator" |
| 7 | + mc:Ignorable="d" |
| 8 | + Title="Trinity Configs Migrator" Height="380" Width="650" Foreground="White" |
| 9 | + WindowStartupLocation="CenterScreen" |
| 10 | + ResizeMode="CanMinimize" |
| 11 | + WindowStyle="None" |
| 12 | + AllowsTransparency="True" |
| 13 | + Background="Transparent" |
| 14 | + RenderOptions.BitmapScalingMode="HighQuality" |
| 15 | + Loaded="Window_Loaded"> |
| 16 | + <WindowChrome.WindowChrome> |
| 17 | + <WindowChrome CaptionHeight="28" ResizeBorderThickness="0" CornerRadius="30"/> |
| 18 | + </WindowChrome.WindowChrome> |
| 19 | + <Border CornerRadius="5" Background="#FF1D1D1D"> |
| 20 | + <Grid> |
| 21 | + <!--Title Bar begin--> |
| 22 | + <Border VerticalAlignment="Top" Height="25" Background="#FF282828" CornerRadius="5,5,0,0"> |
| 23 | + <Grid> |
| 24 | + <TextBlock Text="Trinity Configs Migrator" VerticalAlignment="Center" Margin="10,0,0,0" Foreground="#FFD7D7D7"/> |
| 25 | + <StackPanel WindowChrome.IsHitTestVisibleInChrome="True" VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal"> |
| 26 | + <Button x:Name="titleBarBtnMinimize" Content="⎯" HorizontalAlignment="Left" VerticalAlignment="Top" BorderBrush="{x:Null}" Background="#00000000" Foreground="#FF8D8D8D" FontFamily="Arial" FontSize="13" Width="38" Padding="-4,0,0,0" Height="26" Click="titleBarBtnMinimize_Click" Style="{DynamicResource ControlBoxButtonMinimize}"/> |
| 27 | + <Button x:Name="titleBarBtnExit" Content="X" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="#FF8D8D8D" BorderBrush="{x:Null}" Background="#00000000" FontFamily="Arial" FontSize="14" Width="36" Padding="0" Height="26" Click="titleBarBtnExit_Click" Style="{DynamicResource ControlBoxButtonClose}"/> |
| 28 | + </StackPanel> |
| 29 | + </Grid> |
| 30 | + </Border> |
| 31 | + <TabControl x:Name="TCMNav" Margin="0,28,0,0" Background="{x:Null}" BorderBrush="{x:Null}"> |
| 32 | + <TabItem Style="{DynamicResource TabItemStyle1}" x:Name="tcm_tab_home" Header="Home" Visibility="Visible" Background="{x:Null}" BorderBrush="{x:Null}" Cursor="Hand"> |
| 33 | + <Grid> |
| 34 | + <StackPanel Orientation="Vertical" Margin="0,15,0,0"> |
| 35 | + <TextBlock Text="Configs Migration" HorizontalAlignment="Center" Foreground="#FF8FF291" FontSize="16" FontWeight="Bold" FontFamily="Bahnschrift Light"/> |
| 36 | + <Image Source="/res/file_migration_icon.png" Width="100" HorizontalAlignment="Center" Margin="0,15,0,0" /> |
| 37 | + <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="0,15,0,0"> |
| 38 | + <Button x:Name="BtnOldPath" Content="Select old config" Padding="5,5,5,5" Style="{DynamicResource ThanksButton}" Foreground="#FFC9C9C9" Background="#FF282828" Cursor="Hand" BorderBrush="#FF3C3C3C" Click="BtnOldPath_Click"/> |
| 39 | + <TextBlock Text="and" Margin="10,0,10,0" Foreground="White" VerticalAlignment="Center"/> |
| 40 | + <Button x:Name="BrtnNewPath" Content="Select new config" Padding="5,5,5,5" Style="{DynamicResource ThanksButton}" Background="#FF282828" Foreground="#FF67C6A7" Cursor="Hand" BorderBrush="#FF3C3C3C" Click="BrtnNewPath_Click"/> |
| 41 | + </StackPanel> |
| 42 | + <Border HorizontalAlignment="Center" Margin="0,15,0,0" BorderBrush="#FF3A3A3A" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Width="500"> |
| 43 | + <StackPanel Orientation="Horizontal"> |
| 44 | + <TextBlock Text="Old Config Path:" Padding="5,5,5,5" Foreground="#FF666666"/> |
| 45 | + <TextBlock x:Name="info_old_path" Text="..." Padding="5,5,5,5" Foreground="#FF666666" TextTrimming="CharacterEllipsis" Width="390"/> |
| 46 | + </StackPanel> |
| 47 | + </Border> |
| 48 | + <Border HorizontalAlignment="Center" Margin="0,5,0,0" BorderBrush="#FF3A3A3A" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Width="500"> |
| 49 | + <StackPanel Orientation="Horizontal"> |
| 50 | + <TextBlock Text="New Config Path:" Padding="5,5,5,5" Foreground="#FF666666"/> |
| 51 | + <TextBlock x:Name="info_new_path" Text="..." Padding="5,5,5,5" Foreground="#FF666666" TextTrimming="CharacterEllipsis" Width="390"/> |
| 52 | + </StackPanel> |
| 53 | + </Border> |
| 54 | + <Button x:Name="BtnMigrate" Content="MIGRATE" Cursor="Hand" Margin="0,20,0,0" Width="120" Padding="5,5,5,5" Background="#FF87BB88" FontWeight="Bold" FontFamily="Corbel" FontSize="14" Foreground="#FF262626" Style="{DynamicResource MigrateButton}" Click="BtnMigrate_Click"/> |
| 55 | + <TextBlock x:Name="migration_info" HorizontalAlignment="Center" Margin="0,15,0,0" Width="500" TextTrimming="CharacterEllipsis" TextAlignment="Center" Height="20" Foreground="#FFB6B756"/> |
| 56 | + </StackPanel> |
| 57 | + </Grid> |
| 58 | + </TabItem> |
| 59 | + <TabItem x:Name="tcm_tab_about" Header="About" Visibility="Visible" Margin="0,-2,-2,0" Style="{DynamicResource TabItemStyle1}" Cursor="Hand"> |
| 60 | + <StackPanel Orientation="Vertical" Margin="0,25,0,0"> |
| 61 | + <TextBlock Text="Trinity Configs Migrator" Foreground="#FFD15E5E" FontWeight="Bold" HorizontalAlignment="Center"/> |
| 62 | + <Grid HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,15,0,0"> |
| 63 | + <TextBlock xml:space="preserve" TextAlignment="Center" Foreground="#FFAB4B4B">Migrates old config file settings to the newly selected config file. |
| 64 | +For example select your old server worldserver.conf file and your new server worldserver.conf file then migrate. |
| 65 | +This will transfer all settings values to the new server config file. |
| 66 | + </TextBlock> |
| 67 | + </Grid> |
| 68 | + <TextBlock Text="Developed by CyberMist" HorizontalAlignment="Center" Foreground="#FFD1985E" FontWeight="Bold"/> |
| 69 | + <Image Source="/res/cyb_logo.png" Width="80" Margin="0,10,0,0"/> |
| 70 | + <Button Width="100" Margin="0,10,0,0" Cursor="Hand" Background="#FF292929" HorizontalContentAlignment="Center" BorderBrush="#FF3C3C3C" Style="{DynamicResource ThanksButton}"> |
| 71 | + <Button.Content> |
| 72 | + <StackPanel Orientation="Horizontal"> |
| 73 | + <Image Source="/res/pp.png" Width="30" Margin="-15,0,0,0" VerticalAlignment="Center" /> |
| 74 | + <TextBlock Text="Say thanks" Foreground="#FF0CBACF" VerticalAlignment="Center"/> |
| 75 | + </StackPanel> |
| 76 | + </Button.Content> |
| 77 | + </Button> |
| 78 | + </StackPanel> |
| 79 | + </TabItem> |
| 80 | + </TabControl> |
| 81 | + <!--Title Bar end--> |
| 82 | + |
| 83 | + </Grid> |
| 84 | + </Border> |
| 85 | +</Window> |
0 commit comments