-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.xaml
153 lines (124 loc) · 6.86 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
144
145
146
147
148
149
150
151
152
153
<Window x:Name="Main" x:Class="TD_Loader.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:TD_Loader"
mc:Ignorable="d"
Title="TD Loader" Height="450" Width="800" WindowState="Maximized" WindowStyle="SingleBorderWindow" MinHeight="520" MinWidth="720" Activated="Main_Activated">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Resources/Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style x:Key="GameViewbox" TargetType="{x:Type Viewbox}">
<Setter Property="MaxWidth" Value="175"/>
<Setter Property="MaxHeight" Value="100"/>
<Setter Property="Margin" Value="35,0"/>
</Style>
</ResourceDictionary>
</Window.Resources>
<!--<Window.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="0"/>
<GradientStop Color="White" Offset="5"/>
</LinearGradientBrush>
</Window.Background>-->
<Grid Background="{StaticResource BrushBackgroundL}">
<Grid.RowDefinitions>
<RowDefinition Height="26" />
<RowDefinition Height="*" />
<RowDefinition Height="200" />
</Grid.RowDefinitions>
<ToolBar Visibility="Collapsed">
<Button x:Name="File_Button">File</Button>
<Button x:Name="View_Button">View</Button>
<Button x:Name="Help_Button">Help</Button>
</ToolBar>
<TabControl x:Name="Main_TabController" TabStripPlacement="Left" VerticalAlignment="Stretch"
HorizontalAlignment="Stretch" Grid.Row="1" Background="Black" BorderBrush="Black">
<TabItem Header="Games">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="40"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="20"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="0"/>
</Grid.RowDefinitions>
<Viewbox Grid.Row="2" Grid.Column="1" Style="{StaticResource GameViewbox}">
<TextBlock x:Name="BTD5_Text" Text="BTD5" Style="{StaticResource VBTexbox}"/>
</Viewbox>
<Image x:Name="BTD5_Image" Grid.Column="1" Grid.Row="3" Source="Resources/btd5_not loaded.png" Margin="10,0" MouseDown="BTD5_Image_MouseDown"/>
<Viewbox Grid.Row="2" Grid.Column="2" Style="{StaticResource GameViewbox}">
<TextBlock x:Name="BTDB_Text" Text="BTDB" Style="{StaticResource VBTexbox}"/>
</Viewbox>
<Image x:Name="BTDB_Image" Grid.Column="2" Grid.Row="3" Source="Resources/btdb 2_not loaded.png" Margin="10,0" MouseDown="BTDB_Image_MouseDown"/>
<Viewbox Grid.Row="2" Grid.Column="3" Style="{StaticResource GameViewbox}">
<TextBlock x:Name="BMC_Text" Text="BMC" Style="{StaticResource VBTexbox}"/>
</Viewbox>
<Image x:Name="BMC_Image" Grid.Row="3" Grid.Column="3" Source="Resources/bmc_not loaded.png" Margin="10,0" MouseDown="BMC_Image_MouseDown"/>
</Grid>
</TabItem>
<TabItem x:Name="Mods_Tab" Header="Mods">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="20"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="15"/>
<RowDefinition Height="*"/>
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
</Grid>
</TabItem>
<TabItem Name="Plugins_Tab" Header="Plugins">
<Grid x:Name="PluginsUserControl">
</Grid>
</TabItem>
<TabItem Header="Saves" Visibility="Collapsed" >
<Grid/>
</TabItem>
<TabItem Header="Help" Visibility="Collapsed">
<Grid/>
</TabItem>
</TabControl>
<!--Change MinHeight to 220 when all tabs are enabled-->
<Grid Name="LaunchGrid" Grid.Row="1" MinHeight="185"
VerticalAlignment="Top" Margin="-5,0,0,0" Background="{x:Null}">
<StackPanel Orientation="Vertical" HorizontalAlignment="Left"
VerticalAlignment="Bottom" Margin="0,0">
<CheckBox x:Name="ResetGameFiles_CB" Content="Reset Game Files" Foreground="White" FontSize="18" Click="ResetGameFiles_CB_Click" ToolTip="Check this to replace your game files with the backup when launching. Useful for switching between mods" />
<Button x:Name="Launch_Button" Margin="0,0" FontSize="25" Content="Launch" MinHeight="45" MinWidth="160" Background="#FF68C93A" Foreground="White" Click="Launch_Button_Clicked"/>
</StackPanel>
</Grid>
<Grid Grid.Row="2" >
<Grid Background="{StaticResource BrushBackgroundL}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="*"/>
<RowDefinition Height="10"/>
</Grid.RowDefinitions>
<RichTextBox x:Name="OutputLog" Grid.Column="1" Grid.Row="1" Background="#FF272727" Foreground="White" FontSize="16" FontFamily="Consolas" VerticalScrollBarVisibility="Auto" BorderThickness="0.5,0.5,0,0">
</RichTextBox>
</Grid>
</Grid>
</Grid>
</Window>