From 828a3780cad6a2e435d2b9273c08ef3d42e0071d Mon Sep 17 00:00:00 2001 From: qordlsgur <127704460+qordlsgur@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:59:52 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[Modify]=20=EB=8F=84=EB=B9=84=20=EB=8C=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Client/Default/Client.vcxproj.filters | 10 ++- .../Client/Private/Dialogue_Font.cpp | 81 ++++++++++++------- Jusin154_Team3D/Client/Private/Elf.cpp | 18 ++++- .../Client/Private/NPCInteraction.cpp | 1 + Jusin154_Team3D/Client/Private/Quest_Data.cpp | 2 +- .../Client/Private/Quest_Panel.cpp | 2 +- Jusin154_Team3D/Client/Private/UI_Manager.cpp | 3 +- Jusin154_Team3D/Client/Public/Dialogue_Font.h | 2 + Jusin154_Team3D/Client/Public/Elf.h | 8 +- Jusin154_Team3D/Client/Public/UI_Manager.h | 3 +- .../Bin/Resources/Data/Dialogue/Dialogue.xml | 10 +-- .../Bin/Resources/Data/Quest/QuestData.xml | 2 +- .../Editor/Bin/Resources/Data/Stat/Stat.xml | 2 +- .../Bin/Resources/Data/UI/Spell/SpellInfo.xml | 2 +- Jusin154_Team3D/Editor/Private/UI_Manager.cpp | 3 +- Jusin154_Team3D/Engine/Private/Unit.cpp | 4 +- Jusin154_Team3D/Engine/Public/Unit.h | 2 +- 17 files changed, 102 insertions(+), 53 deletions(-) diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 9829b8e17..8ec7b45aa 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -955,9 +955,6 @@ 04.Mechanic\State\Focus\Spell_Learning - - 02.GameObjects\Environment\Prop\SkyBox\TriggerBox - 02.GameObjects\Effect\Effects\Potion\PotionScreen @@ -977,6 +974,9 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit + + 04.Mechanic\20.TriggerBox + @@ -2904,7 +2904,9 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit - + + 04.Mechanic\20.TriggerBox + diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp index 9fd67e40a..46942e414 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp @@ -67,7 +67,6 @@ void CDialogue_Font::Update(_float fTimeDelta) switch (m_iType) { case ENUM_CLASS(NPCTEXTTYPE::ENDTEXT): - //m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1); ENDText(); break; @@ -92,13 +91,13 @@ void CDialogue_Font::Update(_float fTimeDelta) case ENUM_CLASS(NPCTEXTTYPE::BROOM): m_bRace = true; m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace); - ReSet(); + ENDText(); break; case ENUM_CLASS(NPCTEXTTYPE::BATTLE): m_bBattle = true; m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle); - ReSet(); + ENDText(); break; default: @@ -344,8 +343,6 @@ void CDialogue_Font::Quest() switch (Index) { case 0: - Interact.bInteract = false; - Interact.fAlpha = 0.5f; m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); m_pCurrentDialogue[0]->Visible(Interact.bInteract); @@ -363,7 +360,7 @@ void CDialogue_Font::Quest() break; case 2: - NextText(); + Quest_Complete(); break; default: @@ -372,8 +369,18 @@ void CDialogue_Font::Quest() } -void CDialogue_Font::ReSet() +void CDialogue_Font::ENDText() { + NPCINTERACT Interact{}; + Interact.bInteract = false; + Interact.fAlpha = 0.5f; + m_pNpc->Set_NextID(m_iNextID); + m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); + m_pCurrentDialogue[0]->Visible(Interact.bInteract); + m_DialoguInfo.push_back(m_pCurrentDialogue[0]); + m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); + m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact.bInteract); m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); m_bChoiceText = false; m_bCurrentChoiceText = false; @@ -388,7 +395,42 @@ void CDialogue_Font::ReSet() m_DialoguInfo.push_back((*it)); it = m_pCurrentDialogue.erase(it); } - m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bChoiceText); + //if (m_iTextID < m_iNextID) + m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha); +} + +void CDialogue_Font::ReSet() +{ + NPCINTERACT Interact{}; + Interact.bInteract = false; + Interact.fAlpha = 0.5f; + m_pNpc->Set_NextID(m_iTextID); + m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); + m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); + m_pCurrentDialogue[0]->Visible(Interact.bInteract); + m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact.bInteract); + m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); + m_DialoguInfo.push_back(m_pCurrentDialogue[0]); + m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); + m_bChoiceText = false; + m_bCurrentChoiceText = false; + m_bRace = false; + m_bBattle = false; + vector<_int> Dummy; + m_NextLevel.swap(Dummy); + for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();) + { + (*it)->Set_Hover(false); + (*it)->Visible(false); + m_DialoguInfo.push_back((*it)); + it = m_pCurrentDialogue.erase(it); + } +} + +void CDialogue_Font::Quest_Complete() +{ + NpcNextText(); + ENDText(); } void CDialogue_Font::NextText() @@ -396,11 +438,6 @@ void CDialogue_Font::NextText() m_pCurrentDialogue[0]->Visible(false); m_DialoguInfo.push_back(m_pCurrentDialogue[0]); m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); - if (m_bChoiceText == true) - { - ReSet(); - m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1); - } NpcDialogue(); } @@ -411,21 +448,11 @@ void CDialogue_Font::NextLevel(CHOICEINFO Choice) m_iQuestID = Choice.QuestID; m_bChoiceText = true; NpcNextText(); -} -void CDialogue_Font::ENDText() -{ - NPCINTERACT Interact{}; - Interact.bInteract = false; - Interact.fAlpha = 0.8f; - m_pNpc->Set_NextID(m_iTextID); - m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact); - m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract); - m_pCurrentDialogue[0]->Visible(Interact.bInteract); - m_DialoguInfo.push_back(m_pCurrentDialogue[0]); - m_pCurrentDialogue.erase(m_pCurrentDialogue.begin()); - m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET")); - ReSet(); + if (m_iType == ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT)) + ReSet(); + else + ENDText(); } void CDialogue_Font::NextText(_int Index) diff --git a/Jusin154_Team3D/Client/Private/Elf.cpp b/Jusin154_Team3D/Client/Private/Elf.cpp index f58f70556..0a4585677 100644 --- a/Jusin154_Team3D/Client/Private/Elf.cpp +++ b/Jusin154_Team3D/Client/Private/Elf.cpp @@ -76,6 +76,18 @@ void CElf::Update(_float fTimeDelta) m_iCurrentFlow++; } + if (m_bFlow == true) + { + m_fFlowTime -= fTimeDelta; + } + + if (m_fFlowTime <= 0.f && m_bFlow == true) + { + m_bFlow = false; + m_fFlowTime = 0.f; + m_iCurrentFlow = m_iFlowIndex; + } + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); __super::Update(fTimeDelta); @@ -227,9 +239,11 @@ void CElf::Set_Target(CUnit& pTarget, CTransform& pTransform) m_fTargetDistance = XMVectorGetX(XMVector3Length(vToTargetDir)); } -void CElf::Set_Flow(_int Index) +void CElf::Set_Flow(_int Index, _float fTime) { - m_iCurrentFlow = Index; + m_iFlowIndex = Index; + m_fFlowTime = fTime; + m_bFlow = true; } _int CElf::Get_Flow() diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp index e3f09a8b8..1b197b476 100644 --- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp +++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp @@ -95,6 +95,7 @@ void CNPCInteraction::ActiveOff() void CNPCInteraction::BoxOff() { m_bBoxActive = false; + m_pBoxInfo.pOwner = nullptr; } void CNPCInteraction::NpcInfo(void* pArg) diff --git a/Jusin154_Team3D/Client/Private/Quest_Data.cpp b/Jusin154_Team3D/Client/Private/Quest_Data.cpp index a2efc7395..d4aff28b1 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Data.cpp @@ -161,7 +161,7 @@ _int CQuest_Data::Set_AcceptQuest(_int Index) return 2; } - HRESULT hr = m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast(&m_pQuestInstance)); + HRESULT hr = m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast(&m_pQuestInstance)); if (FAILED(hr)) { return -1; diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp index 6ebec47ac..e5e3810aa 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp @@ -56,7 +56,7 @@ HRESULT CQuest_Panel::Initialize(void* pArg) Set_Status(); //m_pInfoInstance->Set_AcceptQuest(0); //m_pInfoInstance->Set_AcceptQuest(1); - //m_pInfoInstance->Set_AcceptQuest(2); + m_pInfoInstance->Set_AcceptQuest(6); Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); static_cast(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); return S_OK; diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index 72340f529..8c6f554bb 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -145,6 +145,8 @@ void CUI_Manager::Canvas_Change(UI_STATE eType) static_cast(m_pNPCInteraction)->Set_Visible(false); static_cast(m_pBroom_TargetGate)->Set_Visible(false); static_cast(m_pDamage_Font)->Set_Visible(false); + m_pInfoInstance->Event_CallBack(TEXT("NPCInteractionOff")); + m_pInfoInstance->Event_CallBack(TEXT("BOXInteractionOff")); break; default: @@ -521,7 +523,6 @@ void CUI_Manager::Change_Map() void CUI_Manager::Set_Race(_bool bRace) { m_bRace = bRace; - static_cast(m_pBroom_TargetGate)->Set_Visible(bRace); } void CUI_Manager::Set_Battle(_bool bBattle) diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h index a606ac795..d5bdc5da4 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h @@ -63,6 +63,8 @@ class CDialogue_Font final : public CGameObject void SpellLearn(); void Quest(); void ReSet(); + + void Quest_Complete(); private: CInfoInstance* m_pInfoInstance = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/Elf.h b/Jusin154_Team3D/Client/Public/Elf.h index a62f64d70..e386eee38 100644 --- a/Jusin154_Team3D/Client/Public/Elf.h +++ b/Jusin154_Team3D/Client/Public/Elf.h @@ -56,8 +56,8 @@ class CElf final : public CUnit virtual _wstring Get_NpcName() override; void Set_NpcState(_int iState) { m_eNpcState = iState; } void Set_Target(CUnit& pTarget, CTransform& pTransform); - virtual void Set_Flow(_int Index); - virtual _int Get_Flow(); + virtual void Set_Flow(_int Index, _float fTime) override; + virtual _int Get_Flow() override; protected: CInfoInstance* m_pInfoInstance = { nullptr }; CCharacter_Controller* m_pCharacter_Controller = { nullptr }; @@ -82,6 +82,10 @@ class CElf final : public CUnit _float m_fInteractTime{}; _int m_eNpcState = ENUM_CLASS(ELF_STATE::END); + _int m_iFlowIndex{}; + _float m_fFlowTime{}; + _bool m_bFlow = { false }; + unordered_map<_int, _float4> m_Points; diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h index 0fa9d439b..65eceae93 100644 --- a/Jusin154_Team3D/Client/Public/UI_Manager.h +++ b/Jusin154_Team3D/Client/Public/UI_Manager.h @@ -41,7 +41,6 @@ class CUI_Manager final : public CUIObject void Add_Manager_Event(_wstring Name, function Event); void Event_Callback(_wstring Name, void* pArg = nullptr); - private: void Add_Canvas(_wstring Name, class CGameObject* pCanvas); CGameObject* Find_Canvas(const _wstring& Name); @@ -94,6 +93,8 @@ class CUI_Manager final : public CUIObject _bool m_bRace = { false }; _bool m_bBattle = { false }; + _bool m_bGate = { false }; + _float m_fGateTime{}; public: static CUI_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml index c9666f74a..60cfb9656 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml @@ -38,12 +38,12 @@ - + - + @@ -53,12 +53,8 @@ - + - - diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml index 987e7291a..13845a688 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml @@ -52,7 +52,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml index a8ad8899b..a9833238c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml @@ -5,5 +5,5 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/Spell/SpellInfo.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/Spell/SpellInfo.xml index 2f4d236b3..c50865e3e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/Spell/SpellInfo.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/Spell/SpellInfo.xml @@ -134,7 +134,7 @@ Spell_Damage="10" Spell_Cooltime="0" Duration="0" AnimNum="235" SpellInfo="마법 동물을 구출하거나 잡을 수 있는 마법 자루입니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1" Preview="0" Vidio="0" /> Date: Thu, 15 Jan 2026 14:39:50 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[Fix]=20=ED=95=84=ED=84=B0=20=ED=84=B0?= =?UTF-8?q?=EC=A7=84=EA=B1=B0=20=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jusin154_Team3D/Client/Default/Client.vcxproj.filters | 3 --- 1 file changed, 3 deletions(-) diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index f75ddb26a..c858204f5 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -2945,8 +2945,6 @@ 02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether - - 02.GameObjects\Effect\CutSceneEffect\CutScene_Lightning @@ -2973,7 +2971,6 @@ 04.Mechanic\State\State_Combat\State_Parry - 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D