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