|
708 | 708 | <ContentControl DockPanel.Dock="Top" ContentTemplate="{DynamicResource PassiveSelectorItemTemplate}" Content="{Binding .}"/>
|
709 | 709 | </StackPanel>
|
710 | 710 |
|
711 |
| - <ls:LSScrollViewer Style="{StaticResource gameplayPanelScrollViewerStyle}" Height="Auto" VerticalScrollBarVisibility="Auto"> |
| 711 | + <ls:LSScrollViewer Style="{StaticResource gameplayPanelScrollViewerStyle}" Height="Auto" VerticalScrollBarVisibility="Auto"> |
712 | 712 | <StackPanel Style="{StaticResource gameplayScrolledStackPanelStyle}">
|
713 | 713 |
|
714 | 714 | <!-- Features that may depend on passive selection above -->
|
715 | 715 | <!-- ToDo: only show things that actually depend, also separate class/subclass -->
|
716 | 716 | <ItemsControl ItemsSource="{Binding FilteredItems, ElementName=ClassPassiveFeatures}" ItemTemplate="{StaticResource ProgressionSpellsTemplate}" Visibility="{Binding FilteredItems.Count, ElementName=ClassPassiveFeatures, Converter={StaticResource CountToVisibilityConverter}}" Margin="0,20,0,0"/>
|
717 | 717 |
|
718 |
| - <ItemsControl ItemsSource="{Binding FilteredItems, ElementName=SubClassPassiveFeatures}" ItemTemplate="{StaticResource ProgressionSpellsTemplate}" Visibility="{Binding FilteredItems.Count, ElementName=SubClassPassiveFeatures, Converter={StaticResource CountToVisibilityConverter}}" Margin="0,20,0,0"/> |
| 718 | + <ItemsControl ItemsSource="{Binding FilteredItems, ElementName=SubClassPassiveFeatures}" ItemTemplate="{StaticResource ProgressionSpellsTemplate}" Visibility="{Binding FilteredItems.Count, ElementName=SubClassPassiveFeatures, Converter={StaticResource CountToVisibilityConverter}}" Margin="0,20,0,0" /> |
719 | 719 |
|
720 | 720 | <StackPanel x:Name="PiercingSelector" Visibility="Collapsed" Margin="0,50,0,0">
|
721 | 721 | <TextBlock Text="{Binding Source='h261cce55g1d1eg4c09g9675ge5c1be13e820', Converter={StaticResource TranslatedStringConverter}}" Style="{StaticResource PanelSubHeaderText}"/>
|
|
2318 | 2318 | </TextBlock>
|
2319 | 2319 | <TextBlock x:Name="description" ls:TextBlockFormatter.SourceText="{Binding Description.Text}" Style="{StaticResource PanelDescriptionText}" Margin="0,50,0,0"/>
|
2320 | 2320 |
|
2321 |
| - <ItemsControl ItemsSource="{Binding Passives}" HorizontalAlignment="Center" Margin="-32,32,0,0"> |
2322 |
| - <ItemsControl.ItemTemplate> |
2323 |
| - <DataTemplate DataType="{x:Type ls:VMCharacterCreationPassive}"> |
2324 |
| - <ContentControl Template="{StaticResource SelectableEnhancement}"> |
2325 |
| - <b:Interaction.Triggers> |
2326 |
| - <b:EventTrigger EventName="MouseLeftButtonUp"> |
2327 |
| - <b:InvokeCommandAction Command="{Binding DataContext.TogglePassive,RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" CommandParameter="{Binding}" /> |
2328 |
| - <ls:LSPlaySound Sound="UI_HUD_CC_ClassSubOption"/> |
2329 |
| - </b:EventTrigger> |
2330 |
| - </b:Interaction.Triggers> |
2331 |
| - </ContentControl> |
2332 |
| - </DataTemplate> |
2333 |
| - </ItemsControl.ItemTemplate> |
2334 |
| - </ItemsControl> |
| 2321 | + <!-- MOD START - Restrict passive list max height --> |
| 2322 | + <ls:LSScrollViewer Style="{StaticResource gameplayPanelScrollViewerStyle}" Height="1000" VerticalScrollBarVisibility="Auto"> |
| 2323 | + <ItemsControl ItemsSource="{Binding Passives}" HorizontalAlignment="Center" Margin="-32,32,0,0"> |
| 2324 | + <ItemsControl.ItemTemplate> |
| 2325 | + <DataTemplate DataType="{x:Type ls:VMCharacterCreationPassive}"> |
| 2326 | + <ContentControl Template="{StaticResource SelectableEnhancement}"> |
| 2327 | + <b:Interaction.Triggers> |
| 2328 | + <b:EventTrigger EventName="MouseLeftButtonUp"> |
| 2329 | + <b:InvokeCommandAction Command="{Binding DataContext.TogglePassive,RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" CommandParameter="{Binding}" /> |
| 2330 | + <ls:LSPlaySound Sound="UI_HUD_CC_ClassSubOption"/> |
| 2331 | + </b:EventTrigger> |
| 2332 | + </b:Interaction.Triggers> |
| 2333 | + </ContentControl> |
| 2334 | + </DataTemplate> |
| 2335 | + </ItemsControl.ItemTemplate> |
| 2336 | + </ItemsControl> |
| 2337 | + </ls:LSScrollViewer> |
2335 | 2338 |
|
2336 | 2339 | </StackPanel>
|
2337 | 2340 | <DataTemplate.Triggers>
|
|
3639 | 3642 |
|
3640 | 3643 | </StackPanel>
|
3641 | 3644 |
|
3642 |
| - <ls:LSScrollViewer Style="{StaticResource gameplayPanelScrollViewerStyle}" VerticalScrollBarVisibility="Auto" Height="Auto" Margin="100,0,88,52"> |
| 3645 | + <ls:LSScrollViewer Style="{StaticResource gameplayPanelScrollViewerStyle}" VerticalScrollBarVisibility="Auto" Height="Auto" Margin="100,0,88,52"> |
3643 | 3646 | <StackPanel Style="{StaticResource gameplayScrolledStackPanelStyle}">
|
3644 | 3647 |
|
3645 | 3648 | <!-- Name and description -->
|
|
0 commit comments