fix: UI error class and change unreal version to 5.6
This commit is contained in:
parent
2ee75d30c4
commit
2910626a7b
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"FileVersion": 3,
|
"FileVersion": 3,
|
||||||
"EngineAssociation": "5.3",
|
"EngineAssociation": "5.6",
|
||||||
"Category": "",
|
"Category": "",
|
||||||
"Description": "",
|
"Description": "",
|
||||||
"Modules": [
|
"Modules": [
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ void AExoPlayerCharacter::CrouchingUpdate(float Alpha)
|
||||||
float CurrentCamHeight = GetCurrentEyeHeight();
|
float CurrentCamHeight = GetCurrentEyeHeight();
|
||||||
|
|
||||||
float NewHalfHeight = FMath::Lerp(
|
float NewHalfHeight = FMath::Lerp(
|
||||||
StandingHalfHeight, GetCharacterMovement()->CrouchedHalfHeight, Alpha);
|
StandingHalfHeight, GetCharacterMovement()->GetCrouchedHalfHeight(), Alpha);
|
||||||
GetCapsuleComponent()->SetCapsuleHalfHeight(NewHalfHeight);
|
GetCapsuleComponent()->SetCapsuleHalfHeight(NewHalfHeight);
|
||||||
|
|
||||||
CameraComponent->SetRelativeLocation(
|
CameraComponent->SetRelativeLocation(
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ void UUWBP_RoundProgressBar::SetPercent(float percent)
|
||||||
{
|
{
|
||||||
if (!ImageBar)
|
if (!ImageBar)
|
||||||
return;
|
return;
|
||||||
FSlateBrush brush= ImageBar->Brush;
|
FSlateBrush brush= ImageBar->GetBrush();
|
||||||
UMaterialInterface* material=Cast<UMaterialInterface>(brush.GetResourceObject());
|
UMaterialInterface* material=Cast<UMaterialInterface>(brush.GetResourceObject());
|
||||||
if (!material)
|
if (!material)
|
||||||
return;
|
return;
|
||||||
|
|
@ -27,7 +27,7 @@ void UUWBP_RoundProgressBar::SetPercent(float percent)
|
||||||
{
|
{
|
||||||
FSlateBrush newBrush= brush;
|
FSlateBrush newBrush= brush;
|
||||||
newBrush.SetResourceObject(DynamicMaterial);
|
newBrush.SetResourceObject(DynamicMaterial);
|
||||||
ImageBar->Brush = newBrush;
|
ImageBar->SetBrush(newBrush);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (DynamicMaterial)
|
if (DynamicMaterial)
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ void UWBP_PlayerUI::NativeTick(const FGeometry& MyGeometry, float InDeltaTime)
|
||||||
{
|
{
|
||||||
if (!ViewFinder)
|
if (!ViewFinder)
|
||||||
return;
|
return;
|
||||||
FSlateBrush brush= ViewFinder->Brush;
|
FSlateBrush brush= ViewFinder->GetBrush();
|
||||||
UMaterialInterface* material=Cast<UMaterialInterface>(brush.GetResourceObject());
|
UMaterialInterface* material=Cast<UMaterialInterface>(brush.GetResourceObject());
|
||||||
if (!material)
|
if (!material)
|
||||||
return;
|
return;
|
||||||
|
|
@ -147,7 +147,7 @@ void UWBP_PlayerUI::NativeTick(const FGeometry& MyGeometry, float InDeltaTime)
|
||||||
{
|
{
|
||||||
FSlateBrush newBrush= brush;
|
FSlateBrush newBrush= brush;
|
||||||
newBrush.SetResourceObject(DynamicViewFinderMaterial);
|
newBrush.SetResourceObject(DynamicViewFinderMaterial);
|
||||||
ViewFinder->Brush = newBrush;
|
ViewFinder->SetBrush(newBrush);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (DynamicViewFinderMaterial)
|
if (DynamicViewFinderMaterial)
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ public:
|
||||||
float BufAngleDiff;
|
float BufAngleDiff;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buf")
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buf")
|
||||||
TSubclassOf<UUserWidget> BufClass;
|
TSubclassOf<UUWBP_Buf> BufClass;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Ammo")
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Ammo")
|
||||||
TMap<EAmmoType, UTexture2D*> AmmoIconMap;
|
TMap<EAmmoType, UTexture2D*> AmmoIconMap;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user