mirror of
https://github.com/4sval/FModel.git
synced 2026-09-25 02:29:21 -05:00
ulang reader
This commit is contained in:
@@ -16,6 +16,7 @@ using CUE4Parse.UE4.Assets.Exports;
|
||||
using CUE4Parse.UE4.Assets.Exports.Animation;
|
||||
using CUE4Parse.UE4.Assets.Exports.Material;
|
||||
using CUE4Parse.UE4.Assets.Exports.SkeletalMesh;
|
||||
using CUE4Parse.UE4.Assets.Exports.Solaris;
|
||||
using CUE4Parse.UE4.Assets.Exports.Sound;
|
||||
using CUE4Parse.UE4.Assets.Exports.StaticMesh;
|
||||
using CUE4Parse.UE4.Assets.Exports.Texture;
|
||||
@@ -713,6 +714,15 @@ public class CUE4ParseViewModel : ViewModel
|
||||
{
|
||||
switch (export)
|
||||
{
|
||||
case USolarisDigest solarisDigest:
|
||||
{
|
||||
if (!TabControl.CanAddTabs) return false;
|
||||
|
||||
TabControl.AddTab($"{solarisDigest.ProjectName}.ulang");
|
||||
TabControl.SelectedTab.Highlighter = AvalonExtensions.HighlighterSelector("ulang");
|
||||
TabControl.SelectedTab.SetDocumentText(solarisDigest.ReadableCode, false);
|
||||
return true;
|
||||
}
|
||||
case UTexture2D texture:
|
||||
{
|
||||
TabControl.SelectedTab.AddImage(texture);
|
||||
@@ -848,4 +858,4 @@ public class CUE4ParseViewModel : ViewModel
|
||||
FLogger.AppendText($"Could not export '{fileName}'", Constants.WHITE, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user