KLingo Project Documentation
1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
QuestOrderWidget.cpp
이 파일의 문서화 페이지로 가기
1
// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3
4
#include "
QuestOrderWidget.h
"
5
6
#include "
GameLogging.h
"
7
#include "
QuestOrderSlotWidget.h
"
8
#include "Components/ProgressBar.h"
9
10
void
UQuestOrderWidget::NativeOnInitialized
()
11
{
12
Super::NativeOnInitialized();
13
14
ProgressBar_Quest
->SetPercent(1.f/4);
15
Slot_R
->PlayQuestSlot();
16
Slot_R
->SetQuestType(
'R'
);
17
Slot_L
->SetQuestType(
'L'
);
18
Slot_S
->SetQuestType(
'S'
);
19
Slot_W
->SetQuestType(
'W'
);
20
}
21
22
void
UQuestOrderWidget::UpdateQuestOrder
(
const
FString& inQuestOrder)
23
{
24
// 현재 상황
25
PRINTLOG
(TEXT(
"%s"
), *inQuestOrder);
26
27
TArray<FString> orders;
28
inQuestOrder.ParseIntoArray(orders, TEXT(
" "
));
29
30
// Slot 갱신
31
if
(orders[
CurrentSlotIndex
] ==
"V"
)
32
{
33
switch
(
CurrentSlotIndex
)
34
{
35
case
0:
36
Slot_R
->FinishQuestSlot();
37
Slot_L
->PlayQuestSlot();
38
break
;
39
case
1:
40
Slot_L
->FinishQuestSlot();
41
Slot_S
->PlayQuestSlot();
42
break
;
43
case
2:
44
Slot_S
->FinishQuestSlot();
45
Slot_W
->PlayQuestSlot();
46
break
;
47
case
3:
48
Slot_W
->FinishQuestSlot();
49
break
;
50
default
:
51
break
;
52
}
53
54
CurrentSlotIndex
++;
55
ProgressBar_Quest
->SetPercent((
float
)(
CurrentSlotIndex
+ 1) / orders.Num());
56
}
57
}
GameLogging.h
YiSan 전반에서 사용하는 공용 인터페이스를 선언합니다.
PRINTLOG
#define PRINTLOG(fmt,...)
Definition
GameLogging.h:30
QuestOrderSlotWidget.h
QuestOrderWidget.h
UQuestOrderWidget::Slot_W
TObjectPtr< class UQuestOrderSlotWidget > Slot_W
Definition
QuestOrderWidget.h:37
UQuestOrderWidget::ProgressBar_Quest
TObjectPtr< class UProgressBar > ProgressBar_Quest
Definition
QuestOrderWidget.h:25
UQuestOrderWidget::UpdateQuestOrder
void UpdateQuestOrder(const FString &inQuestOrder)
Definition
QuestOrderWidget.cpp:22
UQuestOrderWidget::NativeOnInitialized
virtual void NativeOnInitialized() override
Definition
QuestOrderWidget.cpp:10
UQuestOrderWidget::Slot_R
TObjectPtr< class UQuestOrderSlotWidget > Slot_R
Definition
QuestOrderWidget.h:28
UQuestOrderWidget::CurrentSlotIndex
int32 CurrentSlotIndex
Definition
QuestOrderWidget.h:40
UQuestOrderWidget::Slot_L
TObjectPtr< class UQuestOrderSlotWidget > Slot_L
Definition
QuestOrderWidget.h:31
UQuestOrderWidget::Slot_S
TObjectPtr< class UQuestOrderSlotWidget > Slot_S
Definition
QuestOrderWidget.h:34
Source
Onepiece
UI
Private
QuestOrderWidget.cpp
생성시간 : 금 1월 9 2026 00:25:57, 프로젝트명 : KLingo Project Documentation, 생성자 :
1.9.8