-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlugins_UserControl.xaml
118 lines (101 loc) · 6.11 KB
/
Plugins_UserControl.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
<UserControl x:Class="TD_Loader.Plugins_UserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:TD_Loader"
mc:Ignorable="d" x:Name="ModsUC"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Resources/Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid x:Name="ModsUserControl" Background="#FF323232" SizeChanged="ModsUserControl_SizeChanged" Loaded="ModsUserControl_Loaded">
<Grid.RowDefinitions>
<RowDefinition Height="10"/>
<RowDefinition Height="60"/>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
<RowDefinition Height="*" MaxHeight="300"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="20"/>
</Grid.ColumnDefinitions>
<Canvas Grid.Row="1" Grid.Column="1" Background="{StaticResource BrushOrangeMid}" MaxHeight="50"/>
<Button x:Name="AddMods_Button" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" Margin="20,0" MinWidth="230" MaxHeight="43" Style="{StaticResource BlueButton}" Click="AddMods_Button_Click">Add Plugins</Button>
<Viewbox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" Margin="35,0">
<TextBlock x:Name="Plugins_TextBlock" Text="Plugins" Style="{StaticResource VBTexbox}"/>
</Viewbox>
<Canvas x:Name="SelectedMods_Canvas" Grid.Row="3" Grid.Column="1" MaxHeight="50"/>
<Viewbox Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Margin="0,0">
<TextBlock Text="Selected Plugins" Style="{StaticResource VBTexbox}"/>
</Viewbox>
<ListBox x:Name="Plugins_ListBox" Grid.Row="2" Grid.Column="1" ScrollViewer.VerticalScrollBarVisibility="Auto" Background="#FF363636"/>
<Grid x:Name="SelectedMods" Grid.Row="4" Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="0"/>
</Grid.ColumnDefinitions>
<ListBox x:Name="SelectedPlugins_ListBox" Grid.Row="0" Grid.Column="0" ScrollViewer.VerticalScrollBarVisibility="Auto"
Background="{StaticResource BrushBackground}" Foreground="{StaticResource BrushFont}" SelectionChanged="SelectedPlugins_ListBox_SelectionChanged"/>
<Grid x:Name="PriorityButtonsGrid" Grid.Column="1" Background="{StaticResource BrushBackground}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="0"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="0"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid Grid.Row="1" Grid.Column="1" Background="{StaticResource BrushBackground}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="31*"/>
<ColumnDefinition Width="4*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Button x:Name="HighestPriority" Grid.Row="0" MaxHeight="35" Grid.ColumnSpan="2" Click="HighestPriority_Click" Visibility="Collapsed" >
<Viewbox HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0">
<TextBlock Text="Top"></TextBlock>
</Viewbox>
</Button>
<Button x:Name="RaisePriority" Grid.Row="1" VerticalContentAlignment="Top" MaxHeight="35" Grid.ColumnSpan="2" Click="RaisePriority_Click" Visibility="Collapsed">
<Viewbox MinHeight="20" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0">
<TextBlock>⮝</TextBlock>
</Viewbox>
</Button>
</Grid>
<Grid Grid.Row="3" Grid.Column="1" Background="{StaticResource BrushBackground}">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Button x:Name="LowerPriority" Grid.Row="0" Grid.Column="1" VerticalContentAlignment="Center" MaxHeight="35" Click="LowerPriority_Click" Visibility="Collapsed">
<Viewbox HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0">
<TextBlock>⮟</TextBlock>
</Viewbox>
</Button>
<Button x:Name="LowestPriority" Grid.Row="2" Grid.Column="1" VerticalContentAlignment="Center" MaxHeight="35" Click="LowestPriority_Click" Visibility="Hidden">
<Viewbox HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0">
<TextBlock>Bottom</TextBlock>
</Viewbox>
</Button>
</Grid>
</Grid>
</Grid>
</Grid>
</UserControl>