Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
StreamingProgressWidget.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 "Blueprint/UserWidget.h"
7#include "StreamingProgressWidget.generated.h"
8
9class UTextBlock;
10class UCardIcon;
11class UCardWidget;
12class USituationBase;
13class UTexture2D;
14class UWrapBox;
18UCLASS()
19class CK_UE_API UStreamingProgressWidget : public UUserWidget
20{
21 GENERATED_BODY()
22
23public:
24 // 이미 장착한 상황들로 표시를 처음부터 다시 그림, 선택 팝업은 고를 때마다 새로 만들어지므로, 누적은 장착 목록을 원본으로 삼아야 유지.
25 void RebuildFromSituations(const TArray<USituationBase*>& Situations);
26
27 //새로 추가. (내부적으론 미리 만들어진 위젯 활성화)
28 void AddIcon(const UCardWidget* Card);
29
30 //최근 것부터 제거.
31 void RemoveIcon();
32
33 // 플레이어 레벨 설정.
34 void SetPlayerLevel(const int32 Level);
35
36protected:
37 // 미리 만들어 둔 아이콘을 모두 끈 상태에서 시작한다.
38 virtual void NativeConstruct() override;
39
40 // 켜둔 칸을 모두 끄고 처음부터 다시 채울 준비를 한다.
41 void ResetIcons();
42
43 // 다음 빈 칸을 켜고 텍스처를 꽂는다. 남은 칸이 없으면 경고만 남기고 넘어간다.
44 void ActivateNextIcon(UTexture2D* IconTexture);
45
46protected:
47 UPROPERTY(BlueprintReadOnly, Category = "UI|Progress", meta = (BindWidget))
48 TObjectPtr<UWrapBox> IconContainer;
49
50 UPROPERTY(BlueprintReadOnly, Category = "UI|Progress", meta = (BindWidget))
51 TObjectPtr<UTextBlock> LevelText;
52
53protected:
54 int32 ActivatedIconIndex = 0;
55};
Definition CardIcon.h:16
Definition CardWidget.h:31
Definition SituationBase.h:31
Definition StreamingProgressWidget.h:20