|
97 | 97 | </ItemsControl> |
98 | 98 | </Canvas> |
99 | 99 |
|
| 100 | + |
100 | 101 | <Grid HorizontalAlignment="Center" ColumnDefinitions="Auto,Auto" RowDefinitions="Auto,Auto,Auto,Auto,Auto" MinWidth="300" |
101 | | - IsEnabled="{Binding SelectedMapCharacter, Converter={x:Static ObjectConverters.IsNotNull}}" |
102 | 102 | Margin="15 5 15 5"> |
103 | 103 | <TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Text="{x:Static assets:Strings.Chibi}"/> |
104 | 104 | <ComboBox Grid.Row="0" Grid.Column="1" Margin="10,0,0,0" |
| 105 | + IsEnabled="{Binding SelectedMapCharacter, Converter={x:Static ObjectConverters.IsNotNull}}" |
105 | 106 | ItemsSource="{Binding Chibis}" SelectedItem="{Binding SelectedMapCharacter.Chibi}"/> |
106 | 107 |
|
107 | | - <controls:ChibiDirectionSelector Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" |
108 | | - DataContext="{Binding ChibiDirectionSelector}"/> |
| 108 | + <Panel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" IsEnabled="{Binding SelectedMapCharacter, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 109 | + <controls:ChibiDirectionSelector |
| 110 | + DataContext="{Binding ChibiDirectionSelector}"/> |
| 111 | + </Panel> |
109 | 112 |
|
110 | 113 | <TextBlock Grid.Row="2" Grid.Column="0" Text="{x:Static assets:Strings.Script_Section}"/> |
111 | 114 | <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" Spacing="10" Margin="10,0,0,0"> |
112 | 115 | <ComboBox ItemsSource="{Binding ScriptEditor.ScriptSections}" |
113 | | - SelectedItem="{Binding SelectedMapCharacter.TalkSection}"/> |
114 | | - |
115 | | - <Button Content="{x:Static assets:Strings.Remove_Talk_Link}" Command="{Binding RemoveTalkLinkCommand}"/> |
| 116 | + SelectedItem="{Binding SelectedMapCharacter.TalkSection}" |
| 117 | + IsEnabled="{Binding SelectedMapCharacter, Converter={x:Static ObjectConverters.IsNotNull}}"/> |
| 118 | + <Button Content="{x:Static assets:Strings.Remove_Talk_Link}" Command="{Binding RemoveTalkLinkCommand}" |
| 119 | + IsEnabled="{Binding SelectedMapCharacter, Converter={x:Static ObjectConverters.IsNotNull}}"/> |
116 | 120 | </StackPanel> |
117 | 121 |
|
118 | 122 | <Button Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Content="{x:Static assets:Strings.Remove_Chibi}" |
119 | | - Command="{Binding RemoveMapCharacterCommand}"/> |
| 123 | + Command="{Binding RemoveMapCharacterCommand}" |
| 124 | + IsEnabled="{Binding SelectedMapCharacter, Converter={x:Static ObjectConverters.IsNotNull}}"/> |
120 | 125 |
|
121 | 126 | <StackPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" Spacing="10" HorizontalAlignment="Center"> |
122 | 127 | <Button Content="{x:Static assets:Strings.Add_Chibi}" Command="{Binding AddMapCharacterCommand}"/> |
123 | | - <Button Content="{x:Static assets:Strings.Remove_Map_Characters}" Command="{Binding RemoveMapCharactersCommand}"/> |
| 128 | + <Button Content="{x:Static assets:Strings.Remove_Map_Characters}" Command="{Binding RemoveMapCharactersCommand}" |
| 129 | + IsEnabled="{Binding SelectedMapCharacter, Converter={x:Static ObjectConverters.IsNotNull}}"/> |
124 | 130 | </StackPanel> |
125 | 131 | </Grid> |
126 | 132 | </WrapPanel> |
|
0 commit comments