|
10 | 10 | Title="WorldMapTriggersWindow" Height="450" Width="800" Closed="Window_Closed"> |
11 | 11 | <Window.Resources> |
12 | 12 | <!--Create list of enumeration values--> |
13 | | - <ObjectDataProvider x:Key="facingDirection" MethodName="GetValues" ObjectType="{x:Type core:Enum}"> |
| 13 | + <ObjectDataProvider x:Key="FacingDirection" MethodName="GetValues" ObjectType="{x:Type core:Enum}"> |
14 | 14 | <ObjectDataProvider.MethodParameters> |
15 | 15 | <x:Type Type="ff4:FacingDirection"/> |
16 | 16 | </ObjectDataProvider.MethodParameters> |
17 | 17 | </ObjectDataProvider> |
| 18 | + <ObjectDataProvider x:Key="WorldMapTriggerType" MethodName="GetValues" ObjectType="{x:Type core:Enum}"> |
| 19 | + <ObjectDataProvider.MethodParameters> |
| 20 | + <x:Type Type="ff4:WorldMapTriggerType"/> |
| 21 | + </ObjectDataProvider.MethodParameters> |
| 22 | + </ObjectDataProvider> |
18 | 23 | <local:HexValueConverter x:Key="HexValueConverter"/> |
19 | 24 | <local:WorldMapTriggerDataTemplateSelector x:Key="WorldMapTriggerDataTemplateSelector"/> |
20 | 25 | <DataTemplate x:Key="WorldMapTeleportTemplate" DataType="{x:Type ff4:WorldMapTeleport}"> |
21 | | - <StackPanel Orientation="Horizontal"> |
22 | | - <Label Margin="20,0,0,0">Coords:</Label> |
23 | | - <TextBox Width="24" Text="{Binding X, Converter={StaticResource HexValueConverter}}"/> |
24 | | - <TextBox Width="24" Text="{Binding Y, Converter={StaticResource HexValueConverter}}"/> |
25 | | - <Label Margin="20,0,0,0">Map:</Label> |
26 | | - <TextBox Width="24" Text="{Binding DestinationMap, Converter={StaticResource HexValueConverter}}"/> |
27 | | - <Label Margin="20,0,0,0">Dest:</Label> |
28 | | - <TextBox Width="24" Text="{Binding DestinationX, Converter={StaticResource HexValueConverter}}"/> |
29 | | - <TextBox Width="24" Text="{Binding DestinationY, Converter={StaticResource HexValueConverter}}"/> |
30 | | - <Label Margin="20,0,0,0">Facing:</Label> |
31 | | - <ComboBox Width="60" SelectedValue="{Binding FacingDirection}" ItemsSource="{Binding Source={StaticResource facingDirection}}"></ComboBox> |
32 | | - </StackPanel> |
| 26 | + <Border Padding="2"> |
| 27 | + <StackPanel Orientation="Horizontal"> |
| 28 | + <ComboBox Width="100" SelectedValue="{Binding Type, Mode=OneWay}" ItemsSource="{Binding Source={StaticResource WorldMapTriggerType}}" SelectionChanged="TriggerType_SelectionChanged"/> |
| 29 | + <Label Margin="20,0,0,0">Coords:</Label> |
| 30 | + <TextBox Width="24" Text="{Binding X, Converter={StaticResource HexValueConverter}}"/> |
| 31 | + <TextBox Width="24" Text="{Binding Y, Converter={StaticResource HexValueConverter}}"/> |
| 32 | + <Label Margin="20,0,0,0">Map:</Label> |
| 33 | + <TextBox Width="24" Text="{Binding DestinationMap, Converter={StaticResource HexValueConverter}}"/> |
| 34 | + <Label Margin="20,0,0,0">Dest:</Label> |
| 35 | + <TextBox Width="24" Text="{Binding DestinationX, Converter={StaticResource HexValueConverter}}"/> |
| 36 | + <TextBox Width="24" Text="{Binding DestinationY, Converter={StaticResource HexValueConverter}}"/> |
| 37 | + <Label Margin="20,0,0,0">Facing:</Label> |
| 38 | + <ComboBox Width="60" SelectedValue="{Binding FacingDirection}" ItemsSource="{Binding Source={StaticResource FacingDirection}}"></ComboBox> |
| 39 | + </StackPanel> |
| 40 | + </Border> |
33 | 41 | </DataTemplate> |
34 | 42 | <DataTemplate x:Key="WorldMapEventTemplate" DataType="{x:Type ff4:WorldMapEvent}"> |
35 | | - <StackPanel Orientation="Horizontal"> |
36 | | - <Label Margin="20,0,0,0">Coords:</Label> |
37 | | - <TextBox Width="24" Text="{Binding X, Converter={StaticResource HexValueConverter}}"/> |
38 | | - <TextBox Width="24" Text="{Binding Y, Converter={StaticResource HexValueConverter}}"/> |
39 | | - <Label Margin="20,0,0,0">Event Call:</Label> |
40 | | - <TextBox Width="24" Text="{Binding EventCall, Converter={StaticResource HexValueConverter}}"/> |
41 | | - </StackPanel> |
| 43 | + <Border Padding="2"> |
| 44 | + <StackPanel Orientation="Horizontal"> |
| 45 | + <ComboBox Width="100" SelectedValue="{Binding Type}" ItemsSource="{Binding Source={StaticResource WorldMapTriggerType}}" SelectionChanged="TriggerType_SelectionChanged"/> |
| 46 | + <Label Margin="20,0,0,0">Coords:</Label> |
| 47 | + <TextBox Width="24" Text="{Binding X, Converter={StaticResource HexValueConverter}}"/> |
| 48 | + <TextBox Width="24" Text="{Binding Y, Converter={StaticResource HexValueConverter}}"/> |
| 49 | + <Label Margin="20,0,0,0">Event Call:</Label> |
| 50 | + <TextBox Width="24" Text="{Binding EventCall, Converter={StaticResource HexValueConverter}}"/> |
| 51 | + </StackPanel> |
| 52 | + </Border> |
42 | 53 | </DataTemplate> |
43 | 54 | <ControlTemplate x:Key="NoScroll"> |
44 | 55 | <ItemsPresenter></ItemsPresenter> |
45 | 56 | </ControlTemplate> |
46 | 57 | </Window.Resources> |
47 | 58 | <ScrollViewer> |
48 | 59 | <StackPanel VerticalAlignment="Top"> |
49 | | - <Label Margin="10,15,0,0">Overworld</Label> |
| 60 | + <Label Margin="10,15,0,0" FontWeight="Bold">Overworld</Label> |
50 | 61 | <ListView x:Name="OverworldListView" Template="{StaticResource NoScroll}" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
51 | | - <Label Margin="10,15,0,0">Underworld</Label> |
| 62 | + <Label Margin="10,15,0,0" FontWeight="Bold">Underworld</Label> |
52 | 63 | <ListView x:Name="UnderworldListView" Template="{StaticResource NoScroll}" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
53 | | - <Label Margin="10,15,0,0">Moon</Label> |
| 64 | + <Label Margin="10,15,0,0" FontWeight="Bold">Moon</Label> |
54 | 65 | <ListView x:Name="MoonListView" Template="{StaticResource NoScroll}" ItemTemplateSelector="{StaticResource WorldMapTriggerDataTemplateSelector}"/> |
55 | 66 | </StackPanel> |
56 | 67 | </ScrollViewer> |
|
0 commit comments