-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMutliSpawn.xaml
More file actions
115 lines (103 loc) · 6.17 KB
/
Copy pathMutliSpawn.xaml
File metadata and controls
115 lines (103 loc) · 6.17 KB
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
<Window x:Class="EldenRingTool.MutliSpawn"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Multi-Spawn" Height="510px" Width="700" ResizeMode="NoResize">
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal" >
<Label>Search:</Label>
<TextBox Name="FilterBox" Margin="0 0 0 5" TextChanged="FilterBox_TextChanged" Width="225"/>
<Button Content="X" Click="ClearFilter_Click" Width="20" Height="20.5" Margin="2,0,0,3.5"/>
</StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1">
<ListBox x:Name="AvailableList" Height="300"
SelectionChanged="AvailableItems_SelectionChanged"
ItemsSource="{Binding AvailableItems}"
DisplayMemberPath="Name"
MouseDoubleClick="AvailableItemsListBox_MouseDoubleClick"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="90px" />
<ColumnDefinition Width="140px" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0">Level:</Label>
<ComboBox Grid.Row="1" Grid.Column="0" Width="45px" x:Name="comboLevel" SelectedIndex="0" Margin="0,0,5,0"></ComboBox>
<Label Grid.Row="0" Grid.Column="1">Infusion:</Label>
<ComboBox Grid.Row="1" Grid.Column="1" x:Name="comboInfusion" ItemsSource="{Binding Infusions}" DisplayMemberPath="Name" SelectedValuePath="Id" SelectedIndex="0" Margin="0,0,5,0"></ComboBox>
<Label Grid.Row="0" Grid.Column="2">Ash of War:</Label>
<ComboBox Grid.Row="1" Grid.Column="2" x:Name="comboAsh" ItemsSource="{Binding Ashes}" DisplayMemberPath="Name" SelectedValuePath="Id" SelectedIndex="0" Margin="0,0,5,0"></ComboBox>
<Label Grid.Row="0" Grid.Column="3">Qty:</Label>
<TextBox Grid.Row="1" Grid.Column="3" x:Name="txtQuantity" TextAlignment="Center">1</TextBox>
</Grid>
</StackPanel>
<!-- Shuttle Buttons -->
<StackPanel Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Margin="10,0">
<Button Content=">" Click="AddButton_Click" Width="40" Margin="0 5"/>
<Button Content="<" Click="RemoveButton_Click" Width="40" Margin="0 5"/>
</StackPanel>
<!-- Right Panel: Selected Items -->
<StackPanel Grid.Column="2" Grid.Row="1">
<ListBox x:Name="SelectedList"
SelectionMode="Extended"
ItemsSource="{Binding SelectedItems}"
MouseDoubleClick="SelectedItemsListBox_MouseDoubleClick"
Height="300">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="2">
<TextBlock>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0}, +{1}, {2}, {3}, x{4}">
<Binding Path="Name" />
<Binding Path="Level" />
<Binding Path="InfusionName" />
<Binding Path="AshOfWarName" />
<Binding Path="Quantity" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
<!-- Spawn Control -->
<StackPanel Grid.Row="3" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,0,0,10">
<Button x:Name="SingleSpawnButton" Content="Spawn" Click="QuickSpawn_Click" MinWidth="50" Height="20" Margin="0,10,10,0" Padding="10,0" IsEnabled="False"/>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="3" Height="20px"
Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom">
<Button x:Name="SpawnAllButton" Content="Spawn All" Click="btnSpawnAll_Click" Width="100" Height="20" IsEnabled="False"/>
</StackPanel>
<!-- Builds Control -->
<StackPanel Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" Orientation="Vertical" Margin="0,10,0,0">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,30,10" Height="25px">
<Label>Build:</Label>
<ComboBox x:Name="comboLoadBuild" Width="210" Margin="0,0,5,0" SelectionChanged="ComboLoadBuild_SelectionChanged"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,30,10" Height="25px" HorizontalAlignment="Right">
<Button x:Name="DeleteButton" Content="Delete Build" Click="DeleteBuild_Click" Width="100" Margin="5,0"/>
<Button x:Name="SaveButton" Content="Save Build" Click="SaveBuild_Click" Width="100" Margin="5,0"/>
</StackPanel>
</StackPanel>
</Grid>
</Window>