added access_item in challenges

This commit is contained in:
iAmAsval 2020-10-02 03:45:41 +02:00
parent 3406fdc37c
commit 7b40730823
4 changed files with 18 additions and 3 deletions

View File

@ -3,6 +3,7 @@ using FModel.Creator.Rarities;
using FModel.Creator.Stats;
using FModel.Creator.Texts;
using FModel.Utils;
using PakReader.Pak;
using PakReader.Parsers.Class;
using PakReader.Parsers.PropertyTagData;
using SkiaSharp;
@ -57,6 +58,18 @@ namespace FModel.Creator.Bases
LargeSmallImage.GetPreviewImage(this, itemDef, assetName, forceHR);
else if (export.GetExport<SoftObjectProperty>(forceHR ? "LargePreviewImage" : "SmallPreviewImage", forceHR ? "ItemDisplayAsset" : "SmallImage") is SoftObjectProperty previewImage)
LargeSmallImage.GetPreviewImage(this, previewImage);
else if (export.GetExport<ObjectProperty>("access_item") is ObjectProperty accessItem)
{
PakPackage p = Utils.GetPropertyPakPackage(accessItem.Value.Resource.OuterIndex.Resource.ObjectName.String);
if (p.HasExport() && !p.Equals(default))
{
var d = p.GetExport<UObject>();
if (d != null)
{
IconImage = new BaseIcon(d, accessItem.Value.Resource.ObjectName.String + ".uasset", false).IconImage;
}
}
}
}
/// <summary>

View File

@ -57,7 +57,7 @@ namespace PakReader.Parsers
"FontFace" => new UFontFace(this, ubulk),
"SoundWave" => new USoundWave(this, ubulk, ExportMap.Sum(e => e.SerialSize) + PackageFileSummary.TotalHeaderSize),
"StringTable" => new UStringTable(this),
"AkAudioEvent" => new UAkAudioEvent(this),
//"AkAudioEvent" => new UAkAudioEvent(this),
_ => new UObject(this),
};

View File

@ -756,7 +756,8 @@ namespace FModel.Properties {
/// Recherche une chaîne localisée semblable à • Yanteh • Maiky
///• FunGames • HYPEX ♥
///• Alexander • Netu ♥
///• SexyNutella • imatrix.
///• SexyNutella • imatrix
///• Frenzy Leaks • LlamaLeaks.
/// </summary>
public static string DonatorsFDetails {
get {

View File

@ -353,7 +353,8 @@ It's now the most used free software to leak on Fortnite.</value>
<value>• Yanteh • Maiky
• FunGames • HYPEX ♥
• Alexander • Netu ♥
• SexyNutella • imatrix</value>
• SexyNutella • imatrix
• Frenzy Leaks • LlamaLeaks</value>
<comment>Do not translate</comment>
</data>
<data name="DownloadError" xml:space="preserve">