diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 5495075f9..60c0ef454 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -2426,6 +2426,100 @@ PS_OUT PS_BoosterHpBar(PS_IN In)
return Out;
}
+PS_OUT PS_DialogueChoice(PS_IN In)
+{
+ PS_OUT Out = (PS_OUT) 0;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 0.f);
+ float2 uv = In.vTexcoord;
+ float2 CurrentPixelPosition = uv * g_fCurrent_Size;
+ float OriginLeft = g_fNine_Slice.x;
+ float OriginRight = g_fNine_Slice.y;
+ float OriginTop = g_fNine_Slice.z;
+ float OriginBottom = g_fNine_Slice.w;
+
+ float CurrentLeft = OriginLeft;
+ float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
+ float CurrentTop = OriginTop;
+ float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
+
+ float2 Finaluv = In.vTexcoord;
+
+ if (CurrentPixelPosition.x < CurrentLeft)
+ {
+ Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
+ }
+ else if (CurrentPixelPosition.x > CurrentRight)
+ {
+ float dist = CurrentPixelPosition.x - CurrentRight;
+ Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
+ Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
+ }
+
+ if (CurrentPixelPosition.y < CurrentTop)
+ {
+ Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
+ }
+ else if (CurrentPixelPosition.y > CurrentBottom)
+ {
+ float dist = CurrentPixelPosition.y - CurrentBottom;
+ Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
+ Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
+ }
+
+
+ if (g_iHover != 0)
+ {
+ float4 tex = g_Texture.Sample(ClampSampler, Finaluv);
+ Color = tex;
+
+ float2 ImgaePos1 = g_fImageSipos1.xy;
+ float2 ImgaeSize1 = g_fImageSipos1.zw;
+ float2 ImgaePixel = Finaluv * g_fOrigin_Size;
+ float2 localUV = (ImgaePixel - ImgaePos1) / ImgaeSize1;
+ bool inside = all(localUV >= 0.0f && localUV <= 1.0f);
+ if (inside)
+ {
+ float4 tex2 = g_Texture1.Sample(ClampSampler, localUV);
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
+ float2 ImgaePos2 = g_fImageSipos2.xy;
+ float2 ImgaeSize2 = g_fImageSipos2.zw;
+ float2 ImgaePixe2 = Finaluv * g_fOrigin_Size;
+ float2 ReverseUV = (ImgaePixe2 - ImgaePos2) / ImgaeSize2;
+ bool inside2 = all(ReverseUV >= 0.0f && ReverseUV <= 1.0f);
+ if (inside2)
+ {
+ ReverseUV.y = 1.f - ReverseUV.y;
+ float4 tex2 = g_Texture1.Sample(ClampSampler, ReverseUV);
+ Color = lerp(Color, tex2, tex2.a);
+ }
+ }
+
+ float2 ImgaePos3 = g_fImageSipos3.xy / g_fCurrent_Size;
+ float2 ImgaeSize3 = g_fImageSipos3.zw / g_fCurrent_Size;
+ float2 localUV2 = (In.vTexcoord - ImgaePos3) / ImgaeSize3;
+ bool inside3 = all(localUV2 >= 0.0f && localUV2 <= 1.0f);
+ if (inside3)
+ {
+ float4 tex2 = g_Texture2.Sample(ClampSampler, localUV2);
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
struct VS_IN3D
{
float3 vPosition : POSITION;
@@ -3206,6 +3300,16 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_BoosterHpBar();
}
+ pass DialogueChoice
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+
+ PixelShader = compile ps_5_0 PS_DialogueChoice();
+ }
+
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index c7269a002..f48b5b0f4 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -176,6 +176,7 @@ call Update_Resources.bat
+
@@ -221,6 +222,7 @@ call Update_Resources.bat
+
@@ -463,6 +465,7 @@ call Update_Resources.bat
+
@@ -510,6 +513,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index fc04acf0e..e99bb8320 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -881,6 +881,12 @@
02.GameObjects\Item\ThestralCarriage
+
+ 03.InfoInstance\04.CutSceneInfo
+
+
+ 04.Mechanic\TimeSocket
+
@@ -930,15 +936,6 @@
{a7d0a3fa-b3dc-40c6-b258-ffcde49b05c1}
-
- {b5bef783-5315-4488-ac64-cb98d16a84a9}
-
-
- {31681680-d5de-43c9-bc2d-2c91ca58a593}
-
-
- {1bfec6dc-f008-4d18-87d6-be38824b1272}
-
{2b209526-b728-4fba-a184-b9224d72903a}
@@ -1017,30 +1014,6 @@
{dc05dfc9-22e5-4a2a-b016-c55b215c0c68}
-
- {0834c76d-83d8-4ef5-9d19-7277686d28c5}
-
-
- {017fc692-bac0-4635-843c-02fb59009f5b}
-
-
- {349939a0-8b9a-4a1a-8f0a-ca5014cd4e18}
-
-
- {5fa1e5a9-acd8-499d-90ee-9cf17441b3a5}
-
-
- {41d2e34e-5280-4b3c-961e-064484f1449d}
-
-
- {1034dd61-dd17-456a-990b-628c45f74b51}
-
-
- {2999d0c5-81e4-44d6-99b3-4801e6f84dd7}
-
-
- {0a3f9629-27d1-411c-806e-b550af8f1ca1}
-
{23fc95c4-0db3-4569-bd37-4d9bc32938ba}
@@ -1164,12 +1137,6 @@
{6bc9fd95-31bc-40f3-83cc-15ebb756b04a}
-
- {c5b61cb3-bc5f-4429-8715-b309dcf054b2}
-
-
- {2bc5b43e-0e24-49d4-95b0-549ad4428201}
-
{f3f219aa-034f-4aa2-9f2e-d75d15bd1f4a}
@@ -1245,48 +1212,18 @@
{9cc8fea6-837e-4f68-b116-134c9dc68a26}
-
- {5a7e32b1-6fa9-44e2-8d6e-b117c3454d5b}
-
-
- {46e41554-f9a0-41c5-992c-f736ef1a333f}
-
-
- {039f471d-9623-4026-9493-5bb52c6a8cd3}
-
{837ff377-2bcd-4a54-baf2-18b1be9d90a0}
{7d6fe51e-3d6d-4fed-9e5d-27e257672e01}
-
- {f109c973-c532-4549-9680-d0d6495b0fa8}
-
{b8c7e12b-da04-4d49-bc61-104649975d0b}
{17eaf081-6fbf-4965-b04d-10749e6032c6}
-
- {75479637-e795-4656-a4ef-3772d8a6d007}
-
-
- {27d5a2b8-98db-4dbf-9916-0806cfa97c9c}
-
-
- {a7f11f50-5740-4670-ad9e-d21640b2cca7}
-
-
- {12ff4f09-ec6c-4b98-966a-0d84c9ad253c}
-
-
- {7bb8a04a-00a0-4864-9781-8069d84806ca}
-
-
- {e68261eb-a581-4bf5-b48d-b47cc81f7406}
-
{7e641382-9dfa-4da7-a8c8-a3ee06360e7a}
@@ -1317,9 +1254,6 @@
{c584798b-d7aa-4cb0-b6e8-c2aff73757ce}
-
- {0ed6a11e-5d22-4b9f-a39c-f2319c27caf4}
-
{5973b96c-42c3-4cda-9627-f741e12124cd}
@@ -1392,24 +1326,12 @@
{14ad0431-680b-4c8b-93d7-601aee5ce435}
-
- {22207d12-6fd2-4692-9329-b0ea0e19ca84}
-
{1d1dc743-5cf2-4b8f-a80e-16b16437c7aa}
-
- {81add99f-7450-4730-8d3f-bf1de06b2b8d}
-
-
- {2e2a53dc-9ea6-427f-88b3-d8857193d432}
-
{967d1741-2780-40b7-b55e-9fd58e931ef7}
-
- {36962dce-8c99-4c54-9189-2a49785a211e}
-
{13977e62-6b05-41de-9919-20a06cd336e5}
@@ -1428,15 +1350,6 @@
{c9370e36-317e-45e7-a8c7-98a623864824}
-
- {48b905c1-b91e-44ca-a61b-86633826768b}
-
-
- {d6be355f-c860-4323-9967-583265749698}
-
-
- {51b299f6-ebb0-4f58-9620-5e1dc24a2e60}
-
{b49a3671-96d0-47b8-833f-28190d549b0f}
@@ -1458,9 +1371,6 @@
{34a4beb9-ccb9-4847-ae45-af4e7dc25d94}
-
- {fd4a0869-2491-4fec-9df9-3aedbac96171}
-
{02cb243a-f63e-4e55-9d55-b47e31a4c13e}
@@ -1500,9 +1410,6 @@
{7c8b3162-a6d5-441f-84ae-cfb4bf779dfa}
-
- {2326c134-a2bb-45f1-8452-2dd49bf42697}
-
{6ffe4bf3-60e2-4dd3-beef-cc7cf7b50328}
@@ -1515,60 +1422,18 @@
{9e8bccb6-c491-4f3a-bdb8-5f03f13ad84d}
-
- {fe64513c-fbb3-4577-b424-82d99c9075a3}
-
{08163c4a-63c9-4cc2-97b4-97bb2f9467ff}
{bffcced5-6951-4db4-9df1-44b33b52ece7}
-
- {35a6cb6f-4bbb-47fb-8f7a-63615128dece}
-
{6bbfb8f0-c71a-4769-b1e6-efd5d863ba7f}
{7672784a-86a8-4485-a4de-a979bd0c8f52}
-
- {24f6903f-8f6b-46ff-a387-ecb44d673887}
-
-
- {f24321bb-6750-4baa-b19a-bf5a3c2a8909}
-
-
- {cbb70230-b830-4554-a678-c571d5a87176}
-
-
- {77fc199c-dd8f-4b36-8869-161a4998c189}
-
-
- {70ff75c1-3309-4db7-9f5c-51573046df9e}
-
-
- {5fa641cd-bc30-4ab6-a8d4-26a9785ef4ae}
-
-
- {c69a2485-7f6e-4e22-81b4-1410fdae9d57}
-
-
- {2c39ba68-2f23-4bc9-a277-b6e9295c11a0}
-
-
- {9e2863cd-1a30-4a27-a076-5e1baff3dee8}
-
-
- {2fd96fb0-dbc3-4486-afda-82b3b1b63060}
-
-
- {ee880571-e18c-4206-80ea-448cadd04d9a}
-
-
- {cef80506-72c7-4bb9-a691-760f0a576eb7}
-
{c3b86f00-da19-47ad-a26e-7ff641e2c4d4}
@@ -1596,15 +1461,9 @@
{7d84f56c-9d2f-483e-9ee1-2637d35ccb7d}
-
- {69f95207-1e94-42f2-9690-d3e34e4ff5a9}
-
{262cc240-d062-406a-9d47-36702fe6b9f3}
-
- {785b1fd0-ef6f-43ab-96fc-e233cd93b29d}
-
{87b1db75-938f-462f-a288-fe9c8d6c689e}
@@ -1638,9 +1497,6 @@
{b265ac30-97f5-4dac-bc6b-b11fba1c5ad8}
-
- {b85f80a2-d88e-4eb0-91af-da93b49bfa09}
-
{f9c3f711-4032-4455-9d70-b81c5320f8c8}
@@ -1653,9 +1509,6 @@
{09764279-bf54-48e4-853a-45b5a65c92a7}
-
- {11c35878-12b4-4c55-b872-004fed9a4fb2}
-
{74f21f9b-30bf-412e-ba4e-526958ab2a52}
@@ -1677,9 +1530,6 @@
{a24f4687-f540-44e5-ae47-fe176c4c9042}
-
- {b03591a7-a14e-425a-8a3f-2a6a054c884a}
-
{a94e24d2-0f61-4263-b834-bfdf9f6c06ae}
@@ -1692,15 +1542,6 @@
{db12252c-8c0d-40bc-9466-e76ec60e2509}
-
- {0736f27e-2722-483b-88b6-30471ad70835}
-
-
- {27251db2-19f2-4492-a3a4-32c11526f413}
-
-
- {6d1f0862-40a4-4c0b-9921-87fe6af2008b}
-
{0c62f4f7-a0e6-4ff2-a4dd-25e3dd79709e}
@@ -1752,9 +1593,6 @@
{fd036f05-4c10-4322-b0c2-aac65e7011a1}
-
- {99712e38-b76a-4c04-8ba3-16ddaac72679}
-
{5bf233fa-6f9c-40d5-85c6-adbc7fcf7d28}
@@ -1821,9 +1659,183 @@
{5351494b-8047-488a-ba2b-59a88dae4534}
+
+ {41ab19cd-5fd6-48e8-b920-cf6d034c5677}
+
+
+ {b5bef783-5315-4488-ac64-cb98d16a84a9}
+
+
+ {31681680-d5de-43c9-bc2d-2c91ca58a593}
+
+
+ {1bfec6dc-f008-4d18-87d6-be38824b1272}
+
+
+ {0834c76d-83d8-4ef5-9d19-7277686d28c5}
+
+
+ {5fa1e5a9-acd8-499d-90ee-9cf17441b3a5}
+
+
+ {41d2e34e-5280-4b3c-961e-064484f1449d}
+
+
+ {1034dd61-dd17-456a-990b-628c45f74b51}
+
+
+ {ee880571-e18c-4206-80ea-448cadd04d9a}
+
+
+ {b85f80a2-d88e-4eb0-91af-da93b49bfa09}
+
+
+ {99712e38-b76a-4c04-8ba3-16ddaac72679}
+
+
+ {017fc692-bac0-4635-843c-02fb59009f5b}
+
+
+ {039f471d-9623-4026-9493-5bb52c6a8cd3}
+
+
+ {f109c973-c532-4549-9680-d0d6495b0fa8}
+
+
+ {75479637-e795-4656-a4ef-3772d8a6d007}
+
+
+ {12ff4f09-ec6c-4b98-966a-0d84c9ad253c}
+
+
+ {e68261eb-a581-4bf5-b48d-b47cc81f7406}
+
+
+ {22207d12-6fd2-4692-9329-b0ea0e19ca84}
+
+
+ {81add99f-7450-4730-8d3f-bf1de06b2b8d}
+
+
+ {fd4a0869-2491-4fec-9df9-3aedbac96171}
+
+
+ {cbb70230-b830-4554-a678-c571d5a87176}
+
+
+ {77fc199c-dd8f-4b36-8869-161a4998c189}
+
+
+ {70ff75c1-3309-4db7-9f5c-51573046df9e}
+
+
+ {c69a2485-7f6e-4e22-81b4-1410fdae9d57}
+
+
+ {2c39ba68-2f23-4bc9-a277-b6e9295c11a0}
+
+
+ {2fd96fb0-dbc3-4486-afda-82b3b1b63060}
+
+
+ {cef80506-72c7-4bb9-a691-760f0a576eb7}
+
+
+ {785b1fd0-ef6f-43ab-96fc-e233cd93b29d}
+
+
+ {0736f27e-2722-483b-88b6-30471ad70835}
+
{b50fed80-37dd-4adb-afd4-ba153cef8a92}
+
+ {349939a0-8b9a-4a1a-8f0a-ca5014cd4e18}
+
+
+ {2999d0c5-81e4-44d6-99b3-4801e6f84dd7}
+
+
+ {0a3f9629-27d1-411c-806e-b550af8f1ca1}
+
+
+ {a7f11f50-5740-4670-ad9e-d21640b2cca7}
+
+
+ {0ed6a11e-5d22-4b9f-a39c-f2319c27caf4}
+
+
+ {5fa641cd-bc30-4ab6-a8d4-26a9785ef4ae}
+
+
+ {9e2863cd-1a30-4a27-a076-5e1baff3dee8}
+
+
+ {27251db2-19f2-4492-a3a4-32c11526f413}
+
+
+ {6d1f0862-40a4-4c0b-9921-87fe6af2008b}
+
+
+ {5a7e32b1-6fa9-44e2-8d6e-b117c3454d5b}
+
+
+ {46e41554-f9a0-41c5-992c-f736ef1a333f}
+
+
+ {27d5a2b8-98db-4dbf-9916-0806cfa97c9c}
+
+
+ {7bb8a04a-00a0-4864-9781-8069d84806ca}
+
+
+ {2e2a53dc-9ea6-427f-88b3-d8857193d432}
+
+
+ {48b905c1-b91e-44ca-a61b-86633826768b}
+
+
+ {d6be355f-c860-4323-9967-583265749698}
+
+
+ {51b299f6-ebb0-4f58-9620-5e1dc24a2e60}
+
+
+ {2326c134-a2bb-45f1-8452-2dd49bf42697}
+
+
+ {24f6903f-8f6b-46ff-a387-ecb44d673887}
+
+
+ {f24321bb-6750-4baa-b19a-bf5a3c2a8909}
+
+
+ {c5b61cb3-bc5f-4429-8715-b309dcf054b2}
+
+
+ {2bc5b43e-0e24-49d4-95b0-549ad4428201}
+
+
+ {69f95207-1e94-42f2-9690-d3e34e4ff5a9}
+
+
+ {36962dce-8c99-4c54-9189-2a49785a211e}
+
+
+ {fe64513c-fbb3-4577-b424-82d99c9075a3}
+
+
+ {35a6cb6f-4bbb-47fb-8f7a-63615128dece}
+
+
+ {11c35878-12b4-4c55-b872-004fed9a4fb2}
+
+
+ {b03591a7-a14e-425a-8a3f-2a6a054c884a}
+
+
+ {ca386d46-aca6-44a4-94cc-15610e1a878e}
+
{d07bd195-0cdf-4a47-8c50-e3a88361352f}
@@ -2661,6 +2673,12 @@
02.GameObjects\Item\ThestralCarriage
+
+ 03.InfoInstance\04.CutSceneInfo
+
+
+ 04.Mechanic\TimeSocket
+
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index a93dc7f28..bd50d7874 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -74,7 +74,9 @@ void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta)
if (true == m_bMovable) {
m_vAccRotDegrees.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor;
m_vAccRotDegrees.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor;
- CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccRotDegrees);
+ _float2 vAccRotDegree = m_pBinded_Camera->Get_RotDegreeVerticalLock();
+ CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccRotDegrees, vAccRotDegree.x, vAccRotDegree.y);
+ m_pBinded_Camera->Set_RotDegreeVerticalLock(vAccRotDegree);
}
{
_vector vLookTargetPos = Calc_LookTargetPos();
@@ -466,7 +468,6 @@ void CCamPosition_Shoulder::Describe_Entity()
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
if (GUI::CollapsingHeader("Cam_Shoulder")) {
m_pTransformCom->Describe_Entity();
-
GUI::Text("fMouseSensor : %.1f", m_fMouseSensor);
GUI::SliderFloat("m_fFollowTargetIncludedAngleDegree", &m_fFollowTargetIncludedAngleDegree, -360.f, 360.f, "%.1f");
GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f);
@@ -485,6 +486,7 @@ void CCamPosition_Shoulder::Describe_Entity()
GUI::TreePop();
}
+ m_pBinded_Camera->Describe_Entity();
}
GUI::End();
}
diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
index b4624fb49..5b6d26d31 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
@@ -208,6 +208,8 @@ void CCamera_Gaze::Describe_Entity()
GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z);
GUI::Text("FOLLOW_SRC %.2f, %.2f, %.2f", m_vFollowPos_Src.x, m_vFollowPos_Src.y, m_vFollowPos_Src.z);
GUI::Text("FOLLOW_DST %.2f, %.2f, %.2f", m_vFollowPos_Dest.x, m_vFollowPos_Dest.y, m_vFollowPos_Dest.z);
+
+ GUI::DragFloat2("VerticalAngle", (_float*)&m_vAccRotDegree_VerticalLocks, 1.f, 0.f, 89.f);
GUI::Checkbox("TransitionLerp", &m_bEnable_TransitionLerp);
if (true == m_bEnable_TransitionLerp) {
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vTransitionTime.x, m_vTransitionTime.y);
diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
new file mode 100644
index 000000000..4ec4f9475
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
@@ -0,0 +1,151 @@
+#include "pch.h"
+#include "CutSceneInfo.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+#include "Monster.h"
+#include "Layer.h"
+#include "Player.h"
+#include "TimeSocket.h"
+
+CCutSceneInfo::CCutSceneInfo()
+{
+}
+void CCutSceneInfo::Update(_float fTimeDelta)
+{
+ _float fRatio = 0.f;
+ for (map<_string, TimeLine>::iterator iter = m_funcActiveEvents.begin(); iter != m_funcActiveEvents.end();) {
+ list* pSockets = &iter->second.m_Sockets;
+ iter->second.m_vTimer.x += fTimeDelta;
+ fRatio = CMyTools::Saturate(iter->second.m_vTimer.x / iter->second.m_vTimer.y);
+
+ for (list::iterator socketIter = pSockets->begin(); socketIter == pSockets->end();) {
+ if (false == (*socketIter)->Trigger(fRatio)) {
+ socketIter++;
+ break;
+ }
+ else {
+ socketIter = pSockets->erase(socketIter);
+ }
+ }
+ if (pSockets->empty()) {
+ iter = m_funcActiveEvents.erase(iter);
+ }
+ else {
+ iter++;
+ }
+ }
+}
+
+void CCutSceneInfo::Change_Level()
+{
+ _uint iLevel = m_pGameInstance->Get_NextLevelID();
+
+ Clear_ActiveEvents();
+}
+
+void CCutSceneInfo::Active_Event(_string& strKey)
+{
+ map<_string, TimeLine>::iterator iter = m_funcWaitEvents.find(strKey);
+ if (iter != m_funcWaitEvents.end()) {
+ m_funcActiveEvents.emplace(iter->first, iter->second);
+ m_funcWaitEvents.erase(iter);
+ }
+}
+
+HRESULT CCutSceneInfo::DeActive_ActiveEvent(_string& strKey)
+{
+ map<_string, TimeLine>::iterator iter = m_funcActiveEvents.find(strKey);
+ if (iter != m_funcActiveEvents.end()) {
+
+ for (list::iterator socketIter = (*iter).second.m_Sockets.begin();
+ socketIter == (*iter).second.m_Sockets.end(); ++iter) {
+ SAFE_RELEASE((*socketIter));
+ }
+ m_funcActiveEvents.erase(iter);
+ }
+ return S_OK;
+}
+
+void CCutSceneInfo::Load_Events(LEVEL eLevel)
+{
+ switch (eLevel)
+ {
+ case Client::LEVEL::STATIC:
+ break;
+ case Client::LEVEL::LOADING:
+ break;
+ case Client::LEVEL::LOGO:
+ break;
+ case Client::LEVEL::INTRO:
+ break;
+ case Client::LEVEL::GAMEPLAY:
+ break;
+ case Client::LEVEL::FIELD:
+ break;
+ case Client::LEVEL::RESTART:
+ break;
+ case Client::LEVEL::END:
+ break;
+ default:
+ break;
+ }
+}
+
+HRESULT CCutSceneInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
+{
+ m_pGameInstance = CGameInstance::GetInstance();
+ m_pInfoInstance = CInfoInstance::GetInstance();
+ m_pDevice = pDevice;
+ m_pContext = pContex;
+
+ SAFE_ADDREF(m_pGameInstance);
+ SAFE_ADDREF(m_pInfoInstance);
+ SAFE_ADDREF(m_pDevice);
+ SAFE_ADDREF(m_pContext);
+
+ return S_OK;
+}
+HRESULT CCutSceneInfo::Clear_ActiveEvents()
+{
+ return Clear_Events(m_funcActiveEvents);
+}
+HRESULT CCutSceneInfo::Clear_Events(map<_string, TimeLine>& Events)
+{
+ map<_string, TimeLine>::iterator iter = Events.begin();
+ for (; iter != Events.end();) {
+
+ for (list::iterator socketIter = (*iter).second.m_Sockets.begin();
+ socketIter == (*iter).second.m_Sockets.end(); ++iter) {
+ SAFE_RELEASE((*socketIter));
+ }
+ iter = Events.erase(iter);
+ }
+ return S_OK;
+}
+HRESULT CCutSceneInfo::Clear_AllEvents()
+{
+ Clear_Events(m_funcActiveEvents);
+ Clear_Events(m_funcWaitEvents);
+
+ return E_NOTIMPL;
+}
+CCutSceneInfo* CCutSceneInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
+{
+ CCutSceneInfo* pInstance = new CCutSceneInfo();
+
+ if (FAILED(pInstance->Initialize(pDevice, pContex))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+void CCutSceneInfo::Free()
+{
+ __super::Free();
+
+ Clear_AllEvents();
+
+ SAFE_RELEASE(m_pGameInstance);
+ SAFE_RELEASE(m_pInfoInstance);
+ SAFE_RELEASE(m_pDevice);
+ SAFE_RELEASE(m_pContext);
+}
diff --git a/Jusin154_Team3D/Client/Private/Dialogue.cpp b/Jusin154_Team3D/Client/Private/Dialogue.cpp
index aa0095f1a..861f45413 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue.cpp
@@ -181,7 +181,6 @@ void CDialogue::SizeUpdate(_wstring pName, _wstring pText)
void CDialogue::Set_Time(_float fTime)
{
- m_bHover = true;
m_fTime = fTime;
}
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
index f71bc98f4..ce8d72c9f 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
@@ -44,9 +44,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
DialogueInfo line{};
pLine->QueryIntAttribute("ID", &line.iLineID);
- int type = 0;
- pLine->QueryIntAttribute("Type", &type);
- line.bType = (type == 1);
+ pLine->QueryIntAttribute("Type", &line.iTextType);
const char* text = pLine->Attribute("Text");
if (text) line.pText = CMyTools::ToWstring(text);
@@ -81,7 +79,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
return S_OK;
}
-const NPCDIALOGUEINFO& CDialogue_Data::Get_Info(_wstring NpcName) const
+const CURRENTDIALOGUEINFO& CDialogue_Data::Get_Info(_wstring NpcName, _int iTextID) const
{
auto iter = m_DialogueInfo.find(NpcName);
if (iter == m_DialogueInfo.end())
@@ -89,7 +87,13 @@ const NPCDIALOGUEINFO& CDialogue_Data::Get_Info(_wstring NpcName) const
return Dummy;
}
- return iter->second;
+ auto Text = iter->second.Info.find(iTextID);
+ if (Text == iter->second.Info.end())
+ {
+ return Dummy;
+ }
+
+ return Text->second;
}
CDialogue_Data* CDialogue_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
index 6ce9e85f9..a3ed45d57 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
@@ -23,9 +23,9 @@ HRESULT CDialogue_Font::Initialize_Prototype()
HRESULT CDialogue_Font::Initialize(void* pArg)
{
m_pInfoInstance->Add_Event(TEXT("Dialogue"), [this](void* p) {this->Add_Text(p); });
-
m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); });
m_pInfoInstance->Add_Event(TEXT("NPCInteractionOn"), [this](void* p) {this->NpcInfo(p); });
+ m_pInfoInstance->Add_Event(TEXT("NPCDialogue"), [this](void* p) {this->NpcDialogue(reinterpret_cast(p)); });
for (_int i = 0; i < 5; ++i)
{
@@ -46,6 +46,38 @@ void CDialogue_Font::Priority_Update(_float fTimeDelta)
void CDialogue_Font::Update(_float fTimeDelta)
{
+ if (m_bNpcInteract == false)
+ {
+ if (m_bCurrentInteract == true)
+ m_bCurrentInteract = false;
+ }
+
+ if (m_bNpcInteract != m_bCurrentInteract)
+ {
+ m_bCurrentInteract = m_bNpcInteract;
+ NpcDialogue();
+ Npc_Dialogue(m_Info);
+ }
+
+ if (m_bCurrentInteract == true)
+ {
+ if (m_pGameInstance->Key_Down(DIK_RETURN))
+ {
+ switch (m_iType)
+ {
+ case 0:
+ NextText();
+ break;
+ case 1:
+ CHoice();
+ break;
+ default:
+ break;
+ }
+ }
+
+ }
+
if (!m_pCurrentDialogue.empty())
{
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
@@ -62,24 +94,11 @@ void CDialogue_Font::Update(_float fTimeDelta)
}
}
}
-
- if (m_bNpcInteract != m_bCurrentInteract)
- {
- m_bCurrentInteract = m_bNpcInteract;
- m_pInfoInstance->Get_Dialogue(m_pNpcName);
- }
-
- if (m_bNpcInteract == false)
- {
- if (m_bCurrentInteract == true)
- m_bCurrentInteract = false;
- }
-
}
void CDialogue_Font::Late_Update(_float fTimeDelta)
{
- if (!m_DialoguInfo.empty())
+ if (!m_pCurrentDialogue.empty())
{
m_pGameInstance->Add_RenderGroup(RENDER::UI_OVERLAY, this);
}
@@ -136,6 +155,35 @@ void CDialogue_Font::Add_Text(void* pArg)
Dialogue->SizeUpdate(pInfo.pName, pInfo.pText);
Dialogue->Visible(true);
Dialogue->Set_Time(pInfo.fTime);
+ Dialogue->Set_Hover(true);
+
+ m_pCurrentDialogue.push_front(Dialogue);
+}
+
+void CDialogue_Font::Npc_Dialogue(DIALOGUEINFO Info)
+{
+ if (m_DialoguInfo.empty() == true)
+ return;
+
+ if (m_pCurrentDialogue.size() >= 5)
+ {
+ CDialogue* old = m_pCurrentDialogue.back();
+ m_pCurrentDialogue.pop_back();
+ m_DialoguInfo.push_back(old);
+ }
+
+ CDialogue* Dialogue = m_DialoguInfo.back();
+ m_DialoguInfo.pop_back();
+
+ for (auto& it : m_pCurrentDialogue)
+ {
+ it->Up();
+ }
+
+ Dialogue->SizeUpdate(Info.pName, Info.pText);
+ Dialogue->Visible(true);
+ Dialogue->Set_Time(Info.fTime);
+ Dialogue->Set_Hover(true);
m_pCurrentDialogue.push_front(Dialogue);
}
@@ -152,6 +200,63 @@ void CDialogue_Font::NpcInteract(_bool bInteract)
m_bNpcInteract = bInteract;
}
+void CDialogue_Font::NpcDialogue()
+{
+ auto Info = m_pInfoInstance->Get_Dialogue(m_pNpcName, m_iTextID);
+ m_Info.pName = m_pNpcName;
+ m_Info.pText = Info.pText;
+ m_Info.fTime = 99999.f;
+ m_iType = Info.iTextType;
+ m_iNextID = Info.NextTextID;
+}
+
+void CDialogue_Font::NpcDialogue(CNPCStat* Stat)
+{
+ auto Info = m_pInfoInstance->Get_Dialogue(Stat->Get_Stat().pName, 0);
+ m_Info.pName = Stat->Get_Stat().pNpc_Name;
+ m_Info.pText = Info.pText;
+ m_Info.fTime = 3.f;
+ m_iType = Info.iTextType;
+ m_iNextID = Info.NextTextID;
+ Npc_Dialogue(m_Info);
+}
+
+void CDialogue_Font::CHoice()
+{
+ auto Info = m_pInfoInstance->Get_Dialogue(m_pNpcName, m_iTextID);
+ // Info.ChoiceInfo.size();
+}
+
+void CDialogue_Font::Shop()
+{
+}
+
+void CDialogue_Font::SpellLearn()
+{
+}
+
+void CDialogue_Font::NextText()
+{
+ if (m_iNextID == -1)
+ {
+ m_pCurrentDialogue[0]->Set_Hover(false);
+ _bool Interact = false;
+ m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
+ m_pCurrentDialogue[0]->Set_Hover(true);
+ }
+ else
+ {
+ m_pCurrentDialogue[0]->Set_Hover(false);
+ m_iTextID = m_iNextID;
+ NpcDialogue();
+ Npc_Dialogue(m_Info);
+ if (m_iNextID == -1)
+ {
+ m_bEndText = true;
+ }
+ }
+}
+
CDialogue_Font* CDialogue_Font::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CDialogue_Font* pInstance = new CDialogue_Font(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 107970b6a..e4ae4e1a0 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -99,8 +99,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 기무리
- m_isActiveEffectCreate = false;
- m_isActiveMonsterEffectCreate = false;
+ m_isActiveEffectCreate = true;
+ m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 나
m_isActiveEffectCreate = false;
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index edac1466e..e84b4abf8 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -36,7 +36,6 @@ void CInfoInstance::Change_Level()
m_pMapInfo->Change_Level();
m_pSkillInfo->Change_Level();
m_pInteractiveInfo->Change_Level();
- UI_Event.clear();
}
CStat* CInfoInstance::Get_PlayerStatPtr()
@@ -348,9 +347,9 @@ _int CInfoInstance::Get_SpellLearnIndex()
// m_pDialogue_Font->Add_Text(pArg);
//}
-const NPCDIALOGUEINFO& CInfoInstance::Get_Dialogue(_wstring NpcName) const
+const CURRENTDIALOGUEINFO& CInfoInstance::Get_Dialogue(_wstring NpcName, _int iTextID) const
{
- return m_pDialogue_Data->Get_Info(NpcName);
+ return m_pDialogue_Data->Get_Info(NpcName, iTextID);
}
HRESULT CInfoInstance::Regist_ActiveInteractive(CMapElement_Interactable* pInteractive)
diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp
index 4820a3961..5cb600dfe 100644
--- a/Jusin154_Team3D/Client/Private/Level_Field.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp
@@ -61,6 +61,9 @@ HRESULT CLevel_Field::Initialize(void* pArg)
return E_FAIL;
}
+ m_bLevel = true;
+ m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
+
return S_OK;
}
@@ -85,6 +88,16 @@ void CLevel_Field::Update(_float fTimeDelta)
return;
}
}
+
+
+ if (m_bLevel != m_bCurrentLevel)
+ {
+ m_bCurrentLevel = m_bLevel;
+ UI_STATE eState = UI_STATE::GAMEPLAYER;
+ m_pInfoInstance->Event_CallBack(TEXT("Canvas_Change"), &eState);
+ }
+
+
}
HRESULT CLevel_Field::Render()
@@ -158,7 +171,7 @@ HRESULT CLevel_Field::Ready_Lights()
_float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
-
+
#if gimch || 진우
vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f);
vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f);
@@ -166,7 +179,7 @@ HRESULT CLevel_Field::Ready_Lights()
#endif // gimch
-
+
pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular);
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 49cd0d828..de14f73e4 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -116,10 +116,13 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
if (FAILED(Ready_Layer_Monster())) {
return E_FAIL;
}
-
- if(FAILED(m_pInfoInstance->Late_Initialize()))
+
+ if (FAILED(m_pInfoInstance->Late_Initialize()))
return E_FAIL;
+ m_bLevel = true;
+ m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
+
return S_OK;
}
@@ -131,6 +134,7 @@ HRESULT CLevel_GamePlay::Initialize()
void CLevel_GamePlay::Update(_float fTimeDelta)
{
+
if (m_pGameInstance->Key_Pressing(DIK_0)) {
if (m_pGameInstance->Key_Up(DIK_1))
{
@@ -142,6 +146,10 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
if (true == m_pGameInstance->Check_LevelShouldChange()) {
m_pInfoInstance->Change_Level();
+
+ UI_STATE eState = UI_STATE::LEVELCHANGE;
+ m_pInfoInstance->Event_CallBack(TEXT("Canvas_Change"), &eState);
+
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::FIELD)))) {
return;
}
@@ -220,7 +228,7 @@ HRESULT CLevel_GamePlay::Ready_Lights()
HRESULT CLevel_GamePlay::Ready_Volumetric()
{
// Volumetric 설정
- if(m_isDay)
+ if (m_isDay)
{
m_pGameInstance->Setting_Volumetirc(
1.251f, // 밀도
@@ -271,7 +279,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_BACKGROUND, &Terrain_Desc))) {
return E_FAIL;
}
-
+
/* 물 오브젝트 */
if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))) {
return E_FAIL;
@@ -314,9 +322,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
#endif // _DEBUG
-
+
/* Map Containters */
- if(false == isReady_Background)
+ if (false == isReady_Background)
{
/* 테스트용 맵 */
CInfoInstance::GetInstance()->Load_MapObjects("Map1215", LAYER_HOGSMEADE);
@@ -341,10 +349,12 @@ HRESULT CLevel_GamePlay::Ready_Background()
return E_FAIL;
}
+
+
if (FAILED(Ready_IntstanceProp()))
return E_FAIL;
}
-
+
return S_OK;
}
@@ -823,7 +833,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
#endif // Bin
#endif // _DEBUG
- if(true == isLoad_NPC)
+ if (true == isLoad_NPC)
{
{
CNPC_Ollivander::NPCDESC NPCDesc{};
@@ -859,6 +869,13 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
}
}
}
+
+ CPlayer::PLAYERDESC playerDesc = {};
+ playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f);
+ playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &playerDesc))) {
+ return E_FAIL;
+ }
}
CHuman_Duelist::DUELISTDESC DuelistDesc = {};
DuelistDesc.vPos = _float4(-21.f, 0.f, -16.f, 1.f);
@@ -964,7 +981,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
HRESULT CLevel_GamePlay::Ready_Layer_Manager(const _wstring& strLayerTag)
{
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag,nullptr,nullptr,&m_pBroomRaceManager))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, nullptr, nullptr, &m_pBroomRaceManager))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp
index f52a30626..217e8d4bc 100644
--- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp
+++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp
@@ -82,6 +82,38 @@ void CRandomNpc::Update(_float fTimeDelta)
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION));
+
+ _vector vCurrentPos = Get_WorldPostion();
+ pair pairTarget = m_pInfoInstance->Get_NearestPlayerAlly(vCurrentPos);
+ if (nullptr != pairTarget.first) {
+ Set_Target(*pairTarget.first, *pairTarget.second);
+ }
+ if (nullptr != m_pTarget && m_pTarget->isDead()) {
+ SAFE_RELEASE(m_pTarget);
+ m_fTargetDistance = { FLT_MAX };
+ }
+
+ if (m_fTargetDistance <= 5.f && m_bInteract == false)
+ {
+ m_pInfoInstance->Event_CallBack(TEXT("NPCDialogue"), m_pNpcStat);
+ m_bInteract = true;
+ }
+
+ if (m_bInteract != m_bPreviousInteract)
+ {
+ m_bPreviousInteract = m_bInteract;
+ m_fInteractTime = 0.f;
+ }
+ else
+ {
+ m_fInteractTime += fTimeDelta;
+ }
+
+ if (m_fInteractTime >= 5.f)
+ {
+ m_bInteract = false;
+ m_fInteractTime = 0.f;
+ }
}
void CRandomNpc::Late_Update(_float fTimeDelta)
@@ -96,6 +128,7 @@ void CRandomNpc::Late_Update(_float fTimeDelta)
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
+
__super::Late_Update(fTimeDelta);
}
@@ -193,6 +226,25 @@ _wstring CRandomNpc::Get_Name()
return m_pNpcStat->Get_Stat().pNpc_Name;
}
+_wstring CRandomNpc::Get_NpcName()
+{
+ return m_pNpcStat->Get_Stat().pName;
+}
+
+void CRandomNpc::Set_Target(CUnit& pTarget, CTransform& pTransform)
+{
+ SAFE_RELEASE(m_pTarget);
+ m_pTarget = &pTarget;
+ SAFE_ADDREF(m_pTarget);
+
+ _vector vTargetPos = pTransform.Get_State(STATE::POSITION);
+ _vector vToTargetDir = vTargetPos - Get_WorldPostion();
+ XMStoreFloat4(&m_vTargetPos, vTargetPos);
+ XMStoreFloat3(&m_vToTargetDir, XMVector3Normalize(vToTargetDir));
+ m_fTargetDistance = XMVectorGetX(XMVector3Length(vToTargetDir));
+}
+
+
HRESULT CRandomNpc::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
@@ -227,7 +279,7 @@ HRESULT CRandomNpc::Bind_ShaderParameters(_uint iMeshOrder)
_float fMixerFactor = { FLT_MAX };
_uint iColorMixerMethod = { 0 };
- switch (m_pModelCom->Get_UsingPass(iMeshOrder,m_pShaderCom))
+ switch (m_pModelCom->Get_UsingPass(iMeshOrder, m_pShaderCom))
{
case 23:
if (m_strModelPrototypeTag == TEXT("Prototype_Component_F_Student_Model"))
@@ -272,7 +324,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
if (FAILED(__super::Ready_Components(&Desc))) {
return E_FAIL;
}
-
+
switch (m_iIndex)
{
case 0:
@@ -316,7 +368,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("ELF"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
- break;
+ break;
case 7:
m_strModelPrototypeTag = TEXT("Prototype_Component_BaiHowin_Model");
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("BAIHOWIN"), (CComponent**)&m_pNpcStat))) {
@@ -418,6 +470,7 @@ void CRandomNpc::Free()
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pNpcStat);
SAFE_RELEASE(m_pRigidBody);
+ SAFE_RELEASE(m_pTarget);
if (nullptr != m_pInfoInstance) {
CInfoInstance* pInfo = m_pInfoInstance;
m_pInfoInstance = nullptr;
diff --git a/Jusin154_Team3D/Client/Private/Ride_Info.cpp b/Jusin154_Team3D/Client/Private/Ride_Info.cpp
index 3a960bd86..149771879 100644
--- a/Jusin154_Team3D/Client/Private/Ride_Info.cpp
+++ b/Jusin154_Team3D/Client/Private/Ride_Info.cpp
@@ -64,6 +64,7 @@ void CRide_Info::Set_Hover(_bool bVisible)
m_bHover = true;
m_fTime = 0.f;
m_fAlpha = 1.f;
+ m_bFadeOut = false;
}
void CRide_Info::Priority_Update(_float fTimeDelta)
diff --git a/Jusin154_Team3D/Client/Private/Ride_InfoBG.cpp b/Jusin154_Team3D/Client/Private/Ride_InfoBG.cpp
index 18569970b..4c9b7bfc9 100644
--- a/Jusin154_Team3D/Client/Private/Ride_InfoBG.cpp
+++ b/Jusin154_Team3D/Client/Private/Ride_InfoBG.cpp
@@ -49,6 +49,7 @@ void CRide_InfoBG::Set_Hover(_bool bVisible)
m_bHover = true;
m_fTime = 0.f;
m_fAlpha = 1.f;
+ m_bFadeOut = false;
}
void CRide_InfoBG::Priority_Update(_float fTimeDelta)
diff --git a/Jusin154_Team3D/Client/Private/TimeSocket.cpp b/Jusin154_Team3D/Client/Private/TimeSocket.cpp
new file mode 100644
index 000000000..adf5699fd
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/TimeSocket.cpp
@@ -0,0 +1,78 @@
+#include "pch.h"
+#include "TimeSocket.h"
+#include "GameObject.h"
+
+CTimeSocket::CTimeSocket()
+{
+}
+
+_bool CTimeSocket::Trigger(_float fRatio)
+{
+ _bool bResult = false;
+ if (m_fRatio <= fRatio) {
+ bResult = true;
+ m_funcEvent(*this);
+
+ Finalize();
+ }
+
+ return bResult;
+}
+
+HRESULT CTimeSocket::Initialize(CGameObject* pTarget, _string& strTag)
+{
+ m_pEventTarget = pTarget;
+ SAFE_ADDREF(m_pEventTarget);
+ m_strEventName = strTag;
+ m_eTypeParam = TIMESOCKET_PARAM::END;
+ return S_OK;
+}
+
+HRESULT CTimeSocket::Initialize(CGameObject* pTarget, _string& strTag, PSX::PxTransform& pxTransform)
+{
+ m_pEventTarget = pTarget;
+ SAFE_ADDREF(m_pEventTarget);
+ m_strEventName = strTag;
+ m_pxTransform = pxTransform;
+ m_eTypeParam = TIMESOCKET_PARAM::TRANSFORM;
+ return S_OK;
+}
+
+HRESULT CTimeSocket::Initialize(CGameObject* pTarget, _string& strTag, CGameObject* pOther)
+{
+ m_pEventTarget = pTarget;
+ SAFE_ADDREF(m_pEventTarget);
+ m_strEventName = strTag;
+ m_pOtherTarget = pOther;
+ SAFE_ADDREF(m_pOtherTarget);
+ m_eTypeParam = TIMESOCKET_PARAM::TARGET;
+ return S_OK;
+}
+
+void CTimeSocket::Finalize()
+{
+ switch (m_eTypeParam)
+ {
+ case TIMESOCKET_PARAM::TARGET:
+ SAFE_RELEASE(m_pOtherTarget);
+ break;
+ case TIMESOCKET_PARAM::TRANSFORM:
+ m_pxTransform = {};
+ break;
+ default:
+ break;
+ }
+ SAFE_RELEASE(m_pEventTarget);
+}
+
+CTimeSocket* CTimeSocket::Create()
+{
+ return new CTimeSocket();
+}
+
+void CTimeSocket::Free()
+{
+ __super::Free();
+
+ Finalize();
+}
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 181b8224f..b928d8a1b 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -59,6 +59,7 @@ HRESULT CUI_Manager::Initialize(void* pArg)
m_pInfoInstance->Set_UISTATE(m_eType);
m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); });
m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("UIManagerFadeIn"), [this](void* p) {this->Set_Fade(); });
return S_OK;
}
@@ -77,8 +78,6 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
static_cast(m_pSpellLearn_Canvas)->Visible(false);
static_cast(m_pInteraction_Key)->Set_Visible(true);
static_cast(m_pNPCInteraction)->Set_Visible(true);
- static_cast(m_pBroom_TargetGate)->Set_Visible(true);
- static_cast(m_pDamage_Font)->Set_Visible(true);
break;
case UI_STATE::SPELL:
@@ -118,6 +117,19 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
static_cast(m_pDamage_Font)->Set_Visible(false);
break;
+ case UI_STATE::LEVELCHANGE:
+ m_pMouse_Cursor->Set_Visible(false);
+ m_pCamera_LockOn->Set_Visible(false);
+ static_cast(m_pGamePlay_Canves)->Visible(false);
+ static_cast(m_pSpell_Canvas)->Visible(false);
+ static_cast(m_pQuest_Canvas)->Visible(false);
+ static_cast(m_pSpellLearn_Canvas)->Visible(false);
+ static_cast(m_pInteraction_Key)->Set_Visible(false);
+ static_cast(m_pNPCInteraction)->Set_Visible(false);
+ static_cast(m_pBroom_TargetGate)->Set_Visible(false);
+ static_cast(m_pDamage_Font)->Set_Visible(false);
+ break;
+
default:
return;
}
@@ -210,21 +222,26 @@ void CUI_Manager::Update(_float fTimeDelta)
if (m_eType == UI_STATE::GAMEPLAYER && m_bNPCInteract == true)
{
+ if (m_bCurrentNPCInteract != m_bNPCInteract)
+ m_bCurrentNPCInteract = m_bNPCInteract;
+
if (m_eType == UI_STATE::GAMEPLAYER)
{
Canvas_Change(UI_STATE::NPC_INTERACT);
}
+ }
- else
+ if (m_bCurrentNPCInteract == true && m_bNPCInteract == false)
+ {
+ m_bCurrentNPCInteract = m_bNPCInteract;
+
+ if (m_bActive == false)
{
- if (m_bActive == false)
+ m_bActive = true;
+ m_bAlphaZero = true;
+ if (m_eType == UI_STATE::NPC_INTERACT)
{
- m_bActive = true;
- m_bAlphaZero = true;
- if (m_eType == UI_STATE::GAMEPLAYER)
- {
- m_eType = UI_STATE::NPC_INTERACT;
- }
+ m_eType = UI_STATE::GAMEPLAYER;
}
}
}
@@ -404,7 +421,7 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
}
Add_Canvas(TEXT("NPCInteraction"), m_pNPCInteraction);
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_TargetGate))))
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pBroom_TargetGate))))
{
return E_FAIL;
}
@@ -445,6 +462,14 @@ void CUI_Manager::NpcInteract(_bool bInteract)
m_bNPCInteract = bInteract;
}
+void CUI_Manager::Set_Fade()
+{
+ m_fAlpha = 1.5f;
+ m_bActive = true;
+ m_bHover = true;
+ m_bCgangede = true;
+}
+
CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CUI_Manager* pInstance = new CUI_Manager(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 4f9e75bc9..f3452131b 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -21,7 +21,7 @@ namespace Client
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER, NPCINTERACTION, CANVASFADE,
FLAGWAVE, BROOMCIRCLE, RIDE_INFO_KEY, RIDE_INFO, RIDE_HPSLOT, BOOSTERGAUGE,
- BOOSTERHPBAR,
+ BOOSTERHPBAR, DIALOGUECHOICE,
ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, BROOMTARGETGATE, 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 };
@@ -36,10 +36,12 @@ namespace Client
PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY
, END
};
- enum class UI_STATE { GAMEPLAYER, SPELL, QUEST, INVENTORY, SPELLLNEARN, NPC_INTERACT, END };
+ enum class UI_STATE { GAMEPLAYER, SPELL, QUEST, INVENTORY, SPELLLNEARN,
+ NPC_INTERACT, LEVELCHANGE, END };
enum class QUESTTYPE { MAIN, SUB, END };
enum class QUESTSTATE {NONE, ACCEPTED, CLEARED, END };
+ enum class NPCTEXTTYPE {NEXTTEXT, CHOICETEXT, SHOPTEXT, QUESTTEXT, SPELLLEAN, END};
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index f397d777f..c3bc574a0 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -1,8 +1,8 @@
#pragma once
NS_BEGIN(Engine)
- class CModel;
- class CRigidBody_Static;
- class CUnit;
+class CModel;
+class CRigidBody_Static;
+class CUnit;
NS_END
namespace Client
@@ -39,7 +39,7 @@ namespace Client
typedef struct DialogueChoice
{
- _int eType = {false};
+ _int eType = { false };
_wstring pText;
_int NextTypeID{};
}DIALOGUECHOICEINFO;
@@ -47,7 +47,7 @@ namespace Client
typedef struct DialogueInfo
{
_int iLineID{};
- _bool bType = {false};
+ _int iTextType{};
_wstring pText;
_int NextTextID{};
vector ChoiceInfo;
@@ -57,7 +57,7 @@ namespace Client
{
_wstring pNpcName;
_int iNpcID{};
- unordered_map<_int, CURRENTDIALOGUEINFO> Info;
+ map<_int, CURRENTDIALOGUEINFO> Info;
}NPCDIALOGUEINFO;
typedef struct tagLockOnInfo {
@@ -68,7 +68,7 @@ namespace Client
typedef struct tegNPCInteractionInfo
{
- CGameObject* pOwner = { nullptr };
+ CGameObject* pOwner = { nullptr };
_wstring pNPCName;
_wstring pName;
_float4 fNPCPosition{};
@@ -285,7 +285,7 @@ namespace Client
_float4 vPadding5 = {};
_float4 vPadding6 = {};
}EFFECT_INFO;
-
+
typedef struct tagTrailInfo
{
EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
new file mode 100644
index 000000000..ac5cb50e3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameInstance.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+
+NS_BEGIN(Client)
+
+struct TimeLine {
+ _float2 m_vTimer = {};
+ _uint m_eTypeTimeLine = {};
+ list m_Sockets = {};
+};
+
+class CCutSceneInfo final : public CBase
+{
+private:
+ CCutSceneInfo();
+ ~CCutSceneInfo() = default;
+
+public:
+ void Update(_float fTimeDelta);
+ void Change_Level();
+
+public:
+ void Active_Event(_string& strKey);
+ HRESULT DeActive_ActiveEvent(_string& strKey);
+ void Load_Events(LEVEL eLevel);
+
+private:
+ CGameInstance* m_pGameInstance = { nullptr };
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+ ID3D11Device* m_pDevice = { nullptr };
+ ID3D11DeviceContext* m_pContext = { nullptr };
+
+ map<_string, TimeLine> m_funcActiveEvents = {};
+ map<_string, TimeLine> m_funcWaitEvents = {};
+
+private:
+ HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
+ HRESULT Clear_ActiveEvents();
+ HRESULT Clear_Events(map<_string, TimeLine>&Events);
+
+ HRESULT Clear_AllEvents();
+
+public:
+ static CCutSceneInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
+ virtual void Free() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Data.h b/Jusin154_Team3D/Client/Public/Dialogue_Data.h
index 0e33c3d1e..55e6eeb8b 100644
--- a/Jusin154_Team3D/Client/Public/Dialogue_Data.h
+++ b/Jusin154_Team3D/Client/Public/Dialogue_Data.h
@@ -25,14 +25,14 @@ class CDialogue_Data final : public CBase
HRESULT Load_SpellInfo(const _char* pFilePath);
public:
- const NPCDIALOGUEINFO& Get_Info(_wstring NpcName) const;
+ const CURRENTDIALOGUEINFO& Get_Info(_wstring NpcName, _int iTextID) const;
private:
CInfoInstance* m_pInfoInstance = { nullptr };
_int m_iDialogue_Count{};
map<_wstring, NPCDIALOGUEINFO> m_DialogueInfo;
- NPCDIALOGUEINFO Dummy{};
+ CURRENTDIALOGUEINFO Dummy{};
private:
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h
index 0f36f010b..6a89809c2 100644
--- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h
+++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h
@@ -8,6 +8,7 @@ NS_BEGIN(Engine)
class CTexture;
class CShader;
class CVIBuffer_Rect;
+class CNPCStat;
NS_END
NS_BEGIN(Client)
@@ -40,23 +41,39 @@ class CDialogue_Font final : public CGameObject
public:
void Add_Text(void* pArg);
-
+ void Npc_Dialogue(DIALOGUEINFO Info);
private:
void NpcInfo(void* pArg);
void NpcInteract(_bool bInteract);
+ void NpcDialogue();
+ void NpcDialogue(CNPCStat* Stat);
+
+ void CHoice();
+
+ void Shop();
+ void SpellLearn();
+ void NextText();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
class CDialogue* m_pDialogue = { nullptr };
+ DIALOGUEINFO m_Info;
+
vector m_DialoguInfo;
deque m_pCurrentDialogue;
_bool m_bNpcInteract = { false };
_bool m_bCurrentInteract = { false };
+ _bool m_bEndText = { false };
+ _bool m_bNextText = { false };
+
_wstring m_pNpcName;
_int m_iTextID{};
+ _int m_iNextID{};
+ _int m_iType{};
+
public:
static CDialogue_Font* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 654c9123b..cc3505e0c 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -89,7 +89,7 @@ DECLARE_SINGLETON(CInfoInstance)
#pragma endregion
#pragma region Dialogue_Font
//void Set_Font(void* pArg);
- const NPCDIALOGUEINFO& Get_Dialogue(_wstring NpcName) const;
+ const CURRENTDIALOGUEINFO& Get_Dialogue(_wstring NpcName, _int iTextID) const;
#pragma endregion
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
diff --git a/Jusin154_Team3D/Client/Public/Level_Field.h b/Jusin154_Team3D/Client/Public/Level_Field.h
index 978ec5d8b..df9d3463f 100644
--- a/Jusin154_Team3D/Client/Public/Level_Field.h
+++ b/Jusin154_Team3D/Client/Public/Level_Field.h
@@ -19,6 +19,9 @@ class CLevel_Field final : public CLevel
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
+ _bool m_bLevel = { false };
+ _bool m_bCurrentLevel = { false };
+
private:
virtual HRESULT Initialize() override;
HRESULT Initialize(void* pArg);
diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
index c000598e7..18c4f67c7 100644
--- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h
+++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
@@ -21,6 +21,10 @@ class CLevel_GamePlay final : public CLevel
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
_bool m_isDay = { true };
+
+ _bool m_bLevel = { false };
+ _bool m_bCurrentLevel = { false };
+
private:
virtual HRESULT Initialize() override;
HRESULT Initialize(void* pArg);
diff --git a/Jusin154_Team3D/Client/Public/RandomNpc.h b/Jusin154_Team3D/Client/Public/RandomNpc.h
index c3ebef544..3f63c55d1 100644
--- a/Jusin154_Team3D/Client/Public/RandomNpc.h
+++ b/Jusin154_Team3D/Client/Public/RandomNpc.h
@@ -27,6 +27,9 @@ class CRandomNpc final : public CUnit
virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override;
virtual _wstring Get_Name() override;
+ virtual _wstring Get_NpcName() override;
+
+ void Set_Target(CUnit& pTarget, CTransform& pTransform);
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
@@ -37,12 +40,24 @@ class CRandomNpc final : public CUnit
CRandomNpc* m_pNPC_Ollivander = { nullptr };
/*class CNPCInteraction* m_pNPCInteraction = { nullptr };*/
+ CUnit* m_pTarget = { nullptr };
+ _float4 m_vTargetPos = { };
+ _float3 m_vToTargetDir = { };
+ _float m_fTargetDistance = { FLT_MAX };
+ _float m_fDegree = {};
+ _float m_fCross = {};
CNPCStat* m_pNpcStat = { nullptr };
_int m_iEntered = { 0 };
_float2 m_vEnteringTimer = { 0.f, 1.f };
_float m_fEncounterDistance = { 8.f };
_int m_iIndex = {};
+
+
+ _bool m_bInteract = { false };
+ _bool m_bPreviousInteract = { false };
+ _float m_fInteractTime{};
+
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Client/Public/TimeSocket.h b/Jusin154_Team3D/Client/Public/TimeSocket.h
new file mode 100644
index 000000000..6953d9be8
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/TimeSocket.h
@@ -0,0 +1,60 @@
+#pragma once
+#include "Client_Define.h"
+#include "GameInstance.h"
+
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+
+NS_BEGIN(Client)
+
+typedef enum class typeTimeSocket_Param {
+ TARGET,
+ TRANSFORM,
+ END
+}TIMESOCKET_PARAM;
+
+typedef enum class typeTimeSocket_Func {
+ TRIGGER,
+ POSITION,
+ TAG,
+ TARGETTING,
+ END
+}TIMESOCKET_FUNC;
+
+class CTimeSocket final : public CBase
+{
+private:
+ CTimeSocket();
+ virtual ~CTimeSocket() = default;
+public:
+ _float m_fRatio = { 0.f };
+ _bool m_bTriggerred = { false };
+ CGameObject* m_pEventTarget = { nullptr };
+ _string m_strEventName = {};
+ TIMESOCKET_PARAM m_eTypeParam = {};
+ union {
+ CGameObject* m_pOtherTarget = { nullptr };
+ PSX::PxTransform m_pxTransform;
+ };
+
+ virtual _bool Trigger(_float fRatio);
+
+public:
+ HRESULT Initialize(CGameObject* pTarget, _string& strTag);
+ HRESULT Initialize(CGameObject* pTarget, _string& strTag, PSX::PxTransform& pxTransform);
+ HRESULT Initialize(CGameObject* pTarget, _string& strTag, CGameObject* pOther);
+
+public:
+ static CTimeSocket* Create();
+ virtual void Free() override;
+
+private:
+ function m_funcEvent = { nullptr };
+private:
+ void Finalize();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h
index 3f7fb53a7..f4e386529 100644
--- a/Jusin154_Team3D/Client/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Client/Public/UI_Manager.h
@@ -47,6 +47,8 @@ class CUI_Manager final : public CUIObject
void NpcInteract(_bool bInteract);
+ void Set_Fade();
+
private:
CInfoInstance* m_pInfoInstance = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
@@ -79,6 +81,7 @@ class CUI_Manager final : public CUIObject
_bool m_bSpellLearn = { false };
_bool m_bNPCInteract = { false };
+ _bool m_bCurrentNPCInteract = { false };
_bool m_bAlphaZero = { false };
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
index bf2fec570..0504c04da 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
@@ -1,8 +1,8 @@
-
-
-
+
+
+
@@ -10,19 +10,18 @@
-
+
-
-
-
-
+
+
+
-
-
+
+
@@ -31,13 +30,7 @@
-
-
-
-
-
-
-
+
@@ -49,11 +42,30 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml
index 13979eb07..0faf2662c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml
@@ -1,72 +1,82 @@
-
+
+
+
+
+
-
-
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml
index 0d078b45f..51f3f40ac 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml
@@ -13,4 +13,4 @@
-
\ No newline at end of file
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png
new file mode 100644
index 000000000..d8e1fd944
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml
new file mode 100644
index 000000000..40219b073
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml
@@ -0,0 +1,269 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx
new file mode 100644
index 000000000..1cbbfcf54
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d24d145654626e331561cf6c6e4c7fab915e4fe6090772d6e19eb3cc42792dd4
+size 5151308
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx
new file mode 100644
index 000000000..029022ca5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d782323b6137402401929e733f1a0a629cd014735ad6499dd9cfa02f554692af
+size 6018332
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx
new file mode 100644
index 000000000..cf80a9c65
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0c9a4ec2aa1cd1a7c20fd712c6a9a4ea4e2995d2a98fabec55f50f26d312665b
+size 544959468
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx
new file mode 100644
index 000000000..500acecd4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:455c61941119a4bb6ee17556b90a03eddbb69f92d93b7eb4633f9d5105cfc02a
+size 263553308
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx
new file mode 100644
index 000000000..26c354f6f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4faa5b5e258bd49ab1ac863834148d0438c37d90c6c526e26bec2af2defa4568
+size 205155228
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx
new file mode 100644
index 000000000..52bdb410f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5749bbf9655647b055f5510e0671b9b0cd6c164b12e820078e4ada1fb3a4e484
+size 6061772
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx
new file mode 100644
index 000000000..be47c045e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:774826245ec2bb5d6fbd5a61e3ccab4e5819f246e7630fd51ec6abb3529f29d9
+size 7446620
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx
new file mode 100644
index 000000000..abb775b2b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c1806d30cd95dfd51a6438842a911bf028663cad71b8ff77b591a89e20e90350
+size 11262300
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx
new file mode 100644
index 000000000..794174dd5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:953f8acd1848aa105b34ae2cf37866073238d13f9e3f7cb0a7ab08f67b0d8562
+size 177046556
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx
new file mode 100644
index 000000000..341033f4d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bfcc6d4630c85c8ce147f3d008e1d0b7c1e791a9bf624a39e168446f3094c2c4
+size 45475004
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx
new file mode 100644
index 000000000..1a87a2bd3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e3de5a415eceb50826dae12de16dca671e12253dba50edfdb96594d246c2f471
+size 13704236
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx
new file mode 100644
index 000000000..5fbd59379
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ff98efacb24e1d672c677e333dd4fa5cfe67c81432eb4276030ef239a6bba6a3
+size 9410716
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx
new file mode 100644
index 000000000..9355fdb26
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:85fff4ac811ede1d50d66f9f551ea9a72ac5fda80b19d57558c6be7f914b2b71
+size 13735708
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds
new file mode 100644
index 000000000..1156e0c06
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png
new file mode 100644
index 000000000..75e5fbdea
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds
new file mode 100644
index 000000000..a2bb64063
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds
new file mode 100644
index 000000000..fe1e4ee12
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds
new file mode 100644
index 000000000..3f1a18ef1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png
new file mode 100644
index 000000000..b414d5691
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png
new file mode 100644
index 000000000..4bf9d62f9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png
new file mode 100644
index 000000000..6e082532d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds
new file mode 100644
index 000000000..d2f56053c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds
new file mode 100644
index 000000000..e4baf1efa
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds
new file mode 100644
index 000000000..24effbef3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds
new file mode 100644
index 000000000..4d226e763
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds
new file mode 100644
index 000000000..a404651ed
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds
new file mode 100644
index 000000000..4e835ae62
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds
new file mode 100644
index 000000000..24b310062
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds
new file mode 100644
index 000000000..744198358
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 5495075f9..60c0ef454 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -2426,6 +2426,100 @@ PS_OUT PS_BoosterHpBar(PS_IN In)
return Out;
}
+PS_OUT PS_DialogueChoice(PS_IN In)
+{
+ PS_OUT Out = (PS_OUT) 0;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 0.f);
+ float2 uv = In.vTexcoord;
+ float2 CurrentPixelPosition = uv * g_fCurrent_Size;
+ float OriginLeft = g_fNine_Slice.x;
+ float OriginRight = g_fNine_Slice.y;
+ float OriginTop = g_fNine_Slice.z;
+ float OriginBottom = g_fNine_Slice.w;
+
+ float CurrentLeft = OriginLeft;
+ float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
+ float CurrentTop = OriginTop;
+ float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
+
+ float2 Finaluv = In.vTexcoord;
+
+ if (CurrentPixelPosition.x < CurrentLeft)
+ {
+ Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
+ }
+ else if (CurrentPixelPosition.x > CurrentRight)
+ {
+ float dist = CurrentPixelPosition.x - CurrentRight;
+ Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
+ Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
+ }
+
+ if (CurrentPixelPosition.y < CurrentTop)
+ {
+ Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
+ }
+ else if (CurrentPixelPosition.y > CurrentBottom)
+ {
+ float dist = CurrentPixelPosition.y - CurrentBottom;
+ Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
+ Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
+ }
+
+
+ if (g_iHover != 0)
+ {
+ float4 tex = g_Texture.Sample(ClampSampler, Finaluv);
+ Color = tex;
+
+ float2 ImgaePos1 = g_fImageSipos1.xy;
+ float2 ImgaeSize1 = g_fImageSipos1.zw;
+ float2 ImgaePixel = Finaluv * g_fOrigin_Size;
+ float2 localUV = (ImgaePixel - ImgaePos1) / ImgaeSize1;
+ bool inside = all(localUV >= 0.0f && localUV <= 1.0f);
+ if (inside)
+ {
+ float4 tex2 = g_Texture1.Sample(ClampSampler, localUV);
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
+ float2 ImgaePos2 = g_fImageSipos2.xy;
+ float2 ImgaeSize2 = g_fImageSipos2.zw;
+ float2 ImgaePixe2 = Finaluv * g_fOrigin_Size;
+ float2 ReverseUV = (ImgaePixe2 - ImgaePos2) / ImgaeSize2;
+ bool inside2 = all(ReverseUV >= 0.0f && ReverseUV <= 1.0f);
+ if (inside2)
+ {
+ ReverseUV.y = 1.f - ReverseUV.y;
+ float4 tex2 = g_Texture1.Sample(ClampSampler, ReverseUV);
+ Color = lerp(Color, tex2, tex2.a);
+ }
+ }
+
+ float2 ImgaePos3 = g_fImageSipos3.xy / g_fCurrent_Size;
+ float2 ImgaeSize3 = g_fImageSipos3.zw / g_fCurrent_Size;
+ float2 localUV2 = (In.vTexcoord - ImgaePos3) / ImgaeSize3;
+ bool inside3 = all(localUV2 >= 0.0f && localUV2 <= 1.0f);
+ if (inside3)
+ {
+ float4 tex2 = g_Texture2.Sample(ClampSampler, localUV2);
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
struct VS_IN3D
{
float3 vPosition : POSITION;
@@ -3206,6 +3300,16 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_BoosterHpBar();
}
+ pass DialogueChoice
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+
+ PixelShader = compile ps_5_0 PS_DialogueChoice();
+ }
+
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Dialogue_Chice.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Dialogue_Chice.png
new file mode 100644
index 000000000..fa78a0258
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Dialogue_Chice.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_Icon_InteractType_Straight.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_Icon_InteractType_Straight.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_Icon_InteractType_Straight.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_Icon_InteractType_Straight.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_InteractSelectionBracket.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_InteractSelectionBracket.png
new file mode 100644
index 000000000..f31219fd0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_InteractSelectionBracket.png differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 2b600576c..afae6e31f 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -187,6 +187,9 @@ call Update_Shaders.bat
+
+
+
@@ -466,6 +469,9 @@ call Update_Shaders.bat
+
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 3f81afff4..d99f17de4 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -753,7 +753,7 @@
{614e67ae-6df9-4826-adbe-6be96f54041d}
-
+
{906987cf-14ce-4676-8ca7-a68b6b2c29b6}
@@ -769,6 +769,15 @@
{7a345ef7-8e16-45df-9bc3-e8fc665f729f}
+
+ {a5413132-f824-4e59-b3bb-1e6ad539b274}
+
+
+ {54dbea26-acfa-49be-9a97-1e2408cbd9b2}
+
+
+ {0201d2a8-9187-468c-aa2f-491bd3ae6ae1}
+
@@ -1557,6 +1566,15 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact
+
+ 50.UI\Dialogue_Canvas\Dialogue_Panel
+
+
+ 50.UI\Dialogue_Canvas
+
+
+ 50.UI\Dialogue_Canvas\Dialogue_Panel\Dialogue_Choice
+
@@ -2353,6 +2371,15 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact
+
+ 50.UI\Dialogue_Canvas\Dialogue_Panel
+
+
+ 50.UI\Dialogue_Canvas
+
+
+ 50.UI\Dialogue_Canvas\Dialogue_Panel\Dialogue_Choice
+
diff --git a/Jusin154_Team3D/Editor/Private/Dialogue_Canvas.cpp b/Jusin154_Team3D/Editor/Private/Dialogue_Canvas.cpp
new file mode 100644
index 000000000..919fc4d6a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Dialogue_Canvas.cpp
@@ -0,0 +1,137 @@
+#include "pch.h"
+#include "Dialogue_Canvas.h"
+#include "GameInstance.h"
+#include "UI_Manager.h"
+#include "Dialogue_Panel.h"
+
+CDialogue_Canvas::CDialogue_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CCanvasObject(pDevice, pContext)
+{
+}
+
+CDialogue_Canvas::CDialogue_Canvas(const CDialogue_Canvas& rhs)
+ :CCanvasObject(rhs)
+{
+}
+
+HRESULT CDialogue_Canvas::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CDialogue_Canvas::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 1080.f;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Panel(pArg)))
+ {
+ return E_FAIL;
+ }
+ Visible(true);
+ return S_OK;
+}
+
+void CDialogue_Canvas::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CDialogue_Canvas::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+}
+
+void CDialogue_Canvas::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CDialogue_Canvas::Render()
+{
+ return S_OK;
+}
+
+_vector CDialogue_Canvas::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CDialogue_Canvas::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CDialogue_Canvas::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+HRESULT CDialogue_Canvas::Ready_Panel(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pDialogue_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("Dialogue_Panel"), m_pDialogue_Panel);
+
+ return S_OK;
+}
+
+void CDialogue_Canvas::Clear_Penel()
+{
+}
+
+CDialogue_Canvas* CDialogue_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CDialogue_Canvas* pInstance = new CDialogue_Canvas(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CDialogue_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CDialogue_Canvas::Clone(void* pArg, CGameObject* pOwner)
+{
+ CDialogue_Canvas* pInstance = new CDialogue_Canvas(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CDialogue_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CDialogue_Canvas::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CDialogue_Canvas::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Dialogue_Choice.cpp b/Jusin154_Team3D/Editor/Private/Dialogue_Choice.cpp
new file mode 100644
index 000000000..23c36a73f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Dialogue_Choice.cpp
@@ -0,0 +1,317 @@
+#include "pch.h"
+#include "Dialogue_Choice.h"
+#include "GameInstance.h"
+
+CDialogue_Choice::CDialogue_Choice(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CDialogue_Choice::CDialogue_Choice(const CDialogue_Choice& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CDialogue_Choice::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CDialogue_Choice::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -100.f;
+ Desc.fY = -200.f;
+ Desc.fSizeX = 100.f;
+ Desc.fSizeY = 65.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 = 3.f;
+ m_vNine_Slice = _float4(20.f, 100.f, 0.f, 65.f);
+ m_vImagePosi1 = _float4(0.f, 0.f, 90.f, 20.f);
+ m_vImagePosi2 = _float4(0.f, 45.f, 90.f, 20.f);
+ m_vImagePosi3 = _float4(15.f, 12.5f, 40.f, 40.f);
+ m_fFontX = 370.f;
+ m_fFontY = 607.5f;
+ m_iHover = 0;
+ SizeUpX(400.f);
+ return S_OK;
+}
+
+void CDialogue_Choice::Mouse_Hover()
+{
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse); // 윈도우 왼쪽 상단 (0,0) 기준
+
+ // 윈도우 실제 내부 크기를 '직접' 가져옵니다. (g_iWinSize 대신)
+ RECT rc;
+ GetClientRect(g_hWnd, &rc);
+ _float fWidth = (_float)(rc.right - rc.left);
+ _float fHeight = (_float)(rc.bottom - rc.top);
+
+ _float2 fMouse;
+ // 캔버스 배치 로직(Update)과 마우스 변환 로직을 완벽하게 일치시킵니다.
+ fMouse.x = (_float)ptMouse.x - (fWidth * 0.5f);
+ fMouse.y = -((_float)ptMouse.y - (fHeight * 0.494f)); // Y축 뒤집기
+
+ POINT pt = { (long)fMouse.x, (long)fMouse.y };
+
+ Hover(PtInRect(&m_pRect, pt));
+}
+
+void CDialogue_Choice::Hover(_bool iHover)
+{
+ m_iHover = iHover;
+ if (m_iHover != 0)
+ {
+ m_fFontX = 390.f;
+ m_vImagePosi3 = _float4(35.f, 12.5f, 40.f, 40.f);
+ }
+ else
+ {
+ m_fFontX = 370.f;
+ m_vImagePosi3 = _float4(15.f, 12.5f, 40.f, 40.f);
+ }
+}
+
+void CDialogue_Choice::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CDialogue_Choice::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 7.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 7.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 7.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ Mouse_Hover();
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CDialogue_Choice::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CDialogue_Choice::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DIALOGUECHOICE)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("아아"), _float2(m_fFontX + m_fX, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
+
+ return S_OK;
+}
+
+_vector CDialogue_Choice::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CDialogue_Choice::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_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 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_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_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImagePosi1, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImagePosi2, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos3", &m_vImagePosi3, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_iHover, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CDialogue_Choice::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Dialogue_Chice"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_InteractSelectionBracket"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Icon_InteractType_Straight"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CDialogue_Choice* CDialogue_Choice::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CDialogue_Choice* pInstance = new CDialogue_Choice(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CDialogue_Choice");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CDialogue_Choice::Clone(void* pArg, CGameObject* pOwner)
+{
+ CDialogue_Choice* pInstance = new CDialogue_Choice(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CDialogue_Choice");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CDialogue_Choice::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CDialogue_Choice::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Editor/Private/Dialogue_Panel.cpp
new file mode 100644
index 000000000..2fc59c31b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Dialogue_Panel.cpp
@@ -0,0 +1,149 @@
+#include "pch.h"
+#include "Dialogue_Panel.h"
+#include "GameInstance.h"
+#include "Dialogue_Choice.h"
+
+CDialogue_Panel::CDialogue_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPanelObject(pDevice, pContext)
+{
+}
+
+CDialogue_Panel::CDialogue_Panel(const CDialogue_Panel& rhs)
+ :CPanelObject(rhs)
+{
+}
+
+HRESULT CDialogue_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CDialogue_Panel::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 500.f;
+ Desc.fY = -625.f;
+ Desc.fSizeX = 750.f;
+ Desc.fSizeY = 410.f;
+
+ 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;
+ Visible(true);
+ ElementAllVisible(true);
+ return S_OK;
+}
+
+void CDialogue_Panel::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CDialogue_Panel::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CDialogue_Panel::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bVisible) {
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CDialogue_Panel::Render()
+{
+ return S_OK;
+}
+
+_vector CDialogue_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CDialogue_Panel::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CDialogue_Panel::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CDialogue_Panel::Ready_Element(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pDialogue_Choice))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Dialogue_Choice"), m_pDialogue_Choice);
+ return S_OK;
+}
+
+CDialogue_Panel* CDialogue_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CDialogue_Panel* pInstance = new CDialogue_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CDialogue_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CDialogue_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CDialogue_Panel* pInstance = new CDialogue_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CDialogue_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CDialogue_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CDialogue_Panel::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
index aed21bd50..c453da583 100644
--- a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
+++ b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp
@@ -48,7 +48,7 @@ HRESULT CGamePlay_Canvas::Initialize(void* pArg)
{
return E_FAIL;
}
- Visible(true);
+ Visible(false);
return S_OK;
}
@@ -155,6 +155,8 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
}
Add_Panel(TEXT("Ride_Panel"), m_pRide_Panel);
+
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index bead698bf..d7dc7d19c 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -145,6 +145,10 @@
#include "Ride_HpBar.h"
#include "Ride_HpSlot.h"
+#include "Dialogue_Canvas.h"
+#include "Dialogue_Panel.h"
+#include "Dialogue_Choice.h"
+
#include "NPCInteraction.h"
#include "Dialogue.h"
@@ -1263,8 +1267,21 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDialogue_Canvas::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDialogue_Panel::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDialogue_Choice::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
- if(FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNPCInteraction::Create(m_pDevice, m_pContext))))
+ if(FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNPCInteraction::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
@@ -2549,7 +2566,7 @@ HRESULT CLoader::Loading_For_MapViewer()
//}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
+ CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
@@ -3130,7 +3147,7 @@ _bool bLoadHogsmeade = false;
}
#pragma region HOGWART
-_bool bHogwartLoad = { false };
+_bool bHogwartLoad = { true };
/* Hogwart LOD */
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
@@ -3427,6 +3444,8 @@ if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Sanctum_Dungeon\\Mes
#pragma endregion
#pragma region DATATOWER_INT
+_bool bLoad_DADATower_INT = { false };
+if (bLoad_DADATower_INT)
{
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogwarts\\SUB_DADATower\\StaticMesh\\INT",
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
index 70f203301..c2c1bcb3f 100644
--- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
@@ -223,8 +223,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
// TEXT("Prototype_Component_GerboldOlivander_Model")
//));
-
-
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixIdentity(),
// TEXT("Prototype_Component_Camera_Model")
diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
index 7431e09a9..e68847995 100644
--- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
@@ -98,10 +98,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
#pragma endregion
#pragma region HOGWART
- /*if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
+ if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
return E_FAIL;
if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
- return E_FAIL;*/
+ return E_FAIL;
#pragma endregion
@@ -230,9 +230,9 @@ void CMapObject_Manager::Update(_float fTimeDelta)
Update_Edit();
- Update_LightSpawer();
+ //Update_LightSpawer();
//Update_Decal();
- //Update_RaceRing();
+ Update_RaceRing();
Update_Unified();
diff --git a/Jusin154_Team3D/Editor/Private/Potion.cpp b/Jusin154_Team3D/Editor/Private/Potion.cpp
index b573fd073..ddd100b2a 100644
--- a/Jusin154_Team3D/Editor/Private/Potion.cpp
+++ b/Jusin154_Team3D/Editor/Private/Potion.cpp
@@ -135,7 +135,7 @@ HRESULT CPotion::Render()
return E_FAIL;
}
- m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f)* m_fAlpha, m_fAlpha));
+ m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f)* m_fAlpha, m_fAlpha));
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/UI_Manager.cpp b/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
index 8510b5409..4b166ef47 100644
--- a/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
@@ -8,6 +8,7 @@
#include "Mouse_Cursor.h"
#include "CameraLockOn.h"
#include "Loding_Canvas.h"
+#include "Dialogue_Canvas.h"
#include "tinyxml2.h"
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -321,6 +322,11 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
}
Add_Canvas(TEXT("SpellLearn_Canvas"), m_pSpellLearn_Canvas);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pDialogue_Canvas)))) {
+ return E_FAIL;
+ }
+ Add_Canvas(TEXT("Dialogue_Canvas"), m_pDialogue_Canvas);
+
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMouse_Cursor)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Public/Dialogue_Canvas.h b/Jusin154_Team3D/Editor/Public/Dialogue_Canvas.h
new file mode 100644
index 000000000..6b47e828d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Dialogue_Canvas.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "CanvasObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CDialogue_Canvas final : public CCanvasObject
+{
+private:
+ CDialogue_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CDialogue_Canvas(const CDialogue_Canvas& rhs);
+ virtual ~CDialogue_Canvas() = 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_Panel(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Clear_Penel();
+
+private:
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ CGameObject* m_pDialogue_Panel = { nullptr };
+
+public:
+ static CDialogue_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Dialogue_Choice.h b/Jusin154_Team3D/Editor/Public/Dialogue_Choice.h
new file mode 100644
index 000000000..0e9276e17
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Dialogue_Choice.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CDialogue_Choice final : public CElementObject
+{
+private:
+ CDialogue_Choice(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CDialogue_Choice(const CDialogue_Choice& rhs);
+ virtual ~CDialogue_Choice() = 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 Mouse_Hover();
+
+private:
+ void Hover(_bool iHover);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _float4 m_vImagePosi1{};
+ _float4 m_vImagePosi2{};
+ _float4 m_vImagePosi3{};
+
+ _int m_iHover{};
+
+public:
+ static CDialogue_Choice* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Dialogue_Panel.h b/Jusin154_Team3D/Editor/Public/Dialogue_Panel.h
new file mode 100644
index 000000000..a79fa6644
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Dialogue_Panel.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "PanelObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CDialogue_Panel final : public CPanelObject
+{
+private:
+ CDialogue_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CDialogue_Panel(const CDialogue_Panel& rhs);
+ virtual ~CDialogue_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:
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+
+ CGameObject* m_pDialogue_Choice = { nullptr };
+
+public:
+ static CDialogue_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 5001520c7..1842ef9b0 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -44,7 +44,7 @@ namespace Editor
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER, NPCINTERACTION, CANVASFADE,
FLAGWAVE, BROOMCIRCLE, RIDE_INFO_KEY, RIDE_INFO, RIDE_HPSLOT, BOOSTERGAUGE,
- BOOSTERHPBAR,
+ BOOSTERHPBAR, DIALOGUECHOICE,
ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, BROOMTARGETGATE, END
};
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , NONWB_NONPOS, DECAL, DECAL_WB, DECAL_BLUR, BLEND_CULLING, DECAL_BLEND, END};
diff --git a/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h b/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
index 6db90f1fb..30443d3e3 100644
--- a/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
+++ b/Jusin154_Team3D/Editor/Public/GamePlay_Canvas.h
@@ -42,6 +42,7 @@ class CGamePlay_Canvas final : public CCanvasObject
CGameObject* m_pEnemy_Panel = { nullptr };
CGameObject* m_pBroom_Panel = { nullptr };
CGameObject* m_pRide_Panel = { nullptr };
+ CGameObject* m_pDialogue_Panel = { nullptr };
_bool m_bRide = { false };
diff --git a/Jusin154_Team3D/Editor/Public/UI_Manager.h b/Jusin154_Team3D/Editor/Public/UI_Manager.h
index 4953e8c16..49caec491 100644
--- a/Jusin154_Team3D/Editor/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Editor/Public/UI_Manager.h
@@ -59,6 +59,7 @@ class CUI_Manager final : public CUIObject
CGameObject* m_pLoding_Canvas= { nullptr };
CGameObject* m_pQuest_Canves= { nullptr };
CGameObject* m_pSpellLearn_Canvas = { nullptr };
+ CGameObject* m_pDialogue_Canvas = { nullptr };
CGameObject* m_pMouse_Cursor = { nullptr };
CGameObject* m_pCamera_LockOn = { nullptr };
_bool m_bCanvas_Change = { false };
diff --git a/Jusin154_Team3D/Engine/Private/Camera.cpp b/Jusin154_Team3D/Engine/Private/Camera.cpp
index afa2c25a1..96886d17a 100644
--- a/Jusin154_Team3D/Engine/Private/Camera.cpp
+++ b/Jusin154_Team3D/Engine/Private/Camera.cpp
@@ -139,6 +139,16 @@ void CCamera::EnableTransition(_float fTransitionTime)
m_vTransitionTime.y = fTransitionTime;
}
+void CCamera::Set_RotDegreeVerticalLock(_float2 vVerticalLock)
+{
+ m_vAccRotDegree_VerticalLocks = vVerticalLock;
+}
+
+_float2 CCamera::Get_RotDegreeVerticalLock()
+{
+ return m_vAccRotDegree_VerticalLocks;
+}
+
_bool CCamera::IsImportantThan(CCamera* pOther) const
{
return m_iPriority > pOther->m_iPriority;
diff --git a/Jusin154_Team3D/Engine/Public/Camera.h b/Jusin154_Team3D/Engine/Public/Camera.h
index 71541456c..c22ee96cf 100644
--- a/Jusin154_Team3D/Engine/Public/Camera.h
+++ b/Jusin154_Team3D/Engine/Public/Camera.h
@@ -42,6 +42,9 @@ class ENGINE_DLL CCamera abstract : public CGameObject
virtual HRESULT Ready_Components(void* pArg)override;
virtual void EnableTransition(_float fTransitionTime);
+ void Set_RotDegreeVerticalLock(_float2 vVerticalLock);
+ _float2 Get_RotDegreeVerticalLock();
+
_bool IsActive() const { return m_bActive; }
_bool IsImportantThan(CCamera* pOther) const;
const _float* Get_CurrentFar();
@@ -63,6 +66,7 @@ class ENGINE_DLL CCamera abstract : public CGameObject
_float3 m_vFollowPos_Src = { 0.f, 0.f, 0.f };
_float3 m_vFollowPos_Dest = { 0.f, 0.f, 0.f };
_uint m_iPriority = { UINT_MAX };
+ _float2 m_vAccRotDegree_VerticalLocks = { 87.f, 87.f };
_bool m_bIsCurrentTransition = { false };
_bool m_bEnable_TransitionLerp = { false };
diff --git a/Jusin154_Team3D/Engine/Public/MyTools.h b/Jusin154_Team3D/Engine/Public/MyTools.h
index e2fb89155..89bf81ac7 100644
--- a/Jusin154_Team3D/Engine/Public/MyTools.h
+++ b/Jusin154_Team3D/Engine/Public/MyTools.h
@@ -231,7 +231,7 @@ class CMyTools {
}
// yaw 360도 자동 커트
// pitch 80도 클램프
- inline static void AdjustAccumulateDegreePitchYawDegree(_float2& vAccumulateDegreePitchYaw, float fPitchLimitDegree = 80.f)
+ inline static void AdjustAccumulateDegreePitchYawDegree(_float2& vAccumulateDegreePitchYaw, float fPitchLimitLowerDegree = 60.f, float fPitchLimitUpperDegree = 60.f)
{
if (vAccumulateDegreePitchYaw.y > 360.f)
{
@@ -242,13 +242,13 @@ class CMyTools {
vAccumulateDegreePitchYaw.y += 360.f;
}
- if (vAccumulateDegreePitchYaw.x > fPitchLimitDegree)
+ if (vAccumulateDegreePitchYaw.x > fPitchLimitUpperDegree)
{
- vAccumulateDegreePitchYaw.x = fPitchLimitDegree;
+ vAccumulateDegreePitchYaw.x = fPitchLimitUpperDegree;
}
- else if (vAccumulateDegreePitchYaw.x < -fPitchLimitDegree)
+ else if (vAccumulateDegreePitchYaw.x < -fPitchLimitLowerDegree)
{
- vAccumulateDegreePitchYaw.x = -fPitchLimitDegree;
+ vAccumulateDegreePitchYaw.x = -fPitchLimitLowerDegree;
}
}