forked from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from kookmin-sw/feature/CSS-353
- Loading branch information
Showing
8 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
Binary file modified
BIN
+5.47 KB
(120%)
capstone_2024_20/Content/GameObjects/UpgradeNpc/BP_UpgradeObject.uasset
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+27.4 KB
capstone_2024_20/Content/WidgetBlueprints/UpgradeNPC_NamePlateWidget.uasset
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
capstone_2024_20/Source/capstone_2024_20/UpgradeNPCWidgetComponent.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
|
||
#include "UpgradeNPCWidgetComponent.h" | ||
#include "UpgradeNameWidget.h" | ||
|
||
UUpgradeNPCWidgetComponent::UUpgradeNPCWidgetComponent() | ||
{ | ||
PrimaryComponentTick.bCanEverTick = true; | ||
static ConstructorHelpers::FClassFinder<UUserWidget> | ||
BP_WidgetFinder(TEXT("/Script/UMGEditor.WidgetBlueprint'/Game/WidgetBlueprints/UpgradeNPC_NamePlateWidget.UpgradeNPC_NamePlateWidget_C'")); | ||
|
||
if (BP_WidgetFinder.Succeeded()) | ||
{ | ||
SetWidgetClass(BP_WidgetFinder.Class); | ||
SetWidgetSpace(EWidgetSpace::Screen); | ||
} | ||
} | ||
|
||
void UUpgradeNPCWidgetComponent::BeginPlay() | ||
{ | ||
Super::BeginPlay(); | ||
NameWidget = Cast<UUpgradeNameWidget>(GetWidget()); | ||
} |
26 changes: 26 additions & 0 deletions
26
capstone_2024_20/Source/capstone_2024_20/UpgradeNPCWidgetComponent.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "UpgradeNameWidget.h" | ||
#include "Components/WidgetComponent.h" | ||
#include "UpgradeNPCWidgetComponent.generated.h" | ||
|
||
/** | ||
* | ||
*/ | ||
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent)) | ||
class CAPSTONE_2024_20_API UUpgradeNPCWidgetComponent : public UWidgetComponent | ||
{ | ||
GENERATED_BODY() | ||
public: | ||
UUpgradeNPCWidgetComponent(); | ||
|
||
UPROPERTY() | ||
UUpgradeNameWidget* NameWidget; | ||
|
||
protected: | ||
virtual void BeginPlay() override; | ||
|
||
}; |
5 changes: 5 additions & 0 deletions
5
capstone_2024_20/Source/capstone_2024_20/UpgradeNameWidget.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
|
||
#include "UpgradeNameWidget.h" | ||
|
17 changes: 17 additions & 0 deletions
17
capstone_2024_20/Source/capstone_2024_20/UpgradeNameWidget.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "Blueprint/UserWidget.h" | ||
#include "UpgradeNameWidget.generated.h" | ||
|
||
/** | ||
* | ||
*/ | ||
UCLASS() | ||
class CAPSTONE_2024_20_API UUpgradeNameWidget : public UUserWidget | ||
{ | ||
GENERATED_BODY() | ||
|
||
}; |