@@ -167,7 +167,6 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Boss_HpBar.h" />
|
||||
<ClInclude Include="..\Public\CallBack_Troll_HitReport.h" />
|
||||
<ClInclude Include="..\Public\CameraLockOn.h" />
|
||||
<ClInclude Include="..\Public\Completed_Panel.h" />
|
||||
<ClInclude Include="..\Public\Current_Slot_Number.h" />
|
||||
<ClInclude Include="..\Public\Current_Spell_Slot.h" />
|
||||
<ClInclude Include="..\Public\Damage_Font.h" />
|
||||
@@ -183,7 +182,6 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Goblin_Protego.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h" />
|
||||
<ClInclude Include="..\Public\HpBarBG.h" />
|
||||
<ClInclude Include="..\Public\InProgress_Panel.h" />
|
||||
<ClInclude Include="..\public\Interaction_Key.h" />
|
||||
<ClInclude Include="..\Public\InteractiveInfo.h" />
|
||||
<ClInclude Include="..\Public\Intro_BG.h" />
|
||||
@@ -197,6 +195,9 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Logo_Glow.h" />
|
||||
<ClInclude Include="..\Public\Logo_Text.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Attack.h" />
|
||||
<ClInclude Include="..\Public\QuestInstance.h" />
|
||||
<ClInclude Include="..\Public\Quest_Info_Header.h" />
|
||||
<ClInclude Include="..\Public\Quest_Slot.h" />
|
||||
<ClInclude Include="..\Public\Screen_Wind.h" />
|
||||
<ClInclude Include="..\Public\Mage_Nomal_Attack.h" />
|
||||
<ClInclude Include="..\Public\MageSide.h" />
|
||||
@@ -205,19 +206,13 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\public\MapElement_Chest_Lid.h" />
|
||||
<ClInclude Include="..\Public\NPC_Ollivander.h" />
|
||||
<ClInclude Include="..\Public\Box_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Quest_Border.h" />
|
||||
<ClInclude Include="..\Public\Quest_Canvas.h" />
|
||||
<ClInclude Include="..\Public\Quest_Data.h" />
|
||||
<ClInclude Include="..\Public\Quest_Entry_Line.h" />
|
||||
<ClInclude Include="..\Public\Quest_Header.h" />
|
||||
<ClInclude Include="..\Public\Quest_HeaderLine.h" />
|
||||
<ClInclude Include="..\Public\Quest_Info.h" />
|
||||
<ClInclude Include="..\Public\Quest_Info_Header.h" />
|
||||
<ClInclude Include="..\Public\Quest_Info_Line.h" />
|
||||
<ClInclude Include="..\Public\Quest_List.h" />
|
||||
<ClInclude Include="..\Public\Quest_Panel.h" />
|
||||
<ClInclude Include="..\Public\Quest_Status.h" />
|
||||
<ClInclude Include="..\Public\Quest_Status_Panel.h" />
|
||||
<ClInclude Include="..\Public\RaceRing.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_TurboFly.h" />
|
||||
<ClInclude Include="..\Public\StunEffect.h" />
|
||||
@@ -371,7 +366,6 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Broom_States.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_Troll_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\CameraLockOn.cpp" />
|
||||
<ClCompile Include="..\Private\Completed_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Current_Slot_Number.cpp" />
|
||||
<ClCompile Include="..\Private\Current_Spell_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\Damage_Font.cpp" />
|
||||
@@ -388,7 +382,6 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Goblin_Protego.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Spector.cpp" />
|
||||
<ClCompile Include="..\Private\HpBarBG.cpp" />
|
||||
<ClCompile Include="..\Private\InProgress_Panel.cpp" />
|
||||
<ClCompile Include="..\private\Interaction_Key.cpp" />
|
||||
<ClCompile Include="..\Private\InteractiveInfo.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_BG.cpp" />
|
||||
@@ -401,24 +394,21 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Logo.cpp" />
|
||||
<ClCompile Include="..\Private\Logo_Glow.cpp" />
|
||||
<ClCompile Include="..\Private\Logo_Text.cpp" />
|
||||
<ClCompile Include="..\Private\QuestInstance.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\Screen_Wind.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Chest.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Chest_Lid.cpp" />
|
||||
<ClCompile Include="..\Private\NPC_Ollivander.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Border.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Canvas.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Data.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Entry_Line.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Header.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_HeaderLine.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Info.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Info_Header.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Info_Line.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_List.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Status.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Status_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\RaceRing.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_Dismount.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_Fly.cpp" />
|
||||
|
||||
@@ -563,30 +563,15 @@
|
||||
<ClInclude Include="..\Public\Accio.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Accio</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Border.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Entry_Line.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Header.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Header</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_HeaderLine.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Info.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Info_Header.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Info_Line.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_List.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_List</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Canvas.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas</Filter>
|
||||
</ClInclude>
|
||||
@@ -605,17 +590,8 @@
|
||||
<ClInclude Include="..\Public\Screen_Wind.h">
|
||||
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Status_Panel.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\InProgress_Panel.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\InProgress_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Completed_Panel.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Completed_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Status.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Status</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Data.h">
|
||||
<Filter>04.Mechanic\Quest</Filter>
|
||||
@@ -626,6 +602,15 @@
|
||||
<ClInclude Include="..\public\Interaction_Key.h">
|
||||
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\QuestInstance.h">
|
||||
<Filter>04.Mechanic\Quest\QuestInstance</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Slot.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Info_Header.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1254,18 +1239,9 @@
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel">
|
||||
<UniqueIdentifier>{322edb99-c59d-4a92-8ab1-8ec57a9e18fb}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border">
|
||||
<UniqueIdentifier>{ba5406be-c0a0-41dd-879f-a324d71ea4b8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line">
|
||||
<UniqueIdentifier>{c02a6573-5be6-4f17-b1b0-39698c0fff5f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Header">
|
||||
<UniqueIdentifier>{da2bbb64-73eb-427a-ae36-21c9ed5db304}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine">
|
||||
<UniqueIdentifier>{73ceb062-c340-4365-9fb3-7bb21f9b9552}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info">
|
||||
<UniqueIdentifier>{bfeebdc4-6aa9-400f-a086-3d6a32a3d37e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1275,9 +1251,6 @@
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line">
|
||||
<UniqueIdentifier>{7c8b3162-a6d5-441f-84ae-cfb4bf779dfa}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_List">
|
||||
<UniqueIdentifier>{2d8d199b-8ba8-497a-afb3-edcc4c905ea5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Broom_TurboFly">
|
||||
<UniqueIdentifier>{2326c134-a2bb-45f1-8452-2dd49bf42697}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1293,24 +1266,21 @@
|
||||
<Filter Include="02.GameObjects\BroomRaceManager">
|
||||
<UniqueIdentifier>{9e8bccb6-c491-4f3a-bdb8-5f03f13ad84d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel">
|
||||
<UniqueIdentifier>{9060b2e1-d8cb-4259-a17a-f8ee2407d37c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\InProgress_Panel">
|
||||
<UniqueIdentifier>{c25a401b-91f1-4e01-8805-51fffef366a6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Completed_Panel">
|
||||
<UniqueIdentifier>{2bd79ab2-fae7-4757-81b3-26231a4496cf}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status">
|
||||
<UniqueIdentifier>{bffcced5-6951-4db4-9df1-44b33b52ece7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\Quest">
|
||||
<UniqueIdentifier>{fe64513c-fbb3-4577-b424-82d99c9075a3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Interaction_Key">
|
||||
<UniqueIdentifier>{08163c4a-63c9-4cc2-97b4-97bb2f9467ff}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Status">
|
||||
<UniqueIdentifier>{bffcced5-6951-4db4-9df1-44b33b52ece7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\Quest\QuestInstance">
|
||||
<UniqueIdentifier>{35a6cb6f-4bbb-47fb-8f7a-63615128dece}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot">
|
||||
<UniqueIdentifier>{6bbfb8f0-c71a-4769-b1e6-efd5d863ba7f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1818,18 +1788,9 @@
|
||||
<ClCompile Include="..\Private\Accio.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Accio</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Border.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Entry_Line.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Header.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Header</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_HeaderLine.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Info.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
||||
</ClCompile>
|
||||
@@ -1839,9 +1800,6 @@
|
||||
<ClCompile Include="..\Private\Quest_Info_Line.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_List.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_List</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Canvas.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas</Filter>
|
||||
</ClCompile>
|
||||
@@ -1860,17 +1818,8 @@
|
||||
<ClCompile Include="..\Private\Screen_Wind.cpp">
|
||||
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Status_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\InProgress_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\InProgress_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Completed_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Completed_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Status.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Status</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Data.cpp">
|
||||
<Filter>04.Mechanic\Quest</Filter>
|
||||
@@ -1881,6 +1830,12 @@
|
||||
<ClCompile Include="..\private\Interaction_Key.cpp">
|
||||
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\QuestInstance.cpp">
|
||||
<Filter>04.Mechanic\Quest\QuestInstance</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Slot.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -49,6 +49,10 @@ HRESULT CAccio::Initialize(void* pArg)
|
||||
m_pRope_Trail = Get_PartObject<CTrailObject>("Accio_Trail");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light");
|
||||
m_pRotate0 = Get_PartObject<CEffectParts>("Rotate0");
|
||||
m_pRotate1 = Get_PartObject<CEffectParts>("Rotate1");
|
||||
|
||||
m_pAccio_PT = Get_PartObject<CEffectParts>("Accio_PT");
|
||||
m_pAccio_Distortion = Get_PartObject<CEffectParts>("Accio_Distortion");
|
||||
|
||||
if (m_pRope_Trail == nullptr)
|
||||
return E_FAIL;
|
||||
@@ -56,10 +60,13 @@ HRESULT CAccio::Initialize(void* pArg)
|
||||
SAFE_ADDREF(m_pRope_Trail);
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pRotate0);
|
||||
SAFE_ADDREF(m_pRotate1);
|
||||
SAFE_ADDREF(m_pAccio_PT);
|
||||
SAFE_ADDREF(m_pAccio_Distortion);
|
||||
|
||||
XMStoreFloat4x4(&m_TrailWorld, XMMatrixIdentity());
|
||||
|
||||
m_fDuration = 5.f;
|
||||
m_fDuration = 6.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -97,14 +104,17 @@ void CAccio::Update(_float fTimeDelta)
|
||||
TrailPos.r[3] += XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed;
|
||||
|
||||
|
||||
|
||||
|
||||
if (m_bHit == true && m_pEnemyCCT != nullptr)
|
||||
{
|
||||
/* 특정 대상과 충돌 했다면*/
|
||||
TrailPos.r[3] = m_pEnemyCCT->Get_Position();
|
||||
|
||||
m_pRotate0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pEnemyCCT->Get_FootPosition());
|
||||
_vector vPos = m_pEnemyCCT->Get_FootPosition();
|
||||
|
||||
m_pRotate0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pRotate1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pAccio_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pAccio_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
XMStoreFloat4x4(&m_TrailWorld, TrailPos);
|
||||
@@ -164,12 +174,15 @@ HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
_vector WandPos = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
CEffectParts* pCircle = Get_PartObject<CEffectParts>("Accio_Circle");
|
||||
|
||||
CEffectParts* pSpread_Circle = Get_PartObject<CEffectParts>("Spread_Circle");
|
||||
|
||||
m_pRope_Trail->Set_Visible(true);
|
||||
pCircle->Set_Visible(true);
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
m_pWandLight->Get_Effect_Info()->isDissolve = false;
|
||||
m_pWandLight->Get_Effect_Info()->isLightDissolve = false;
|
||||
|
||||
pSpread_Circle->Set_Visible(true);
|
||||
|
||||
m_pRope_Trail->Get_Component<CTrail>()->Reset_Trail();
|
||||
@@ -209,6 +222,8 @@ HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
m_fAccRotateTime = 0.f;
|
||||
|
||||
m_pRope_Trail->Get_TrailInfo()->fMass = 0.05f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -269,31 +284,42 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
|
||||
CEffectParts* pHit = Get_PartObject<CEffectParts>("Accio_Hit");
|
||||
CEffectParts* pHit0 = Get_PartObject<CEffectParts>("Accio_Hit0");
|
||||
|
||||
|
||||
pHit->Set_Visible(true);
|
||||
pHit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
pHit0->Set_Visible(true);
|
||||
pHit0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
m_pAccio_Distortion->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
CEffectParts* pCircle = Get_PartObject<CEffectParts>("Accio_Circle");
|
||||
CEffectParts* pWandLight = Get_PartObject<CEffectParts>("Wand_Light");
|
||||
CEffectParts* pSpread_Circle = Get_PartObject<CEffectParts>("Spread_Circle");
|
||||
CEffectParts* pAccio_PT = Get_PartObject<CEffectParts>("Accio_PT");
|
||||
|
||||
|
||||
pCircle->Set_Visible(false);
|
||||
pWandLight->Set_Visible(false);
|
||||
pSpread_Circle->Set_Visible(false);
|
||||
|
||||
m_pWandLight->Get_Effect_Info()->isDissolve = true;
|
||||
m_pWandLight->Get_Effect_Info()->isLightDissolve = true;
|
||||
|
||||
m_pRotate0->Set_Visible(true);
|
||||
pAccio_PT->Set_Visible(true);
|
||||
m_pRotate1->Set_Visible(true);
|
||||
|
||||
pAccio_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pAccio_PT->Set_Visible(true);
|
||||
m_pAccio_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
m_pRope_Trail->Get_Component<CTrail>()->Rope_Fix(true);
|
||||
|
||||
if(m_isDissolve)
|
||||
m_pRope_Trail->SetDissolve(true);
|
||||
|
||||
m_pRope_Trail->Get_TrailInfo()->fMass = 0.1f;
|
||||
|
||||
}
|
||||
|
||||
void CAccio::Free()
|
||||
@@ -303,6 +329,9 @@ void CAccio::Free()
|
||||
SAFE_RELEASE(m_pRope_Trail);
|
||||
SAFE_RELEASE(m_pWandLight);
|
||||
SAFE_RELEASE(m_pRotate0);
|
||||
SAFE_RELEASE(m_pRotate1);
|
||||
SAFE_RELEASE(m_pAccio_PT);
|
||||
SAFE_RELEASE(m_pAccio_Distortion);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -250,7 +250,15 @@ HRESULT CBroom::Bind_ShaderResources()
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1,202 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "Completed_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CCompleted_Panel::CCompleted_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CCompleted_Panel::CCompleted_Panel(const CCompleted_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.04f;
|
||||
Visible(false);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HRESULT CCompleted_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CCompleted_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CCompleted_Panel* CCompleted_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CCompleted_Panel* pInstance = new CCompleted_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CCompleted_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CCompleted_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CCompleted_Panel* pInstance = new CCompleted_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CCompleted_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CCompleted_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -931,6 +931,11 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fModelDistortIntensity", &m_EffectInfo.fModelDistortIntensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (m_pDiffuse_TextureCom != nullptr)
|
||||
{
|
||||
|
||||
@@ -322,6 +322,8 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
_int ID = m_pStat->Get_Stat().iObjectID;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -466,6 +468,15 @@ HRESULT CGoblin::Bind_ShaderResources()
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -190,7 +190,15 @@ HRESULT CGoblin_BattleAxe::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -139,7 +139,15 @@ HRESULT CGoblin_Dagger::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -413,6 +413,15 @@ HRESULT CGoblin_Mage::Bind_ShaderResources()
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -274,6 +274,15 @@ HRESULT CGoblin_Spector::Bind_ShaderResources()
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1,201 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "InProgress_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CInProgress_Panel::CInProgress_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CInProgress_Panel::CInProgress_Panel(const CInProgress_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.04f;
|
||||
Visible(false);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CInProgress_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CInProgress_Panel* CInProgress_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CInProgress_Panel* pInstance = new CInProgress_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CInProgress_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CInProgress_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CInProgress_Panel* pInstance = new CInProgress_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CInProgress_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CInProgress_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -262,14 +262,34 @@ void CInfoInstance::Event_CallBack(_wstring EventName, void* pArg)
|
||||
}
|
||||
}
|
||||
|
||||
QUESTINFO CInfoInstance::Get_Quest_Info(_int QuestID)
|
||||
QUESTINFO CInfoInstance::Get_Quest(_int QuestID)
|
||||
{
|
||||
return m_pQuestInfo->Get_Quest(QuestID);
|
||||
}
|
||||
|
||||
_int CInfoInstance::Get_Quest_Count()
|
||||
_int CInfoInstance::Get_Quest_Count(_int Index)
|
||||
{
|
||||
return m_pQuestInfo->Get_Count();
|
||||
return m_pQuestInfo->Get_Count(Index);
|
||||
}
|
||||
|
||||
const vector<QUESTINFO>& CInfoInstance::Get_AllQuest() const
|
||||
{
|
||||
return m_pQuestInfo->Get_AllQuest();
|
||||
}
|
||||
|
||||
const vector<QUESTINFO>& CInfoInstance::Get_ClearQuest() const
|
||||
{
|
||||
return m_pQuestInfo->Get_ClearQuest();
|
||||
}
|
||||
|
||||
const vector<QUESTINFO>& CInfoInstance::Get_AcceptQuest() const
|
||||
{
|
||||
return m_pQuestInfo->Get_AcceptQuest();
|
||||
}
|
||||
|
||||
HRESULT CInfoInstance::Set_AcceptQuest(_int Index)
|
||||
{
|
||||
return m_pQuestInfo->Set_AcceptQuest(Index);
|
||||
}
|
||||
|
||||
HRESULT CInfoInstance::Regist_ActiveInteractive(CMapElement_Interactable* pInteractive)
|
||||
|
||||
@@ -257,7 +257,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
isReady_Background = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
isReady_Background = false;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
isReady_Background = true;
|
||||
|
||||
@@ -103,20 +103,14 @@
|
||||
|
||||
#include "Quest_Canvas.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "Quest_Border.h"
|
||||
#include "Quest_Header.h"
|
||||
#include "Quest_HeaderLine.h"
|
||||
#include "Quest_List.h"
|
||||
#include "Quest_Info.h"
|
||||
#include "Quest_Info_Header.h"
|
||||
#include "Quest_Info_Line.h"
|
||||
#include "Quest_Entry_Line.h"
|
||||
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "Quest_Status.h"
|
||||
#include "Quest_Slot.h"
|
||||
|
||||
#include "Completed_Panel.h"
|
||||
#include "InProgress_Panel.h"
|
||||
#include "QuestInstance.h"
|
||||
|
||||
#include "Interaction_Key.h"
|
||||
|
||||
@@ -344,7 +338,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Background = false;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
isLoad_Background = true;
|
||||
@@ -1446,6 +1440,14 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Quest_Slot_Desc{};
|
||||
|
||||
Quest_Slot_Desc.iNum = 10;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Quest_Slot"),
|
||||
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Quest_Slot_Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
{ // LIGHT PHYSX DYNAMIC
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
||||
@@ -1778,6 +1780,15 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Lightning", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
});
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
#pragma region UI
|
||||
@@ -1798,6 +1809,12 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_QuestInstance*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuestInstance>(g_iStaticLevel, CQuestInstance::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_GamePlay_Canvas*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
@@ -1997,26 +2014,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_Quest_Border*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Border>(g_iStaticLevel, CQuest_Border::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_Quest_Header*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Header>(g_iStaticLevel, CQuest_Header::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_Quest_HeaderLine*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_HeaderLine>(g_iStaticLevel, CQuest_HeaderLine::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_Quest_List*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_List>(g_iStaticLevel, CQuest_List::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_Quest_Info*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Info>(g_iStaticLevel, CQuest_Info::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
@@ -2037,25 +2034,13 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Quest_Status_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status_Panel>(g_iStaticLevel, CQuest_Status_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_Quest_Status*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status>(g_iStaticLevel, CQuest_Status::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
/* For.Prototype_GameObject_Quest_Slot*/
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Completed_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CCompleted_Panel>(g_iStaticLevel, CCompleted_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_InProgress_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CInProgress_Panel>(g_iStaticLevel, CInProgress_Panel::Create(m_pDevice, m_pContext))))
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Slot>(g_iStaticLevel, CQuest_Slot::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -92,6 +92,15 @@ HRESULT CMonster::Render_OutLine()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Compute_Depth();
|
||||
_float fRatio = (m_fCamDepth / *m_pGameInstance->Get_CurrentCameraFar());
|
||||
m_fOutLineThickness = CMyTools::Lerp_f1D(2.f, 6.f, fRatio);
|
||||
|
||||
@@ -124,6 +124,15 @@ HRESULT CNPC_Ollivander::Bind_ShaderResources()
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -139,6 +139,15 @@ HRESULT CPhysXEffectHitBox::Bind_ShaderResources()
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -528,6 +528,15 @@ HRESULT CPlayer::Bind_ShaderResources()
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
#include "pch.h"
|
||||
#include "QuestInstance.h"
|
||||
|
||||
CQuestInstance::CQuestInstance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CQuest(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuestInstance::CQuestInstance(const CQuestInstance& rhs)
|
||||
:CQuest(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
HRESULT CQuestInstance::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuestInstance::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuestInstance::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CQuestInstance* CQuestInstance::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuestInstance* pInstance = new CQuestInstance(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuestInstance");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuestInstance::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuestInstance* pInstance = new CQuestInstance(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Header");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuestInstance::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CQuestInstance::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -1,259 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Border.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
CQuest_Border::CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Border::CQuest_Border(const CQuest_Border& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 150.f;
|
||||
Desc.fSizeX = 192.f;
|
||||
Desc.fSizeY = 192.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(48.f, 148.f, 48.f, 148.f);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = -10.f;
|
||||
m_fFontY = -50.f;
|
||||
SizeUpX(500.f);
|
||||
SizeUpY(500.f);
|
||||
m_iQuest_Count = m_pInfoInstance->Get_Quest_Count();
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Border::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Border::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_bHover = true;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
{
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = false;
|
||||
}
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Border::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("전 체")) - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("전 체"), _float2((m_fFontX - m_fX) - OffSet, m_fFontY + m_fY));
|
||||
|
||||
for (_int i = 0; i < m_iQuest_Count; ++i)
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest_Info(i).pQuestName.c_str(), _float2((-210 - m_fX), 100 + m_fY));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_Border::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_LighthouseGoalBorder_4k"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CQuest_Border* CQuest_Border::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Border* pInstance = new CQuest_Border(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_Border");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_Border::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_Border* pInstance = new CQuest_Border(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_Border");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_Border::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CQuest_Border::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -3,9 +3,7 @@
|
||||
#include "Quest_Canvas.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "Completed_Panel.h"
|
||||
#include "InProgress_Panel.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CCanvasObject(pDevice, pContext)
|
||||
@@ -13,7 +11,8 @@ CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
|
||||
}
|
||||
|
||||
CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
|
||||
:CCanvasObject(rhs)
|
||||
:CCanvasObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -26,8 +25,8 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 540.f;
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = g_iWinSizeX;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
@@ -43,13 +42,8 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fAlpha = 1.f;
|
||||
m_fOwnerAlpha = 1.f;
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.05f;
|
||||
Visible(false);
|
||||
m_iIndex = -1;
|
||||
Add_Function(TEXT("QuestPanelUpdate"), [this](void* p) {this->Update_Panel(*reinterpret_cast<_int*>(p)); });
|
||||
m_pInfoInstance->Set_AcceptQuest(0);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -65,28 +59,11 @@ void CQuest_Canvas::Update(_float fTimeDelta)
|
||||
|
||||
void CQuest_Canvas::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Canvas::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -97,39 +74,6 @@ _vector CQuest_Canvas::Get_WorldPostion()
|
||||
|
||||
HRESULT CQuest_Canvas::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -139,15 +83,6 @@ HRESULT CQuest_Canvas::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -159,24 +94,6 @@ HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
|
||||
}
|
||||
Add_Panel(TEXT("Quest_Panel"), m_pQuest_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCompleted_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CCompleted_Panel**>(&m_pCompleted_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Completed_Panel"), m_pCompleted_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInProgress_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CInProgress_Panel**>(&m_pInProgress_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("InProgress_Panel"), m_pInProgress_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CQuest_Status_Panel**>(&m_pQuest_Status_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Quest_Status_Panel"), m_pQuest_Status_Panel);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -184,26 +101,12 @@ void CQuest_Canvas::Clear_Penel()
|
||||
{
|
||||
}
|
||||
|
||||
void CQuest_Canvas::Update_Panel(_int Index)
|
||||
void CQuest_Canvas::Visible(_bool bVisible)
|
||||
{
|
||||
if (m_iIndex == Index)
|
||||
return;
|
||||
|
||||
m_iIndex = Index;
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (i == Index)
|
||||
{
|
||||
m_bClick[i] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick[i] = false;
|
||||
}
|
||||
}
|
||||
static_cast<CPanelObject*>(m_pQuest_Panel)->Visible(m_bClick[0]);
|
||||
static_cast<CPanelObject*>(m_pCompleted_Panel)->Visible(m_bClick[1]);
|
||||
static_cast<CPanelObject*>(m_pInProgress_Panel)->Visible(m_bClick[2]);
|
||||
_int Index = 0;
|
||||
m_bVisible = bVisible;
|
||||
if (m_bVisible == false)
|
||||
Function_Callback(TEXT("QuestPanelClose"), &Index);
|
||||
}
|
||||
|
||||
CQuest_Canvas* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -236,8 +139,6 @@ void CQuest_Canvas::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,9 +4,13 @@
|
||||
#include "UIObject.h"
|
||||
#include "tinyxml2.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "QuestInstance.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CQuest_Data::CQuest_Data()
|
||||
: m_pInfoInstance(CInfoInstance::GetInstance()) {
|
||||
: m_pInfoInstance(CInfoInstance::GetInstance()) ,
|
||||
m_pGameInstance(CGameInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
@@ -44,6 +48,7 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
|
||||
pQuest->QueryIntAttribute("QuestType", &quest.iType);
|
||||
quest.pQuestName = CMyTools::ToWstring(pQuest->Attribute("QuestName"));
|
||||
quest.pQuestInfo = CMyTools::ToWstring(pQuest->Attribute("QuestInfo"));
|
||||
pQuest->QueryIntAttribute("AcceptState", &quest.iAcceptState);
|
||||
|
||||
tinyxml2::XMLElement* pObjectives = pQuest->FirstChildElement("Objectives");
|
||||
if (pObjectives)
|
||||
@@ -52,8 +57,9 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
|
||||
while (pObjective)
|
||||
{
|
||||
OBJECTIVEINFO obj{};
|
||||
|
||||
pObjective->QueryIntAttribute("Objective", &obj.iObjectType);
|
||||
_int Clear = 0;
|
||||
pObjective->QueryIntAttribute("Clear", &Clear);
|
||||
obj.bClear = Clear != 0;
|
||||
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
|
||||
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
||||
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
|
||||
@@ -94,9 +100,82 @@ QUESTINFO CQuest_Data::Get_Quest(_int QuestID)
|
||||
return QuestInfos[QuestID];
|
||||
}
|
||||
|
||||
_int CQuest_Data::Get_Count()
|
||||
const vector<QUESTINFO>& CQuest_Data::Get_AllQuest() const
|
||||
{
|
||||
return m_iQuest_Count;
|
||||
return QuestInfos;
|
||||
}
|
||||
|
||||
const vector<QUESTINFO>& CQuest_Data::Get_ClearQuest() const
|
||||
{
|
||||
return m_QuestEndInfos;
|
||||
}
|
||||
|
||||
const vector<QUESTINFO>& CQuest_Data::Get_AcceptQuest() const
|
||||
{
|
||||
return m_QuestAcceptedInfos;
|
||||
}
|
||||
|
||||
_int CQuest_Data::Get_Count(_int Index)
|
||||
{
|
||||
switch (Index)
|
||||
{
|
||||
case 0:
|
||||
return m_iQuest_Count;
|
||||
|
||||
case 1:
|
||||
return m_iAcceptQeustCount;
|
||||
|
||||
case 2:
|
||||
return m_iClearQeustCount;
|
||||
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CQuest_Data::Set_AcceptQuest(_int Index)
|
||||
{
|
||||
if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED) || QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED))
|
||||
return S_OK;
|
||||
QuestInfos[Index].iAcceptState = ENUM_CLASS(QUESTSTATE::ACCEPTED);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuestInstance>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast<CQuestInstance**>(&m_pQuestInstance))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pInfoInstance->Add_Event(TEXT("MonsterDead"), [this](void* p) {this->Update_AcceptQuest(*reinterpret_cast<_int*>(p)); });
|
||||
m_QuestAcceptedInfoObject.push_back(m_pQuestInstance);
|
||||
m_QuestAcceptedInfos.push_back(QuestInfos[Index]);
|
||||
m_iAcceptQeustCount++;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Data::Set_ClearQuest(_int Index)
|
||||
{
|
||||
if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::NONE) || QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED))
|
||||
return;
|
||||
|
||||
QuestInfos[Index].iAcceptState = ENUM_CLASS(QUESTSTATE::CLEARED);
|
||||
m_QuestEndInfos.push_back(QuestInfos[Index]);
|
||||
m_iClearQeustCount++;
|
||||
if (m_iAcceptQeustCount >= 0)
|
||||
m_iAcceptQeustCount--;
|
||||
}
|
||||
|
||||
void CQuest_Data::Update_AcceptQuest(_int MonsterID)
|
||||
{
|
||||
m_QuestAcceptedInfoObject.erase(remove_if(m_QuestAcceptedInfoObject.begin(), m_QuestAcceptedInfoObject.end(),
|
||||
[MonsterID, this](auto& it) {
|
||||
CQuestInstance* instance = static_cast<CQuestInstance*>(it);
|
||||
if (static_cast<CQuestInstance*>(it)->Update_Objective(MonsterID) == true)
|
||||
{
|
||||
Set_ClearQuest(static_cast<CQuestInstance*>(it)->Get_QuestID());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}),
|
||||
m_QuestAcceptedInfoObject.end()
|
||||
);
|
||||
}
|
||||
|
||||
CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -115,5 +194,4 @@ CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pCo
|
||||
void CQuest_Data::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ HRESULT CQuest_Entry_Line::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상") - 22) * 0.5f;
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상")) - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _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));
|
||||
|
||||
return S_OK;
|
||||
@@ -214,11 +214,9 @@ void CQuest_Entry_Line::Set_Hover(_int Index)
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -1,251 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Header.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CQuest_Header::CQuest_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Header::CQuest_Header(const CQuest_Header& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 352.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 32.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = 780.f;
|
||||
m_fFontY = 520.f;
|
||||
SizeUpX(600.f);
|
||||
SizeUpY(80.f);
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Header::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Header::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_bHover = true;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
{
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = false;
|
||||
}
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Header::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _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));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_Header::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_LighthouseHeaderBack"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CQuest_Header* CQuest_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Header* pInstance = new CQuest_Header(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_Header");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_Header::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_Header* pInstance = new CQuest_Header(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_Header");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_Header::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CQuest_Header::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -1,224 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_HeaderLine.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CQuest_HeaderLine::CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_HeaderLine::CQuest_HeaderLine(const CQuest_HeaderLine& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 310.f;
|
||||
Desc.fSizeX = 480.f;
|
||||
Desc.fSizeY = 10.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_HeaderLine::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_TutorialDividerBottom_middle"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CQuest_HeaderLine* CQuest_HeaderLine::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_HeaderLine* pInstance = new CQuest_HeaderLine(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_HeaderLine");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_HeaderLine::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_HeaderLine* pInstance = new CQuest_HeaderLine(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_HeaderLine");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CQuest_HeaderLine::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Info.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -8,7 +9,8 @@ CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
}
|
||||
|
||||
CQuest_Info::CQuest_Info(const CQuest_Info& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -45,10 +47,10 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
||||
SizeUpX(960);
|
||||
SizeUpY(m_fOriginPerviewSize);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = 740.f;
|
||||
m_fFontX = 530.f;
|
||||
m_fFontY = 500.f;
|
||||
m_iPerQuestIndex = -1;
|
||||
Visible(true);
|
||||
Visible(false);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
@@ -97,10 +99,6 @@ void CQuest_Info::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
m_pRect.left = long(m_fX - m_vScale.x * 0.5f);
|
||||
m_pRect.top = long(m_fY - m_vScale.y * 0.5f);
|
||||
m_pRect.right = long(m_fX + m_vScale.x * 0.5f);
|
||||
m_pRect.bottom = long(m_fY + m_vScale.y * 0.5f);
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -131,6 +129,7 @@ HRESULT CQuest_Info::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(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));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -224,11 +223,9 @@ void CQuest_Info::Set_Hover(_int Index)
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Info_Header.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -8,7 +9,8 @@ CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContex
|
||||
}
|
||||
|
||||
CQuest_Info_Header::CQuest_Info_Header(const CQuest_Info_Header& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -41,7 +43,7 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = 740.f;
|
||||
m_fFontX = 925.f;
|
||||
m_fFontY = 520.f;
|
||||
m_iColor = 2;
|
||||
SizeUpX(1105.f);
|
||||
@@ -127,8 +129,8 @@ HRESULT CQuest_Info_Header::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _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));
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(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));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -218,11 +220,9 @@ void CQuest_Info_Header::Set_Hover(_int Index)
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Info_Header final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Info_Header(const CQuest_Info_Header& rhs);
|
||||
virtual ~CQuest_Info_Header() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iColor = true;
|
||||
_int m_iQuest_Index{};
|
||||
public:
|
||||
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -208,11 +208,9 @@ void CQuest_Info_Line::Set_Hover(_int Index)
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Border.h"
|
||||
#include "Quest_Header.h"
|
||||
#include "Quest_HeaderLine.h"
|
||||
#include "Quest_List.h"
|
||||
#include "Quest_Info.h"
|
||||
#include "Quest_Info_Header.h"
|
||||
#include "Quest_Info_Line.h"
|
||||
#include "Quest_Entry_Line.h"
|
||||
#include "Quest_Data.h"
|
||||
#include "Quest_Slot.h"
|
||||
#include "Quest_Status.h"
|
||||
|
||||
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
@@ -29,9 +28,9 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = -540.f;
|
||||
Desc.fSizeX = g_iWinSizeX;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
@@ -52,7 +51,11 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
||||
m_fDelayTime = 1.f;
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
Set_Status();
|
||||
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
void CQuest_Panel::Priority_Update(_float fTimeDelta)
|
||||
@@ -88,6 +91,18 @@ void CQuest_Panel::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CQuest_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -99,39 +114,67 @@ _vector CQuest_Panel::Get_WorldPostion()
|
||||
|
||||
HRESULT CQuest_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Border>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Border**>(&m_pQuest_Border))))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Slot>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Slot**>(&m_pQuest_Slot))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Border"), m_pQuest_Border);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Header>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Header**>(&m_pQuest_Header))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Header"), m_pQuest_Header);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_HeaderLine>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_HeaderLine**>(&m_pQuest_HeaderLine))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_HeaderLine"), m_pQuest_HeaderLine);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_List>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_List**>(&m_pQuest_List))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_List"), m_pQuest_List);
|
||||
Add_Element(TEXT("Quest_Slot"), m_pQuest_Slot);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Info>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Info**>(&m_pQuest_Info))))
|
||||
{
|
||||
@@ -157,9 +200,63 @@ HRESULT CQuest_Panel::Ready_Element(void* pArg)
|
||||
}
|
||||
Add_Element(TEXT("Quest_Entry_Line"), m_pQuest_Entry_Line);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status1))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status1"), m_pQuest_Status1);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status2"), m_pQuest_Status2);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status3))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status3"), m_pQuest_Status3);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Panel::Set_Status()
|
||||
{
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Status(0, -860.f, 400.f, TEXT("전 체"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Status(1, -860.f, 220.f, TEXT("진행중"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Status(2, -860.f, 40.f, TEXT("완 료"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Click(true);
|
||||
m_bClick[0] = true;
|
||||
m_bClick[1] = false;
|
||||
m_bClick[2] = false;
|
||||
}
|
||||
|
||||
void CQuest_Panel::Slot_Hover(_int Index)
|
||||
{
|
||||
_int iIndex{};
|
||||
if (m_bClick[Index] == true)
|
||||
return;
|
||||
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (i == Index)
|
||||
{
|
||||
m_bClick[i] = true;
|
||||
iIndex = i;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick[i] = false;
|
||||
}
|
||||
}
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Click(m_bClick[0]);
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Click(m_bClick[1]);
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Click(m_bClick[2]);
|
||||
|
||||
static_cast<CQuest_Slot*>(m_pQuest_Slot)->Set_QuestType(iIndex);
|
||||
}
|
||||
|
||||
CQuest_Panel* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Panel* pInstance = new CQuest_Panel(pDevice, pContext);
|
||||
@@ -190,6 +287,8 @@ void CQuest_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
+111
-71
@@ -1,32 +1,34 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_List.h"
|
||||
#include "Quest_Slot.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
CQuest_Slot::CQuest_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_List::CQuest_List(const CQuest_List& rhs)
|
||||
CQuest_Slot::CQuest_Slot(const CQuest_Slot& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Initialize_Prototype()
|
||||
HRESULT CQuest_Slot::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Initialize(void* pArg)
|
||||
HRESULT CQuest_Slot::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = -150.f;
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 256.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
@@ -38,17 +40,26 @@ HRESULT CQuest_List::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fTimeMult = 3.f;
|
||||
m_vNine_Slice = _float4(70.f, 186.f, 0.f, 64.f);
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fFontX = 300.f;
|
||||
m_fFontY = 330.f;
|
||||
m_fOffSetX = 0.f;
|
||||
m_fOffSetY = 85;
|
||||
m_iCols = 1;
|
||||
SizeUpX(495.f);
|
||||
SizeUpY(80.f);
|
||||
m_pVIBufferCom->Set_Cloned(true);
|
||||
m_pVIBufferCom->Set_Pos(-475.f, 330.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::NONE));
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_List::Priority_Update(_float fTimeDelta)
|
||||
void CQuest_Slot::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
@@ -57,18 +68,17 @@ void CQuest_List::Priority_Update(_float fTimeDelta)
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_List::Update(_float fTimeDelta)
|
||||
void CQuest_Slot::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
{
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
}
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
@@ -80,7 +90,7 @@ void CQuest_List::Update(_float fTimeDelta)
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
@@ -88,71 +98,87 @@ void CQuest_List::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
Hover();
|
||||
if (m_bHover == true)
|
||||
{
|
||||
m_fSizeX = 505.f;
|
||||
m_fSizeY = 90.f;
|
||||
m_fFontX = 765.f;
|
||||
m_fFontY = 520.f;
|
||||
m_pFontSize = TEXT("Font_size21");
|
||||
m_pQuest_ID = 0;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_fSizeX = 495.f;
|
||||
m_fSizeY = 80.f;
|
||||
m_fFontX = 770.f;
|
||||
m_fFontY = 520.f;
|
||||
m_pFontSize = TEXT("Font_size20");
|
||||
m_pQuest_ID = -1;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
|
||||
}
|
||||
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_iQuestIndex);
|
||||
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_List::Late_Update(_float fTimeDelta)
|
||||
void CQuest_Slot::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
if (m_bVisible)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Render()
|
||||
HRESULT CQuest_Slot::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::QUEST_SLOT))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
if (FAILED(m_pVIBufferCom->Render()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Render_Text(m_pFontSize, m_pQuest_Name.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
|
||||
|
||||
for (_int i = 0; i < m_iQuestCount; ++i)
|
||||
{
|
||||
m_fFontY = 190 + i * 85.f;
|
||||
if (i == m_iQuestIndex)
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size30"), m_pInfoInstance->Get_Quest(i).pQuestName.c_str(), _float2(m_fFontX - 10.f + m_fX, m_fFontY - 10.F - m_fY));
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(i).pQuestName.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_List::Get_WorldPostion()
|
||||
_vector CQuest_Slot::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Bind_ShaderResources()
|
||||
void CQuest_Slot::SizeUpX(_float fSizeX)
|
||||
{
|
||||
m_fSizeX = fSizeX;
|
||||
m_pVIBufferCom->Set_SizeX(m_fSizeX);
|
||||
}
|
||||
|
||||
void CQuest_Slot::SizeUpY(_float fSizeY)
|
||||
{
|
||||
m_fSizeY = fSizeY;
|
||||
m_pVIBufferCom->Set_SizeY(m_fSizeY);
|
||||
}
|
||||
|
||||
void CQuest_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
{
|
||||
m_fSizeX = fSizeX;
|
||||
m_fSizeY = fSizeY;
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Slot::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
@@ -202,16 +228,12 @@ HRESULT CQuest_List::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Ready_Components(void* pArg)
|
||||
HRESULT CQuest_Slot::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Quest_Slot"), (CComponent**)&m_pVIBufferCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -219,7 +241,7 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -227,19 +249,18 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_List::Hover()
|
||||
void CQuest_Slot::Hover()
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse{};
|
||||
_float2 fMouse;
|
||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = -(ptMouse.y - (g_iWinSizeY * 0.5f));
|
||||
POINT pt{};
|
||||
pt.x = _long(fMouse.x);
|
||||
pt.y = _long(fMouse.y);
|
||||
|
||||
if (PtInRect(&m_pRect, pt))
|
||||
m_iQuestIndex = m_pVIBufferCom->Set_Mouse_Hover(fMouse);
|
||||
|
||||
if (m_iQuestIndex != -1)
|
||||
{
|
||||
m_bHover = true;
|
||||
}
|
||||
@@ -249,39 +270,57 @@ void CQuest_List::Hover()
|
||||
}
|
||||
}
|
||||
|
||||
void CQuest_List::Set_Name(_wstring Name, _int ID)
|
||||
void CQuest_Slot::Set_QuestType(_int Index)
|
||||
{
|
||||
m_pQuest_Name = Name;
|
||||
m_pQuest_ID = ID;
|
||||
switch (Index)
|
||||
{
|
||||
case 0:
|
||||
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::NONE));
|
||||
m_pVIBufferCom->Set_Draw(-1);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::ACCEPTED));
|
||||
m_pVIBufferCom->Set_Draw(m_iQuestCount);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::CLEARED));
|
||||
m_pVIBufferCom->Set_Draw(m_iQuestCount);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CQuest_List* CQuest_List::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
CQuest_Slot* CQuest_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_List* pInstance = new CQuest_List(pDevice, pContext);
|
||||
CQuest_Slot* pInstance = new CQuest_Slot(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_List");
|
||||
MSG_BOX("Failed to Created : CQuest_Slot");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_List::Clone(void* pArg, CGameObject* pOwner)
|
||||
CGameObject* CQuest_Slot::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_List* pInstance = new CQuest_List(*this);
|
||||
CQuest_Slot* pInstance = new CQuest_Slot(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Header");
|
||||
MSG_BOX("Failed to Cloned : CQuest_Slot");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_List::Free()
|
||||
void CQuest_Slot::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
@@ -290,8 +329,9 @@ void CQuest_List::Free()
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CQuest_List::Describe_Entity()
|
||||
void CQuest_Slot::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -42,8 +42,8 @@ HRESULT CQuest_Status::Initialize(void* pArg)
|
||||
m_fAlphaTime = 1.f;
|
||||
Compute_UI(0);
|
||||
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
|
||||
m_fFontX = 80.f;
|
||||
m_fFontY = 480.f;
|
||||
m_fFontX = -780.f;
|
||||
m_fFontY = 610.f;
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -97,7 +97,7 @@ void CQuest_Status::Update(_float fTimeDelta)
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Click"), &m_iIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (m_bClick == true)
|
||||
{
|
||||
m_fSizeX = 148.f;
|
||||
@@ -115,6 +115,7 @@ void CQuest_Status::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
void CQuest_Status::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
@@ -274,12 +275,13 @@ void CQuest_Status::Compute_UI(_int Index)
|
||||
m_vUV = UV;
|
||||
}
|
||||
|
||||
void CQuest_Status::Set_Status(_int Index, _float m_fPosY, _wstring Text)
|
||||
void CQuest_Status::Set_Status(_int Index, _float PosX, _float PosY, _wstring Name)
|
||||
{
|
||||
m_iIndex = Index;
|
||||
Compute_UI(Index);
|
||||
MoveY(m_fPosY);
|
||||
m_pName = Text;
|
||||
MoveX(PosX);
|
||||
MoveY(PosY);
|
||||
m_pName = Name;
|
||||
}
|
||||
|
||||
void CQuest_Status::Set_Click(_bool bClick)
|
||||
|
||||
@@ -1,197 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Status.h"
|
||||
|
||||
CQuest_Status_Panel::CQuest_Status_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Status_Panel::CQuest_Status_Panel(const CQuest_Status_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Initialize(void* pArg)
|
||||
{
|
||||
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -860.f;
|
||||
Desc.fY = 120.f;
|
||||
Desc.fSizeX = 175.f;
|
||||
Desc.fSizeY = 680.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.04f;
|
||||
Visible(true);
|
||||
Set_Status();
|
||||
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Set_Status()
|
||||
{
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Status(0, 180.f, TEXT("전 체"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Status(1, 0.f, TEXT("진행중"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Status(2, -180.f, TEXT("완 료"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Click(true);
|
||||
m_bClick[0] = true;
|
||||
m_bClick[1] = false;
|
||||
m_bClick[2] = false;
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Slot_Hover(_int Index)
|
||||
{
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (i == Index)
|
||||
{
|
||||
m_bClick[i] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick[i] = false;
|
||||
}
|
||||
}
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Click(m_bClick[0]);
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Click(m_bClick[1]);
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Click(m_bClick[2]);
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestPanelUpdate"), &Index);
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_Status_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status1))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status1"), m_pQuest_Status1);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status2"), m_pQuest_Status2);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status3))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status3"), m_pQuest_Status3);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CQuest_Status_Panel* CQuest_Status_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Status_Panel* pInstance = new CQuest_Status_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_Status_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_Status_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_Status_Panel* pInstance = new CQuest_Status_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_Status_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CQuest_Status_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -122,7 +122,15 @@ HRESULT CRaceRing::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
|
||||
m_bNoCool = false;
|
||||
m_pInfoInstance->Add_Event(TEXT("NoCooL"), [this](void* p) {this->NoCool(*reinterpret_cast<_bool*>(p)); });
|
||||
Spell_UnLock(2);
|
||||
Spell_UnLock(4);
|
||||
Spell_UnLock(6);
|
||||
Spell_UnLock(11);
|
||||
Spell_UnLock(14);
|
||||
@@ -89,7 +90,7 @@ void CSkill_Data::Update(_float fTimeDelta)
|
||||
{
|
||||
for (_int i = 0; i < 34; ++i)
|
||||
{
|
||||
m_fSpell_CoolTime[i] = 1.f;
|
||||
m_fSpell_CoolTime[i] = 1.2f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -585,6 +585,15 @@ HRESULT CTroll::Bind_ShaderResources()
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -215,7 +215,15 @@ HRESULT CTroll_Rock::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -156,7 +156,15 @@ HRESULT CTroll_Weapon::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -138,7 +138,15 @@ HRESULT CWand::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,9 @@ class CAccio final : public CEffect_Container
|
||||
class CTrailObject* m_pRope_Trail = { nullptr };
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CEffectParts* m_pRotate0 = { nullptr };
|
||||
class CEffectParts* m_pRotate1 = { nullptr };
|
||||
class CEffectParts* m_pAccio_PT = { nullptr };
|
||||
class CEffectParts* m_pAccio_Distortion = { nullptr };
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 타게팅 된 위치
|
||||
@@ -50,9 +53,9 @@ class CAccio final : public CEffect_Container
|
||||
CCharacter_Controller* m_pEnemyCCT = { nullptr };
|
||||
|
||||
_float m_fAccRotateTime = {};
|
||||
_float m_fTurnSpeed = { 65.f };
|
||||
_float m_fRange = { 1.f };
|
||||
_float m_fAttenuation = { 65.f };
|
||||
_float m_fTurnSpeed = { 55.f };
|
||||
_float m_fRange = { 0.7f };
|
||||
_float m_fAttenuation = { 85.f };
|
||||
_bool m_isDissolve = { true };
|
||||
_bool m_isReverse = { false };
|
||||
_int m_iLoopTime = { 5 };
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Client
|
||||
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
|
||||
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, END};
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, END };
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
|
||||
|
||||
enum class SHADER_PASS_NPC_PBR_ANIM {
|
||||
EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To
|
||||
@@ -29,6 +29,9 @@ namespace Client
|
||||
};
|
||||
enum class UI_STATE { GAMEPLAYER, SPELL, QUEST_CANVES, INVENTORY, END };
|
||||
|
||||
enum class QUESTTYPE { MAIN, SUB, END };
|
||||
enum class QUESTSTATE {NONE, ACCEPTED, CLEARED, END };
|
||||
|
||||
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
|
||||
|
||||
enum class SKILL_TYPE {
|
||||
|
||||
@@ -68,10 +68,10 @@ namespace Client
|
||||
|
||||
typedef struct tagObjectiveInfo
|
||||
{
|
||||
_int iObjectType{};
|
||||
_int iTargetID{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
_bool bClear{};
|
||||
_int iTargetID{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
}OBJECTIVEINFO;
|
||||
|
||||
typedef struct tagRewardsInfo
|
||||
@@ -84,10 +84,11 @@ namespace Client
|
||||
{
|
||||
_int iQuestID{};
|
||||
_int iType{};
|
||||
_wstring pQuestName;
|
||||
_wstring pQuestInfo;
|
||||
_wstring pQuestName;
|
||||
_wstring pQuestInfo;
|
||||
vector<OBJECTIVEINFO> ObjectiveInfo;
|
||||
vector<REWARDSINFO> RewardsInfo;
|
||||
_int iAcceptState;
|
||||
}QUESTINFO;
|
||||
|
||||
typedef struct tagEffectInfo
|
||||
@@ -180,8 +181,8 @@ namespace Client
|
||||
|
||||
_float3 vDissolveValue = {};
|
||||
|
||||
|
||||
_float2 vPadding0 = {};
|
||||
_float fModelDistortIntensity = {};
|
||||
_float vPadding0 = {};
|
||||
|
||||
_float fLightDeley = {};
|
||||
_float fLightIntensity = {};
|
||||
@@ -208,6 +209,7 @@ namespace Client
|
||||
_bool isPadding2 = {};
|
||||
_bool isPadding3 = {};
|
||||
_bool isPadding4 = {};
|
||||
|
||||
}EFFECT_INFO;
|
||||
|
||||
typedef struct tagTrailInfo
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CCompleted_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CCompleted_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CCompleted_Panel(const CCompleted_Panel& rhs);
|
||||
virtual ~CCompleted_Panel() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Ready_Element(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
public:
|
||||
static CCompleted_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -1,49 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CInProgress_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CInProgress_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CInProgress_Panel(const CInProgress_Panel& rhs);
|
||||
virtual ~CInProgress_Panel() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Ready_Element(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
public:
|
||||
static CInProgress_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -66,10 +66,14 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
void Add_Event(_wstring EventName, function<void(void*)> Event);
|
||||
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
#pragma region QuestINFO
|
||||
QUESTINFO Get_Quest(_int QuestID);
|
||||
_int Get_Quest_Count(_int Index);
|
||||
const vector<QUESTINFO>& Get_AllQuest() const;
|
||||
const vector<QUESTINFO>& Get_ClearQuest() const;
|
||||
const vector<QUESTINFO>& Get_AcceptQuest() const;
|
||||
HRESULT Set_AcceptQuest(_int Index);
|
||||
#pragma endregion
|
||||
QUESTINFO Get_Quest_Info(_int QuestID);
|
||||
_int Get_Quest_Count();
|
||||
#pragma region Interactive_INFO
|
||||
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
||||
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Quest.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
class CQuestInstance final : public CQuest
|
||||
{
|
||||
private:
|
||||
CQuestInstance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuestInstance(const CQuestInstance& rhs);
|
||||
virtual ~CQuestInstance() = default;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
static CQuestInstance* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -1,52 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Border final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Border(const CQuest_Border& rhs);
|
||||
virtual ~CQuest_Border() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
_int m_iColor{};
|
||||
_int m_iQuest_Count{};
|
||||
|
||||
public:
|
||||
static CQuest_Border* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -34,18 +34,12 @@ class CQuest_Canvas final : public CCanvasObject
|
||||
|
||||
public:
|
||||
void Clear_Penel();
|
||||
void Update_Panel(_int Index);
|
||||
|
||||
virtual void Visible(_bool bVisible) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Panel = { nullptr };
|
||||
CGameObject* m_pInProgress_Panel = { nullptr };
|
||||
CGameObject* m_pCompleted_Panel = { nullptr };
|
||||
CGameObject* m_pQuest_Status_Panel = { nullptr };
|
||||
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
_bool m_bClick[3] = { false };
|
||||
_int m_iIndex{};
|
||||
public:
|
||||
|
||||
@@ -19,22 +19,37 @@ class CQuest_Data final : public CBase
|
||||
public:
|
||||
virtual void Update(_float fTimeDelta);
|
||||
|
||||
public:
|
||||
private:
|
||||
HRESULT Load_QuestInfo(const _char* pFilePath);
|
||||
void Set_ClearQuest(_int Index);
|
||||
void Update_AcceptQuest(_int MonsterIndex = -1);
|
||||
|
||||
public:
|
||||
QUESTINFO Get_Quest(_int QuestID);
|
||||
_int Get_Count();
|
||||
//const SPELLINFO& Get_Info(_uint SpellID) const;
|
||||
_int Get_Count(_int Index);
|
||||
const vector<QUESTINFO>& Get_AllQuest() const;
|
||||
const vector<QUESTINFO>& Get_ClearQuest() const;
|
||||
const vector<QUESTINFO>& Get_AcceptQuest() const;
|
||||
HRESULT Set_AcceptQuest(_int index);
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CGameObject* m_pQuestInstance = { nullptr };
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
QUESTINFO QuestInfo = {};
|
||||
OBJECTIVEINFO ObjectiveInfo = {};
|
||||
REWARDSINFO RewardsInfo = {};
|
||||
|
||||
vector<QUESTINFO> QuestInfos;
|
||||
vector<QUESTINFO> m_QuestNoneInfos;
|
||||
vector<CGameObject*> m_QuestAcceptedInfoObject;
|
||||
vector<QUESTINFO> m_QuestAcceptedInfos;
|
||||
vector<QUESTINFO> m_QuestEndInfos;
|
||||
|
||||
_int m_iQuest_Count{};
|
||||
_int m_iClearQeustCount{};
|
||||
_int m_iAcceptQeustCount{};
|
||||
|
||||
_bool m_bClear[1] = { false };
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ class CQuest_Entry_Line final : public CElementObject
|
||||
|
||||
_int m_iColor = { false };
|
||||
_int m_iQuest_Index{};
|
||||
|
||||
public:
|
||||
static CQuest_Entry_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Header final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Header(const CQuest_Header& rhs);
|
||||
virtual ~CQuest_Header() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iColor = true;
|
||||
|
||||
public:
|
||||
static CQuest_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -1,48 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_HeaderLine final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_HeaderLine(const CQuest_HeaderLine& rhs);
|
||||
virtual ~CQuest_HeaderLine() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
public:
|
||||
static CQuest_HeaderLine* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -39,6 +39,7 @@ class CQuest_Info final : public CElementObject
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
_wstring m_pQuest_Info;
|
||||
|
||||
|
||||
@@ -38,10 +38,10 @@ class CQuest_Info_Header final : public CElementObject
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
_int m_iColor = true;
|
||||
_int m_iQuest_Index{};
|
||||
|
||||
public:
|
||||
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -32,20 +32,29 @@ class CQuest_Panel final : public CPanelObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
void Set_Status();
|
||||
void Slot_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Border = { nullptr };
|
||||
CGameObject* m_pQuest_Header = { nullptr };
|
||||
CGameObject* m_pQuest_HeaderLine = { nullptr };
|
||||
CGameObject* m_pQuest_List = { nullptr };
|
||||
class CQuest_Data* m_pQuest_Date = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Data = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Info = { nullptr };
|
||||
CGameObject* m_pQuest_Info_Header= { nullptr };
|
||||
CGameObject* m_pQuest_Info_Header = { nullptr };
|
||||
CGameObject* m_pQuest_Info_Line = { nullptr };
|
||||
CGameObject* m_pQuest_Entry_Line = { nullptr };
|
||||
CGameObject* m_pQuest_Slot = { nullptr };
|
||||
CGameObject* m_pQuest_Status1 = { nullptr };
|
||||
CGameObject* m_pQuest_Status2 = { nullptr };
|
||||
CGameObject* m_pQuest_Status3 = { nullptr };
|
||||
|
||||
_bool m_bClick[3] = { false };
|
||||
public:
|
||||
static CQuest_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
+17
-11
@@ -11,12 +11,12 @@ NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_List final : public CElementObject
|
||||
class CQuest_Slot final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_List(const CQuest_List& rhs);
|
||||
virtual ~CQuest_List() = default;
|
||||
CQuest_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Slot(const CQuest_Slot& rhs);
|
||||
virtual ~CQuest_Slot() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
@@ -25,6 +25,10 @@ class CQuest_List final : public CElementObject
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
virtual void SizeUpX(_float fSizeX) override;
|
||||
virtual void SizeUpY(_float fSizeY) override;
|
||||
virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
@@ -35,21 +39,23 @@ class CQuest_List final : public CElementObject
|
||||
void Hover();
|
||||
|
||||
public:
|
||||
void Set_Name(_wstring Name, _int ID);
|
||||
void Set_QuestType(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
_int m_iColor = { false };
|
||||
_wstring m_pFontSize;
|
||||
_wstring m_pQuest_Name;
|
||||
_int m_pQuest_ID{};
|
||||
_float m_fOffSetX{};
|
||||
_float m_fOffSetY{};
|
||||
_uint m_iCols{};
|
||||
_int m_iColor{};
|
||||
|
||||
_int m_iQuestIndex{};
|
||||
_int m_iQuestCount{};
|
||||
public:
|
||||
static CQuest_List* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
static CQuest_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
@@ -33,7 +33,7 @@ class CQuest_Status final : public CElementObject
|
||||
|
||||
public:
|
||||
void Compute_UI(_int Index);
|
||||
void Set_Status(_int Index, _float m_PosY, _wstring Text);
|
||||
void Set_Status(_int Index, _float PosX, _float m_PosY, _wstring Name);
|
||||
|
||||
void Set_Click(_bool bClick);
|
||||
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Status_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CQuest_Status_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Status_Panel(const CQuest_Status_Panel& rhs);
|
||||
virtual ~CQuest_Status_Panel() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Ready_Element(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
void Set_Status();
|
||||
void Slot_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Status1 = { nullptr };
|
||||
CGameObject* m_pQuest_Status2 = { nullptr };
|
||||
CGameObject* m_pQuest_Status3 = { nullptr };
|
||||
|
||||
_bool m_bClick[3] = { false };
|
||||
|
||||
public:
|
||||
static CQuest_Status_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -34,6 +34,7 @@ class CTrailObject final : public CPartObject
|
||||
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
|
||||
|
||||
void SetDissolve(_bool isDissolve) { m_TrailInfo.isDissolve = true; }
|
||||
TRAIL_INFO* Get_TrailInfo() { return &m_TrailInfo; }
|
||||
|
||||
private:
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,80 @@
|
||||
<QuestInfo>
|
||||
<QuestData>
|
||||
<Quest QuestID="1" QuestType="Main" QuestName="트롤을 잡아라!" QuestInfo="마을에서 난리를 피우는 트롤을 제압하기">
|
||||
<Quest QuestID="0" QuestType="Main" QuestName="전사의 결투!" QuestInfo="고블린 전사와 힘겨루기를 해서 승리하기" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="1" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
<Objective Type="0" TargetID="0" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="1" QuestType="Main" QuestName="마법 대결!" QuestInfo="고블린 마법사와 마법 대결에서 승리하기" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="1" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="2" QuestType="Main" QuestName="트롤을 잡아라!" QuestInfo="마을에서 난리를 피우는 트롤을 제압하기" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="3" QuestType="Main" QuestName="빗자루 레이스!" QuestInfo="빗자루 레이스에서 1등 하기" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="-1" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="4" QuestType="Main" QuestName="zxcv!" QuestInfo="zxcv" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="5" QuestType="Main" QuestName="qwer!" QuestInfo="qwer" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="6" QuestType="Main" QuestName="tyui!" QuestInfo="tyui" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="7" QuestType="Main" QuestName="ghjk!" QuestInfo="ghjk" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="8" QuestType="Main" QuestName="vbnm!" QuestInfo="vbnm" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="9" QuestType="Main" QuestName="1234!" QuestInfo="1234" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<StatInfo>
|
||||
<STAT_PLAYER Name="플레이어" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN Name="고블린 전사" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN_WIZARD Name="고블린 마법사" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_TROLL Name="트롤" HP="400" MAXHP="400" TARGETHP="400" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
||||
<STAT_PLAYER Name="플레이어" OBJECTID="-1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN Name="고블린 전사" OBJECTID="0" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN_WIZARD Name="고블린 마법사" OBJECTID="1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_TROLL Name="트롤" OBJECTID="2" HP="400" MAXHP="400" TARGETHP="400" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
||||
</StatInfo>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user