diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 8d7423e2f..d0309f2b0 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -63,6 +63,7 @@ Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
+int g_iColor;
int g_iStep1 = 0;
int g_iStep2 = 0;
@@ -1490,6 +1491,136 @@ PS_OUT PS_Boss_HpBer(PS_IN In)
return Out;
}
+PS_OUT PS_Quest_Border(PS_IN In)
+{
+ PS_OUT Out;
+
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 Color1 = float4(1.f, 1.f, 1.f, 1.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);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
+ Color = tex1;
+
+ if (g_iColor == 1)
+ Color.rgb *= float3(100.f, 0.f, 100.f) / 255.f;
+
+ if (g_iColor == 2)
+ {
+ Color.rgb *= 0.3f;
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Quest_Info(PS_IN In)
+{
+ PS_OUT Out;
+
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 Color1 = float4(1.f, 1.f, 1.f, 1.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);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv);
+
+ Color = tex1;
+
+ Color = lerp(Color, tex2, tex2.a);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
struct VS_IN3D
{
float3 vPosition : POSITION;
@@ -1953,7 +2084,27 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Boss_HpBer();
}
- pass PS_Enemy_Detection
+ pass Quest_Border
+ {
+ 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();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Quest_Border();
+ }
+
+ pass Quest_Info
+ {
+ 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();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Quest_Info();
+ }
+
+ pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Default, 0);
@@ -1962,5 +2113,4 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Enemy_Detection();
}
-
}
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 2b03c2870..e3e7ff72a 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -186,6 +186,7 @@ call Update_Resources.bat
+
@@ -199,6 +200,16 @@ call Update_Resources.bat
+
+
+
+
+
+
+
+
+
+
@@ -372,6 +383,7 @@ call Update_Resources.bat
+
@@ -381,6 +393,16 @@ call Update_Resources.bat
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 556f39260..b70bc3383 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -560,6 +560,39 @@
02.GameObjects\Effect\MonsterEffect\Goblin_Teleport
+
+ 02.GameObjects\Effect\Effects\Accio
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Header
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_List
+
+
+ 02.GameObjects\UI\Quest_Canvas
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel
+
04.Mechanic\State\Broom_Player\State_Broom_TurboFly
@@ -1188,6 +1221,39 @@
{8f5dbf8c-be74-4512-a84f-586397744b24}
+
+ {170066b9-f360-4d15-be18-8a82f2cecf10}
+
+
+ {3bb81c23-be27-44c8-9fe8-3d9004391173}
+
+
+ {322edb99-c59d-4a92-8ab1-8ec57a9e18fb}
+
+
+ {ba5406be-c0a0-41dd-879f-a324d71ea4b8}
+
+
+ {c02a6573-5be6-4f17-b1b0-39698c0fff5f}
+
+
+ {da2bbb64-73eb-427a-ae36-21c9ed5db304}
+
+
+ {73ceb062-c340-4365-9fb3-7bb21f9b9552}
+
+
+ {bfeebdc4-6aa9-400f-a086-3d6a32a3d37e}
+
+
+ {dba35303-1858-4f74-8c4c-4c084cfaad1e}
+
+
+ {7c8b3162-a6d5-441f-84ae-cfb4bf779dfa}
+
+
+ {2d8d199b-8ba8-497a-afb3-edcc4c905ea5}
+
{2326c134-a2bb-45f1-8452-2dd49bf42697}
@@ -1701,6 +1767,39 @@
02.GameObjects\Effect\MonsterEffect\Goblin_Teleport
+
+ 02.GameObjects\Effect\Effects\Accio
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Header
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_List
+
+
+ 02.GameObjects\UI\Quest_Canvas
+
+
+ 02.GameObjects\UI\Quest_Canvas\Quest_Panel
+
04.Mechanic\State\Broom_Player\State_Broom_TurboFly
diff --git a/Jusin154_Team3D/Client/Private/Accio.cpp b/Jusin154_Team3D/Client/Private/Accio.cpp
new file mode 100644
index 000000000..eeed16d3f
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Accio.cpp
@@ -0,0 +1,281 @@
+#include "pch.h"
+#include "Accio.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Player.h"
+#include "TrailObject.h"
+#include "Wand.h"
+#include "InfoInstance.h"
+
+
+CAccio::CAccio(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CAccio::CAccio(const CAccio& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CAccio::Initialize_Prototype()
+{
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Accio")))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CAccio::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+ m_iSkillType = ENUM_CLASS(SKILL_TYPE::ACCIO);
+
+
+ m_wstrEffectName = L"Accio";
+
+
+ m_pRope_Trail = Get_PartObject("Accio_Trail");
+ m_pWandLight = Get_PartObject("Wand_Light");
+
+ if (m_pRope_Trail == nullptr)
+ return E_FAIL;
+
+ SAFE_ADDREF(m_pRope_Trail);
+ SAFE_ADDREF(m_pWandLight);
+
+ XMStoreFloat4x4(&m_TrailWorld, XMMatrixIdentity());
+
+ m_fDuration = 5.f;
+
+ return S_OK;
+}
+
+void CAccio::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+
+ _matrix TrailPos = XMLoadFloat4x4(&m_TrailWorld);
+ XMStoreFloat4(&m_vStartPos, TrailPos.r[3]);
+
+}
+
+void CAccio::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ /* 트레일 월드 이동*/
+
+ CPlayer* pPlayer = static_cast(m_pOwner);
+
+ if (pPlayer == nullptr)
+ return;
+
+ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_WandPos().r[3]);
+
+ _matrix TrailPos = XMLoadFloat4x4(&m_TrailWorld);
+
+ TrailPos.r[3] += XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed;
+
+ if (m_bHit == true && m_pEnemyCCT != nullptr)
+ {
+ /* 특정 대상과 충돌 했다면*/
+ TrailPos.r[3] = m_pEnemyCCT->Get_Position();
+ }
+
+ XMStoreFloat4x4(&m_TrailWorld, TrailPos);
+
+ m_pRope_Trail->Rope_Trail_Update(pPlayer->Get_WandPos() , TrailPos, fTimeDelta);
+
+}
+
+void CAccio::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ _matrix TrailPos = XMLoadFloat4x4(&m_TrailWorld);
+ XMStoreFloat4(&m_vEndPos, TrailPos.r[3]);
+
+ _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
+
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
+
+ OnCollision(this , &CollisionInfo);
+ }
+
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ CPlayer* pPlayer = static_cast(m_pOwner);
+
+ if (pPlayer == nullptr)
+ return E_FAIL;
+
+ _vector WandPos = pPlayer->Get_WandPos().r[3];
+
+ CEffectParts* pCircle = Get_PartObject("Accio_Circle");
+
+ CEffectParts* pSpread_Circle = Get_PartObject("Spread_Circle");
+
+ m_pRope_Trail->Set_Visible(true);
+ pCircle->Set_Visible(true);
+ m_pWandLight->Set_Visible(true);
+ pSpread_Circle->Set_Visible(true);
+
+ m_pRope_Trail->Get_Component()->Reset_Trail();
+
+ pCircle->Get_Component()->Set_State(STATE::POSITION, WandPos);
+ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, WandPos);
+ pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, WandPos);
+
+ _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK);
+ XMStoreFloat3(&m_vCameraLook, vDirection);
+
+ _vector vStartPos = WandPos;
+ XMStoreFloat4(&m_vStartPos, vStartPos);
+
+ _matrix WandWorld = pPlayer->Get_WandPos();
+
+ XMStoreFloat4x4(&m_TrailWorld , WandWorld);
+
+ { /* 대상 위치 지정 */
+
+ m_pInfoInstance->Get_LockOnInfo(m_Info);
+
+ if (nullptr != m_Info.pUnit) {
+
+ XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
+
+ XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
+ }
+ else {
+ // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
+ XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f);
+ }
+
+ }
+
+ return S_OK;
+}
+
+HRESULT CAccio::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CAccio::Ready_Child()
+{
+
+ return S_OK;
+}
+
+CAccio* CAccio::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CAccio* pInstance = new CAccio(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CAccio");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CAccio::Clone(void* pArg, CGameObject* pOwner)
+{
+ CAccio* pInstance = new CAccio(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CAccio");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+ m_pEnemyCCT = CollisionDesc.pObject->Get_Component();
+
+
+ CEffectParts* pHit = Get_PartObject("Accio_Hit");
+
+ pHit->Set_Visible(true);
+ pHit->Get_Component()->Set_State(STATE::POSITION, vPos);
+
+ CEffectParts* pCircle = Get_PartObject("Accio_Circle");
+ CEffectParts* pWandLight = Get_PartObject("Wand_Light");
+ CEffectParts* pSpread_Circle = Get_PartObject("Spread_Circle");
+
+
+ pCircle->Set_Visible(false);
+ pWandLight->Set_Visible(false);
+ pSpread_Circle->Set_Visible(false);
+
+ m_pRope_Trail->Get_Component()->Rope_Fix(true);
+}
+
+void CAccio::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pRope_Trail);
+ SAFE_RELEASE(m_pWandLight);
+
+}
+#ifdef _DEBUG
+
+void CAccio::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CAccio::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Boss_HpBar.cpp b/Jusin154_Team3D/Client/Private/Boss_HpBar.cpp
index 4f248aba7..d376f6f89 100644
--- a/Jusin154_Team3D/Client/Private/Boss_HpBar.cpp
+++ b/Jusin154_Team3D/Client/Private/Boss_HpBar.cpp
@@ -44,7 +44,7 @@ HRESULT CBoss_HpBar::Initialize(void* pArg)
m_fAlpha = 0.f;
m_fAlphaTime = 10.f;
m_vNine_Slice = _float4(60.f, 155.f, 5.f, 82.f);
- m_fMaxHp = 200.f;
+ m_fMaxHp = 0.f;
m_fCurrentHp = m_fMaxHp;
m_fDamage = 0.f;
SizeUpX(750.f);
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
index 3c71aee13..d8f544600 100644
--- a/Jusin154_Team3D/Client/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -658,8 +658,6 @@ HRESULT CEffectObject::Bind_ShaderResources()
socketMatrix = socketMatrix * m_pParentTransformCom->Get_XMWorldMatrix();
m_pTransformCom->Set_State(STATE::POSITION, socketMatrix.r[3]);
-
-
}
@@ -670,6 +668,14 @@ HRESULT CEffectObject::Bind_ShaderResources()
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_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
@@ -909,6 +915,21 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isRimLight", &m_EffectInfo.isRimLight, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vRimLightColor", &m_EffectInfo.vRimLightColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimLightPower", &m_EffectInfo.fRimLightPower, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimLightStrength", &m_EffectInfo.fRimLightStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
if (m_pDiffuse_TextureCom != nullptr)
@@ -953,11 +974,11 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
- return E_FAIL;
- }
+
+
return S_OK;
+
}
HRESULT CEffectObject::Ready_Components(void* pArg)
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 56cfb9f17..c2c95018e 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -32,7 +32,7 @@
#include "Chair_Splesh.h"
#include "Barral_Splesh.h"
#include "Goblin_Teleport.h"
-
+#include "Accio.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
{
@@ -268,6 +268,16 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::ACCIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CAccio* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CBombardSide* pEffect = nullptr;
diff --git a/Jusin154_Team3D/Client/Private/Enemy_Detection.cpp b/Jusin154_Team3D/Client/Private/Enemy_Detection.cpp
index 4b894fa05..cc2f93ad1 100644
--- a/Jusin154_Team3D/Client/Private/Enemy_Detection.cpp
+++ b/Jusin154_Team3D/Client/Private/Enemy_Detection.cpp
@@ -337,7 +337,6 @@ void CEnemy_Detection::Free()
{
__super::Free();
- SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pDiffuse_TextureCom1);
SAFE_RELEASE(m_pDiffuse_TextureCom2);
@@ -345,6 +344,7 @@ void CEnemy_Detection::Free()
SAFE_RELEASE(m_pDiffuse_TextureCom4);
SAFE_RELEASE(m_pDiffuse_TextureCom5);
SAFE_RELEASE(m_pVIBufferCom);
+ SAFE_RELEASE(m_pShaderCom);
}
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index ba6775b4e..c1b819ec9 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -194,7 +194,16 @@ void CInfoInstance::Key_Input(_uint Input)
Event_CallBack(TEXT("Use_Potion"));
break;
case ENUM_CLASS(KEYINPUT::INPUT_TAB):
-
+ if (m_eUI_State == UI_STATE::GAMEPLAYER)
+ {
+ m_eUI_State = UI_STATE::QUEST_CANVES;
+ Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
+ }
+ else if (m_eUI_State == UI_STATE::QUEST_CANVES)
+ {
+ m_eUI_State = UI_STATE::GAMEPLAYER;
+ Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
+ }
break;
default:
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index b2daac315..93bf46c19 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -268,16 +268,22 @@ HRESULT CLevel_GamePlay::Ready_Background()
}
else
{
+
+
+#if 진우
+
+#else
/* 전체 맵 */
CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data");
/* 물 오브젝트 */
- if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))){
+ if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))) {
return E_FAIL;
}
/* 조명 오브젝트 */
CInfoInstance::GetInstance()->Load_LightElements("LightElement");
+#endif
/* 상호작용 오브젝트 */
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel");
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 1040b56f2..aeaa24d4e 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -100,6 +100,16 @@
#include "Current_Slot_Number.h"
#include "Spell_Drag.h"
+#include "Quest_Canvas.h"
+#include "Quest_Panel.h"
+#include "Quest_Border.h"
+#include "Quest_Header.h"
+#include "Quest_HeaderLine.h"
+#include "Quest_List.h"
+#include "Quest_Info.h"
+#include "Quest_Info_Header.h"
+#include "Quest_Info_Line.h"
+#include "Quest_Entry_Line.h"
#pragma endregion
@@ -130,6 +140,7 @@
#include "EffectPool.h"
#include "Levioso.h"
#include "Lumos.h"
+#include "Accio.h"
#include "Goblin_Teleport.h"
@@ -856,6 +867,22 @@ HRESULT CLoader::Loading_For_GamePlay()
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Quest", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
@@ -1597,6 +1624,9 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CLumos::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CAccio::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
@@ -1918,6 +1948,57 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ /* For.Prototype_GameObject_Quest_Canvas*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Canvas::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_Panel*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Panel::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_Border*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Border::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_Header*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Header::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_HeaderLine*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_HeaderLine::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_List*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_List::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_Info*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Info::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_Info_Header*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Info_Header::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_Info_Line*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Info_Line::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_Quest_Entry_Line*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Entry_Line::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
/* For.Prototype_GameObject_Damage_Font*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDamage_Font::Create(m_pDevice, m_pContext))))
{
diff --git a/Jusin154_Team3D/Client/Private/Loding_Panel.cpp b/Jusin154_Team3D/Client/Private/Loding_Panel.cpp
index 674b21773..af019652a 100644
--- a/Jusin154_Team3D/Client/Private/Loding_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Loding_Panel.cpp
@@ -102,10 +102,9 @@ HRESULT CLoding_Panel::Render()
return E_FAIL;
}
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("<- N M ->."), _float2(100.f, 750.f));
-
+
m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip[m_iToolTip_Count].c_str(), _float2(100.f, 800.f));
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index eac97f0a2..c8b3b8a9e 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -1203,6 +1203,11 @@ void CPlayer::Behavior_SpellEnter()
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); },
0.f);
break;
+ case ENUM_CLASS(SKILL_TYPE::ACCIO):
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO, this); },
+ fRatio);
+ break;
case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
break;
diff --git a/Jusin154_Team3D/Client/Private/Quest_Border.cpp b/Jusin154_Team3D/Client/Private/Quest_Border.cpp
new file mode 100644
index 000000000..a6cd0e3ef
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_Border.cpp
@@ -0,0 +1,250 @@
+#include "pch.h"
+#include "Quest_Border.h"
+#include "GameInstance.h"
+
+CQuest_Border::CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Border::CQuest_Border(const CQuest_Border& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Border::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Border::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -485.f;
+ Desc.fY = -150.f;
+ Desc.fSizeX = 192.f;
+ Desc.fSizeY = 192.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(48.f, 148.f, 48.f, 148.f);
+ m_fSortZ = 0.02f;
+ m_fFontX = 740.f;
+ m_fFontY = 500.f;
+ SizeUpX(500.f);
+ SizeUpY(500.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Border::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Border::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_bHover = true;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ {
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ m_bHover = false;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Border::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Border::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ //m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+ return S_OK;
+}
+
+_vector CQuest_Border::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Border::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Border::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_LighthouseGoalBorder_4k"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Border* CQuest_Border::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Border* pInstance = new CQuest_Border(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Border");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Border::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Border* pInstance = new CQuest_Border(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Border");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Border::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_Border::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp b/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp
new file mode 100644
index 000000000..7da26c311
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp
@@ -0,0 +1,139 @@
+#include "pch.h"
+#include "UI_Manager.h"
+#include "Quest_Canvas.h"
+#include "GameInstance.h"
+#include "Quest_Panel.h"
+
+CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CCanvasObject(pDevice, pContext)
+{
+}
+
+CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
+ :CCanvasObject(rhs)
+{
+}
+
+HRESULT CQuest_Canvas::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_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(false);
+ return S_OK;
+}
+
+void CQuest_Canvas::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Canvas::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Canvas::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CQuest_Canvas::Render()
+{
+ return S_OK;
+}
+
+_vector CQuest_Canvas::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Canvas::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Canvas::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pQuest_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("Quest_Panel"), m_pQuest_Panel);
+ return S_OK;
+}
+
+void CQuest_Canvas::Clear_Penel()
+{
+}
+
+CQuest_Canvas* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Canvas* pInstance = new CQuest_Canvas(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Canvas::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Canvas* pInstance = new CQuest_Canvas(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Canvas::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_Canvas::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_Entry_Line.cpp b/Jusin154_Team3D/Client/Private/Quest_Entry_Line.cpp
new file mode 100644
index 000000000..1d954871c
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_Entry_Line.cpp
@@ -0,0 +1,249 @@
+#include "pch.h"
+#include "Quest_Entry_Line.h"
+#include "GameInstance.h"
+
+CQuest_Entry_Line::CQuest_Entry_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Entry_Line::CQuest_Entry_Line(const CQuest_Entry_Line& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Entry_Line::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Entry_Line::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 330.f;
+ Desc.fY = -230.f;
+ Desc.fSizeX = 256.f;
+ Desc.fSizeY = 64.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(0.f, 256.f, 0.f, 64.f);
+ m_fFontX = 928.f;
+ m_fFontY = 520.f;
+ SizeUpX(800.f);
+ SizeUpY(15.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Entry_Line::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Entry_Line::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Entry_Line::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Entry_Line::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상") - 22) * 0.5f;
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+
+ return S_OK;
+}
+
+_vector CQuest_Entry_Line::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Entry_Line::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Entry_Line::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Line"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Entry_Line* pInstance = new CQuest_Entry_Line(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Entry_Line");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Entry_Line::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Entry_Line* pInstance = new CQuest_Entry_Line(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Entry_Line::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_Entry_Line::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_Header.cpp b/Jusin154_Team3D/Client/Private/Quest_Header.cpp
new file mode 100644
index 000000000..eec368e65
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_Header.cpp
@@ -0,0 +1,251 @@
+#include "pch.h"
+#include "Quest_Header.h"
+#include "GameInstance.h"
+
+CQuest_Header::CQuest_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Header::CQuest_Header(const CQuest_Header& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Header::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Header::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -485.f;
+ Desc.fY = -352.f;
+ Desc.fSizeX = 128.f;
+ Desc.fSizeY = 32.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
+ m_fSortZ = 0.02f;
+ m_fFontX = 780.f;
+ m_fFontY = 520.f;
+ SizeUpX(600.f);
+ SizeUpY(80.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Header::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Header::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_bHover = true;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ {
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ m_bHover = false;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Header::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Header::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+ return S_OK;
+}
+
+_vector CQuest_Header::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Header::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Header::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_LighthouseHeaderBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Header* CQuest_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Header* pInstance = new CQuest_Header(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Header::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Header* pInstance = new CQuest_Header(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Header::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_Header::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_HeaderLine.cpp b/Jusin154_Team3D/Client/Private/Quest_HeaderLine.cpp
new file mode 100644
index 000000000..fc9fbe9dd
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_HeaderLine.cpp
@@ -0,0 +1,224 @@
+#include "pch.h"
+#include "Quest_HeaderLine.h"
+#include "GameInstance.h"
+
+CQuest_HeaderLine::CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_HeaderLine::CQuest_HeaderLine(const CQuest_HeaderLine& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_HeaderLine::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_HeaderLine::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -485.f;
+ Desc.fY = -310.f;
+ Desc.fSizeX = 480.f;
+ Desc.fSizeY = 10.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_HeaderLine::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_HeaderLine::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_HeaderLine::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_HeaderLine::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_HeaderLine::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_HeaderLine::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_HeaderLine::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_TutorialDividerBottom_middle"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_HeaderLine* CQuest_HeaderLine::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_HeaderLine* pInstance = new CQuest_HeaderLine(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_HeaderLine");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_HeaderLine::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_HeaderLine* pInstance = new CQuest_HeaderLine(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_HeaderLine");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_HeaderLine::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_HeaderLine::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_Info.cpp b/Jusin154_Team3D/Client/Private/Quest_Info.cpp
new file mode 100644
index 000000000..e502afdce
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_Info.cpp
@@ -0,0 +1,278 @@
+#include "pch.h"
+#include "Quest_Info.h"
+#include "GameInstance.h"
+
+CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Info::CQuest_Info(const CQuest_Info& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Info::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Info::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 325.f;
+ Desc.fY = -250.f;
+ Desc.fSizeX = 128.f;
+ Desc.fSizeY = 128.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(50.f, 75.f, 30.f, 96.f);
+ m_fPreviewOffSet = 0.f;
+ m_fOriginPerviewSize = 280.f;
+ SizeUpX(960);
+ SizeUpY(m_fOriginPerviewSize);
+ m_fSortZ = 0.02f;
+ m_fFontX = 740.f;
+ m_fFontY = 500.f;
+ m_iPerQuestIndex = -1;
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Info::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Info::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_bHover = true;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ {
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ m_bHover = false;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ Hover();
+ m_pRect.left = long(m_fX - m_vScale.x * 0.5f);
+ m_pRect.top = long(m_fY - m_vScale.y * 0.5f);
+ m_pRect.right = long(m_fX + m_vScale.x * 0.5f);
+ m_pRect.bottom = long(m_fY + m_vScale.y * 0.5f);
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Info::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Info::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_INFO)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_Info::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Info::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_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Info::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_SpellWidgetPanelBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_TutorialMediaBorder"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CQuest_Info::Hover()
+{
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse;
+ fMouse.x = ptMouse.x - g_iWinSizeX * 0.5f;
+ fMouse.y = -(ptMouse.y - g_iWinSizeY * 0.5f);
+
+ if (fMouse.x >= m_pRect.left && fMouse.x <= m_pRect.right &&
+ fMouse.y >= m_pRect.top && fMouse.y <= m_pRect.bottom)
+ {
+ _int a = 0;
+ }
+
+}
+
+CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Info* pInstance = new CQuest_Info(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Info");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Info::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Info* pInstance = new CQuest_Info(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Info");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Info::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_Info::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp
new file mode 100644
index 000000000..8ba1034cc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp
@@ -0,0 +1,253 @@
+#include "pch.h"
+#include "Quest_Info_Header.h"
+#include "GameInstance.h"
+
+CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Info_Header::CQuest_Info_Header(const CQuest_Info_Header& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Info_Header::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Info_Header::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 345.f;
+ Desc.fY = -350.f;
+ Desc.fSizeX = 128.f;
+ Desc.fSizeY = 32.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
+ m_fSortZ = 0.02f;
+ m_fFontX = 740.f;
+ m_fFontY = 520.f;
+ m_iColor = 2;
+ SizeUpX(1105.f);
+ SizeUpY(60.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Info_Header::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+
+void CQuest_Info_Header::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_bHover = true;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ {
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ m_bHover = false;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Info_Header::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Info_Header::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+ return S_OK;
+}
+
+_vector CQuest_Info_Header::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Info_Header::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Info_Header::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_LighthouseHeaderBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Info_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Info_Header::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Info_Header* pInstance = new CQuest_Info_Header(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Info_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Info_Header::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_Info_Header::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp b/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp
new file mode 100644
index 000000000..18d74a099
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp
@@ -0,0 +1,243 @@
+#include "pch.h"
+#include "Quest_Info_Line.h"
+#include "GameInstance.h"
+
+CQuest_Info_Line::CQuest_Info_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Info_Line::CQuest_Info_Line(const CQuest_Info_Line& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Info_Line::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Info_Line::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 323.f;
+ Desc.fY = -315.f;
+ Desc.fSizeX = 256.f;
+ Desc.fSizeY = 64.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(11.f, 245.f, 0.f, 64.f);
+ SizeUpX(934.f);
+ SizeUpY(15.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Info_Line::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Info_Line::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Info_Line::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Info_Line::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_Info_Line::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Info_Line::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Info_Line::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Header_Line"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Info_Line* pInstance = new CQuest_Info_Line(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Info_Line");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Info_Line::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Info_Line* pInstance = new CQuest_Info_Line(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Info_Line");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Info_Line::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_Info_Line::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_List.cpp b/Jusin154_Team3D/Client/Private/Quest_List.cpp
new file mode 100644
index 000000000..b9a71af12
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_List.cpp
@@ -0,0 +1,243 @@
+#include "pch.h"
+#include "Quest_List.h"
+#include "GameInstance.h"
+
+CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_List::CQuest_List(const CQuest_List& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_List::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_List::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -485.f;
+ Desc.fY = 150.f;
+ Desc.fSizeX = 256.f;
+ Desc.fSizeY = 64.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(70.f, 186.f, 0.f, 64.f);
+ SizeUpX(495.f);
+ SizeUpY(80.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_List::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_List::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_List::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_List::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_List::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_List::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_List::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_MenuTextButtonBorder"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_List* CQuest_List::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_List* pInstance = new CQuest_List(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_List");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_List::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_List* pInstance = new CQuest_List(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_List::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_List::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
new file mode 100644
index 000000000..147487e98
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
@@ -0,0 +1,259 @@
+#include "pch.h"
+#include "Quest_Panel.h"
+#include "GameInstance.h"
+#include "Quest_Border.h"
+#include "Quest_Header.h"
+#include "Quest_HeaderLine.h"
+#include "Quest_List.h"
+#include "Quest_Info.h"
+#include "Quest_Info_Header.h"
+#include "Quest_Info_Line.h"
+#include "Quest_Entry_Line.h"
+
+CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPanelObject(pDevice, pContext)
+{
+}
+
+CQuest_Panel::CQuest_Panel(const CQuest_Panel& rhs)
+ :CPanelObject(rhs)
+{
+}
+
+HRESULT CQuest_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Panel::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = g_iWinSizeX;
+ Desc.fSizeY = g_iWinSizeY;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Element(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fCanvasAlpha = 1.f;
+ m_fSortZ = 0.05f;
+ m_iSpellType = -1;
+ m_fDelayTime = 1.f;
+ Visible(true);
+ ElementAllVisible(true);
+ return S_OK;
+}
+
+void CQuest_Panel::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Panel::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Panel::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Panel::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Panel::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Panel::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CQuest_Panel::Ready_Element(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Border))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Border"), m_pQuest_Border);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Header))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Header"), m_pQuest_Header);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_HeaderLine))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_HeaderLine"), m_pQuest_HeaderLine);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_List))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_List"), m_pQuest_List);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Info"), m_pQuest_Info);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info_Header))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Info_Header"), m_pQuest_Info_Header);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info_Line))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Info_Line"), m_pQuest_Info_Line);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Entry_Line))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Entry_Line"), m_pQuest_Entry_Line);
+
+ return S_OK;
+}
+
+CQuest_Panel* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Panel* pInstance = new CQuest_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Panel* pInstance = new CQuest_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CQuest_Panel::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/TrailObject.cpp b/Jusin154_Team3D/Client/Private/TrailObject.cpp
index 6e5c66e94..e24ffac18 100644
--- a/Jusin154_Team3D/Client/Private/TrailObject.cpp
+++ b/Jusin154_Team3D/Client/Private/TrailObject.cpp
@@ -316,6 +316,14 @@ void CTrailObject::Trail_Update(_fmatrix WorldMat, _float fTimeDelta)
m_pTrailCom->Trail_Update(fTimeDelta, WorldMat);
}
+void CTrailObject::Rope_Trail_Update(_fmatrix WorldMat, _fmatrix EndWorldMat, _float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ m_pTrailCom->Rope_Trail_Update(WorldMat, fTimeDelta, m_TrailInfo.fDamping, m_TrailInfo.fRopeLength , EndWorldMat);
+}
+
HRESULT CTrailObject::Render()
{
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 8e66a307f..237950aa1 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -3,6 +3,7 @@
#include "GameInstance.h"
#include "GamePlay_Canvas.h"
#include "Spell_Canvas.h"
+#include "Quest_Canvas.h"
#include "InfoInstance.h"
#include "Mouse_Cursor.h"
#include "CameraLockOn.h"
@@ -50,6 +51,7 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
m_pCamera_LockOn->Set_Visible(false);
static_cast(m_pGamePlay_Canves)->Visible(true);
static_cast(m_pSpell_Canvas)->Visible(false);
+ static_cast(m_pQuest_Canvas)->Visible(false);
break;
case UI_STATE::SPELL:
@@ -59,7 +61,11 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
static_cast(m_pGamePlay_Canves)->Visible(false);
break;
- case UI_STATE::POTION:
+ case UI_STATE::QUEST_CANVES:
+ m_pMouse_Cursor->Set_Visible(true);
+ m_pCamera_LockOn->Set_Visible(false);
+ static_cast(m_pQuest_Canvas)->Visible(true);
+ static_cast(m_pGamePlay_Canves)->Visible(false);
break;
case UI_STATE::INVENTORY:
@@ -140,6 +146,11 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
}
Add_Canvas(TEXT("Spell_Canvas"), m_pSpell_Canvas);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Canvas)))) {
+ return E_FAIL;
+ }
+ Add_Canvas(TEXT("Quest_Canvas"), m_pQuest_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/Client/Public/Accio.h b/Jusin154_Team3D/Client/Public/Accio.h
new file mode 100644
index 000000000..b56a0e0e9
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Accio.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+class CCharacter_Controller;
+NS_END
+
+NS_BEGIN(Client)
+
+class CAccio final : public CEffect_Container
+{
+private:
+ CAccio(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CAccio(const CAccio& rhs);
+ virtual ~CAccio() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CTrailObject* m_pRope_Trail = { nullptr };
+ class CEffectParts* m_pWandLight = { nullptr };
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
+ _float m_fLinearSpeed = 0.25f;
+ _float3 m_vCameraLook = {};
+
+ _float4x4 m_TrailWorld = {};
+ CCharacter_Controller* m_pEnemyCCT = { nullptr };
+public:
+ static CAccio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index b94b23f09..ee46fa2cd 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -12,7 +12,14 @@ namespace Client
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, 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, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, ENEMY_HPBAR, BOSS_HPBAR, ENEMY_DETECTION, END };
+ enum class SHADER_PASS_UIEDITOR {
+ DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
+ LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
+ ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV,
+ REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
+ SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
+ ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO,
+ ENEMY_DETECTION, END};
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, END };
enum class SHADER_PASS_NPC_PBR_ANIM {
@@ -20,7 +27,7 @@ namespace Client
, OUTLINE_READ, TEETH_SRXO_ToSRO__OUTLINE_WRITE, EYE_DN_ToSRO__OUTLINE_WRITE, HEADwtHAND_DSRXON_ToSRO__OUTLINE_WRITE, UPPER_DMRON_ToMRO__OUTLINE_WRITE, EmissiveMetalness_DENMRO_ToMRO__OUTLINE_WRITE, MI_ClothSim_DSEN_ToSRO__OUTLINE_WRITE
, END
};
- enum class UI_STATE { GAMEPLAYER, SPELL, POTION, INVENTORY, END };
+ enum class UI_STATE { GAMEPLAYER, SPELL, QUEST_CANVES, INVENTORY, 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 b71d1d2b5..9ee95f7a0 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -172,13 +172,16 @@ namespace Client
_float fEmissiveColorCut = {};
- _float2 vPadding1 = {};
+ _float fRimLightPower = {};
+ _float fRimLightStrength = {};
+
_float4 vNoiseColor = {};
- _float4 vPadding3 = {};
+ _float4 vRimLightColor = {};
+
_float4 vPadding4 = {};
_float4 vPadding5 = {};
- _bool isPadding1 = {};
+ _bool isRimLight = {};
_bool isPadding2 = {};
_bool isPadding3 = {};
_bool isPadding4 = {};
@@ -237,19 +240,23 @@ namespace Client
BLOOM_TYPE eBloomType = {};
_float2 vBloomTime = {};
- _int iNumVertex = {};
+ _int iNumVertex = { 256 };
RENDER eRenderOrder = { RENDER::EFFECT };
SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL };
- _float3 vPadding0 = {};
+ _float fDamping = { 0.5f };
+ _float fRopeLength = { 0.1f };
+
+ _float fPadding0 = {};
+
_float3 vPadding1 = {};
_float3 vPadding2 = {};
- _float fPadding0 = {};
_float fPadding1 = {};
_float fPadding2 = {};
+ _float fPadding3 = {};
_bool isPadding0 = {};
_bool isPadding1 = {};
diff --git a/Jusin154_Team3D/Client/Public/Loding_Panel.h b/Jusin154_Team3D/Client/Public/Loding_Panel.h
index 50046a73b..f0e5731ae 100644
--- a/Jusin154_Team3D/Client/Public/Loding_Panel.h
+++ b/Jusin154_Team3D/Client/Public/Loding_Panel.h
@@ -36,7 +36,7 @@ class CLoding_Panel final : public CUIObject
public:
void Set_Image(_int Index);
void ToolTipSetting();
-
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -53,15 +53,6 @@ class CLoding_Panel final : public CUIObject
_wstring ToolTip[5];
_int m_iToolTip_Count{};
-#ifdef _DEBUG
- _bool INHYUK = { false };
- _bool JINHO = { false };
- _bool HYUNBIN = { false };
- _bool NURI = { false };
- _bool JINWOO = { false };
- _int human{};
-#endif
-
public:
static CLoding_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Client/Public/Quest_Border.h b/Jusin154_Team3D/Client/Public/Quest_Border.h
new file mode 100644
index 000000000..4bbb43af3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_Border.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_Border final : public CElementObject
+{
+private:
+ CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Border(const CQuest_Border& rhs);
+ virtual ~CQuest_Border() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = { false };
+
+
+public:
+ static CQuest_Border* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_Canvas.h b/Jusin154_Team3D/Client/Public/Quest_Canvas.h
new file mode 100644
index 000000000..27219b629
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_Canvas.h
@@ -0,0 +1,50 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "CanvasObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_Canvas final : public CCanvasObject
+{
+private:
+ CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Canvas(const CQuest_Canvas& rhs);
+ virtual ~CQuest_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_pQuest_Panel = { nullptr };
+public:
+ static CQuest_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_Entry_Line.h b/Jusin154_Team3D/Client/Public/Quest_Entry_Line.h
new file mode 100644
index 000000000..5d0c69f98
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_Entry_Line.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_Entry_Line final : public CElementObject
+{
+private:
+ CQuest_Entry_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Entry_Line(const CQuest_Entry_Line& rhs);
+ virtual ~CQuest_Entry_Line() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = { false };
+public:
+ static CQuest_Entry_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_Header.h b/Jusin154_Team3D/Client/Public/Quest_Header.h
new file mode 100644
index 000000000..4d342cf34
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_Header.h
@@ -0,0 +1,50 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_Header final : public CElementObject
+{
+private:
+ CQuest_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Header(const CQuest_Header& rhs);
+ virtual ~CQuest_Header() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = true;
+
+public:
+ static CQuest_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_HeaderLine.h b/Jusin154_Team3D/Client/Public/Quest_HeaderLine.h
new file mode 100644
index 000000000..8da67c8d6
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_HeaderLine.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_HeaderLine final : public CElementObject
+{
+private:
+ CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_HeaderLine(const CQuest_HeaderLine& rhs);
+ virtual ~CQuest_HeaderLine() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CQuest_HeaderLine* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_Info.h b/Jusin154_Team3D/Client/Public/Quest_Info.h
new file mode 100644
index 000000000..8005488a3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_Info.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_Info final : public CElementObject
+{
+private:
+ CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Info(const CQuest_Info& rhs);
+ virtual ~CQuest_Info() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Hover();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _wstring m_pQuest_Info;
+
+ _float m_fOriginPerviewSize{};
+ _float m_fPreviewOffSet{};
+ _float4 m_vHeaderBack{};
+
+ _int m_iPerQuestIndex{};
+public:
+ static CQuest_Info* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_Info_Header.h b/Jusin154_Team3D/Client/Public/Quest_Info_Header.h
new file mode 100644
index 000000000..f771a3365
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_Info_Header.h
@@ -0,0 +1,50 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_Info_Header final : public CElementObject
+{
+private:
+ CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Info_Header(const CQuest_Info_Header& rhs);
+ virtual ~CQuest_Info_Header() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = true;
+
+public:
+ static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_Info_Line.h b/Jusin154_Team3D/Client/Public/Quest_Info_Line.h
new file mode 100644
index 000000000..890450f7f
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_Info_Line.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_Info_Line final : public CElementObject
+{
+private:
+ CQuest_Info_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Info_Line(const CQuest_Info_Line& rhs);
+ virtual ~CQuest_Info_Line() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = { false };
+public:
+ static CQuest_Info_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_List.h b/Jusin154_Team3D/Client/Public/Quest_List.h
new file mode 100644
index 000000000..e94f41b64
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_List.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_List final : public CElementObject
+{
+private:
+ CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_List(const CQuest_List& rhs);
+ virtual ~CQuest_List() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = { false };
+public:
+ static CQuest_List* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_Panel.h b/Jusin154_Team3D/Client/Public/Quest_Panel.h
new file mode 100644
index 000000000..271cab543
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Quest_Panel.h
@@ -0,0 +1,56 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "PanelObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CQuest_Panel final : public CPanelObject
+{
+private:
+ CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Panel(const CQuest_Panel& rhs);
+ virtual ~CQuest_Panel() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Ready_Element(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ CGameObject* m_pQuest_Border = { nullptr };
+ CGameObject* m_pQuest_Header = { nullptr };
+ CGameObject* m_pQuest_HeaderLine = { nullptr };
+ CGameObject* m_pQuest_List = { nullptr };
+ CGameObject* m_pQuest_Info = { nullptr };
+ CGameObject* m_pQuest_Info_Header= { nullptr };
+ CGameObject* m_pQuest_Info_Line = { nullptr };
+ CGameObject* m_pQuest_Entry_Line = { nullptr };
+
+public:
+ static CQuest_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/Client/Public/TrailObject.h b/Jusin154_Team3D/Client/Public/TrailObject.h
index 653a1e806..37ac74870 100644
--- a/Jusin154_Team3D/Client/Public/TrailObject.h
+++ b/Jusin154_Team3D/Client/Public/TrailObject.h
@@ -28,6 +28,8 @@ class CTrailObject final : public CPartObject
public:
void Trail_Update(_fmatrix WorldMat, _float fTimeDelta);
+ void Rope_Trail_Update(_fmatrix WorldMat, _fmatrix EndWorldMat, _float fTimeDelta);
+
HRESULT Load_Trail(CEffect_Container::TRAIL_SAVE_INFO Trail_Save_Info, LEVEL eLevel);
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
@@ -61,12 +63,12 @@ class CTrailObject final : public CPartObject
_wstring m_strTrailDiffuseName = {};
_wstring m_strTrailNoiseName = {};
_wstring m_strTrailMaskingName = {};
- _wstring m_strTrailDistortionName = {};
+ _wstring m_strTrailDistortionName = {};
- _string m_strPath = {};
- _string m_strName = {};
+ _string m_strPath = {};
+ _string m_strName = {};
- TRAIL_INFO m_TrailInfo = {};
+ TRAIL_INFO m_TrailInfo = {};
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h
index 2be7c36b7..b8569addc 100644
--- a/Jusin154_Team3D/Client/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Client/Public/UI_Manager.h
@@ -53,6 +53,7 @@ class CUI_Manager final : public CUIObject
CGameObject* m_pGamePlay_Canves = { nullptr };
CGameObject* m_pSpell_Canvas = { nullptr };
CGameObject* m_pMouse_Cursor = { nullptr };
+ CGameObject* m_pQuest_Canvas = { nullptr };
CGameObject* m_pCamera_LockOn = { nullptr };
CGameObject* m_pDamage_Font = { nullptr };
_bool m_bCanvas_Change = { false };
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin
new file mode 100644
index 000000000..7d2bd9f60
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fbd4d91a88bdeb4c21172d93e2acda1763c2a248153a2d0ae2cffc5a7bcc6a0f
+size 1093
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin
deleted file mode 100644
index 301dc7e46..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:2b6ac214e96d4da30d987ce20c3558e50b4ed717c5220787477abdfaaba008ec
-size 1131
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit.bin
new file mode 100644
index 000000000..056215f66
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bf8b603ee93f837188bc86a153fa1a1335a6d886c02fae6272e5ba3f9678f34f
+size 1131
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Trail.trail
new file mode 100644
index 000000000..fc2fccc6d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Spread_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Spread_Circle.bin
new file mode 100644
index 000000000..889cdeae5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Spread_Circle.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8648be329885900074f1a56e991fe8b1f3e68cde35009cad02982675cfdac459
+size 1127
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin
new file mode 100644
index 000000000..3f28d211d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0996f91f1b3519ca701b773606843cda569b5af665b707360a7d08bc9fee1bb3
+size 1067
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinTeleport/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinTeleport/Smoke.bin
index 0214703f5..bcad3c6e7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinTeleport/Smoke.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinTeleport/Smoke.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b74957b783c0f51d77d38e43fd9050687399a12c61610952a2f7af69a1719c92
+oid sha256:96e6fb614b461dba1564caa52ec3f11180e912cee5f2734a23e27dd8465a738b
size 1076
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Accio.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Accio.bin
new file mode 100644
index 000000000..288f34832
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Accio.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0a11d5b2add2189dc3f6c8776eaf84e64d4459fe35388dda05d010638345a508
+size 301
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
index 0c08d6f6c..b8824b775 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4ddfb3185854514ab109c3b255761e2529f9f1989003ae86952b2d8c8dd9d359
-size 387
+oid sha256:054470a5dfae598902a92d4903d05402df2e1387ab2026883b0aa6b012f1acc2
+size 261
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoBottom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoBottom.bin
deleted file mode 100644
index f3847aa6a..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoBottom.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a600cc4489502d2909c4542d2ac3240106d0ddf6ede43588f573cf9e11726749
-size 1073
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoCircle.bin
deleted file mode 100644
index 6e1706733..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoCircle.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:e3e7e86c3f29daa14d846f99ec1909b675486e4d9945212b2fbdd63dfaf134d9
-size 1121
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
index 0df571232..699c34fd6 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:59d896365c898d5aa7d774f308f01e1b8d6da47f63f4a142eeb3d3d805a88ddb
-size 1096
+oid sha256:c26905e4330ced0c73e91692f7b927b5d0ae468f45671c9d41e037c46fd82144
+size 1091
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/TestTrail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/TestTrail.trail
new file mode 100644
index 000000000..1bc3d27b4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/TestTrail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml
new file mode 100644
index 000000000..5ae2d3c4d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 8d7423e2f..d0309f2b0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -63,6 +63,7 @@ Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
+int g_iColor;
int g_iStep1 = 0;
int g_iStep2 = 0;
@@ -1490,6 +1491,136 @@ PS_OUT PS_Boss_HpBer(PS_IN In)
return Out;
}
+PS_OUT PS_Quest_Border(PS_IN In)
+{
+ PS_OUT Out;
+
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 Color1 = float4(1.f, 1.f, 1.f, 1.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);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
+ Color = tex1;
+
+ if (g_iColor == 1)
+ Color.rgb *= float3(100.f, 0.f, 100.f) / 255.f;
+
+ if (g_iColor == 2)
+ {
+ Color.rgb *= 0.3f;
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Quest_Info(PS_IN In)
+{
+ PS_OUT Out;
+
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 Color1 = float4(1.f, 1.f, 1.f, 1.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);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv);
+
+ Color = tex1;
+
+ Color = lerp(Color, tex2, tex2.a);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
struct VS_IN3D
{
float3 vPosition : POSITION;
@@ -1953,7 +2084,27 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Boss_HpBer();
}
- pass PS_Enemy_Detection
+ pass Quest_Border
+ {
+ 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();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Quest_Border();
+ }
+
+ pass Quest_Info
+ {
+ 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();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Quest_Info();
+ }
+
+ pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Default, 0);
@@ -1962,5 +2113,4 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Enemy_Detection();
}
-
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl
index 5eda5ab45..39b9795ae 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl
@@ -329,7 +329,7 @@ PS_OUT PS_Spell_Effect(PS_IN In)
//float2 maskUV = In.vTexcoord;
- //maskUV.x += g_fTime * float2(0.05, 0.02); // ?띾룄 議곗젅 媛??
+ //maskUV.x += g_fTime * float2(0.05, 0.02);
//float2 center = float2(0.5, 0.0);
//float2 uv = In.vTexcoord - center;
@@ -371,7 +371,7 @@ PS_OUT PS_Spell_Slot(PS_IN In)
switch (In.vBaseColor)
{
case 0:
- BGColor = float3(255.f, 255.f, 0.f) / 255.f;
+ BGColor = float3(220.f, 165.f, 70.f) / 255.f;
break;
case 1:
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
@@ -388,7 +388,6 @@ PS_OUT PS_Spell_Slot(PS_IN In)
case 5:
BGColor = float3(50.f, 150.f, 110.f) / 255.f;
break;
-
}
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
tex1.rgb *= BGColor;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index b1a13b77d..0cf81eddc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -65,35 +65,69 @@ Texture2D g_DepthTexture : register(t9);
float4 g_vCamPosition;
+float g_fFar;
+/* 디퓨즈 */
vector g_vColor;
+float g_fDiffuseAlpha;
float2 g_vDiffuseUVGainAmount;
-float2 g_vMaskingUVGainAmount;
-float2 g_vNoiseUVGainAmount;
-
-int g_iMaskMoveLerpOption;
-int g_iDiffuseMoveLerpOption;
-int g_iNoiseMoveLerpOption;
-
-//
-float2 g_vDistortionTime;
-float2 g_vMaskDistortionUVGainAmount;
-
-
-int g_iMaskDistortionMoveLerpOption;
-int g_iDiffuseDistortionMoveLerpOption;
-//
-
float2 g_vUVCutting;
+
+int g_iDiffuseMoveLerpOption;
+
+bool g_isDiffuseUVMove;
+
+/* 노이즈 */
+bool g_isNoiseColor;
+bool g_isNoiseAlpha;
+bool g_isNoiseUVMove;
+float4 g_vNoiseColor;
+float2 g_vNoiseUVGainAmount;
+int g_iNoiseMoveLerpOption;
+/* 마스크 */
+
+bool g_isMaskClampSample;
+bool g_isMaskUVMove;
+
+float2 g_vMaskingUVGainAmount;
+float2 g_vMaskDistortionUVGainAmount;
float2 g_vUVMaskCutting;
-float g_fDiffuseAlpha;
+int g_iMaskMoveLerpOption;
+/* 디졸브 */
-int g_iBlurWeight; // 블러 강도
+
+float g_fDissolveDelay;
+float g_fReverseDissolveDelay;
+float2 g_vDissolveUVGainAmount;
+
+bool g_isDissolve;
+bool g_isDissolveMove;
+bool g_isReverseDissolve;
+bool g_isNomalDissolve;
+
+float g_fDissolveMaskEdge;
+float g_fDissolveSoftMask;
+float g_fDissolveCutRatio;
+
+float4 g_vDissolveColor;
+float2 g_vDissolveColorCut;
+
+/* 디스토션 */
+
+int g_iMaskDistortionMoveLerpOption;
+int g_iDiffuseDistortionMoveLerpOption;
+
+float2 g_vDistortionTime;
+
+/* 블러 */
+int g_iBlurWeight; // 블러 강도
float g_fBlurIntensity; //블러 세기
float g_fNoiseDistortionIntensity; // 디스토션 왜곡 세기
+bool g_isBlurNoEmissive;
+/* 이미시브 */
float4 g_vEmissive;
float g_fEmissiveStrength;
@@ -101,64 +135,49 @@ float g_fSoftenExp;
float g_fSoftStrength;
float g_fCoreBoost;
float g_fRadius;
-
-
-float g_fSoftMaskEdge;
-float g_fSoftMask;
-
-bool g_isDiffuse;
-bool g_isMasking;
-bool g_isDissolve;
-bool g_isNoise;
-bool g_isEmissive;
-bool g_isDistortion;
-
-bool g_isDiffuseUVMove;
-bool g_isMaskUVMove;
-bool g_isNoiseUVMove;
-
-bool g_isReverseDissolve;
+float g_fEmissiveColorCut;
bool g_isEmissiveDissolve;
bool g_isEmissiveDissolveReverse;
-bool g_isMaskClampSample;
+/* 소프트 마스크*/
+float g_fSoftMaskEdge;
+float g_fSoftMask;
-bool g_isNoiseColor;
-bool g_isNoiseAlpha;
-bool g_isNomalDissolve;
+/* Flag */
+bool g_isDiffuse;
+bool g_isMasking;
+bool g_isNoise;
+bool g_isEmissive;
+bool g_isDistortion;
-bool g_isBlurNoEmissive;
-bool g_isTexBlur;
+/* 마스크 블러링*/
-bool g_isBlurDissolve;
-bool g_isBlurReverseDissolve;
+bool g_isTexBlur;
+
+bool g_isBlurDissolve;
+bool g_isBlurReverseDissolve;
float g_fBluringStrength;
-bool g_isBloomDissolve;
-bool g_isBloomReverseDissolve;
+/* 블룸 */
float g_fBloomStrength;
-int g_iBloomType;
+int g_iBloomType;
-float g_fFar;
+bool g_isBloomDissolve;
+bool g_isBloomReverseDissolve;
-float g_fDissolveDelay;
-float g_fReverseDissolveDelay;
-float2 g_vDissolveUVGainAmount;
-bool g_isDissolveMove;
-float g_fDissolveMaskEdge;
-float g_fDissolveSoftMask;
-float g_fDissolveCutRatio;
+/* 림라이트 */
+bool g_isRimLight;
+
+float g_fRimLightPower;
+float g_fRimLightStrength;
+float4 g_vRimLightColor;
-float4 g_vDissolveColor;
-float2 g_vDissolveColorCut;
-float4 g_vNoiseColor;
-float g_fEmissiveColorCut;
struct VS_IN
{
@@ -234,14 +253,14 @@ VS_OUT VS_NOWORLD(VS_IN In, uint iGPUIndex : SV_InstanceID)
vector vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vPosition = vPosition;
- Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), matW));
- Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), matW)).xyz;
+ Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), matW));
+ Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), matW)).xyz;
Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), matW)).xyz;
Out.vTexcoord = In.vTexcoord;
Out.vLifeTime = In.vLifeTime;
Out.vWorldPos = mul(vector(In.vPosition, 1.f), matW);
Out.iGPUIndex = iGPUIndex;
- Out.vProjPos = vPosition;
+ Out.vProjPos = vPosition;
return Out;
}
@@ -619,12 +638,12 @@ PS_OUT BlendedWeight(vector fDiffuse, float fLinearZ)
float fAlpha = fDiffuse.a;
-// float fWeight =
-//max(
-// min(1.0, max(max(vColor.r, vColor.g), vColor.b) * fAlpha), fAlpha)
-// *
-// clamp(0.01 / (1e-4 + pow(fLinearZ / 200, 4.0)), 0.01f, 1000);
-
+ // float fWeight =
+ //max(
+ // min(1.0, max(max(vColor.r, vColor.g), vColor.b) * fAlpha), fAlpha)
+ // *
+ // clamp(0.01 / (1e-4 + pow(fLinearZ / 200, 4.0)), 0.01f, 1000);
+
//float fWeight = clamp(0.03f / (1e-5 + pow(fLinearZ, 4.0f)), 0.01, 3e3);
@@ -644,6 +663,24 @@ PS_OUT BlendedWeight(vector fDiffuse, float fLinearZ)
return Out;
}
+float4 RimLight(PS_IN In)
+{
+ float4 vRimLight = float4(0.f, 0.f, 0.f, 0.f);
+
+ if (g_isRimLight == true)
+ {
+ float4 vDir = normalize(g_vCamPosition - In.vWorldPos);
+ vDir.w = 0.f;
+
+ vRimLight = saturate(dot(float4(In.vNormal.rgb, 0.f), vDir));
+
+ vRimLight = pow(1.f - vRimLight, g_fRimLightPower);
+ vRimLight = vRimLight * g_vRimLightColor * g_fRimLightStrength;
+ }
+
+ return vRimLight;
+}
+
PS_OUT PS_MAIN(PS_IN In)
{
@@ -654,6 +691,8 @@ PS_OUT PS_MAIN(PS_IN In)
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+ vMtrlDiffuse.rgb += RimLight(In).rgb;
+
Out.vDiffuse = vMtrlDiffuse;
return Out;
@@ -678,11 +717,10 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+ vMtrlDiffuse += RimLight(In);
+
Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
- //// 색깔 추가할 처리 (이미시브)
-
-
return Out;
}
@@ -757,13 +795,7 @@ PS_BLUR_OUT PS_BLUR_NOEMISSIVE(PS_IN In)
vMtrlDiffuse.a *= 5.f;
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a);
- //if (g_isDissolve == true)
- //{
- // if (g_isNomalDissolve)
- // {
- // vMtrlDiffuse.a *= (0.95f - In.vLifeTime.x / In.vLifeTime.y);
- // }
- //}
+
Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a);
Out.vBlurWeight = g_iBlurWeight / 128.f;
@@ -783,20 +815,6 @@ PS_BLUR_OUT PS_BLUR(PS_IN In)
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a);
- //// 색깔 추가할 처리 (이미시브)
-
- //vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
-
- //vMtrlDiffuse.a = 1.f;
-
- //if (g_isDissolve == true)
- //{
- // if (g_isNomalDissolve)
- // {
- // vMtrlDiffuse.a *= (0.95f - In.vLifeTime.x / In.vLifeTime.y);
- // }
- //}
-
Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a);
Out.vBlurWeight = g_iBlurWeight / 128.f;
@@ -852,6 +870,8 @@ PS_BLOOM_OUT PS_BLEND(PS_IN In)
vMtrlDiffuse = DrawEffect(In);
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+
+ vMtrlDiffuse += RimLight(In);
Out.vDiffuse = vMtrlDiffuse;
@@ -868,6 +888,8 @@ PS_BLOOM_OUT PS_WEIGHTED_FOR_BLEND(PS_IN In)
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+ vMtrlDiffuse += RimLight(In);
+
Out.vDiffuse = BlendedWeight(vMtrlDiffuse, In.vProjPos.w).vDiffuse;
@@ -889,7 +911,7 @@ technique11 DefaultTechnique
pass NON_NOMALMAP
{
- SetRasterizerState(RS_Nocull);
+ SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
@@ -909,7 +931,7 @@ technique11 DefaultTechnique
pass WEIGHTBLEND
{
- SetRasterizerState(RS_Nocull);
+ SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
@@ -940,7 +962,7 @@ technique11 DefaultTechnique
pass BLEND
{
- SetRasterizerState(RS_Nocull);
+ SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
@@ -950,7 +972,7 @@ technique11 DefaultTechnique
pass BLEND_NOWORLD
{
- SetRasterizerState(RS_Nocull);
+ SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_NOWORLD();
@@ -1001,7 +1023,7 @@ technique11 DefaultTechnique
pass WEIGHTBLEND_FOR_BLEND
{
- SetRasterizerState(RS_Nocull);
+ SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_BossMeterShadow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_BossMeterShadow.png
deleted file mode 100644
index 77c2c4a57..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_BossMeterShadow.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Combine_the_stylized-removebg-preview.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Combine_the_stylized-removebg-preview.png
new file mode 100644
index 000000000..77cb3273d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Combine_the_stylized-removebg-preview.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Line.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Line.png
new file mode 100644
index 000000000..a663976ea
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Line.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Quest_Atlas.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Quest_Atlas.dds
new file mode 100644
index 000000000..0b1cb3fce
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Quest_Atlas.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Quest_Widget.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Quest_Widget.png
new file mode 100644
index 000000000..51ed1e6c8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/Quest_Widget.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_DropdownBoxBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_DropdownBoxBack.png
new file mode 100644
index 000000000..7b7b35c84
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_DropdownBoxBack.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_LighthouseGoalBorder_4k.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_LighthouseGoalBorder_4k.png
new file mode 100644
index 000000000..8ba75697c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_LighthouseGoalBorder_4k.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_LighthouseHeaderBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_LighthouseHeaderBack.png
new file mode 100644
index 000000000..ab94ead0f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_LighthouseHeaderBack.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_MenuTextButtonBorder.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_MenuTextButtonBorder.png
new file mode 100644
index 000000000..71ace81e8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_MenuTextButtonBorder.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_ScrollBarThumbBackBright.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_ScrollBarThumbBackBright.png
new file mode 100644
index 000000000..70e0f37fa
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_ScrollBarThumbBackBright.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_ScrollBarThumbBright.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_ScrollBarThumbBright.png
new file mode 100644
index 000000000..be77bdad3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_ScrollBarThumbBright.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_TutorialDividerBottom_middle.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_TutorialDividerBottom_middle.png
new file mode 100644
index 000000000..cba77bff7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_TutorialDividerBottom_middle.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_TutorialMediaBorder.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_TutorialMediaBorder.png
new file mode 100644
index 000000000..0f1689099
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Quest/UI_T_TutorialMediaBorder.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_Bombarda_Path.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_Bombarda_Path.png
new file mode 100644
index 000000000..305e46e2d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_Bombarda_Path.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_ButtonCalloutRing.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_ButtonCalloutRing.png
new file mode 100644
index 000000000..d0bbb6e39
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_ButtonCalloutRing.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_Cursor.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_Cursor.png
new file mode 100644
index 000000000..25f79bf8d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_Cursor.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png
new file mode 100644
index 000000000..9df5cba6e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellLinkDivide.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellLinkDivide.png
new file mode 100644
index 000000000..7da69c4b5
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellLinkDivide.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Spell_Widget.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Spell_Widget.png
index f8ec4801b..dba578cf7 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Spell_Widget.png and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Spell_Widget.png differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 10a9b7259..f326b81f9 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -185,6 +185,17 @@ call Update_Shaders.bat
+
+
+
+
+
+
+
+
+
+
+
@@ -392,6 +403,17 @@ call Update_Shaders.bat
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 513346fe3..601c61307 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -564,7 +564,7 @@
{d276d751-77aa-423e-9499-c63875e36266}
-
+
{81c6b163-6c8b-47ac-a4b6-e86088ce709f}
@@ -577,6 +577,39 @@
{a1e789e1-dce1-4069-8c61-b9f9c89f795d}
+
+ {bafb5bee-4fbd-48f8-97a1-66142e96f920}
+
+
+ {0cd16ac8-6b17-4110-8774-4b3dbd2fb8da}
+
+
+ {cf0e6cef-f688-481a-8e7e-478038907ca8}
+
+
+ {0a514079-ba47-4973-8472-07a80f1390cc}
+
+
+ {104ae31b-3c6a-4acb-9886-abace9859c6e}
+
+
+ {2af37b38-5cbe-4701-8681-638dfe78a9ce}
+
+
+ {0dfdc08d-b662-45f1-a1ea-1ca474010600}
+
+
+ {971fb38a-f92c-4eea-99d3-287704800ba5}
+
+
+ {2cf94833-8061-4a5f-9575-ebf2e491954a}
+
+
+ {a5e3c859-7e28-47b3-8b2e-3be3348bb7ee}
+
+
+ {2347d77a-ac72-4b3e-bf5f-434ca410e544}
+
@@ -1139,7 +1172,7 @@
02.GameObjects\Layer_Effect\Effect\State_Effect
-
+
50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection
@@ -1152,6 +1185,39 @@
02.GameObjects\Env\03.MapElement\Chest\Lid
+
+ 50.UI\Quest_Data
+
+
+ 50.UI\Quest_Canvas
+
+
+ 50.UI\Quest_Canvas\Quest_Panel
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Border
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Header
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_List
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Info
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Header
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line
+
@@ -1716,7 +1782,7 @@
02.GameObjects\Layer_Effect\Effect\State_Effect
-
+
50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection
@@ -1729,6 +1795,39 @@
02.GameObjects\Env\03.MapElement\Chest\Lid
+
+ 50.UI\Quest_Data
+
+
+ 50.UI\Quest_Canvas
+
+
+ 50.UI\Quest_Canvas\Quest_Panel
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Border
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Header
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_List
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Info
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Header
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line
+
+
+ 50.UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line
+
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 5b80ae563..9c57678f1 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -477,6 +477,7 @@ void CEditEffect::Describe_Entity()
GUI::Checkbox("Noise", &m_EffectInfo.isNoise);
GUI::Checkbox("Bloom", &m_EffectInfo.isBloom);
GUI::Checkbox("Blur", &m_EffectInfo.isBlur);
+ GUI::Checkbox("RimLight", &m_EffectInfo.isRimLight);
if (GUI::Checkbox("Billboard", &m_EffectInfo.isBillboard))
{
@@ -549,11 +550,11 @@ void CEditEffect::Describe_Entity()
ImGui::PushItemWidth(80);
GUI::DragFloat("EmissiveStrength", &m_EffectInfo.fEmissiveStrength, 0.005f, 0.f, 1.f);
- GUI::DragFloat("Radius", &m_EffectInfo.fRadius, 0.005f);
- GUI::DragFloat("CoreBoost", &m_EffectInfo.fCoreBoost, 0.005f);
- GUI::DragFloat("SoftStrength", &m_EffectInfo.fSoftStrength, 0.005f);
- GUI::DragFloat("SoftenExp", &m_EffectInfo.fSoftenExp, 0.005f);
- GUI::DragFloat("EmissiveColorCut", &m_EffectInfo.fEmissiveColorCut, 0.005f);
+ GUI::DragFloat("Radius", &m_EffectInfo.fRadius, 0.005f , 0.f);
+ GUI::DragFloat("CoreBoost", &m_EffectInfo.fCoreBoost, 0.005f , 0.f);
+ GUI::DragFloat("SoftStrength", &m_EffectInfo.fSoftStrength, 0.005f , 0.f);
+ GUI::DragFloat("SoftenExp", &m_EffectInfo.fSoftenExp, 0.005f , 0.f);
+ GUI::DragFloat("EmissiveColorCut", &m_EffectInfo.fEmissiveColorCut, 0.005f , 0.f);
ImGui::PopItemWidth();
@@ -584,6 +585,19 @@ void CEditEffect::Describe_Entity()
GUI::TreePop();
}
+
+ if (m_EffectInfo.isRimLight)
+ {
+ if (GUI::TreeNode("RIM LIGHT"))
+ {
+ GUI::ColorEdit4("Emissive", (_float*)&m_EffectInfo.vRimLightColor);
+ GUI::DragFloat("RimLightPower", &m_EffectInfo.fRimLightPower, 0.005f , 0.f);
+ GUI::DragFloat("RimLightStrength", &m_EffectInfo.fRimLightStrength, 0.005f, 0.f);
+
+ GUI::TreePop();
+ }
+ }
+
if (GUI::TreeNode("LIGHT"))
{
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index 41e8bcd00..a8cdb6c5a 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -750,6 +750,14 @@ HRESULT CEffectObject::Bind_ShaderResources()
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_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
@@ -988,8 +996,22 @@ HRESULT CEffectObject::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveColorCut", &m_EffectInfo.fEmissiveColorCut, sizeof(_float)))) {
return E_FAIL;
}
-
-
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isRimLight", &m_EffectInfo.isRimLight, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vRimLightColor", &m_EffectInfo.vRimLightColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimLightPower", &m_EffectInfo.fRimLightPower, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimLightStrength", &m_EffectInfo.fRimLightStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
if (m_pDiffuse_TextureCom != nullptr)
@@ -1034,10 +1056,6 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
- return E_FAIL;
- }
-
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
index a71a30515..2f98be40c 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
@@ -82,7 +82,7 @@ void CEffect_Editor::Update(_float fTimeDelta)
{
_matrix vWandPos = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER)->Get_Object()->Get_PartObject()->Get_WorldMatrix();
- m_pTrailObject->Trail_Update(vWandPos, fTimeDelta);
+ m_pTrailObject->Rope_Trail_Update(vWandPos, m_pTransformCom->Get_XMWorldMatrix(), fTimeDelta);
}
@@ -558,7 +558,7 @@ void CEffect_Editor::Describe_Entity()
if (m_pTrailObject != nullptr)
{
m_pTrailObject->Describe_Entity();
- GUI::Checkbox("WAND POS", &m_isWandPos);
+ GUI::Checkbox("TRAIL WAND POS", &m_isWandPos);
}
ImGui::End();
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index f0dcde1d6..9594322c9 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -41,6 +41,7 @@
#include "Logo_Glow.h"
#include "Spell_Data.h"
+#include "Quest_Data.h"
#include "UI_Manager.h"
#include "Mouse_Cursor.h"
@@ -99,6 +100,17 @@
#include "Current_Slot_Number.h"
#include "Spell_Drag.h"
+#include "Quest_Canvas.h"
+#include "Quest_Panel.h"
+#include "Quest_Border.h"
+#include "Quest_Header.h"
+#include "Quest_HeaderLine.h"
+#include "Quest_List.h"
+#include "Quest_Info.h"
+#include "Quest_Info_Header.h"
+#include "Quest_Info_Line.h"
+#include "Quest_Entry_Line.h"
+
#include "IMGUIUI.h"
#pragma endregion
@@ -458,7 +470,6 @@ HRESULT CLoader::Loading_For_UI()
return E_FAIL;
}
-
Asset_FileLoad("../Bin/Resources/Textures/MiniMap", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
{
@@ -587,6 +598,24 @@ HRESULT CLoader::Loading_For_UI()
});
+ Asset_FileLoad("../Bin/Resources/Textures/Quest", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Item"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) {
return E_FAIL;
@@ -899,6 +928,10 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Data::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CUI_Manager::Create(m_pDevice, m_pContext))))
{
@@ -1100,6 +1133,47 @@ HRESULT CLoader::Loading_For_UI()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Canvas::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Panel::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Border::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Header::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_HeaderLine::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_List::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Info::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Info_Header::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Info_Line::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CQuest_Entry_Line::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp b/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp
index 8bb1b80f9..ee826e330 100644
--- a/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp
+++ b/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp
@@ -43,11 +43,11 @@ HRESULT CMissionBanner_Key::Initialize(void* pArg)
m_fPI = AI_MATH_TWO_PI_F;
Compute_UV();
Compute_Alphabat('V');
- m_eType = QUESTYPE::MAIN;
+ m_eType = QUESTTYPE::MAIN;
return S_OK;
}
-void CMissionBanner_Key::QuestType(QUESTYPE eType)
+void CMissionBanner_Key::QuestType(QUESTTYPE eType)
{
m_eType = eType;
}
diff --git a/Jusin154_Team3D/Editor/Private/Mission_Icon.cpp b/Jusin154_Team3D/Editor/Private/Mission_Icon.cpp
index 7be1c58ca..485107494 100644
--- a/Jusin154_Team3D/Editor/Private/Mission_Icon.cpp
+++ b/Jusin154_Team3D/Editor/Private/Mission_Icon.cpp
@@ -44,7 +44,7 @@ HRESULT CMission_Icon::Initialize(void* pArg)
m_fLerpX = m_fX;
m_fLerpY = 45;
m_fSortZ = 0.1f;
- m_eQuestType = QUESTYPE::MAIN;
+ m_eQuestType = QUESTTYPE::MAIN;
//static_cast(m_pOwner)->Add_Function(TEXT("Mission_SizeUp"), [this](void* p) {
// if (p == nullptr)
// return;
@@ -58,7 +58,7 @@ HRESULT CMission_Icon::Initialize(void* pArg)
return S_OK;
}
-void CMission_Icon::QuestType(QUESTYPE eType)
+void CMission_Icon::QuestType(QUESTTYPE eType)
{
m_eQuestType = eType;
}
@@ -125,7 +125,7 @@ HRESULT CMission_Icon::Render()
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUESTYPE)))) {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUESTTYPE)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
diff --git a/Jusin154_Team3D/Editor/Private/Protego.cpp b/Jusin154_Team3D/Editor/Private/Protego.cpp
index 2ab5a7648..6932c513f 100644
--- a/Jusin154_Team3D/Editor/Private/Protego.cpp
+++ b/Jusin154_Team3D/Editor/Private/Protego.cpp
@@ -34,12 +34,9 @@ HRESULT CProtego::Initialize(void* pArg)
return E_FAIL;
m_pSphere = Get_PartObject("ProtegoSphere");
- m_pBottom = Get_PartObject("ProtegoBottom");
- m_pCircle = Get_PartObject("ProtegoCircle");
SAFE_ADDREF(m_pSphere);
- SAFE_ADDREF(m_pBottom);
- SAFE_ADDREF(m_pCircle);
+
m_wstrEffectName = L"Protego";
@@ -64,8 +61,6 @@ void CProtego::Update(_float fTimeDelta)
return;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pCircle-> Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
__super::Update(fTimeDelta);
@@ -83,7 +78,6 @@ void CProtego::Update(_float fTimeDelta)
_float3 vSize = _float3(fSize, fSize, fSize);
m_pSphere->Get_Component()->Set_Scale(vSize);
- m_pCircle->Get_Component()->Set_Scale(vSize);
}
void CProtego::Late_Update(_float fTimeDelta)
@@ -102,17 +96,13 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
return E_FAIL;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pCircle->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphere->Set_Visible(true);
- m_pCircle->Set_Visible(true);
- m_pBottom->Set_Visible(true);
+
_float3 vSize = _float3(1.f, 1.f, 1.f);
m_pSphere->Get_Component()->Set_Scale(vSize);
- m_pCircle->Get_Component()->Set_Scale(vSize);
m_fSizeAccTime = 0.f;
@@ -176,8 +166,6 @@ void CProtego::Free()
// SAFE_RELEASE(m_pPhysHitBox);
SAFE_RELEASE(m_pSphere);
- SAFE_RELEASE(m_pBottom);
- SAFE_RELEASE(m_pCircle);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Border.cpp b/Jusin154_Team3D/Editor/Private/Quest_Border.cpp
new file mode 100644
index 000000000..2e803da8f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Border.cpp
@@ -0,0 +1,248 @@
+#include "pch.h"
+#include "Quest_Border.h"
+#include "GameInstance.h"
+
+CQuest_Border::CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Border::CQuest_Border(const CQuest_Border& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Border::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Border::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -485.f;
+ Desc.fY = -150.f;
+ Desc.fSizeX = 192.f;
+ Desc.fSizeY = 192.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(48.f, 148.f, 48.f, 148.f);
+ m_fSortZ = 0.02f;
+ m_fFontX = 740.f;
+ m_fFontY = 500.f;
+ SizeUpX(500.f);
+ SizeUpY(500.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Border::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Border::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_bHover = true;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ {
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ m_bHover = false;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Border::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Border::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ //m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+ return S_OK;
+}
+
+_vector CQuest_Border::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Border::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Border::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_LighthouseGoalBorder_4k"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Border* CQuest_Border::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Border* pInstance = new CQuest_Border(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Border");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Border::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Border* pInstance = new CQuest_Border(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Border");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Border::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_Border::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Canvas.cpp b/Jusin154_Team3D/Editor/Private/Quest_Canvas.cpp
new file mode 100644
index 000000000..2275e8a47
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Canvas.cpp
@@ -0,0 +1,137 @@
+#include "pch.h"
+#include "UI_Manager.h"
+#include "Quest_Canvas.h"
+#include "GameInstance.h"
+#include "Quest_Panel.h"
+
+CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CCanvasObject(pDevice, pContext)
+{
+}
+
+CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
+ :CCanvasObject(rhs)
+{
+}
+
+HRESULT CQuest_Canvas::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_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(false);
+ return S_OK;
+}
+
+void CQuest_Canvas::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Canvas::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Canvas::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CQuest_Canvas::Render()
+{
+ return S_OK;
+}
+
+_vector CQuest_Canvas::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Canvas::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Canvas::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pQuest_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("Quest_Panel"), m_pQuest_Panel);
+ return S_OK;
+}
+
+void CQuest_Canvas::Clear_Penel()
+{
+}
+
+CQuest_Canvas* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Canvas* pInstance = new CQuest_Canvas(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Canvas::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Canvas* pInstance = new CQuest_Canvas(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Canvas::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_Canvas::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Data.cpp b/Jusin154_Team3D/Editor/Private/Quest_Data.cpp
new file mode 100644
index 000000000..ff7fc53e4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Data.cpp
@@ -0,0 +1,159 @@
+#include "pch.h"
+#include "Quest_Data.h"
+#include "GameObject.h"
+#include "UIObject.h"
+#include "tinyxml2.h"
+
+CQuest_Data::CQuest_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CGameObject(pDevice, pContext)
+{
+}
+
+CQuest_Data::CQuest_Data(const CQuest_Data& rhs)
+ :CGameObject(rhs)
+{
+}
+
+HRESULT CQuest_Data::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Data::Initialize(void* pArg)
+{
+ auto* pInfo = static_cast(pArg);
+
+ tinyxml2::XMLDocument doc;
+ tinyxml2::XMLError Error = doc.LoadFile("../Bin/Resources/Data/Quest/QuestData.xml");
+ if (Error != tinyxml2::XML_SUCCESS)
+ return E_FAIL;
+
+ tinyxml2::XMLElement* pQuestInfo = doc.FirstChildElement("QuestInfo");
+ if (!pQuestInfo)
+ return E_FAIL;
+
+ tinyxml2::XMLElement* pQuestData = pQuestInfo->FirstChildElement("QuestData");
+ if (!pQuestData)
+ return E_FAIL;
+
+ tinyxml2::XMLElement* pQuest = pQuestData->FirstChildElement("Quest");
+ while (pQuest)
+ {
+ QUESTINFO quest{};
+
+ pQuest->QueryIntAttribute("QuestID", &quest.iQuestID);
+ pQuest->QueryIntAttribute("QuestType", &quest.iType);
+ quest.pQuestName = pQuest->Attribute("QuestName");
+ quest.pQuestInfo = pQuest->Attribute("QuestInfo");
+
+ tinyxml2::XMLElement* pObjectives = pQuest->FirstChildElement("Objectives");
+ if (pObjectives)
+ {
+ tinyxml2::XMLElement* pObjective = pObjectives->FirstChildElement("Objective");
+ while (pObjective)
+ {
+ OBJECTIVEINFO obj{};
+
+ pObjective->QueryIntAttribute("Objective", &obj.iObjectType);
+ pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
+ pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
+ pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
+
+ quest.ObjectiveInfo.push_back(obj);
+
+ pObjective = pObjective->NextSiblingElement("Objective");
+ }
+ }
+
+ tinyxml2::XMLElement* pRewards = pQuest->FirstChildElement("Rewards");
+ if (pRewards)
+ {
+ tinyxml2::XMLElement* pReward = pRewards->FirstChildElement("Reward");
+ while (pReward)
+ {
+ REWARDSINFO reward{};
+
+ pReward->QueryIntAttribute("RequiredCount", &reward.iRewardType);
+ pReward->QueryIntAttribute("CurrentCount", &reward.iRewardID);
+
+ quest.RewardsInfo.push_back(reward);
+
+ pReward = pReward->NextSiblingElement("Reward");
+ }
+ }
+
+ QuestInfos.push_back(quest);
+
+ pQuest = pQuest->NextSiblingElement("Quest");
+ }
+
+ return S_OK;
+}
+
+void CQuest_Data::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CQuest_Data::Update(_float fTimeDelta)
+{
+}
+
+void CQuest_Data::Late_Update(_float fTimeDelta)
+{
+}
+
+HRESULT CQuest_Data::Render()
+{
+ return S_OK;
+}
+
+_vector CQuest_Data::Get_WorldPostion()
+{
+ return _vector();
+}
+
+HRESULT CQuest_Data::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Data::Ready_Components(void* pArg)
+{
+ return S_OK;
+}
+
+CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Data* pInstance = new CQuest_Data(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Data");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Data::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Data* pInstance = new CQuest_Data(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Data");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Data::Free()
+{
+ __super::Free();
+
+}
+
+void CQuest_Data::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Entry_Line.cpp b/Jusin154_Team3D/Editor/Private/Quest_Entry_Line.cpp
new file mode 100644
index 000000000..2122bd4a8
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Entry_Line.cpp
@@ -0,0 +1,247 @@
+#include "pch.h"
+#include "Quest_Entry_Line.h"
+#include "GameInstance.h"
+
+CQuest_Entry_Line::CQuest_Entry_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Entry_Line::CQuest_Entry_Line(const CQuest_Entry_Line& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Entry_Line::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Entry_Line::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 330.f;
+ Desc.fY = -230.f;
+ Desc.fSizeX = 256.f;
+ Desc.fSizeY = 64.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(0.f, 256.f, 0.f, 64.f);
+ m_fFontX = 928.f;
+ m_fFontY = 520.f;
+ SizeUpX(800.f);
+ SizeUpY(15.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Entry_Line::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Entry_Line::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Entry_Line::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Entry_Line::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상") - 22) * 0.5f;
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+
+ return S_OK;
+}
+
+_vector CQuest_Entry_Line::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Entry_Line::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Entry_Line::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_Line"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Entry_Line* pInstance = new CQuest_Entry_Line(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Entry_Line");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Entry_Line::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Entry_Line* pInstance = new CQuest_Entry_Line(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Entry_Line::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_Entry_Line::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Header.cpp b/Jusin154_Team3D/Editor/Private/Quest_Header.cpp
new file mode 100644
index 000000000..819ea129f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Header.cpp
@@ -0,0 +1,249 @@
+#include "pch.h"
+#include "Quest_Header.h"
+#include "GameInstance.h"
+
+CQuest_Header::CQuest_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Header::CQuest_Header(const CQuest_Header& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Header::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Header::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -485.f;
+ Desc.fY = -352.f;
+ Desc.fSizeX = 128.f;
+ Desc.fSizeY = 32.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
+ m_fSortZ = 0.02f;
+ m_fFontX = 780.f;
+ m_fFontY = 520.f;
+ SizeUpX(600.f);
+ SizeUpY(80.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Header::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Header::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_bHover = true;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ {
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ m_bHover = false;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Header::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Header::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+ return S_OK;
+}
+
+_vector CQuest_Header::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Header::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Header::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_LighthouseHeaderBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Header* CQuest_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Header* pInstance = new CQuest_Header(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Header::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Header* pInstance = new CQuest_Header(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Header::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_Header::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_HeaderLine.cpp b/Jusin154_Team3D/Editor/Private/Quest_HeaderLine.cpp
new file mode 100644
index 000000000..a3abf2465
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_HeaderLine.cpp
@@ -0,0 +1,222 @@
+#include "pch.h"
+#include "Quest_HeaderLine.h"
+#include "GameInstance.h"
+
+CQuest_HeaderLine::CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_HeaderLine::CQuest_HeaderLine(const CQuest_HeaderLine& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_HeaderLine::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_HeaderLine::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -485.f;
+ Desc.fY = -310.f;
+ Desc.fSizeX = 480.f;
+ Desc.fSizeY = 10.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_HeaderLine::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_HeaderLine::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_HeaderLine::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_HeaderLine::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_HeaderLine::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_HeaderLine::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_HeaderLine::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_TutorialDividerBottom_middle"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_HeaderLine* CQuest_HeaderLine::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_HeaderLine* pInstance = new CQuest_HeaderLine(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_HeaderLine");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_HeaderLine::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_HeaderLine* pInstance = new CQuest_HeaderLine(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_HeaderLine");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_HeaderLine::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_HeaderLine::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Info.cpp b/Jusin154_Team3D/Editor/Private/Quest_Info.cpp
new file mode 100644
index 000000000..e3ca732f3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Info.cpp
@@ -0,0 +1,276 @@
+#include "pch.h"
+#include "Quest_Info.h"
+#include "GameInstance.h"
+
+CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Info::CQuest_Info(const CQuest_Info& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Info::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Info::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 325.f;
+ Desc.fY = -250.f;
+ Desc.fSizeX = 128.f;
+ Desc.fSizeY = 128.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(50.f, 75.f, 30.f, 96.f);
+ m_fPreviewOffSet = 0.f;
+ m_fOriginPerviewSize = 280.f;
+ SizeUpX(960);
+ SizeUpY(m_fOriginPerviewSize);
+ m_fSortZ = 0.02f;
+ m_fFontX = 740.f;
+ m_fFontY = 500.f;
+ m_iPerQuestIndex = -1;
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Info::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Info::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_bHover = true;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ {
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ m_bHover = false;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ Hover();
+ m_pRect.left = long(m_fX - m_vScale.x * 0.5f);
+ m_pRect.top = long(m_fY - m_vScale.y * 0.5f);
+ m_pRect.right = long(m_fX + m_vScale.x * 0.5f);
+ m_pRect.bottom = long(m_fY + m_vScale.y * 0.5f);
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Info::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Info::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_INFO)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_Info::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Info::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_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Info::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_SpellWidgetPanelBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_TutorialMediaBorder"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CQuest_Info::Hover()
+{
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse;
+ fMouse.x = ptMouse.x - g_iWinSizeX * 0.5f;
+ fMouse.y = -(ptMouse.y - g_iWinSizeY * 0.5f);
+
+ if (fMouse.x >= m_pRect.left && fMouse.x <= m_pRect.right &&
+ fMouse.y >= m_pRect.top && fMouse.y <= m_pRect.bottom)
+ {
+ _int a = 0;
+ }
+
+}
+
+CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Info* pInstance = new CQuest_Info(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Info");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Info::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Info* pInstance = new CQuest_Info(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Info");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Info::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_Info::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Info_Header.cpp b/Jusin154_Team3D/Editor/Private/Quest_Info_Header.cpp
new file mode 100644
index 000000000..e50ed8802
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Info_Header.cpp
@@ -0,0 +1,251 @@
+#include "pch.h"
+#include "Quest_Info_Header.h"
+#include "GameInstance.h"
+
+CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Info_Header::CQuest_Info_Header(const CQuest_Info_Header& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Info_Header::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Info_Header::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 345.f;
+ Desc.fY = -350.f;
+ Desc.fSizeX = 128.f;
+ Desc.fSizeY = 32.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
+ m_fSortZ = 0.02f;
+ m_fFontX = 740.f;
+ m_fFontY = 520.f;
+ m_iColor = 2;
+ SizeUpX(1105.f);
+ SizeUpY(60.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Info_Header::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+
+void CQuest_Info_Header::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_bHover = true;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ {
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;
+ m_bHover = false;
+ }
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Info_Header::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Info_Header::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ _float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+ return S_OK;
+}
+
+_vector CQuest_Info_Header::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Info_Header::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Info_Header::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_UI_T_LighthouseHeaderBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Info_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Info_Header::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Info_Header* pInstance = new CQuest_Info_Header(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Info_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Info_Header::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_Info_Header::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Info_Line.cpp b/Jusin154_Team3D/Editor/Private/Quest_Info_Line.cpp
new file mode 100644
index 000000000..4cac3f91f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Info_Line.cpp
@@ -0,0 +1,241 @@
+#include "pch.h"
+#include "Quest_Info_Line.h"
+#include "GameInstance.h"
+
+CQuest_Info_Line::CQuest_Info_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_Info_Line::CQuest_Info_Line(const CQuest_Info_Line& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_Info_Line::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Info_Line::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 323.f;
+ Desc.fY = -315.f;
+ Desc.fSizeX = 256.f;
+ Desc.fSizeY = 64.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(11.f, 245.f, 0.f, 64.f);
+ SizeUpX(934.f);
+ SizeUpY(15.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_Info_Line::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Info_Line::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Info_Line::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Info_Line::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_Info_Line::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Info_Line::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Info_Line::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_UI_T_Header_Line"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Info_Line* pInstance = new CQuest_Info_Line(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Info_Line");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Info_Line::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Info_Line* pInstance = new CQuest_Info_Line(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Info_Line");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Info_Line::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_Info_Line::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_List.cpp b/Jusin154_Team3D/Editor/Private/Quest_List.cpp
new file mode 100644
index 000000000..789247975
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_List.cpp
@@ -0,0 +1,241 @@
+#include "pch.h"
+#include "Quest_List.h"
+#include "GameInstance.h"
+
+CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CQuest_List::CQuest_List(const CQuest_List& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CQuest_List::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_List::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = -485.f;
+ Desc.fY = 150.f;
+ Desc.fSizeX = 256.f;
+ Desc.fSizeY = 64.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(70.f, 186.f, 0.f, 64.f);
+ SizeUpX(495.f);
+ SizeUpY(80.f);
+ Visible(true);
+ return S_OK;
+}
+
+void CQuest_List::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_List::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_List::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_List::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_List::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_List::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_List::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_UI_T_MenuTextButtonBorder"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CQuest_List* CQuest_List::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_List* pInstance = new CQuest_List(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_List");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_List::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_List* pInstance = new CQuest_List(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_List::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_List::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Quest_Panel.cpp b/Jusin154_Team3D/Editor/Private/Quest_Panel.cpp
new file mode 100644
index 000000000..afeebf301
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Quest_Panel.cpp
@@ -0,0 +1,257 @@
+#include "pch.h"
+#include "Quest_Panel.h"
+#include "GameInstance.h"
+#include "Quest_Border.h"
+#include "Quest_Header.h"
+#include "Quest_HeaderLine.h"
+#include "Quest_List.h"
+#include "Quest_Info.h"
+#include "Quest_Info_Header.h"
+#include "Quest_Info_Line.h"
+#include "Quest_Entry_Line.h"
+
+CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPanelObject(pDevice, pContext)
+{
+}
+
+CQuest_Panel::CQuest_Panel(const CQuest_Panel& rhs)
+ :CPanelObject(rhs)
+{
+}
+
+HRESULT CQuest_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CQuest_Panel::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 960.f;
+ Desc.fY = 540.f;
+ Desc.fSizeX = g_iWinSizeX;
+ Desc.fSizeY = g_iWinSizeY;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Element(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_fCanvasAlpha = 1.f;
+ m_fSortZ = 0.05f;
+ m_iSpellType = -1;
+ m_fDelayTime = 1.f;
+ Visible(true);
+ ElementAllVisible(true);
+ return S_OK;
+}
+
+void CQuest_Panel::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CQuest_Panel::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CQuest_Panel::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CQuest_Panel::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CQuest_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CQuest_Panel::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CQuest_Panel::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CQuest_Panel::Ready_Element(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Border))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Border"), m_pQuest_Border);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Header))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Header"), m_pQuest_Header);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_HeaderLine))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_HeaderLine"), m_pQuest_HeaderLine);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_List))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_List"), m_pQuest_List);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Info"), m_pQuest_Info);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info_Header))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Info_Header"), m_pQuest_Info_Header);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Info_Line))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Info_Line"), m_pQuest_Info_Line);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Entry_Line))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Quest_Entry_Line"), m_pQuest_Entry_Line);
+
+ return S_OK;
+}
+
+CQuest_Panel* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CQuest_Panel* pInstance = new CQuest_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CQuest_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CQuest_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CQuest_Panel* pInstance = new CQuest_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CQuest_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CQuest_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CQuest_Panel::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Canvas.cpp b/Jusin154_Team3D/Editor/Private/Spell_Canvas.cpp
index b15c58a94..1b53268cb 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Canvas.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Canvas.cpp
@@ -51,7 +51,6 @@ void CSpell_Canvas::Priority_Update(_float fTimeDelta)
void CSpell_Canvas::Update(_float fTimeDelta)
{
-
__super::Update(fTimeDelta);
}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Data.cpp b/Jusin154_Team3D/Editor/Private/Spell_Data.cpp
index 20157c07d..c38fcb243 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Data.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Data.cpp
@@ -4,8 +4,6 @@
#include "UIObject.h"
#include "tinyxml2.h"
-;
-
CSpell_Data::CSpell_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CGameObject(pDevice, pContext)
{
@@ -18,7 +16,6 @@ CSpell_Data::CSpell_Data(const CSpell_Data& rhs)
HRESULT CSpell_Data::Initialize_Prototype()
{
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_List.cpp b/Jusin154_Team3D/Editor/Private/Spell_List.cpp
index 3afd78cd1..185061394 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_List.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_List.cpp
@@ -182,10 +182,6 @@ void CSpell_List::Hover()
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
fMouse.y = -(ptMouse.y - (g_iWinSizeY * 0.5f));
- // 엘리먼트의 월드 위치를 더해주면 엘리먼트 좌표계 기준이 됨
- fMouse.x -= m_pOwner->Get_WorldPostion().m128_f32[0];
- fMouse.y -= m_pOwner->Get_WorldPostion().m128_f32[1];
-
m_iSpellType = m_pVIBufferCom->Set_Mouse_Hover(fMouse);
CUIObject::HOVER_INFO Info;
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Preview.cpp b/Jusin154_Team3D/Editor/Private/Spell_Preview.cpp
index f48f0c060..c7c7fa9fb 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Preview.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Preview.cpp
@@ -156,7 +156,6 @@ void CSpell_Preview::SizeUpX(_float fSizeX)
m_fSizeX = fSizeX;
m_fX += fX;
m_fLerpX += fX;
-
}
void CSpell_Preview::SizeUpY(_float fSizeY)
@@ -164,9 +163,7 @@ void CSpell_Preview::SizeUpY(_float fSizeY)
_float prevY = m_fY;
m_fSizeY = fSizeY;
m_fY = m_fTopY + fSizeY * 0.5f;
-
_float deltaY = m_fY - prevY;
-
}
HRESULT CSpell_Preview::Bind_ShaderResources()
diff --git a/Jusin154_Team3D/Editor/Private/TrailObject.cpp b/Jusin154_Team3D/Editor/Private/TrailObject.cpp
index 2b8fcf7b7..b06280723 100644
--- a/Jusin154_Team3D/Editor/Private/TrailObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/TrailObject.cpp
@@ -92,9 +92,7 @@ void CTrailObject::Late_Update(_float fTimeDelta)
if (m_TrailInfo.isOnlyBlur == true)
return;
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
- m_pGameInstance->Add_RenderGroup(m_TrailInfo.eRenderOrder, this);
- }
+ m_pGameInstance->Add_RenderGroup(m_TrailInfo.eRenderOrder, this);
}
@@ -115,6 +113,15 @@ void CTrailObject::Trail_Update(_fmatrix WorldMat, _float fTimeDelta)
m_pTrailCom->Trail_Update(fTimeDelta, WorldMat);
}
+void CTrailObject::Rope_Trail_Update(_fmatrix WorldMat, _fmatrix EndWorldMat, _float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ m_pTrailCom->Rope_Trail_Update(WorldMat, fTimeDelta, m_TrailInfo.fDamping, m_TrailInfo.fRopeLength, EndWorldMat);
+}
+
+
#ifdef _DEBUG
@@ -529,8 +536,18 @@ void CTrailObject::Describe_Entity()
GUI::Checkbox("Distortion", &m_TrailInfo.isDistortion);
GUI::Checkbox("Bloom", &m_TrailInfo.isBloom);
+
GUI::ColorEdit4("MixColor", (_float*)&m_TrailInfo.vColor);
+ if (GUI::TreeNode("Rope Trail"))
+ {
+
+ GUI::DragFloat("Dampling", &m_TrailInfo.fDamping);
+ GUI::DragFloat("Rope Length", &m_TrailInfo.fRopeLength);
+
+ GUI::TreePop();
+ }
+
if (GUI::TreeNode("TRAIL BLUR"))
{
GUI::Checkbox("Blur", &m_TrailInfo.isBlur);
diff --git a/Jusin154_Team3D/Editor/Private/UI_Manager.cpp b/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
index 477e7b000..4e94201a2 100644
--- a/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Editor/Private/UI_Manager.cpp
@@ -3,6 +3,7 @@
#include "GameInstance.h"
#include "GamePlay_Canvas.h"
#include "Spell_Canvas.h"
+#include "Quest_Canvas.h"
#include "Mouse_Cursor.h"
#include "CameraLockOn.h"
#include "Loding_Canvas.h"
@@ -43,12 +44,18 @@ void CUI_Manager::Canvas_Change(Canvases eType)
case Canvases::GAMEPLAYER_CANVAS:
static_cast(m_pGamePlay_Canves)->Visible(true);
static_cast(m_pSpell_Canvas)->Visible(false);
+ static_cast(m_pQuest_Canves)->Visible(false);
break;
case Canvases::SPELL_CANVAS:
static_cast(m_pSpell_Canvas)->Visible(true);
static_cast(m_pGamePlay_Canves)->Visible(false);
+ break;
+ case Canvases::QUEST_CANVES:
+ static_cast(m_pQuest_Canves)->Visible(true);
+ static_cast(m_pGamePlay_Canves)->Visible(false);
+
break;
default:
return;
@@ -99,7 +106,15 @@ void CUI_Manager::Update(_float fTimeDelta)
{
if (m_eType == Canvases::GAMEPLAYER_CANVAS)
Canvas_Change(Canvases::SPELL_CANVAS);
- else
+ else if(m_eType == Canvases::SPELL_CANVAS)
+ Canvas_Change(Canvases::GAMEPLAYER_CANVAS);
+ }
+
+ if (m_pGameInstance->Key_Down(DIK_TAB))
+ {
+ if (m_eType == Canvases::GAMEPLAYER_CANVAS)
+ Canvas_Change(Canvases::QUEST_CANVES);
+ else if (m_eType == Canvases::QUEST_CANVES)
Canvas_Change(Canvases::GAMEPLAYER_CANVAS);
}
@@ -145,15 +160,20 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
}
Add_Canvas(TEXT("Spell_Canvas"), m_pSpell_Canvas);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pQuest_Canves)))) {
+ return E_FAIL;
+ }
+ Add_Canvas(TEXT("Quest_Canves"), m_pQuest_Canves);
+
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMouse_Cursor)))) {
return E_FAIL;
}
//Add_Canvas(TEXT("Mouse_Cursor"), m_pMouse_Cursor);
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCamera_LockOn)))) {
- return E_FAIL;
- }
- //Add_Canvas(TEXT("Camera_LockOn"), m_pCamera_LockOn);
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCamera_LockOn)))) {
+ // return E_FAIL;
+ //}
+ ////Add_Canvas(TEXT("Camera_LockOn"), m_pCamera_LockOn);
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index b52ba7b07..e916fe354 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -28,7 +28,13 @@ namespace Editor
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, ENEMY_HPBAR, BOSS_HPBAR, ENEMY_DETECTION, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
+ LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
+ ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV,
+ REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
+ SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
+ ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO,
+ ENEMY_DETECTION, 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, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK,END };
diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h
index aadd74833..2909bff79 100644
--- a/Jusin154_Team3D/Editor/Public/EffectObject.h
+++ b/Jusin154_Team3D/Editor/Public/EffectObject.h
@@ -121,13 +121,16 @@ class CEffectObject abstract : public CPartObject
_float fEmissiveColorCut = {};
- _float2 vPadding1 = {};
+ _float fRimLightPower = {};
+ _float fRimLightStrength = {};
+
_float4 vNoiseColor = {};
- _float4 vPadding3 = {};
+ _float4 vRimLightColor = {};
+
_float4 vPadding4 = {};
_float4 vPadding5 = {};
- _bool isPadding1 = {};
+ _bool isRimLight = {};
_bool isPadding2 = {};
_bool isPadding3 = {};
_bool isPadding4 = {};
diff --git a/Jusin154_Team3D/Editor/Public/MissionBanner_Key.h b/Jusin154_Team3D/Editor/Public/MissionBanner_Key.h
index b28825909..779720695 100644
--- a/Jusin154_Team3D/Editor/Public/MissionBanner_Key.h
+++ b/Jusin154_Team3D/Editor/Public/MissionBanner_Key.h
@@ -27,7 +27,7 @@ class CMissionBanner_Key final : public CElementObject
virtual HRESULT Initialize(void* pArg) override;
public:
- void QuestType(QUESTYPE eType);
+ void QuestType(QUESTTYPE eType);
private:
void Compute_UV();
@@ -49,7 +49,7 @@ class CMissionBanner_Key final : public CElementObject
_float4 m_vKey{};
_float4 m_vUV{};
_float4 m_vActive_Icon{};
- QUESTYPE m_eType = QUESTYPE::END;
+ QUESTTYPE m_eType = QUESTTYPE::END;
public:
static CMissionBanner_Key* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Editor/Public/Mission_Icon.h b/Jusin154_Team3D/Editor/Public/Mission_Icon.h
index 7cd6094ba..e8cdfb474 100644
--- a/Jusin154_Team3D/Editor/Public/Mission_Icon.h
+++ b/Jusin154_Team3D/Editor/Public/Mission_Icon.h
@@ -29,13 +29,13 @@ class CMission_Icon final : public CElementObject
virtual HRESULT Initialize(void* pArg) override;
public:
- void QuestType(QUESTYPE eType);
+ void QuestType(QUESTTYPE eType);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
- QUESTYPE m_eQuestType = QUESTYPE::END;
+ QUESTTYPE m_eQuestType = QUESTTYPE::END;
_uint m_iType{};
public:
diff --git a/Jusin154_Team3D/Editor/Public/Protego.h b/Jusin154_Team3D/Editor/Public/Protego.h
index 85aae6220..8c2a3f9a2 100644
--- a/Jusin154_Team3D/Editor/Public/Protego.h
+++ b/Jusin154_Team3D/Editor/Public/Protego.h
@@ -34,8 +34,6 @@ class CProtego final : public CEffect_Container
_wstring m_wstrEffectName = {};
class CEditEffect* m_pSphere = { nullptr };
- class CEditEffect* m_pBottom = { nullptr };
- class CEditEffect* m_pCircle = { nullptr };
_float m_fSizeAccTime = {};
_float m_fAmountSize = {};
diff --git a/Jusin154_Team3D/Editor/Public/Quest_Border.h b/Jusin154_Team3D/Editor/Public/Quest_Border.h
new file mode 100644
index 000000000..116ccb3cd
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Border.h
@@ -0,0 +1,43 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CQuest_Border final : public CElementObject
+{
+private:
+ CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Border(const CQuest_Border& rhs);
+ virtual ~CQuest_Border() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = { false };
+
+
+public:
+ static CQuest_Border* 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/Quest_Canvas.h b/Jusin154_Team3D/Editor/Public/Quest_Canvas.h
new file mode 100644
index 000000000..7c7cdad96
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Canvas.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "CanvasObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CQuest_Canvas final : public CCanvasObject
+{
+private:
+ CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Canvas(const CQuest_Canvas& rhs);
+ virtual ~CQuest_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_pQuest_Panel = { nullptr };
+public:
+ static CQuest_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/Quest_Data.h b/Jusin154_Team3D/Editor/Public/Quest_Data.h
new file mode 100644
index 000000000..9c5187f3c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Data.h
@@ -0,0 +1,73 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+class CQuest_Data final : public CGameObject
+{
+public:
+ typedef struct tagObjectiveInfo
+ {
+ _int iObjectType{};
+ _int iTargetID{};
+ _int iRequiredCount{};
+ _int iCurrentCount{};
+ }OBJECTIVEINFO;
+ typedef struct tagRewardsInfo
+ {
+ _int iRewardType{};
+ _int iRewardID{};
+ }REWARDSINFO;
+ typedef struct tagQuestInfo
+ {
+ _int iQuestID{};
+ _int iType{};
+ _string pQuestName;
+ _string pQuestInfo;
+ vector ObjectiveInfo;
+ vector RewardsInfo;
+ }QUESTINFO;
+private:
+ CQuest_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Data(const CQuest_Data& rhs);
+ virtual ~CQuest_Data() = 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:
+ //const SPELLINFO& Get_Info(_uint SpellID) const;
+
+private:
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ QUESTINFO QuestInfo = {};
+ OBJECTIVEINFO ObjectiveInfo = {};
+ REWARDSINFO RewardsInfo = {};
+
+ vector QuestInfos;
+
+ _bool m_bClear[1] = { false };
+public:
+ static CQuest_Data* 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/Quest_Entry_Line.h b/Jusin154_Team3D/Editor/Public/Quest_Entry_Line.h
new file mode 100644
index 000000000..0fe2fd216
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Entry_Line.h
@@ -0,0 +1,41 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CQuest_Entry_Line final : public CElementObject
+{
+private:
+ CQuest_Entry_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Entry_Line(const CQuest_Entry_Line& rhs);
+ virtual ~CQuest_Entry_Line() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = { false };
+public:
+ static CQuest_Entry_Line* 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/Quest_Header.h b/Jusin154_Team3D/Editor/Public/Quest_Header.h
new file mode 100644
index 000000000..7b7e416d1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Header.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CQuest_Header final : public CElementObject
+{
+private:
+ CQuest_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Header(const CQuest_Header& rhs);
+ virtual ~CQuest_Header() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = true;
+
+public:
+ static CQuest_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Quest_HeaderLine.h b/Jusin154_Team3D/Editor/Public/Quest_HeaderLine.h
new file mode 100644
index 000000000..7adf793fc
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_HeaderLine.h
@@ -0,0 +1,40 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CQuest_HeaderLine final : public CElementObject
+{
+private:
+ CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_HeaderLine(const CQuest_HeaderLine& rhs);
+ virtual ~CQuest_HeaderLine() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CQuest_HeaderLine* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Quest_Info.h b/Jusin154_Team3D/Editor/Public/Quest_Info.h
new file mode 100644
index 000000000..685cffe23
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Info.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CQuest_Info final : public CElementObject
+{
+private:
+ CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Info(const CQuest_Info& rhs);
+ virtual ~CQuest_Info() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ void Hover();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _wstring m_pQuest_Info;
+
+ _float m_fOriginPerviewSize{};
+ _float m_fPreviewOffSet{};
+ _float4 m_vHeaderBack{};
+
+ _int m_iPerQuestIndex{};
+public:
+ static CQuest_Info* 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/Quest_Info_Header.h b/Jusin154_Team3D/Editor/Public/Quest_Info_Header.h
new file mode 100644
index 000000000..128abf1c0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Info_Header.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CQuest_Info_Header final : public CElementObject
+{
+private:
+ CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Info_Header(const CQuest_Info_Header& rhs);
+ virtual ~CQuest_Info_Header() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = true;
+
+public:
+ static CQuest_Info_Header* 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/Quest_Info_Line.h b/Jusin154_Team3D/Editor/Public/Quest_Info_Line.h
new file mode 100644
index 000000000..a108174bf
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Info_Line.h
@@ -0,0 +1,41 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CQuest_Info_Line final : public CElementObject
+{
+private:
+ CQuest_Info_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Info_Line(const CQuest_Info_Line& rhs);
+ virtual ~CQuest_Info_Line() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = { false };
+public:
+ static CQuest_Info_Line* 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/Quest_List.h b/Jusin154_Team3D/Editor/Public/Quest_List.h
new file mode 100644
index 000000000..a9738fa7c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_List.h
@@ -0,0 +1,41 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CQuest_List final : public CElementObject
+{
+private:
+ CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_List(const CQuest_List& rhs);
+ virtual ~CQuest_List() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iColor = { false };
+public:
+ static CQuest_List* 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/Quest_Panel.h b/Jusin154_Team3D/Editor/Public/Quest_Panel.h
new file mode 100644
index 000000000..fe79f07dc
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Quest_Panel.h
@@ -0,0 +1,55 @@
+
+#pragma once
+
+#include "Editor_Define.h"
+#include "PanelObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CQuest_Panel final : public CPanelObject
+{
+private:
+ CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CQuest_Panel(const CQuest_Panel& rhs);
+ virtual ~CQuest_Panel() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Ready_Element(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ CGameObject* m_pQuest_Border = { nullptr };
+ CGameObject* m_pQuest_Header = { nullptr };
+ CGameObject* m_pQuest_HeaderLine = { nullptr };
+ CGameObject* m_pQuest_List = { nullptr };
+ CGameObject* m_pQuest_Info = { nullptr };
+ CGameObject* m_pQuest_Info_Header= { nullptr };
+ CGameObject* m_pQuest_Info_Line = { nullptr };
+ CGameObject* m_pQuest_Entry_Line = { nullptr };
+
+public:
+ static CQuest_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/Spell_Data.h b/Jusin154_Team3D/Editor/Public/Spell_Data.h
index 1f45e81f2..92e571e5a 100644
--- a/Jusin154_Team3D/Editor/Public/Spell_Data.h
+++ b/Jusin154_Team3D/Editor/Public/Spell_Data.h
@@ -52,7 +52,6 @@ class CSpell_Data final : public CGameObject
private:
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
- CGameObject* m_pSpell_Panel = { nullptr };
SPELLINFO SpellInfo = {};
public:
diff --git a/Jusin154_Team3D/Editor/Public/TrailObject.h b/Jusin154_Team3D/Editor/Public/TrailObject.h
index 03d6277f2..9a4a6f1d4 100644
--- a/Jusin154_Team3D/Editor/Public/TrailObject.h
+++ b/Jusin154_Team3D/Editor/Public/TrailObject.h
@@ -74,13 +74,17 @@ class CTrailObject final : public CPartObject
RENDER eRenderOrder = { RENDER::EFFECT };
SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL };
- _float3 vPadding0 = {};
+ _float fDamping = { 0.5f };
+ _float fRopeLength = { 0.1f };
+
+ _float fPadding0 = {};
+
_float3 vPadding1 = {};
_float3 vPadding2 = {};
- _float fPadding0 = {};
_float fPadding1 = {};
_float fPadding2 = {};
+ _float fPadding3 = {};
_bool isPadding0 = {};
_bool isPadding1 = {};
@@ -100,7 +104,7 @@ class CTrailObject final : public CPartObject
public:
void Set_Target(class CTransform* pTargetTransform);
void Trail_Update(_fmatrix WorldMat, _float fTimeDelta);
-
+ void Rope_Trail_Update(_fmatrix WorldMat, _fmatrix EndWorldMat, _float fTimeDelta);
public:
#ifdef _DEBUG
HRESULT Save_Trail(const _char* pPath);
diff --git a/Jusin154_Team3D/Editor/Public/UI_Manager.h b/Jusin154_Team3D/Editor/Public/UI_Manager.h
index 8140f98aa..9461bd7df 100644
--- a/Jusin154_Team3D/Editor/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Editor/Public/UI_Manager.h
@@ -12,7 +12,7 @@ NS_BEGIN(Editor)
class CUI_Manager final : public CUIObject
{
public:
- enum class Canvases { GAMEPLAYER_CANVAS, SPELL_CANVAS };
+ enum class Canvases { GAMEPLAYER_CANVAS, SPELL_CANVAS, QUEST_CANVES };
private:
CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -52,6 +52,7 @@ class CUI_Manager final : public CUIObject
CGameObject* m_pGamePlay_Canves = { nullptr };
CGameObject* m_pSpell_Canvas = { nullptr };
CGameObject* m_pLoding_Canvas= { nullptr };
+ CGameObject* m_pQuest_Canves= { nullptr };
CGameObject* m_pMouse_Cursor = { nullptr };
CGameObject* m_pCamera_LockOn = { nullptr };
_bool m_bCanvas_Change = { false };
diff --git a/Jusin154_Team3D/Engine/Private/Trail.cpp b/Jusin154_Team3D/Engine/Private/Trail.cpp
index fef82741f..2cd049bc6 100644
--- a/Jusin154_Team3D/Engine/Private/Trail.cpp
+++ b/Jusin154_Team3D/Engine/Private/Trail.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "Trail.h"
+
CTrail::CTrail(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CVIBuffer(pDevice, pContext)
{
@@ -11,6 +12,8 @@ CTrail::CTrail(const CTrail& rhs)
{
}
+
+
HRESULT CTrail::Initialize_Prototype()
{
return S_OK;
@@ -36,6 +39,7 @@ HRESULT CTrail::Initialize(void* pArg)
m_ePrimitive = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST;
m_pVertices = new VTXPOSTEX[m_iNumVertices];
+ m_pOldPosition = new _float3[m_iNumVertices];
if (FAILED(Create_VB()))
return E_FAIL;
@@ -185,24 +189,6 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
}
- if (m_isFixedTrail == true)
- {
- //만약 고정된 트레일을 켰다면 가장 마지막 부분을 항상 내 위치로 고정함
- //_vector vFixedLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat);
- //_vector vFixedHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat);
-
- //XMStoreFloat3(&m_pVertices[0].vPosition, vFixedLow);
- //XMStoreFloat3(&m_pVertices[1].vPosition, vFixedHigh);
-
- }
-#ifdef _DEBUG
- Describe_Entity();
-#endif // _DEBUG
-
-
- //XMStoreFloat3(&m_pVertices[0].vPosition, vLow);
- //XMStoreFloat3(&m_pVertices[1].vPosition, vHigh);
-
for (_uint i = 0; i < m_iNumCount; i += 2)
{
@@ -233,6 +219,180 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
}
+void CTrail::Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta, _float fDamping, _float fLength , _fmatrix EndWorldMatrix)
+{
+ if (m_isFix == false)
+ {
+ if (m_iNumCount > 2)
+ memmove(m_pVertices + 2, m_pVertices, sizeof(VTXPOSTEX) * (m_iNumCount - 2));
+
+ if (m_iNumCount >= m_iNumVertices)
+ m_iNumCount -= 2;
+ }
+ else
+ {
+ int a = 0;
+ }
+
+
+ if (m_iNumCount > 2)
+ {
+ m_pOldPosition[0] = m_pVertices[0].vPosition;
+ m_pOldPosition[1] = m_pVertices[1].vPosition;
+ }
+
+
+ _matrix WorldMat = {};
+
+ WorldMat.r[0] = XMVector3Normalize(WorldMatrix.r[0]);
+ WorldMat.r[1] = XMVector3Normalize(WorldMatrix.r[1]);
+ WorldMat.r[2] = XMVector3Normalize(WorldMatrix.r[2]);
+ WorldMat.r[3] = WorldMatrix.r[3];
+
+ _vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), WorldMat);
+ _vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), WorldMat);
+
+ /* 시작시 고정점 업데이트 */
+ XMStoreFloat3(&m_pVertices[0].vPosition, vLow);
+ XMStoreFloat3(&m_pVertices[1].vPosition, vHigh);
+
+ if (m_isFix == false)
+ m_iNumCount += 2;
+
+ _matrix EndWorldMat = {};
+
+ EndWorldMat.r[0] = XMVector3Normalize(EndWorldMatrix.r[0]);
+ EndWorldMat.r[1] = XMVector3Normalize(EndWorldMatrix.r[1]);
+ EndWorldMat.r[2] = XMVector3Normalize(EndWorldMatrix.r[2]);
+ EndWorldMat.r[3] = EndWorldMatrix.r[3];
+
+ _vector vEndLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), EndWorldMat);
+ _vector vEndHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), EndWorldMat);
+
+ XMStoreFloat3(&m_pVertices[m_iNumCount - 2].vPosition, vEndLow);
+ XMStoreFloat3(&m_pVertices[m_iNumCount - 1].vPosition, vEndHigh);
+
+ for (_uint i = 2; i < m_iNumCount; i++) /* 고정점은 연산에서 제외 0 , 1*/
+ {
+
+ _vector vCurrentPos = XMLoadFloat3(&m_pVertices[i].vPosition);
+ vCurrentPos = XMVectorSetW(vCurrentPos, 1.f);
+
+
+ _vector vOldPos = XMLoadFloat3(&m_pOldPosition[i]);
+ vOldPos = XMVectorSetW(vOldPos, 1.f);
+
+ _vector vVelocity = (vCurrentPos - vOldPos) * fDamping;
+
+ _vector vGravity = XMVectorSet(0.0f, m_fGravity, 0.0f, 0.0f);
+
+ // Verlet 공식: Next = Curr + Vel + Acc * dt * dt
+ _vector vNextPos = vCurrentPos + vVelocity + vGravity * (fTimeDelta * fTimeDelta);
+
+ // 과거 위치 갱신
+ XMStoreFloat3(&m_pOldPosition[i], XMLoadFloat3(&m_pVertices[i].vPosition));
+
+ // 현재 위치 갱신
+ XMStoreFloat3(&m_pVertices[i].vPosition, vNextPos);
+
+ }
+
+ for (int i = 0; i < 5; ++i) {
+ for (_uint k = 0; k < m_iNumCount - 2; k += 2) {
+
+ /* Low , High */
+ _vector vFirst[2] = { XMLoadFloat3(&m_pVertices[k].vPosition) , XMLoadFloat3(&m_pVertices[k + 1].vPosition) };
+ _vector vNext[2] = { XMLoadFloat3(&m_pVertices[k + 2].vPosition) , XMLoadFloat3(&m_pVertices[k + 3].vPosition) };
+
+
+ _vector vDeltaLow = vNext[0] - vFirst[0];
+ _vector vDeltaHigh = vNext[1] - vFirst[1];
+
+
+ _float fLowDist = XMVectorGetX(XMVector3Length(vDeltaLow));
+ _float fHighDist = XMVectorGetX(XMVector3Length(vDeltaHigh));
+
+ // 거리가 0이면 오류 방지
+ if (fLowDist < FLT_EPSILON5) continue;
+ if (fHighDist < FLT_EPSILON5) continue;
+
+ // 늘어나거나 줄어든 비율 계산 (Difference)
+ _float fLowDiff = (fLength - fLowDist) / fLowDist;
+ _float fHighDiff = (fLength - fHighDist) / fHighDist;
+
+ // 각 점을 절반씩 밀거나 당겨서 거리 맞춤
+ // 손잡이(Pinned)는 움직이지 않도록 질량 비율 조절 가능 (여기선 0.5씩)
+
+ _vector vLowOffset = vDeltaLow * (m_fMass * fLowDiff);
+ _vector vHighOffset = vDeltaHigh * (m_fMass * fHighDiff);
+
+ // k!=0 (즉, 움직이는 마디)일 때만 vFirst를 움직임
+ if (k != 0)
+ {
+ vFirst[0] -= vLowOffset;
+ vFirst[1] -= vHighOffset;
+ }
+
+ // vNext는 모든 경우에 움직임
+ vNext[0] += vLowOffset;
+ vNext[1] += vHighOffset;
+
+
+ // --- 2. 고정점 몫 몰아주기 (k=0 일 때만) ---
+
+ // k=0일 때 vFirst (손잡이)가 움직이지 않은 몫을 vNext (첫 마디)에게 전부 몰아줌
+ if (k == 0)
+ {
+ // vFirst가 움직여야 할 양(-Offset)만큼 vNext에 추가 보정 (+Offset)
+ vNext[0] += vLowOffset;
+ vNext[1] += vHighOffset;
+ }
+
+ // --- 3. 결과 저장 ---
+
+ // vFirst 저장 (k=0 일 때는 vFirst가 vLow/vHigh의 값을 가지지만,
+ // 움직이지 않았으므로 저장해도 무방. 하지만 명확성을 위해 조건부 저장 가능)
+ if (k != 0)
+ {
+ XMStoreFloat3(&m_pVertices[k].vPosition, vFirst[0]);
+ XMStoreFloat3(&m_pVertices[k + 1].vPosition, vFirst[1]);
+ }
+
+ // vNext 저장
+ XMStoreFloat3(&m_pVertices[k + 2].vPosition, vNext[0]);
+ XMStoreFloat3(&m_pVertices[k + 3].vPosition, vNext[1]);
+ }
+ }
+
+ for (_uint i = 0; i < m_iNumCount; i += 2)
+ {
+
+ _float u = ((_float)i / (m_iNumCount - 2));
+
+ if (m_iNumCount - 2 <= 0)
+ u = 0;
+
+ m_pVertices[i].vTexcoord = _float2(u, 0); // Low
+
+ m_pVertices[i + 1].vTexcoord = _float2(u, 1); // High
+
+
+ }
+
+
+ D3D11_MAPPED_SUBRESOURCE VBResource{};
+
+ if (SUCCEEDED(m_pContext->Map(m_pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &VBResource)))
+ {
+
+ memcpy(VBResource.pData, m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices);
+
+ VTXPOSTEX* pDebug = static_cast(VBResource.pData);
+
+ m_pContext->Unmap(m_pVB, 0);
+ }
+}
+
void CTrail::Reset_Trail()
{
ZeroMemory(m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices);
@@ -240,6 +400,7 @@ void CTrail::Reset_Trail()
ZeroMemory(&m_PreLow, sizeof(_vector) * 2);
m_iNumCount = 0;
m_fAccTime = 0.f;
+ m_isFix = false;
}
HRESULT CTrail::ReStructVB(_uint iNumVertices)
@@ -289,20 +450,6 @@ HRESULT CTrail::Load_Trail(HANDLE hFile)
return S_OK;
}
-void CTrail::Fixed_Trail(_fmatrix WorldMatrix)
-{
- _matrix WorldMat = {};
-
- WorldMat.r[0] = XMVector3Normalize(WorldMatrix.r[0]);
- WorldMat.r[1] = XMVector3Normalize(WorldMatrix.r[1]);
- WorldMat.r[2] = XMVector3Normalize(WorldMatrix.r[2]);
- WorldMat.r[3] = WorldMatrix.r[3];
-
- m_isFixedTrail = true;
- m_FixedMat = WorldMat;
-}
-
-
HRESULT CTrail::Render()
{
@@ -345,17 +492,26 @@ void CTrail::Free()
__super::Free();
Safe_Delete_Array(m_pVertices);
+ Safe_Delete_Array(m_pOldPosition);
}
#ifdef _DEBUG
void CTrail::Describe_Entity()
{
- GUI::Begin("EFFECT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
- if (GUI::CollapsingHeader("CTrail")) {
+
+ if (GUI::TreeNode("Trail Component")) {
+
GUI::InputFloat3("Low", (_float*)&m_TrailDesc.vLow);
GUI::InputFloat3("High", (_float*)&m_TrailDesc.vHigh);
+
+ GUI::DragFloat("Gravity", &m_fGravity);
+ GUI::DragFloat("Mass", &m_fMass);
+
+ GUI::Checkbox("Fix", &m_isFix);
+
+ GUI::TreePop();
}
- GUI::End();
+
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index ecf271a31..368ff8a22 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -43,7 +43,7 @@ enum class SHADER_PASS_DEFERRED { DEBUG, DIRECTIONAL, POINT, COMBINED, BLUR, SPO
POSTCOMBINED, FOG, TONE_MAPPING, SSAO_OCCLUSION, SSAO_BLUR,
END };
-enum class QUESTYPE {MAIN, SUB, END};
+enum class QUESTTYPE {MAIN, SUB, END};
enum class TEXTURE_MOUNT_SLOT0 { NOT_DEFINED, METALLIC, SPECULAR, HEIGHT, END };
enum class TEXTURE_MOUNT_SLOT1 { NOT_DEFINED, ROUGHNESS, END };
enum class TEXTURE_MOUNT_SLOT2 { NOT_DEFINED, OCCLUSION, ALPHA, Amount_Scatter, END };
diff --git a/Jusin154_Team3D/Engine/Public/Trail.h b/Jusin154_Team3D/Engine/Public/Trail.h
index 78731a568..c421d5dd5 100644
--- a/Jusin154_Team3D/Engine/Public/Trail.h
+++ b/Jusin154_Team3D/Engine/Public/Trail.h
@@ -29,7 +29,8 @@ class ENGINE_DLL CTrail final :
HRESULT Load_Trail(HANDLE hFile);
public:
- void Fixed_Trail(_fmatrix WorldMatrix);
+ void Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta , _float fDamping, _float fLength, _fmatrix EndWorldMatrix);
+ void Rope_Fix(_bool isFix) { m_isFix = isFix; }
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -56,14 +57,19 @@ class ENGINE_DLL CTrail final :
_vector m_PreFixedLow[3] = {};
VTXPOSTEX* m_pVertices = { nullptr };
+
+ _float3* m_pOldPosition = { nullptr };
_float m_fAccTime = {};
_float m_fTrailUpdateTime = {};
_uint m_iNumVerticesPerInstance = {};
- _matrix m_FixedMat = {};
- _bool m_isFixedTrail = {};
+
+ /* 고정 트레일*/
+ _bool m_isFix = {};
+ _float m_fGravity = { 9.8f };
+ _float m_fMass = { 0.5f };
};
NS_END