Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
PlayerExpBarWidget.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UI/UserWidgetBase.h"
7#include "PlayerExpBarWidget.generated.h"
8
10class UProgressBar;
11class UTextBlock;
12
16UCLASS()
17class CK_UE_API UPlayerExpBarWidget : public UUserWidgetBase
18{
19 GENERATED_BODY()
20
21protected:
22 virtual void NativeConstruct() override;
23 virtual void NativeDestruct() override;
24
25protected:
26 void HandleExpChanged(float CurrentExp, float RequiredExp);
27 void HandleLevelUp(int32 NewLevel);
28
29 AMainPlayerState* ResolvePlayerState() const;
30
31protected:
32 // 레벨업 연출은 BP 에서 처리한다.
33 UFUNCTION(BlueprintImplementableEvent, Category = "UI|Exp")
34 void OnLevelUpPlayed(int32 NewLevel);
35
36protected:
37 UPROPERTY(BlueprintReadOnly, Category = "UI|Exp", meta = (BindWidget))
38 TObjectPtr<UProgressBar> ExpProgressBar;
39
40 UPROPERTY(BlueprintReadOnly, Category = "UI|Exp", meta = (BindWidgetOptional))
41 TObjectPtr<UTextBlock> LevelText;
42
43 UPROPERTY(BlueprintReadOnly, Category = "UI|Exp", meta = (BindWidgetOptional))
44 TObjectPtr<UTextBlock> ExpText;
45};
Definition MainPlayerState.h:23
Definition PlayerExpBarWidget.h:18
Definition UserWidgetBase.h:33