diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index b31d18630..32250eb56 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -913,6 +913,9 @@
02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit
+
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop
diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
index 6fd173197..970fd4077 100644
--- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
@@ -55,12 +55,16 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta)
break;
case ENUM_CLASS(RACE_STATE::END):
{
- for (auto& racer : m_Racers) {
- if (racer.pAI) {
+ for (auto& racer : m_Racers)
+ {
+ if (racer.pAI)
+ {
racer.pAI->Get_Broom()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
}
- if (racer.pRacer) {
- if (m_pGameInstance->Key_Up(DIK_ESCAPE)) {
+ if (racer.pRacer)
+ {
+ if (m_pGameInstance->Key_Up(DIK_ESCAPE))
+ {
m_bRaceEnd = true;
}
}
@@ -275,7 +279,24 @@ void CBroomRaceManager::Describe_Entity()
// racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
// racer.pRacer->Get_Broom()->Set_Move(false);
//}
+ ////if (GUI::Button("Race Start"))
+ ////{
+ //m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
+ //const _float SPAWN_DISTANCE = 80.f;
+ //if (FAILED(Load_RaceRing()))
+ //{
+ // MSG_BOX("Failed Load RaceRing");
+ //}
+ //CBroomRacerAI::RacerDesc Desc = {};
+ //for (_uint i = 1; i < 4; i++)
+ //{
+ // Desc.pRacerManager = this;
+ // Desc.iIndex = i;
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc)))
+ // return;
+ //}
+ //m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo();
//m_bRaceReady = true;
//}
@@ -288,6 +309,65 @@ void CBroomRaceManager::Describe_Entity()
// //}
//}
}
+ //for (auto& racer : m_Racers)
+ //{
+ // CTransform* pRingTransform =
+ // m_pRaceRings[0]->Get_Component();
+
+ // _vector ringPos = pRingTransform->Get_State(STATE::POSITION);
+ // _vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
+ // ringLook = XMVector3Normalize(ringLook);
+
+ // _vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
+
+
+ // if (racer.pAI)
+ // {
+ // CTransform* pTransform =
+ // racer.pAI->Get_Component();
+ // _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
+ // spawnPos.m128_f32[0] += fRand;
+
+ // pTransform->Set_State(STATE::POSITION, spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+
+ // racer.pAI->Get_Broom()->Set_Move(false);
+ // }
+ // else if (racer.pRacer)
+ // {
+ // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
+ // pCharacter->Set_Position(spawnPos);
+ // CTransform* pTransform = racer.pRacer->Get_Component();
+
+ // // pTransform->Set_State(STATE::POSITION, spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+ // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
+ // racer.pRacer->Get_Broom()->Set_Move(false);
+ // }
+
+ // else if (racer.pRacer)
+ // {
+ // CTransform* pTransform =
+ // racer.pRacer->Get_Component();
+ // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
+ // pCharacter->Set_Position(spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+ // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
+ // racer.pRacer->Get_Broom()->Set_Move(false);
+ // }
+
+
+ // m_bRaceReady = true;
+ // //}
+ // //if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
+ // //{
+ // // /*if (GUI::Button("Countdown"))
+ // // {*/
+ // // m_pInfoInstance->Event_CallBack(TEXT("Ready_Race"));
+ // // m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN);
+ // // //}
+ // //}
+ //}
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Broom_Exit.cpp b/Jusin154_Team3D/Client/Private/Broom_Exit.cpp
index 0b022ea0a..550811bca 100644
--- a/Jusin154_Team3D/Client/Private/Broom_Exit.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom_Exit.cpp
@@ -198,7 +198,7 @@ HRESULT CBroom_Exit::Ready_Components(void* pArg)
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Space"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Esc"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp b/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp
index 444e91da7..474cab4dd 100644
--- a/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp
@@ -51,9 +51,14 @@ void CBroom_TargetGate::Update(_float fTimeDelta)
m_fSize = _float3(45.f, 45.f, 1.f);
m_vPlayerPos = m_pInfoInstance->Get_PalyerPos();
+
if (m_vActive == true)
{
- m_Distance = to_wstring(_int(floor(XMVectorGetX(XMVector3Length(XMVectorSubtract(XMLoadFloat4(&m_vTargetPos), XMLoadFloat4(&m_vPlayerPos)))))));
+ _vector Target = XMLoadFloat4(&m_vTargetPos);
+ _vector PlayerPos = XMLoadFloat4(&m_vPlayerPos);
+ _vector Dir = XMVectorSubtract(Target, PlayerPos);
+ _float Dist = XMVectorGetX(XMVector3Length(Dir));
+ m_Distance = to_wstring(_int(Dist));
}
}
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
index b06933c66..c1345d333 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
@@ -51,7 +51,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
const char* text = pLine->Attribute("Text");
if (text) line.pText = CMyTools::ToWstring(text);
- pLine->QueryIntAttribute("NextText", &line.NextTextID);
+ pLine->QueryIntAttribute("NextID", &line.NextTextID);
// 선택지 처리
tinyxml2::XMLElement* pChoice = pLine->FirstChildElement("Choice");
@@ -64,7 +64,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
const char* choiceText = pChoice->Attribute("Text");
if (choiceText) choice.pText = CMyTools::ToWstring(choiceText);
- pChoice->QueryIntAttribute("NextText", &choice.NextTypeID);
+ pChoice->QueryIntAttribute("NextID", &choice.NextTypeID);
line.ChoiceInfo.push_back(choice);
pChoice = pChoice->NextSiblingElement("Choice");
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
index e66123969..f984a891d 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
@@ -61,6 +61,8 @@ void CDialogue_Font::Update(_float fTimeDelta)
if (m_bCurrentInteract == true)
{
+ _int a = 10;
+
if (m_bChoiceText == true)
{
switch (m_iType)
@@ -72,18 +74,20 @@ void CDialogue_Font::Update(_float fTimeDelta)
CHoice();
break;
case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT):
-
+ a = 10;
break;
case ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT):
-
+ Quest();
break;
case ENUM_CLASS(NPCTEXTTYPE::SPELLLEAN):
-
+ a = 10;
break;
case ENUM_CLASS(NPCTEXTTYPE::BROOM):
+ m_bRace = true;
+ m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace);
NextText();
break;
default:
@@ -281,10 +285,27 @@ void CDialogue_Font::SpellLearn()
{
}
+void CDialogue_Font::Quest()
+{
+ m_pInfoInstance->Set_AcceptQuest(m_iNextID);
+ _bool Interact = false;
+ m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
+ m_pCurrentDialogue[0]->Set_Hover(Interact);
+ m_pCurrentDialogue[0]->Visible(Interact);
+ m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
+ m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
+ if (m_bChoiceText == true)
+ {
+ m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
+ ReSet();
+ }
+}
+
void CDialogue_Font::ReSet()
{
m_bChoiceText = false;
m_bCurrentChoiceText = false;
+ m_bRace = false;
vector<_int> Dummy;
m_NextLevel.swap(Dummy);
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
index e440b3854..489588548 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
@@ -88,11 +88,11 @@ void CDialogue_Panel::Choice_Slot(CHOICEINFO Choice)
break;
case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT):
-
+ m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice);
break;
case ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT):
-
+ m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice);
break;
case ENUM_CLASS(NPCTEXTTYPE::SPELLLEAN):
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 212b66d45..62ae635e2 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -110,7 +110,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 나
- m_isActiveEffectCreate = false;
+ m_isActiveEffectCreate = true;
m_isActiveMonsterEffectCreate = false;
#endif //
#endif
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index a4a85b31a..0c6bbbfcd 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -231,49 +231,12 @@ void CInfoInstance::Key_Input(_uint Input)
case ENUM_CLASS(KEYINPUT::INPUT_4):
Event_CallBack(TEXT("Spell"), &m_eInput);
break;
- //case ENUM_CLASS(KEYINPUT::INPUT_T):
- // if (m_eUI_State == UI_STATE::GAMEPLAYER)
- // {
- // m_eUI_State = UI_STATE::SPELL;
- // Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- // }
- // else if (m_eUI_State == UI_STATE::SPELL)
- // {
- // m_eUI_State = UI_STATE::GAMEPLAYER;
- // Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- // }
- // break;
case ENUM_CLASS(KEYINPUT::INPUT_X):
Event_CallBack(TEXT("Ancient_Magic_Throw"));
break;
case ENUM_CLASS(KEYINPUT::INPUT_G):
Event_CallBack(TEXT("Use_Potion"));
break;
- /*case ENUM_CLASS(KEYINPUT::INPUT_TAB):
- if (m_eUI_State == UI_STATE::GAMEPLAYER)
- {
- m_eUI_State = UI_STATE::QUEST;
- Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- }
- else if (m_eUI_State == UI_STATE::QUEST)
- {
- m_eUI_State = UI_STATE::GAMEPLAYER;
- Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- }
- break;
- case ENUM_CLASS(KEYINPUT::INPUT_ESPACE):
- if (m_eUI_State == UI_STATE::GAMEPLAYER)
- {
- m_eUI_State = UI_STATE::SPELLNEARN;
- Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- }
- else if (m_eUI_State == UI_STATE::SPELLNEARN)
- {
- m_eUI_State = UI_STATE::GAMEPLAYER;
- Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- }
- break;*/
-
default:
break;
}
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 205df8daf..50c871951 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -62,7 +62,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
m_isDay = true;
#endif //
#ifdef 나
- m_isDay = true;
+ m_isDay = false;
#endif //
#endif // _DEBUG
@@ -289,9 +289,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
// >> M A P Configuration <<
// 맵 로드할지 안할지 bool 설정
// ---------------------------------
- _bool isReady_Background = { true };
- _bool isReady_Hogsmeade = { true };
- _bool isReady_Hogwart = { true };
+ _bool isReady_Background = { false };
+ _bool isReady_Hogsmeade = { false };
+ _bool isReady_Hogwart = { false };
#ifdef _DEBUG
#ifdef gimch
@@ -315,8 +315,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Hogwart = false;
#endif //
#ifdef 나
- isReady_Background = true;
- isReady_Hogsmeade = true;
+ isReady_Background = false;
+ isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 584b8b796..80d7cb02d 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -435,9 +435,10 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_Monster = true;
#endif //
#ifdef 나
- isLoad_Background = true;
- isLoad_Hogwart = true;
- isLoad_UI_SEQUANTIAL = false;
+ isLoad_Background = false;
+ isLoad_Hogwart = false;
+ isLoad_UI_SEQUANTIAL = true;
+ isLoad_Monster = true;
#endif //
#ifdef Bin
isLoad_Background = false;
diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
index d3154d442..a911000ca 100644
--- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
+++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
@@ -100,7 +100,7 @@ void CNPCInteraction::NpcInfo(void* pArg)
m_pInfo.fNPCPosition = Info->fNPCPosition;
_vector MonsterPos = static_cast(Info->pOwner)->Get_WorldPostion();
- _vector HeadPos = MonsterPos + XMVectorSet(0.5f, 2.f, 0.f, 0.f);
+ _vector HeadPos = MonsterPos + XMVectorSet(0.f, 2.f, 0.f, 0.f);
XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos);
}
@@ -109,7 +109,7 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta)
if (m_pInfo.pOwner != nullptr)
{
_vector MonsterPos = static_cast(m_pInfo.pOwner)->Get_WorldPostion();
- _vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.5f, 2.f, 0.f, 0.f));
+ _vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.f, 2.f, 0.f, 0.f));
XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos);
_vector ScreenPos = XMVector3Project(
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index d03be5d8a..aad1467af 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -116,7 +116,7 @@ HRESULT CPlayer::Initialize(void* pArg)
// UI 연동 추가
m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
- m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
m_bAI = false;
diff --git a/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp b/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp
index 9c413d948..d0fdd0833 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp
@@ -3,7 +3,6 @@
#include "Quest_Canvas.h"
#include "GameInstance.h"
#include "Quest_Panel.h"
-#include "InfoInstance.h"
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CCanvasObject(pDevice, pContext)
@@ -11,8 +10,7 @@ CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
}
CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
- :CCanvasObject(rhs),
- m_pInfoInstance(CInfoInstance::GetInstance())
+ :CCanvasObject(rhs)
{
}
@@ -43,9 +41,6 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
return E_FAIL;
}
Visible(false);
- m_pInfoInstance->Set_AcceptQuest(0);
- m_pInfoInstance->Set_AcceptQuest(1);
- m_pInfoInstance->Set_AcceptQuest(2);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Quest_Data.cpp b/Jusin154_Team3D/Client/Private/Quest_Data.cpp
index 6e850b057..70959070d 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Data.cpp
@@ -61,8 +61,9 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
pObjective->QueryIntAttribute("Clear", &Clear);
obj.bClear = Clear != 0;
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
- pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
+ obj.pQuestInfo = CMyTools::ToWstring(pObjective->Attribute("QuestInfo"));
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
+ pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
quest.ObjectiveInfo.push_back(obj);
diff --git a/Jusin154_Team3D/Client/Private/Quest_Info.cpp b/Jusin154_Team3D/Client/Private/Quest_Info.cpp
index c929b94de..50bee1036 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Info.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Info.cpp
@@ -98,6 +98,13 @@ void CQuest_Info::Update(_float fTimeDelta)
m_fAlpha = 0.f;
}
}
+
+ if (m_iCurrentIndex != m_iQuest_Index)
+ {
+ Y(m_fOriginPerviewSize + (m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size() * 50.f));
+ m_iCurrentIndex = m_iQuest_Index;
+ }
+
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -129,9 +136,14 @@ HRESULT CQuest_Info::Render()
return E_FAIL;
}
- if (m_iQuest_Index != 0)
+ if (m_iQuest_Index != -1)
{
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+
+ for (_int i = 0; i < m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size(); ++i)
+ {
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY + 100 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+ }
}
return S_OK;
@@ -235,6 +247,15 @@ void CQuest_Info::Set_Hover(void* pArg)
Visible(true);
}
+void CQuest_Info::Y(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+
+ _float Delta = fSizeY - m_fOriginPerviewSize;
+
+ m_fY = m_fOrigin_Position.y - (Delta * 0.5f);
+}
+
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Info* pInstance = new CQuest_Info(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp
index b2c7954ea..890dae0b8 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp
@@ -129,7 +129,7 @@ HRESULT CQuest_Info_Header::Render()
return E_FAIL;
}
- if (m_iQuest_Index != 0)
+ if (m_iQuest_Index != -1)
{
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str(), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
index b3a5ebf2f..e842d8608 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
@@ -8,6 +8,7 @@
#include "Quest_Data.h"
#include "Quest_Slot.h"
#include "Quest_Status.h"
+#include "InfoInstance.h"
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -15,7 +16,8 @@ CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
}
CQuest_Panel::CQuest_Panel(const CQuest_Panel& rhs)
- :CPanelObject(rhs)
+ :CPanelObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -52,6 +54,9 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
Visible(true);
ElementAllVisible(true);
Set_Status();
+ //m_pInfoInstance->Set_AcceptQuest(0);
+ //m_pInfoInstance->Set_AcceptQuest(1);
+ //m_pInfoInstance->Set_AcceptQuest(2);
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/Quest_Slot.cpp b/Jusin154_Team3D/Client/Private/Quest_Slot.cpp
index 11eba6548..8ad76355c 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Slot.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Slot.cpp
@@ -105,7 +105,6 @@ void CQuest_Slot::Update(_float fTimeDelta)
static_cast(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_Info);
-
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -154,7 +153,7 @@ void CQuest_Slot::Font_Size()
{
for (_int i = 0; i < m_iQuestCount; ++i)
{
- m_fFontY = 190 + i * 85.f;
+ m_fFontY = Get_SlotY(i);
if (m_iIndex == -1)
{
m_Fonts[i].pFontSizeName = TEXT("Font_size20");
@@ -183,7 +182,7 @@ void CQuest_Slot::Font_Setting(_int Index)
for (_int i = 0; i < Index; ++i)
{
- m_fFontY = 190 + i * 85.f;
+ m_fFontY = Get_SlotY(i);
Fonts.pFontSizeName = TEXT("Font_size20");
Fonts.pQuestName = m_pInfoInstance->Get_Quest(m_Info.iQuestCategory, i).pQuestName.c_str();
Fonts.m_fFontSize = _float2(m_fFontX + m_fX, m_fFontY - m_fY);
@@ -196,15 +195,17 @@ _int CQuest_Slot::Mousechack(POINT Mouse)
{
for (_int i = 0; i < m_iQuestCount; ++i)
{
+ _float SlotY = m_fPositionY - (i * m_fOffSetY);
+
RECT Box = {
long(m_fPositionX - m_fSizeX * 0.5f),
- long((m_fPositionY - (i * m_fOffSetY)) - m_fSizeY * 0.5f),
+ long(SlotY - m_fSizeY * 0.5f),
long(m_fPositionX + m_fSizeX * 0.5f),
- long((m_fPositionY + (i * m_fOffSetY)) + m_fSizeY * 0.5f) };
+ long(SlotY + m_fSizeY * 0.5f)
+ };
if (PtInRect(&Box, Mouse))
{
-
return i;
}
}
@@ -212,6 +213,11 @@ _int CQuest_Slot::Mousechack(POINT Mouse)
return -1;
}
+_float CQuest_Slot::Get_SlotY(_int iIndex)
+{
+ return 190 + (iIndex * m_fOffSetY);
+}
+
_vector CQuest_Slot::Get_WorldPostion()
{
return m_pTransformCom->Get_State(STATE::POSITION);
@@ -320,11 +326,11 @@ void CQuest_Slot::Hover()
Mouse.x = _long(fMouse.x);
Mouse.y = _long(fMouse.y);
- m_iIndex = Mousechack(Mouse);
-
+ m_Info.iQuestIndex = m_iIndex = Mousechack(Mouse);
+
if (m_iIndex != m_iPrevIndex)
{
- m_pVIBufferCom->Set_Hover(m_iIndex);
+ //m_pVIBufferCom->Set_Hover(m_iIndex);
Font_Size();
m_iPrevIndex = m_iIndex;
}
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 7b77b206e..863d7b5bf 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -59,10 +59,12 @@ HRESULT CUI_Manager::Initialize(void* pArg)
m_fAlpha = 0.f;
m_fAlphaTime = 1.f;
m_fSortZ = 0.f;
+ m_bActive = false;
m_pInfoInstance->Set_UISTATE(m_eType);
m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); });
m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); });
m_pInfoInstance->Add_Event(TEXT("UIManagerFadeIn"), [this](void* p) {this->Set_Fade(); });
+ m_pInfoInstance->Add_Event(TEXT("RACEREADY"), [this](void* p) {this->Set_Race(*reinterpret_cast<_bool*>(p)); });
return S_OK;
}
@@ -139,6 +141,7 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
return;
}
m_pGameInstance->Toggle_MouseCenter();
+ m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType);
}
void CUI_Manager::Clear_Canvas()
@@ -175,6 +178,7 @@ void CUI_Manager::Update(_float fTimeDelta)
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
+
if (m_pGameInstance->Key_Down(DIK_T))
{
m_fAlphaVelue = 1.f;
@@ -183,45 +187,49 @@ void CUI_Manager::Update(_float fTimeDelta)
else if (m_eType == UI_STATE::SPELL)
Canvas_Change(UI_STATE::GAMEPLAYER);
}
+
- if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::QUEST)
+ if (m_bRace == false)
{
- if (m_pGameInstance->Key_Down(DIK_TAB))
+ if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::QUEST)
{
- m_fAlphaVelue = 1.f;
- if (m_bActive == false)
+ if (m_pGameInstance->Key_Down(DIK_TAB))
{
- m_bActive = true;
- m_bAlphaZero = true;
- if (m_eType == UI_STATE::GAMEPLAYER)
+ m_fAlphaVelue = 1.f;
+ if (m_bActive == false)
{
- m_eType = UI_STATE::QUEST;
+ m_bActive = true;
+ m_bAlphaZero = true;
+ if (m_eType == UI_STATE::GAMEPLAYER)
+ {
+ m_eType = UI_STATE::QUEST;
- }
- else if (m_eType == UI_STATE::QUEST)
- {
- m_eType = UI_STATE::GAMEPLAYER;
+ }
+ else if (m_eType == UI_STATE::QUEST)
+ {
+ m_eType = UI_STATE::GAMEPLAYER;
+ }
}
}
}
- }
- if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::SPELLLNEARN)
- {
- if (m_pGameInstance->Key_Down(DIK_ESCAPE))
+ if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::SPELLLNEARN)
{
- m_fAlphaVelue = 1.f;
- if (m_bActive == false)
+ if (m_pGameInstance->Key_Down(DIK_ESCAPE))
{
- m_bActive = true;
- m_bAlphaZero = true;
- if (m_eType == UI_STATE::GAMEPLAYER)
+ m_fAlphaVelue = 1.f;
+ if (m_bActive == false)
{
- m_eType = UI_STATE::SPELLLNEARN;
- }
- else if (m_eType == UI_STATE::SPELLLNEARN)
- {
- m_eType = UI_STATE::GAMEPLAYER;
+ m_bActive = true;
+ m_bAlphaZero = true;
+ if (m_eType == UI_STATE::GAMEPLAYER)
+ {
+ m_eType = UI_STATE::SPELLLNEARN;
+ }
+ else if (m_eType == UI_STATE::SPELLLNEARN)
+ {
+ m_eType = UI_STATE::GAMEPLAYER;
+ }
}
}
}
@@ -290,7 +298,7 @@ void CUI_Manager::Update(_float fTimeDelta)
m_bCgangede = true;
}
- if (m_fAlpha < 0.f)
+ if (m_fAlpha <= 0.f)
{
m_fAlpha = 0.f;
m_bActive = false;
@@ -509,6 +517,11 @@ void CUI_Manager::Change_Map()
}
}
+void CUI_Manager::Set_Race(_bool bRace)
+{
+ m_bRace = bRace;
+}
+
CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CUI_Manager* pInstance = new CUI_Manager(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index 6aeeeb7ed..976bf729e 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -108,10 +108,11 @@ typedef struct tagDamageInfo
typedef struct tagObjectiveInfo
{
- _bool bClear{};
- _int iTargetID{};
- _int iRequiredCount{};
- _int iCurrentCount{};
+ _bool bClear{};
+ _int iTargetID{};
+ _wstring pQuestInfo{};
+ _int iRequiredCount{};
+ _int iCurrentCount{};
}OBJECTIVEINFO;
typedef struct tagRewardsInfo
diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h
index fc99d2155..18d0a0da3 100644
--- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h
+++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h
@@ -59,7 +59,7 @@ class CDialogue_Font final : public CGameObject
void Shop();
void SpellLearn();
-
+ void Quest();
void ReSet();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
@@ -76,15 +76,16 @@ class CDialogue_Font final : public CGameObject
_bool m_bCurrentInteract = { false };
_bool m_bEndText = { false };
_bool m_bNextText = { false };
-
+
_wstring m_pNpcName;
_wstring m_pName;
_int m_iTextID{};
_int m_iNextID{};
_int m_iType{};
- _bool m_bChoiceText = {false};
- _bool m_bCurrentChoiceText = {false};
+ _bool m_bChoiceText = { false };
+ _bool m_bCurrentChoiceText = { false };
+ _bool m_bRace = { false };
public:
static CDialogue_Font* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/Quest_Canvas.h b/Jusin154_Team3D/Client/Public/Quest_Canvas.h
index 2f452a465..0f1a40d25 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Canvas.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Canvas.h
@@ -39,7 +39,6 @@ class CQuest_Canvas final : public CCanvasObject
private:
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
CGameObject* m_pQuest_Panel = { nullptr };
- CInfoInstance* m_pInfoInstance = { nullptr };
_bool m_bClick[3] = { false };
_int m_iIndex{};
public:
diff --git a/Jusin154_Team3D/Client/Public/Quest_Info.h b/Jusin154_Team3D/Client/Public/Quest_Info.h
index 062e89e10..b8fbc8db1 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Info.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Info.h
@@ -34,6 +34,9 @@ class CQuest_Info final : public CElementObject
public:
void Set_Hover(void* pArg);
+private:
+ void Y(_float fSizeY);
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -51,6 +54,7 @@ class CQuest_Info final : public CElementObject
_int m_iCurrentQuest{};
_int m_iPerQuestIndex{};
+ _int m_iCurrentIndex{};
public:
static CQuest_Info* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Client/Public/Quest_Panel.h b/Jusin154_Team3D/Client/Public/Quest_Panel.h
index 49a8daac2..721594c60 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Panel.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Panel.h
@@ -37,6 +37,7 @@ class CQuest_Panel final : public CPanelObject
void Slot_Hover(_int Index);
private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Quest_Slot.h b/Jusin154_Team3D/Client/Public/Quest_Slot.h
index 812531768..6152be07f 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Slot.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Slot.h
@@ -47,7 +47,7 @@ class CQuest_Slot final : public CElementObject
void Font_Setting(_int Index);
_int Mousechack(POINT Mouse);
-
+ _float Get_SlotY(_int iIndex);
public:
void Set_QuestType(_int Index);
diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h
index c76dbd19f..f02870f2e 100644
--- a/Jusin154_Team3D/Client/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Client/Public/UI_Manager.h
@@ -50,6 +50,7 @@ class CUI_Manager final : public CUIObject
void Set_Fade();
void Change_Map();
+ void Set_Race(_bool bRace);
private:
CInfoInstance* m_pInfoInstance = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
@@ -89,6 +90,8 @@ class CUI_Manager final : public CUIObject
_bool m_bAlphaZero = { false };
+ _bool m_bRace = { false };
+
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 5df737379..1067f2d9e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
@@ -1,73 +1,78 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
+
-
+
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml
index c6b599976..962f6a07f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml
@@ -1,16 +1,18 @@
-
+
-
+
+
+
-
+
-
+
@@ -18,47 +20,47 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -66,7 +68,7 @@
-
+
@@ -74,7 +76,7 @@
-
+