Files
2025-09-29 00:52:08 +02:00

56 lines
3.0 KiB
XML
Executable File

<Grid Name="Root"
MinWidth="400"
MinHeight="600"
MaxHeight="600"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Background="{DynamicResource BackgroundBrush}"
SnapsToDevicePixels="True"
IsEnabled="{Binding Path=WorkerAvailable}">
<Grid.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="X:\gta5\tools_ng\wildwest\script\3dsMax\UI\Resources\Base.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Frame Content="{StaticResource ToolHeader}"/>
<Grid Margin="4" Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="140"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Label>Selected LOD Container</Label>
<ComboBox Grid.Column="1" Height="25" ItemsSource="{Binding Path=ContainerLodContentNameList}" SelectedItem="{Binding Path=SelectedContainerLodContentName}"/>
</Grid>
<TreeView Margin="4,0,4,2" Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ItemsSource="{Binding Path=TargetLODContainer.RootLODObjects}">
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Path=LODChildren}">
<StackPanel Orientation="Horizontal">
<StackPanel.ContextMenu>
<ContextMenu>
<MenuItem IsEnabled="{Binding Path=HasChildren}" Command="{Binding Path=Command_MarkDirectChildren}" Header="Mark for merge - direct children." />
<MenuItem IsEnabled="{Binding Path=HasChildren}" Command="{Binding Path=Command_MarkAllChildren}" Header="Mark for merge - all children." />
</ContextMenu>
</StackPanel.ContextMenu>
<CheckBox VerticalAlignment="Center" IsChecked="{Binding Path=MarkedForMerge}"/>
<Grid Width="7"/>
<TextBlock VerticalAlignment="Center" FontWeight="Bold" Text="{Binding Path=SourceObjectDef.LODLevel}"/>
<Grid Width="7"/>
<TextBlock VerticalAlignment="Center" Text="{Binding Path=HeaderString}"/>
</StackPanel>
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
</TreeView>
<Button Margin="4,2,4,0" Grid.Row="3" Content="Merge Selected LOD Objects" ToolTip="Click to merge the selected LOD objects." Command="{Binding Path=Command_MergeLODObjects}"/>
<ProgressBar Grid.Row="4" Height="25" Margin="4" Value="{Binding Path=LoadProgressValue}"></ProgressBar>
</Grid>