mirror of
https://github.com/4sval/FModel.git
synced 2026-09-19 06:54:28 -05:00
iykujthgrr
This commit is contained in:
Submodule CUE4Parse updated: b046ebb430...f960ed67f0
@@ -294,7 +294,7 @@ public class TabItem : ViewModel
|
||||
var img = new CTexture[1];
|
||||
if (texture is UTexture2DArray textureArray)
|
||||
{
|
||||
img = textureArray.DecodeTextureArray(null, UserSettings.Default.CurrentDir.TexturePlatform);
|
||||
img = textureArray.DecodeTextureArray(UserSettings.Default.CurrentDir.TexturePlatform);
|
||||
appendLayerNumber = true;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -386,7 +386,7 @@
|
||||
|
||||
<ProgressBar Grid.Row="1" Height="5" Margin="0 5 0 5" Maximum="1" Value="{Binding ProgressValue, Mode=OneWay, FallbackValue=0.5}" />
|
||||
|
||||
<TabControl Grid.Row="2" adonisExtensions:LayerExtension.Layer="2"
|
||||
<TabControl x:Name="Tabs" Grid.Row="2" adonisExtensions:LayerExtension.Layer="2"
|
||||
Background="{DynamicResource {x:Static adonisUi:Brushes.Layer0BackgroundBrush}}">
|
||||
<TabItem Header="Export Logs">
|
||||
<Grid>
|
||||
|
||||
@@ -16,7 +16,10 @@ public partial class ExportSessionWindow
|
||||
private async void OnExportClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is Button { DataContext: ExportSessionViewModel { CanExport: true } viewModel })
|
||||
{
|
||||
Tabs.SelectedIndex = 0;
|
||||
await viewModel.ExportAsync();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnOkClick(object sender, RoutedEventArgs e)
|
||||
|
||||
@@ -195,7 +195,7 @@ public class Options
|
||||
var bitmap = o switch
|
||||
{
|
||||
UTexture2D texture2D => texture2D.Decode(UserSettings.Default.PreviewMaxTextureSize, UserSettings.Default.CurrentDir.TexturePlatform),
|
||||
UTexture2DArray texture2DArray => texture2DArray.DecodeTextureArray(null, UserSettings.Default.CurrentDir.TexturePlatform)?.FirstOrDefault(),
|
||||
UTexture2DArray texture2DArray => texture2DArray.DecodeTextureArray(UserSettings.Default.CurrentDir.TexturePlatform)?.FirstOrDefault(),
|
||||
_ => o.Decode(UserSettings.Default.CurrentDir.TexturePlatform)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user