-
Notifications
You must be signed in to change notification settings - Fork 9
/
MainWindow.xaml
143 lines (125 loc) · 8.79 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<Window x:Class="BTD6_Mod_Manager.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:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:UserControls="clr-namespace:BTD6_Mod_Manager.UserControls"
xmlns:local="clr-namespace:BTD6_Mod_Manager"
mc:Ignorable="d"
Title="BTD6 Mod Manager" Height="650" Width="800" WindowState="Maximized" Loaded="Main_Loaded" Activated="Main_Activated" Closing="Main_Closing" WindowStartupLocation="CenterScreen" Closed="Window_Closed">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Resources/Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*" />
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<ToolBarPanel DockPanel.Dock="Top">
<ToolBar ToolBarTray.IsLocked="True" Background="#FF191919" Loaded="ToolBar_Loaded">
<xctk:DropDownButton x:Name="File_Button" Background="#FF191919" Content="File" Foreground="White" FontSize="18" DropDownContentBackground="Black">
<xctk:DropDownButton.DropDownContent>
<Menu>
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</Menu.ItemsPanel>
<MenuItem x:Name="BrowseModDir_Button" Header="Set Mods Dir" FontSize="16" Foreground="White" Background="#FF191919" BorderThickness="0" Click="BrowseModDir_Button_Click"/>
</Menu>
</xctk:DropDownButton.DropDownContent>
</xctk:DropDownButton>
<xctk:DropDownButton x:Name="Open_Button" Background="#FF191919" Content="Open" Foreground="White" FontSize="18" DropDownContentBackground="Black">
<xctk:DropDownButton.DropDownContent>
<Menu>
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</Menu.ItemsPanel>
<MenuItem x:Name="Settings_Button" Header="Settings" FontSize="16" Foreground="White" Background="#FF191919" BorderThickness="0" Click="Settings_Button_Click"/>
<MenuItem x:Name="OpenSettingsDir_Button" Header="Open Settings Dir" FontSize="16" Foreground="White" Background="#FF191919" BorderThickness="0" Click="OpenSettingsDir_Button_Click"/>
<MenuItem x:Name="OpenBTD6_ModDir_Button" Header="BTD6 Mods Directory" FontSize="16" Foreground="White" Background="#FF191919" BorderThickness="0" Click="OpenBTD6_ModDir_Button_Click"/>
</Menu>
</xctk:DropDownButton.DropDownContent>
</xctk:DropDownButton>
<xctk:DropDownButton x:Name="Help_Button" Background="#FF191919" Content="Help" Foreground="White" FontSize="18" DropDownContentBackground="Black">
<xctk:DropDownButton.DropDownContent>
<Menu>
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</Menu.ItemsPanel>
<MenuItem x:Name="HowGetMods_Button" Header="How to get mods" FontSize="16" Foreground="White" Background="#FF191919" BorderThickness="0" Click="HowGetMods_Button_Click"/>
<MenuItem x:Name="HowToUse_Button" Header="How to use Mod Manager" FontSize="16" Foreground="White" Background="#FF191919" BorderThickness="0" Click="HowToUse_Button_Click"/>
<MenuItem x:Name="ModsBroken_Button" Header="My mods arent working!" FontSize="16" Foreground="White" Background="#FF191919" BorderThickness="0" Click="ModsBroken_Button_Click"/>
</Menu>
</xctk:DropDownButton.DropDownContent>
</xctk:DropDownButton>
<xctk:DropDownButton Visibility="Collapsed" x:Name="Testing_Button" Background="#FF191919" Content="Testing" Foreground="White" FontSize="18" DropDownContentBackground="Black">
<xctk:DropDownButton.DropDownContent>
<Menu>
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</Menu.ItemsPanel>
<MenuItem x:Name="Test_Button1" Header="Test Button 1" FontSize="16" Foreground="White" Background="#FF191919" BorderThickness="0" Click="Test_Button1_Click"/>
</Menu>
</xctk:DropDownButton.DropDownContent>
</xctk:DropDownButton>
<Separator Margin="8,0,8,0"/>
<Button x:Name="Nexus_Button" Background="#FFEAA666" Width="130" Height="30" BorderBrush="Black" FontSize="16" Click="Nexus_Button_Click" VerticalAlignment="Bottom">
<DockPanel>
<TextBlock Text=" NexusMods " Foreground="White"/>
<Image Source="Resources/nexusmods logo.png" Stretch="Uniform"/>
</DockPanel>
</Button>
<Separator Margin="8,0,8,0"/>
<Button x:Name="Discord_Button" Background="#FF69B2FB" Width="100" Height="30" BorderBrush="Black" FontSize="16" Click="Discord_Button_Click" VerticalAlignment="Bottom">
<DockPanel>
<TextBlock Text=" Discord " Foreground="White"/>
<Image Source="Resources/discord logo.png" Margin="2"/>
</DockPanel>
</Button>
<Separator Margin="8,0,8,0"/>
<Button x:Name="RefreshMods_Button" Background="#FF878787" Width="130" Height="30" BorderBrush="Black" FontSize="16" Click="RefreshMods_Button_Click" VerticalAlignment="Bottom">
<DockPanel>
<TextBlock Text=" Refresh Mods " Foreground="White"/>
<Image Source="Resources/White refresh icon.png" Margin="0,1,0,0" Stretch="Uniform"/>
</DockPanel>
</Button>
<Separator Margin="8,0,8,0"/>
<Button x:Name="Launch_Button" Content="Launch" Background="#FF5BC900" Width="100" Height="30" BorderBrush="Black" FontSize="16" Click="Launch_Button_Click" Foreground="White"/>
<Separator Margin="8,0,8,0" Background="#FF383838"/>
<TextBlock x:Name="Version_TextBlock" Text="Version" Foreground="#FF8D8D8D" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Separator Margin="8,0,8,0" Background="#FF383838"/>
<TextBlock x:Name="Timer_TextBlock" Text="Time to inject: " Visibility="Collapsed" Foreground="#FF8D8D8D" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</ToolBar>
</ToolBarPanel>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="203*"/>
<ColumnDefinition Width="589*"/>
</Grid.ColumnDefinitions>
<UserControls:Mods_UserControl Grid.ColumnSpan="2"/>
</Grid>
<Grid Grid.Row="2" >
<Grid Background="{StaticResource BrushBackgroundL}">
<Grid.RowDefinitions>
<RowDefinition Height="25"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Button x:Name="CollapseConsole_Button" Grid.Row="0" Content="Show Console" Click="ConsoleColapsed"/>
<RichTextBox x:Name="OutputLog" Grid.Row="1" Visibility="Collapsed" Background="#FF272727" Foreground="White" FontSize="16" FontFamily="Consolas" VerticalScrollBarVisibility="Auto" BorderThickness="0.5,0.5,0,0" IsReadOnly="True" MinHeight="100"/>
</Grid>
</Grid>
</Grid>
</Window>