mirror of
https://github.com/4sval/FModel.git
synced 2026-04-18 15:47:43 -05:00
Made CheckGameplayTags in BaseIcon virtual and protected
This commit is contained in:
parent
8a41247acb
commit
b6bba28b6d
|
|
@ -94,15 +94,7 @@ public class BaseCommunity : BaseIcon
|
|||
return new[] { ret };
|
||||
}
|
||||
|
||||
private void CheckGameplayTags(FInstancedStruct[] dataList)
|
||||
{
|
||||
if (dataList.FirstOrDefault(d => d.NonConstStruct?.TryGetValue(out FGameplayTagContainer _, "Tags") ?? false) is { NonConstStruct: not null } tags)
|
||||
{
|
||||
CheckGameplayTags(tags.NonConstStruct.Get<FGameplayTagContainer>("Tags"));
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckGameplayTags(FGameplayTagContainer gameplayTags)
|
||||
protected override void CheckGameplayTags(FGameplayTagContainer gameplayTags)
|
||||
{
|
||||
if (_design == null) return;
|
||||
if (_design.DrawSource)
|
||||
|
|
|
|||
|
|
@ -265,14 +265,15 @@ public class BaseIcon : UCreator
|
|||
return Utils.RemoveHtmlTags(string.Format(introduced, d));
|
||||
}
|
||||
|
||||
private void CheckGameplayTags(FInstancedStruct[] dataList)
|
||||
protected void CheckGameplayTags(FInstancedStruct[] dataList)
|
||||
{
|
||||
if (dataList.FirstOrDefault(d => d.NonConstStruct?.TryGetValue(out FGameplayTagContainer _, "Tags") ?? false) is { NonConstStruct: not null } tags)
|
||||
{
|
||||
CheckGameplayTags(tags.NonConstStruct.Get<FGameplayTagContainer>("Tags"));
|
||||
}
|
||||
}
|
||||
private void CheckGameplayTags(FGameplayTagContainer gameplayTags)
|
||||
|
||||
protected virtual void CheckGameplayTags(FGameplayTagContainer gameplayTags)
|
||||
{
|
||||
if (gameplayTags.TryGetGameplayTag("Cosmetics.Source.", out var source))
|
||||
CosmeticSource = source.Text["Cosmetics.Source.".Length..];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user