diff --git a/Exo.uproject b/Exo.uproject index f0d12cf..c0f3f98 100644 --- a/Exo.uproject +++ b/Exo.uproject @@ -1,6 +1,6 @@ { "FileVersion": 3, - "EngineAssociation": "5.3", + "EngineAssociation": "5.6", "Category": "", "Description": "", "Modules": [ diff --git a/Source/Exo/Private/Characters/ExoPlayerCharacter.cpp b/Source/Exo/Private/Characters/ExoPlayerCharacter.cpp index 6547be9..4b385cd 100644 --- a/Source/Exo/Private/Characters/ExoPlayerCharacter.cpp +++ b/Source/Exo/Private/Characters/ExoPlayerCharacter.cpp @@ -108,7 +108,7 @@ void AExoPlayerCharacter::CrouchingUpdate(float Alpha) float CurrentCamHeight = GetCurrentEyeHeight(); float NewHalfHeight = FMath::Lerp( - StandingHalfHeight, GetCharacterMovement()->CrouchedHalfHeight, Alpha); + StandingHalfHeight, GetCharacterMovement()->GetCrouchedHalfHeight(), Alpha); GetCapsuleComponent()->SetCapsuleHalfHeight(NewHalfHeight); CameraComponent->SetRelativeLocation( diff --git a/Source/Exo/Private/Widget/UWBP_RoundProgressBar.cpp b/Source/Exo/Private/Widget/UWBP_RoundProgressBar.cpp index 0404096..0971ee7 100644 --- a/Source/Exo/Private/Widget/UWBP_RoundProgressBar.cpp +++ b/Source/Exo/Private/Widget/UWBP_RoundProgressBar.cpp @@ -18,7 +18,7 @@ void UUWBP_RoundProgressBar::SetPercent(float percent) { if (!ImageBar) return; - FSlateBrush brush= ImageBar->Brush; + FSlateBrush brush= ImageBar->GetBrush(); UMaterialInterface* material=Cast(brush.GetResourceObject()); if (!material) return; @@ -27,7 +27,7 @@ void UUWBP_RoundProgressBar::SetPercent(float percent) { FSlateBrush newBrush= brush; newBrush.SetResourceObject(DynamicMaterial); - ImageBar->Brush = newBrush; + ImageBar->SetBrush(newBrush); } } if (DynamicMaterial) diff --git a/Source/Exo/Private/Widget/WBP_PlayerUI.cpp b/Source/Exo/Private/Widget/WBP_PlayerUI.cpp index d7cfdc6..b409f5e 100644 --- a/Source/Exo/Private/Widget/WBP_PlayerUI.cpp +++ b/Source/Exo/Private/Widget/WBP_PlayerUI.cpp @@ -138,7 +138,7 @@ void UWBP_PlayerUI::NativeTick(const FGeometry& MyGeometry, float InDeltaTime) { if (!ViewFinder) return; - FSlateBrush brush= ViewFinder->Brush; + FSlateBrush brush= ViewFinder->GetBrush(); UMaterialInterface* material=Cast(brush.GetResourceObject()); if (!material) return; @@ -147,7 +147,7 @@ void UWBP_PlayerUI::NativeTick(const FGeometry& MyGeometry, float InDeltaTime) { FSlateBrush newBrush= brush; newBrush.SetResourceObject(DynamicViewFinderMaterial); - ViewFinder->Brush = newBrush; + ViewFinder->SetBrush(newBrush); } } if (DynamicViewFinderMaterial) diff --git a/Source/Exo/Public/Widget/WBP_PlayerUI.h b/Source/Exo/Public/Widget/WBP_PlayerUI.h index a2c089a..0df2836 100644 --- a/Source/Exo/Public/Widget/WBP_PlayerUI.h +++ b/Source/Exo/Public/Widget/WBP_PlayerUI.h @@ -57,7 +57,7 @@ public: float BufAngleDiff; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buf") - TSubclassOf BufClass; + TSubclassOf BufClass; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Ammo") TMap AmmoIconMap;