|
15 | 15 | <x:Type Type="ff4:FacingDirection"/> |
16 | 16 | </ObjectDataProvider.MethodParameters> |
17 | 17 | </ObjectDataProvider> |
| 18 | + <local:WorldMapTriggerDataTemplateSelector x:Key="WorldMapTriggerDataTemplateSelector"/> |
| 19 | + <DataTemplate x:Key="WorldMapTeleportTemplate" DataType="{x:Type ff4:WorldMapTeleport}"> |
| 20 | + <StackPanel Orientation="Horizontal"> |
| 21 | + <Label>Coords:</Label> |
| 22 | + <TextBox Text="{Binding X}"/> |
| 23 | + <TextBox Text="{Binding Y}"/> |
| 24 | + <Label>Map:</Label> |
| 25 | + <TextBox Text="{Binding DestinationMap}"/> |
| 26 | + <Label>Dest:</Label> |
| 27 | + <TextBox Text="{Binding DestinationX}"/> |
| 28 | + <TextBox Text="{Binding DestinationY}"/> |
| 29 | + <Label>Facing:</Label> |
| 30 | + <ComboBox SelectedValue="{Binding FacingDirection}" ItemsSource="{Binding Source={StaticResource facingDirection}}"></ComboBox> |
| 31 | + </StackPanel> |
| 32 | + </DataTemplate> |
| 33 | + <DataTemplate x:Key="WorldMapEventTemplate" DataType="{x:Type ff4:WorldMapEvent}"> |
| 34 | + <StackPanel Orientation="Horizontal"> |
| 35 | + <Label>Coords:</Label> |
| 36 | + <TextBox Text="{Binding X}"/> |
| 37 | + <TextBox Text="{Binding Y}"/> |
| 38 | + <Label>Event Call:</Label> |
| 39 | + <TextBox Text="{Binding EventCall}"/> |
| 40 | + </StackPanel> |
| 41 | + </DataTemplate> |
18 | 42 | </Window.Resources> |
19 | 43 | <ScrollViewer> |
20 | 44 | <StackPanel VerticalAlignment="Top"> |
21 | | - <Label Margin="10,15,0,0">Teleports</Label> |
22 | | - <DataGrid x:Name="TeleportsDataGrid" RowHeaderWidth="0" AutoGenerateColumns="False" Margin="15" HorizontalAlignment="Left" VerticalAlignment="Top"> |
23 | | - <DataGrid.Columns> |
24 | | - <DataGridTextColumn Header="X" Binding="{Binding X}"/> |
25 | | - <DataGridTextColumn Header="Y" Binding="{Binding Y}"/> |
26 | | - <DataGridTextColumn Header="Dest Map" Binding="{Binding DestinationMap}"/> |
27 | | - <DataGridTextColumn Header="Dest X" Binding="{Binding DestinationX}"/> |
28 | | - <DataGridTextColumn Header="Dest Y" Binding="{Binding DestinationY}"/> |
29 | | - <DataGridComboBoxColumn Header="Facing" SelectedValueBinding="{Binding FacingDirection}" ItemsSource="{Binding Source={StaticResource facingDirection}}"/> |
30 | | - </DataGrid.Columns> |
31 | | - </DataGrid> |
32 | | - <Label Margin="10,15,0,0">Events</Label> |
33 | | - <DataGrid x:Name="EventsDataGrid" RowHeaderWidth="0" AutoGenerateColumns="False" Margin="15" HorizontalAlignment="Left" VerticalAlignment="Top"> |
34 | | - <DataGrid.Columns> |
35 | | - <DataGridTextColumn Header="X" Binding="{Binding X}"/> |
36 | | - <DataGridTextColumn Header="Y" Binding="{Binding Y}"/> |
37 | | - <DataGridTextColumn Header="Event Code" Binding="{Binding EventCode}"/> |
38 | | - </DataGrid.Columns> |
39 | | - </DataGrid> |
| 45 | + <Label Margin="10,15,0,0">Overworld</Label> |
| 46 | + <ListView x:Name="OverworldListView" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
| 47 | + <Label Margin="10,15,0,0">Underworld</Label> |
| 48 | + <ListView x:Name="UnderworldListView" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
| 49 | + <Label Margin="10,15,0,0">Moon</Label> |
| 50 | + <ListView x:Name="MoonListView" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
40 | 51 | </StackPanel> |
41 | 52 | </ScrollViewer> |
42 | 53 | </Window> |
0 commit comments