From 3ed1f6f3074592ba483e6e0eead49ba322cdd0fb Mon Sep 17 00:00:00 2001
From: qordlsgur <127704460+qordlsgur@users.noreply.github.com>
Date: Tue, 2 Dec 2025 10:31:38 +0900
Subject: [PATCH] =?UTF-8?q?[Add]=20=ED=81=B4=EB=9D=BC=EC=9D=B4=EC=96=B8?=
=?UTF-8?q?=ED=8A=B8=EC=97=90=20=EB=A7=8E=EC=9D=B4=20=EC=B6=94=EA=B0=80=20?=
=?UTF-8?q?=ED=96=88=EC=9D=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Jusin154_Team3D/Client/Default/Client.vcxproj | 32 +
.../Client/Default/Client.vcxproj.filters | 159 ++-
.../Client/Private/Current_Slot_Number.cpp | 280 +++++
.../Client/Private/Current_Spell_Slot.cpp | 254 ++++
.../Client/Private/Eessential_Spell.cpp | 286 +++++
.../Client/Private/Eessential_Spell_Slot.cpp | 300 +++++
.../Client/Private/InfoInstance.cpp | 4 +
.../Client/Private/Level_GamePlay.cpp | 4 +
Jusin154_Team3D/Client/Private/Loader.cpp | 1020 +++++++++++------
Jusin154_Team3D/Client/Private/Magic_Item.cpp | 9 +
Jusin154_Team3D/Client/Private/Potion.cpp | 5 +-
Jusin154_Team3D/Client/Private/Skill_Data.cpp | 142 +++
Jusin154_Team3D/Client/Private/Spell_Anim.cpp | 278 +++++
.../Client/Private/Spell_Canvas.cpp | 138 +++
.../Client/Private/Spell_Header.cpp | 239 ++++
.../Client/Private/Spell_Header_Line.cpp | 225 ++++
.../Client/Private/Spell_Hover.cpp | 302 +++++
.../Client/Private/Spell_Hover_Effect.cpp | 266 +++++
Jusin154_Team3D/Client/Private/Spell_List.cpp | 304 +++++
.../Client/Private/Spell_List_Image.cpp | 288 +++++
.../Client/Private/Spell_Panel.cpp | 349 ++++++
.../Client/Private/Spell_Preview.cpp | 288 +++++
Jusin154_Team3D/Client/Private/Spell_Slot.cpp | 2 +-
.../Client/Private/Spell_State.cpp | 271 +++++
.../Client/Private/Spell_Vidio_Border.cpp | 244 ++++
Jusin154_Team3D/Client/Public/Client_Enum.h | 2 +-
.../Client/Public/Current_Slot_Number.h | 60 +
.../Client/Public/Current_Spell_Slot.h | 57 +
.../Client/Public/Eessential_Spell.h | 61 +
.../Client/Public/Eessential_Spell_Slot.h | 65 ++
Jusin154_Team3D/Client/Public/InfoInstance.h | 3 +
Jusin154_Team3D/Client/Public/Magic_Item.h | 1 +
Jusin154_Team3D/Client/Public/Skill_Data.h | 59 +-
Jusin154_Team3D/Client/Public/Spell_Anim.h | 62 +
Jusin154_Team3D/Client/Public/Spell_Canvas.h | 50 +
Jusin154_Team3D/Client/Public/Spell_Header.h | 49 +
.../Client/Public/Spell_Header_Line.h | 48 +
Jusin154_Team3D/Client/Public/Spell_Hover.h | 63 +
.../Client/Public/Spell_Hover_Effect.h | 57 +
Jusin154_Team3D/Client/Public/Spell_List.h | 63 +
.../Client/Public/Spell_List_Image.h | 61 +
Jusin154_Team3D/Client/Public/Spell_Panel.h | 80 ++
Jusin154_Team3D/Client/Public/Spell_Preview.h | 58 +
Jusin154_Team3D/Client/Public/Spell_State.h | 59 +
.../Client/Public/Spell_Vidio_Border.h | 59 +
.../Editor/Private/Spell_Overlay.cpp | 2 +-
Jusin154_Team3D/Editor/Public/Magic_Item.h | 1 +
47 files changed, 6376 insertions(+), 333 deletions(-)
create mode 100644 Jusin154_Team3D/Client/Private/Current_Slot_Number.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Current_Spell_Slot.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Eessential_Spell.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Eessential_Spell_Slot.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Anim.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Canvas.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Header.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Header_Line.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Hover.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Hover_Effect.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_List.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_List_Image.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Panel.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Preview.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_State.cpp
create mode 100644 Jusin154_Team3D/Client/Private/Spell_Vidio_Border.cpp
create mode 100644 Jusin154_Team3D/Client/Public/Current_Slot_Number.h
create mode 100644 Jusin154_Team3D/Client/Public/Current_Spell_Slot.h
create mode 100644 Jusin154_Team3D/Client/Public/Eessential_Spell.h
create mode 100644 Jusin154_Team3D/Client/Public/Eessential_Spell_Slot.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Anim.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Canvas.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Header.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Header_Line.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Hover.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Hover_Effect.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_List.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_List_Image.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Panel.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Preview.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_State.h
create mode 100644 Jusin154_Team3D/Client/Public/Spell_Vidio_Border.h
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index d6f1ee3ee..a11c04c38 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -160,6 +160,10 @@ call Update_Resources.bat
+
+
+
+
@@ -227,9 +231,21 @@ call Update_Resources.bat
+
+
+
+
+
+
+
+
+
+
+
+
@@ -251,6 +267,10 @@ call Update_Resources.bat
+
+
+
+
@@ -320,9 +340,21 @@ call Update_Resources.bat
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 64a0849c2..551dda844 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -184,9 +184,6 @@
02.GameObjects\Environment\Terrain
-
- 02.GameObjects\UI
-
02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget
@@ -268,6 +265,57 @@
02.GameObjects\Item\Troll_Weapon
+
+ 02.GameObjects\UI\GamePlay_Canvas
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Vidio_Border
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_State
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Preview
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_List_Image
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_List
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Hover_Effect
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Hover
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Header_Line
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Header
+
+
+ 02.GameObjects\UI\Spell_Canvas
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Anim
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Eessential_Spell_Slot
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Eessential_Spell
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Current_Spell_Slot
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Current_Slot_Number
+
@@ -584,6 +632,57 @@
{1d6c078d-dddd-493d-a6f0-f2cac2e4107e}
+
+ {257a5a09-b15b-4fd2-9615-054a00cf4b25}
+
+
+ {978f1d19-2da4-48fe-ad5e-2622b0c668a5}
+
+
+ {8c3162f4-bb70-443f-901d-61d194972ccc}
+
+
+ {fa8badcc-02d7-4e2f-bd3d-5689cb13629c}
+
+
+ {5519da22-ce61-4c5c-91fc-44859d126f26}
+
+
+ {1584a13f-7fd5-413c-9b6b-11f07b50bf58}
+
+
+ {378ce73b-f242-470c-8737-9a54b967bfd8}
+
+
+ {1f768f30-3484-4ce8-9bef-be71c043f229}
+
+
+ {6f8a7e8c-2b91-44c7-89c0-8da07283e656}
+
+
+ {f0dcd3f2-2f47-4867-8f7a-27283d7f012f}
+
+
+ {3db1d2a8-b9f2-4585-b044-49e38edf68b6}
+
+
+ {294d9db3-97d6-47a9-9087-adb17525d6ec}
+
+
+ {3819fb90-dbd9-4465-a12e-bac7ba19c7d7}
+
+
+ {8628d773-0dcf-48e4-8c51-eca66e7f8d1e}
+
+
+ {ee8108db-4fe3-4ed7-ac2a-156e2b22591e}
+
+
+ {e24f4ced-ec48-46dd-b52f-3eb4b0d9588f}
+
+
+ {00b37924-ab02-4287-b67e-80375a8d3268}
+
@@ -763,9 +862,6 @@
02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget
-
- 02.GameObjects\UI
-
02.GameObjects\UI\GamePlay_Canvas\Action_Panel
@@ -847,6 +943,57 @@
02.GameObjects\Item\Troll_Weapon
+
+ 02.GameObjects\UI\GamePlay_Canvas
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Vidio_Border
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_State
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Preview
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_List_Image
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_List
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Hover_Effect
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Hover
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Header_Line
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Header
+
+
+ 02.GameObjects\UI\Spell_Canvas
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Anim
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Eessential_Spell_Slot
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Eessential_Spell
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Current_Spell_Slot
+
+
+ 02.GameObjects\UI\Spell_Canvas\Spell_Panel\Current_Slot_Number
+
diff --git a/Jusin154_Team3D/Client/Private/Current_Slot_Number.cpp b/Jusin154_Team3D/Client/Private/Current_Slot_Number.cpp
new file mode 100644
index 000000000..62b9c3fee
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Current_Slot_Number.cpp
@@ -0,0 +1,280 @@
+#include "pch.h"
+#include "Current_Slot_Number.h"
+#include "GameInstance.h"
+
+CCurrent_Slot_Number::CCurrent_Slot_Number(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CCurrent_Slot_Number::CCurrent_Slot_Number(const CCurrent_Slot_Number& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CCurrent_Slot_Number::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CCurrent_Slot_Number::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 35.f;
+ Desc.fSizeY = 35.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_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 105.f;
+ m_fOffSetY = 101.f;
+ m_iCols = 4;
+ UV();
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-805.f, 380.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ m_pVIBufferCom->Set_ImageUV(pUVDesc);
+ return S_OK;
+}
+
+void CCurrent_Slot_Number::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CCurrent_Slot_Number::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;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CCurrent_Slot_Number::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CCurrent_Slot_Number::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 CCurrent_Slot_Number::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CCurrent_Slot_Number::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CCurrent_Slot_Number::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CCurrent_Slot_Number::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+HRESULT CCurrent_Slot_Number::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 CCurrent_Slot_Number::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Slot_Number_UI_Instance"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Number"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CCurrent_Slot_Number::UV()
+{
+ pUVDesc[0].fUV = Meter_Index(1);
+ pUVDesc[1].fUV = Meter_Index(2);
+ pUVDesc[2].fUV = Meter_Index(3);
+ pUVDesc[3].fUV = Meter_Index(4);
+}
+
+_float4 CCurrent_Slot_Number::Meter_Index(_uint Number)
+{
+ m_fIamge_Size = { 320.f, 128.f };
+
+ _uint iXCount = 5;
+ _uint iYCount = 2;
+
+ _float frameWidth = 64.f;
+ _float frameHeight = 64.f;
+
+ _uint frameX = Number % iXCount;
+ _uint frameY = Number / iXCount;
+
+ _float4 UV;
+ UV.x = frameX * frameWidth / m_fIamge_Size.x;
+ UV.y = frameY * frameHeight / m_fIamge_Size.y;
+ UV.z = UV.x + (frameWidth / m_fIamge_Size.x);
+ UV.w = UV.y + (frameHeight / m_fIamge_Size.y);
+
+ return UV;
+}
+
+CCurrent_Slot_Number* CCurrent_Slot_Number::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CCurrent_Slot_Number* pInstance = new CCurrent_Slot_Number(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CCurrent_Slot_Number");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CCurrent_Slot_Number::Clone(void* pArg, CGameObject* pOwner)
+{
+ CCurrent_Slot_Number* pInstance = new CCurrent_Slot_Number(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSlot_Number");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CCurrent_Slot_Number::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CCurrent_Slot_Number::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Current_Spell_Slot.cpp b/Jusin154_Team3D/Client/Private/Current_Spell_Slot.cpp
new file mode 100644
index 000000000..7828ca304
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Current_Spell_Slot.cpp
@@ -0,0 +1,254 @@
+#include "pch.h"
+#include "Current_Spell_Slot.h"
+#include "GameInstance.h"
+
+CCurrent_Spell_Slot::CCurrent_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CCurrent_Spell_Slot::CCurrent_Spell_Slot(const CCurrent_Spell_Slot& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CCurrent_Spell_Slot::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CCurrent_Spell_Slot::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.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_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAngle = XMConvertToRadians(-135);
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 105.f;
+ m_fOffSetY = 150.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-780.f, 340.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ return S_OK;
+}
+
+void CCurrent_Spell_Slot::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CCurrent_Spell_Slot::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CCurrent_Spell_Slot::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CCurrent_Spell_Slot::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::DEFAULT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CCurrent_Spell_Slot::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CCurrent_Spell_Slot::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CCurrent_Spell_Slot::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CCurrent_Spell_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+HRESULT CCurrent_Spell_Slot::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_fAngle", &m_fAngle, 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 CCurrent_Spell_Slot::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Current_Spell_Slot"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CCurrent_Spell_Slot* CCurrent_Spell_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CCurrent_Spell_Slot* pInstance = new CCurrent_Spell_Slot(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CCurrent_Spell_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CCurrent_Spell_Slot::Clone(void* pArg, CGameObject* pOwner)
+{
+ CCurrent_Spell_Slot* pInstance = new CCurrent_Spell_Slot(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CCurrent_Spell_Slot::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CCurrent_Spell_Slot::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Eessential_Spell.cpp b/Jusin154_Team3D/Client/Private/Eessential_Spell.cpp
new file mode 100644
index 000000000..97b5f2e73
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Eessential_Spell.cpp
@@ -0,0 +1,286 @@
+
+#include "pch.h"
+#include "Eessential_Spell.h"
+#include "GameInstance.h"
+
+CEessential_Spell::CEessential_Spell(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CEessential_Spell::CEessential_Spell(const CEessential_Spell& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CEessential_Spell::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CEessential_Spell::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 40.f;
+ Desc.fSizeY = 40.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_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 80.f;
+ m_fOffSetY = 80.f;
+ m_iCols = 4;
+ UV();
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-731.f, -300.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ m_pVIBufferCom->Set_ImageUV(pUVDesc);
+ return S_OK;
+}
+
+void CEessential_Spell::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CEessential_Spell::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;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CEessential_Spell::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CEessential_Spell::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::EESSENTIAL_SPELL))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CEessential_Spell::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CEessential_Spell::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CEessential_Spell::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CEessential_Spell::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CEessential_Spell::UV()
+{
+ for (_uint i = 0; i < 8; ++i)
+ {
+ pUVDesc[i].fUV = Meter_Index(i);
+ }
+}
+
+_float4 CEessential_Spell::Meter_Index(_uint Number)
+{
+ _float2 fImage_Size = _float2{ 512.f, 256.f};
+
+ _uint iXCount = 4;
+ _uint iYCount = 2;
+
+ _float frameWidth = 128.f;
+ _float frameHeight = 128.f;
+
+ _uint frameX = Number % iXCount;
+ _uint frameY = Number / iXCount;
+
+ _float4 UV{};
+ UV.x = frameX * frameWidth / fImage_Size.x;
+ UV.y = frameY * frameHeight / fImage_Size.y;
+ UV.z = UV.x + (frameWidth / fImage_Size.x);
+ UV.w = UV.y + (frameHeight / fImage_Size.y);
+
+ return UV;
+}
+
+HRESULT CEessential_Spell::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_fAngle", &m_fAngle, 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 CEessential_Spell::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Altas_Eessential"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CEessential_Spell* CEessential_Spell::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CEessential_Spell* pInstance = new CEessential_Spell(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CEessential_Spell");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CEessential_Spell::Clone(void* pArg, CGameObject* pOwner)
+{
+ CEessential_Spell* pInstance = new CEessential_Spell(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CEessential_Spell");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CEessential_Spell::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CEessential_Spell::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Eessential_Spell_Slot.cpp b/Jusin154_Team3D/Client/Private/Eessential_Spell_Slot.cpp
new file mode 100644
index 000000000..57ffb8784
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Eessential_Spell_Slot.cpp
@@ -0,0 +1,300 @@
+#include "pch.h"
+#include "Eessential_Spell_Slot.h"
+#include "GameInstance.h"
+
+CEessential_Spell_Slot::CEessential_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CEessential_Spell_Slot::CEessential_Spell_Slot(const CEessential_Spell_Slot& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CEessential_Spell_Slot::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CEessential_Spell_Slot::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 65.f;
+ Desc.fSizeY = 65.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 80.f;
+ m_fOffSetY = 80.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-731.f, -300.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ m_fDelayTime = 0.5f;
+ m_iPerSpell_Slot = -1;
+ return S_OK;
+}
+
+void CEessential_Spell_Slot::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CEessential_Spell_Slot::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ Hover(fTimeDelta);
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CEessential_Spell_Slot::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CEessential_Spell_Slot::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::EESSENTIAL_SPELL_SOLT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CEessential_Spell_Slot::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CEessential_Spell_Slot::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CEessential_Spell_Slot::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CEessential_Spell_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CEessential_Spell_Slot::Hover(_float fTimeDelta)
+{
+ 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));
+
+ // 엘리먼트의 월드 위치를 더해주면 엘리먼트 좌표계 기준이 됨
+ 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;
+ Info.iSlotID = 1;
+ if (m_iSpellType == -1)
+ {
+ Info.iHover_Index = -1;
+ static_cast(m_pOwner)->Function_Callback(TEXT("Hover"), &Info);
+
+ }
+
+ else
+ {
+ Info.iHover_Index = m_iSpellType + ENUM_CLASS(SKILL_TYPE::JAP);
+ static_cast(m_pOwner)->Function_Callback(TEXT("Hover"), &Info);
+
+ }
+
+}
+
+HRESULT CEessential_Spell_Slot::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_fAngle", &m_fAngle, 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 CEessential_Spell_Slot::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell_Slot"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemBG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionDiamondTriggerBack_4K"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CEessential_Spell_Slot* CEessential_Spell_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CEessential_Spell_Slot* pInstance = new CEessential_Spell_Slot(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CEessential_Spell_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CEessential_Spell_Slot::Clone(void* pArg, CGameObject* pOwner)
+{
+ CEessential_Spell_Slot* pInstance = new CEessential_Spell_Slot(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CEessential_Spell_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CEessential_Spell_Slot::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CEessential_Spell_Slot::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index ae68827d5..b9621d7b5 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -81,6 +81,10 @@ HRESULT CInfoInstance::Load_MapObjects(const _char* pFilePath)
{
return m_pMapInfo->Load_MapObjects(pFilePath);
}
+HRESULT CInfoInstance::Load_SpellInfo(const _char* pFilePath)
+{
+ return E_NOTIMPL;
+}
#pragma endregion
LEVEL CInfoInstance::Get_RestartLevel()
{
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index e204479a4..c5203b4ad 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -6,6 +6,7 @@
#include "Camera_Debug.h"
#include "InfoInstance.h"
#include "GamePlay_Canvas.h"
+#include "Spell_Canvas.h"
#include "Layer.h"
#include "SkyBox.h"
#include "Broom.h"
@@ -145,6 +146,9 @@ HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI))) {
+ return E_FAIL;
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 4e2608bc1..0d9e6de1b 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -50,6 +50,23 @@
#include "Mission_Panel.h"
+#include "Spell_Canvas.h"
+#include "Spell_Panel.h"
+#include "Current_Spell_Slot.h"
+#include "Spell_List.h"
+#include "Eessential_Spell_Slot.h"
+#include "Eessential_Spell.h"
+#include "Spell_List_Image.h"
+#include "Spell_State.h"
+#include "Spell_Hover.h"
+#include "Spell_Hover_Effect.h"
+#include "Spell_Preview.h"
+#include "Spell_Header.h"
+#include "Spell_Header_Line.h"
+#include "Spell_Vidio_Border.h"
+#include "Spell_Anim.h"
+#include "Current_Slot_Number.h"
+
#pragma endregion
#pragma region PHYSX
@@ -242,6 +259,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/SpellWidget", 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;
@@ -364,11 +397,230 @@ HRESULT CLoader::Loading_For_GamePlay()
});
+ Asset_FileLoad("../Bin/Resources/Textures/GadgetWheel", 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;
+ }
+
+ return S_OK;
+
+ });
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Item"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Accio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Accio\\Accio%d.png"), 151))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Alohomora"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic_Throw"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Arresto_Momentum"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Avada_Kedavra"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Basic_Cast"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Feed"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Petting_Brush"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Bombarda"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Confringo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Conjuring_Spell"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Descendo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Depulso"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Diffindo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Disillusionment"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Evanesco"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Expelliarmus"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Flipendo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Glacius"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Imperio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Incendio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lumos"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Nab_Sack"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Petrificus_Totalus"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Protego"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Reparo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Revelio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Stupefy"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Transformation"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Wingardium_Leviosa"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Crucio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216))))
+ {
+ return E_FAIL;
+ }
+
#pragma endregion
#pragma region TERRAIN_TEXTURE
@@ -492,11 +744,56 @@ HRESULT CLoader::Loading_For_GamePlay()
SpellSlotUIDesc.iNum = 4;
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Instance"),
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_Slot"),
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &SpellSlotUIDesc)))) {
return E_FAIL;
}
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC CurrentSpellSlotUIDesc{};
+
+ CurrentSpellSlotUIDesc.iNum = 16;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Current_Spell_Slot"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &CurrentSpellSlotUIDesc)))) {
+ return E_FAIL;
+ }
+
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_List{};
+
+ Spell_List.iNum = 26;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_List)))) {
+ return E_FAIL;
+ }
+
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Eessential_Spell_Slot{};
+
+ Eessential_Spell_Slot.iNum = 8;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell_Slot"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Eessential_Spell_Slot)))) {
+ return E_FAIL;
+ }
+
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Eessential_Spell{};
+
+ Eessential_Spell.iNum = 8;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Eessential_Spell)))) {
+ return E_FAIL;
+ }
+
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_List_Image{};
+
+ Spell_List_Image.iNum = 26;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List_Image"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_List_Image)))) {
+ return E_FAIL;
+ }
+
CVIBuffer_UI_Instance::UI_INSTANCE_DESC SlotNumberUIDesc{};
SlotNumberUIDesc.iNum = 4;
@@ -506,6 +803,24 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Magic_MeterDesc{};
+
+ Magic_MeterDesc.iNum = 5;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Magic_Meter_UI_Instance"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Magic_MeterDesc)))) {
+ return E_FAIL;
+ }
+
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_Slot_PreviewDesc{};
+
+ Spell_Slot_PreviewDesc.iNum = 4;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Spell_Slot_Previe_UI_Instance"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_Slot_PreviewDesc)))) {
+ return E_FAIL;
+ }
+
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
@@ -679,325 +994,325 @@ HRESULT CLoader::Loading_For_GamePlay()
});
-#pragma region MAP_MODELS
- vector> jobFutures;
-
- _uint iLoadCount = 46;
- vector*> Contents(iLoadCount);
-{
- { /* Terrain */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
-
- { /* Ollivanders*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
-
- { /* Gatehouse*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
-
- { /* TScrolls */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* 3BroomStick*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
-
-
- { /* BLDG_QuidditchShop */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* BLDG_HogsheadInn */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* BLDG_Honeydukes */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* BLDG_OwlPost */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* BLDG_TeaShop */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* BLDG_Zonkos */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* BLDG_DB_GR */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* BLDG_Potions */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* BLDG_Salon */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* Hengist_Tree */
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* GEN A*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* GEN B*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* GEN C*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* GEN E*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* GEN F*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* GEN G*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* GEN H*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
- { /* GEN J*/
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- jobFutures.emplace_back(Deferred_FolderLoad(
- "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
- ".bin", false,
- &Contents[jobFutures.size()]
- ));
- }
-}
-
-
- for (auto& jobFuture : jobFutures)
- {
- jobFuture.get();
- }
-
- for (_uint i = 0; i < Contents.size(); ++i) {
- for (_uint j = 0; j < (Contents[i])->size(); ++j) {
- FOLDER_LOAD* pContents = (*Contents[i])[j];
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
- return E_FAIL;
- }
-
- for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) {
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) {
- return E_FAIL;
- }
- }
-
- }
- }
-
- for (_uint i = 0; i < Contents.size(); ++i) {
- for (_uint j = 0; j < (Contents[i])->size(); ++j) {
- Safe_Delete((*Contents[i])[j]);
- }
- Safe_Delete(Contents[i]);
- }
-#pragma endregion
-
+//#pragma region MAP_MODELS
+// vector> jobFutures;
+//
+// _uint iLoadCount = 46;
+// vector*> Contents(iLoadCount);
+//{
+// { /* Terrain */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+//
+// { /* Ollivanders*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+//
+// { /* Gatehouse*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+//
+// { /* TScrolls */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* 3BroomStick*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+//
+//
+// { /* BLDG_QuidditchShop */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* BLDG_HogsheadInn */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* BLDG_Honeydukes */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* BLDG_OwlPost */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* BLDG_TeaShop */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* BLDG_Zonkos */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* BLDG_DB_GR */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* BLDG_Potions */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* BLDG_Salon */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* Hengist_Tree */
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* GEN A*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* GEN B*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* GEN C*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* GEN E*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* GEN F*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* GEN G*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* GEN H*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+// { /* GEN J*/
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// jobFutures.emplace_back(Deferred_FolderLoad(
+// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
+// ".bin", false,
+// &Contents[jobFutures.size()]
+// ));
+// }
+//}
+//
+//
+// for (auto& jobFuture : jobFutures)
+// {
+// jobFuture.get();
+// }
+//
+// for (_uint i = 0; i < Contents.size(); ++i) {
+// for (_uint j = 0; j < (Contents[i])->size(); ++j) {
+// FOLDER_LOAD* pContents = (*Contents[i])[j];
+// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
+// return E_FAIL;
+// }
+//
+// for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) {
+// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) {
+// return E_FAIL;
+// }
+// }
+//
+// }
+// }
+//
+// for (_uint i = 0; i < Contents.size(); ++i) {
+// for (_uint j = 0; j < (Contents[i])->size(); ++j) {
+// Safe_Delete((*Contents[i])[j]);
+// }
+// Safe_Delete(Contents[i]);
+// }
+//#pragma endregion
+//
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
@@ -1088,6 +1403,71 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Canvas::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Panel::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCurrent_Spell_Slot::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_List::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEessential_Spell_Slot::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEessential_Spell::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_List_Image::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_State::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Hover::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Hover_Effect::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Preview::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Header::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Header_Line::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Vidio_Border::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Anim::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCurrent_Slot_Number::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+
/* For.Prototype_GameObject_SkyBox */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSkyBox::Create(m_pDevice, m_pContext))))
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Magic_Item.cpp b/Jusin154_Team3D/Client/Private/Magic_Item.cpp
index 9ea657f63..8102488dd 100644
--- a/Jusin154_Team3D/Client/Private/Magic_Item.cpp
+++ b/Jusin154_Team3D/Client/Private/Magic_Item.cpp
@@ -220,6 +220,10 @@ HRESULT CMagic_Item::Bind_ShaderResources()
{
return E_FAIL;
}
+ if (FAILED(m_pDiffuse_TextureCom6->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0)))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
@@ -317,6 +321,10 @@ HRESULT CMagic_Item::Ready_Components(void* pArg)
{
return E_FAIL;
}
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom6), nullptr)))
+ {
+ return E_FAIL;
+ }
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
@@ -361,6 +369,7 @@ void CMagic_Item::Free()
SAFE_RELEASE(m_pDiffuse_TextureCom3);
SAFE_RELEASE(m_pDiffuse_TextureCom4);
SAFE_RELEASE(m_pDiffuse_TextureCom5);
+ SAFE_RELEASE(m_pDiffuse_TextureCom6);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
diff --git a/Jusin154_Team3D/Client/Private/Potion.cpp b/Jusin154_Team3D/Client/Private/Potion.cpp
index d6885dcba..2d52f3062 100644
--- a/Jusin154_Team3D/Client/Private/Potion.cpp
+++ b/Jusin154_Team3D/Client/Private/Potion.cpp
@@ -40,9 +40,8 @@ HRESULT CPotion::Initialize(void* pArg)
m_fTimeMult = 3.f;
m_fAlpha = 1.f;
m_fAlphaTime = 1.f;
- m_vImageSlotPos = _float2(45.f,45.f);
- m_vImageSize = _float2(32.f,32.f);
- m_bActive = true;
+ m_vImageSlotPos = _float2(45.f, 45.f);
+ m_vImageSize = _float2(32.f, 32.f);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Skill_Data.cpp b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
index bcb5590be..16dd73e6b 100644
--- a/Jusin154_Team3D/Client/Private/Skill_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
@@ -1 +1,143 @@
#include "pch.h"
+#include "Skill_Data.h"
+#include "GameObject.h"
+#include "UIObject.h"
+#include "tinyxml2.h"
+
+;
+
+CSkill_Data::CSkill_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CGameObject(pDevice, pContext)
+{
+}
+
+CSkill_Data::CSkill_Data(const CSkill_Data& rhs)
+ :CGameObject(rhs)
+{
+}
+
+HRESULT CSkill_Data::Initialize_Prototype()
+{
+
+ return S_OK;
+}
+
+HRESULT CSkill_Data::Initialize(void* pArg)
+{
+ auto* pInfo = static_cast(pArg);
+
+ tinyxml2::XMLDocument doc;
+ tinyxml2::XMLError Error = doc.LoadFile("../Bin/Resources/Data/UI/Spell/SpellInfo.xml");
+ if (Error != tinyxml2::XML_SUCCESS)
+ return E_FAIL;
+
+ tinyxml2::XMLElement* pSpellInfo = doc.FirstChildElement("SpellInfo");
+ if (!pSpellInfo)
+ return E_FAIL;
+
+ tinyxml2::XMLElement* pSpell = pSpellInfo->FirstChildElement("Spell");
+ while (pSpell)
+ {
+ int id = 0;
+ pSpell->QueryIntAttribute("Spell_ID", &id);
+
+ if (id < 0 || id > 34)
+ {
+ pSpell = pSpell->NextSiblingElement("Spell");
+ continue;
+ }
+
+ pInfo[id].iSpell_ID = id;
+ pInfo[id].pSpell_Name = CMyTools::ToWstring(pSpell->Attribute("Spell_Name"));
+ pInfo[id].pImage_Name = CMyTools::ToWstring(pSpell->Attribute("Image_Name"));
+ pSpell->QueryIntAttribute("Spell_Type", &pInfo[id].iSpell_Type);
+ pSpell->QueryIntAttribute("Skill_Type", &pInfo[id].iSkill_Type);
+ pSpell->QueryFloatAttribute("Spell_Cooltime", &pInfo[id].fSpell_CoolTime);
+ pSpell->QueryFloatAttribute("Duration", &pInfo[id].fDuration);
+ pSpell->QueryIntAttribute("AnimNum", &pInfo[id].iAnimNum);
+ pInfo[id].pSpellInfo = CMyTools::ToWstring(pSpell->Attribute("SpellInfo"));
+ int lock = 0, equip = 0;
+ pSpell->QueryIntAttribute("Spell_Lock", &lock);
+ pSpell->QueryIntAttribute("Equip_Spell", &equip);
+ pInfo[id].bSpell_Lock = lock != 0;
+ pInfo[id].bEquip_Spell = equip != 0;
+
+ pSpell = pSpell->NextSiblingElement("Spell");
+ }
+
+ //pInfo = SpellInfo;
+ return S_OK;
+}
+
+//const CUIObject::SPELLINFO& CSkill_Data::Get_Info(_uint SpellID) const
+//{
+// return SpellInfo[SpellID];
+//}
+
+void CSkill_Data::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CSkill_Data::Update(_float fTimeDelta)
+{
+}
+
+void CSkill_Data::Late_Update(_float fTimeDelta)
+{
+}
+
+HRESULT CSkill_Data::Render()
+{
+ return S_OK;
+}
+
+_vector CSkill_Data::Get_WorldPostion()
+{
+ return _vector();
+}
+
+HRESULT CSkill_Data::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CSkill_Data::Ready_Components(void* pArg)
+{
+ return S_OK;
+}
+
+CSkill_Data* CSkill_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSkill_Data* pInstance = new CSkill_Data(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSkill_Data");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSkill_Data::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSkill_Data* pInstance = new CSkill_Data(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSkill_Data");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSkill_Data::Free()
+{
+ __super::Free();
+
+}
+
+void CSkill_Data::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Spell_Anim.cpp b/Jusin154_Team3D/Client/Private/Spell_Anim.cpp
new file mode 100644
index 000000000..cf6daec60
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Anim.cpp
@@ -0,0 +1,278 @@
+#include "pch.h"
+#include "Spell_Anim.h"
+#include "GameInstance.h"
+
+CSpell_Anim::CSpell_Anim(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Anim::CSpell_Anim(const CSpell_Anim& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Anim::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Anim::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 590.f;
+ Desc.fY = -100.f;
+ Desc.fSizeX = 470.f;
+ Desc.fSizeY = 250.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 = 0.f;
+ m_fAlphaTime = 9.f;
+ m_fSortZ = 0.01f;
+ m_iTotalFrames = 120;
+ m_fFrameTime = 0.1f;
+ m_iCurrentFrame = 0;
+ m_bAnim_Start = false;
+ static_cast(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
+ return S_OK;
+}
+
+void CSpell_Anim::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Anim::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)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ m_bAnim_Start = false;
+ }
+
+
+ if (m_bAnim_Start == true)
+ {
+ m_fTime += fTimeDelta * m_fTimeMult;
+ }
+ else
+ {
+ m_iCurrentFrame = 0;
+ }
+
+ if (m_fTime >= m_fFrameTime)
+ {
+ m_iCurrentFrame++;
+ m_fTime -= m_fFrameTime;
+
+ if (m_iCurrentFrame >= m_iTotalFrames)
+ m_iCurrentFrame = 0;
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Anim::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ if (m_pDiffuse_TextureCom != nullptr)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_Anim::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 CSpell_Anim::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Anim::Set_FadeIn()
+{
+ if (!m_bFadeIn && m_fAlpha < 1.f)
+ {
+ m_bFadeIn = true;
+ m_bFadeOut = false;
+ }
+ m_bAnim_Start = true;
+}
+
+void CSpell_Anim::Change_Image(_int SpellID)
+{
+ _wstring pImageName = static_cast(m_pOwner)->Get_Info(SpellID).pImage_Name;
+ m_iTotalFrames = static_cast(m_pOwner)->Get_Info(SpellID).iAnimNum;
+ if (m_pDiffuse_TextureCom)
+ {
+ Remove_Component();
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ }
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pImageName, reinterpret_cast(&m_pDiffuse_TextureCom))))
+ return;
+}
+
+void CSpell_Anim::Set_SkillType(_int eType)
+{
+ if (eType != -1 && eType != m_iPerSpell)
+ {
+ m_iPerSpell = eType;
+ m_iCurrentFrame = 0;
+ Change_Image(eType);
+ }
+}
+
+HRESULT CSpell_Anim::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", m_iCurrentFrame)))
+ {
+ 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 CSpell_Anim::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Arresto_Momentum"), 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;
+}
+
+
+CSpell_Anim* CSpell_Anim::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Anim* pInstance = new CSpell_Anim(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Anim");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Anim::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Anim* pInstance = new CSpell_Anim(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Anim");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Anim::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Anim::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Canvas.cpp b/Jusin154_Team3D/Client/Private/Spell_Canvas.cpp
new file mode 100644
index 000000000..c44c70c76
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Canvas.cpp
@@ -0,0 +1,138 @@
+#include "pch.h"
+#include "Spell_Canvas.h"
+#include "GameInstance.h"
+#include "Spell_Panel.h"
+
+CSpell_Canvas::CSpell_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CCanvasObject(pDevice, pContext)
+{
+}
+
+CSpell_Canvas::CSpell_Canvas(const CSpell_Canvas& rhs)
+ :CCanvasObject(rhs)
+{
+}
+
+HRESULT CSpell_Canvas::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_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;
+ }
+ return S_OK;
+}
+
+void CSpell_Canvas::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Canvas::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Canvas::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_Canvas::Render()
+{
+ return S_OK;
+}
+
+_vector CSpell_Canvas::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpell_Canvas::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Canvas::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CSpell_Canvas::Ready_Panel(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpell_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("Spell_Panel"), m_pSpell_Panel);
+ return S_OK;
+}
+
+void CSpell_Canvas::Clear_Penel()
+{
+
+}
+
+CSpell_Canvas* CSpell_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Canvas* pInstance = new CSpell_Canvas(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Canvas::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Canvas* pInstance = new CSpell_Canvas(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Canvas::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Canvas::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Header.cpp b/Jusin154_Team3D/Client/Private/Spell_Header.cpp
new file mode 100644
index 000000000..f0a2db064
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Header.cpp
@@ -0,0 +1,239 @@
+#include "pch.h"
+#include "Spell_Header.h"
+#include "GameInstance.h"
+
+CSpell_Header::CSpell_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Header::CSpell_Header(const CSpell_Header& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Header::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Header::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 600.f;
+ Desc.fY = -385.f;
+ Desc.fSizeX = 512.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 = 0.f;
+ m_fAlphaTime = 5.f;
+ m_fMoveSpeed = 5.f;
+ m_fLerpX = m_fX;
+ m_fLerpY = 45;
+ static_cast(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
+ return S_OK;
+}
+
+void CSpell_Header::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_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_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;
+ }
+ }
+
+ if (m_iSpellType != -1)
+ {
+ m_iSkillType = static_cast(m_pOwner)->Get_Info(m_iSpellType).iSpell_Type;
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_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 CSpell_Header::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELL_HEADER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Header::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpell_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_iSpellType", &m_iSkillType, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_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;
+}
+
+CSpell_Header* CSpell_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Header* pInstance = new CSpell_Header(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Header::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Header* pInstance = new CSpell_Header(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Header::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Header::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Header_Line.cpp b/Jusin154_Team3D/Client/Private/Spell_Header_Line.cpp
new file mode 100644
index 000000000..1bd1c8aa5
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Header_Line.cpp
@@ -0,0 +1,225 @@
+#include "pch.h"
+#include "Spell_Header_Line.h"
+#include "GameInstance.h"
+
+CSpell_Header_Line::CSpell_Header_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Header_Line::CSpell_Header_Line(const CSpell_Header_Line& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Header_Line::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Header_Line::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 600.f;
+ Desc.fY = -345.f;
+ Desc.fSizeX = 487.f;
+ Desc.fSizeY = 18.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 = 0.f;
+ m_fAlphaTime = 5.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
+ return S_OK;
+}
+
+void CSpell_Header_Line::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Header_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 CSpell_Header_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 CSpell_Header_Line::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 CSpell_Header_Line::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpell_Header_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;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_Header_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;
+}
+
+CSpell_Header_Line* CSpell_Header_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Header_Line* pInstance = new CSpell_Header_Line(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Header_Line");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Header_Line::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Header_Line* pInstance = new CSpell_Header_Line(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Header_Line::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Header_Line::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Hover.cpp b/Jusin154_Team3D/Client/Private/Spell_Hover.cpp
new file mode 100644
index 000000000..999d66fdc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Hover.cpp
@@ -0,0 +1,302 @@
+#include "pch.h"
+#include "Spell_Hover.h"
+#include "GameInstance.h"
+
+CSpell_Hover::CSpell_Hover(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Hover::CSpell_Hover(const CSpell_Hover& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Hover::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Hover::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.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_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ static_cast(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
+ return S_OK;
+}
+
+void CSpell_Hover::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Hover::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;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_pVIBufferCom->Set_Hover_Index(m_iSpellType);
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Hover::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_Hover::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::SPELL_HOVER))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Hover::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Hover::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_Hover::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_Hover::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+HRESULT CSpell_Hover::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom4->Bind_ShaderResource(m_pShaderCom, "g_Texture4", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom5->Bind_ShaderResource(m_pShaderCom, "g_Texture5", 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_fAngle", &m_fAngle, 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 CSpell_Hover::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_IconButtonOutline"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_IconButtonHighlight"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_GoldLeaf"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Goldleaf_Large"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_IconButton"), reinterpret_cast(&m_pDiffuse_TextureCom4), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SelectedPresetBorder"), reinterpret_cast(&m_pDiffuse_TextureCom5), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_Hover* CSpell_Hover::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Hover* pInstance = new CSpell_Hover(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Hover");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Hover::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Hover* pInstance = new CSpell_Hover(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Hover");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Hover::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pDiffuse_TextureCom4);
+ SAFE_RELEASE(m_pDiffuse_TextureCom5);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Hover::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Hover_Effect.cpp b/Jusin154_Team3D/Client/Private/Spell_Hover_Effect.cpp
new file mode 100644
index 000000000..5ed2de67a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Hover_Effect.cpp
@@ -0,0 +1,266 @@
+#include "pch.h"
+#include "Spell_Hover_Effect.h"
+#include "GameInstance.h"
+
+CSpell_Hover_Effect::CSpell_Hover_Effect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Hover_Effect::CSpell_Hover_Effect(const CSpell_Hover_Effect& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Hover_Effect::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Hover_Effect::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 115.f;
+ Desc.fSizeY = 115.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_fAlpha = 1.f;
+ m_fTimeMult = 1.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ m_fSortZ = 0.02f;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ static_cast(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
+ return S_OK;
+}
+
+void CSpell_Hover_Effect::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Hover_Effect::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;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_pVIBufferCom->Set_Hover_Index(m_iSpellType);
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Hover_Effect::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_Hover_Effect::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::SPELL_SLOT_EFFECT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Hover_Effect::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Hover_Effect::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_Hover_Effect::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_Hover_Effect::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+HRESULT CSpell_Hover_Effect::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_MaskTexture", 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_fAngle", &m_fAngle, 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 CSpell_Hover_Effect::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SelectedBorderMask"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_VFX_T_WhispLine_D"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_Hover_Effect* CSpell_Hover_Effect::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Hover_Effect* pInstance = new CSpell_Hover_Effect(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Hover_Effect");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Hover_Effect::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Hover_Effect* pInstance = new CSpell_Hover_Effect(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Hover_Effect");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Hover_Effect::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Hover_Effect::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_List.cpp b/Jusin154_Team3D/Client/Private/Spell_List.cpp
new file mode 100644
index 000000000..c88354197
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_List.cpp
@@ -0,0 +1,304 @@
+#include "pch.h"
+#include "Spell_List.h"
+#include "GameInstance.h"
+
+CSpell_List::CSpell_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_List::CSpell_List(const CSpell_List& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_List::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_List::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.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_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ m_fDelayTime = 0.5f;
+ m_iPerSpell_Slot = -1;
+ Color();
+ return S_OK;
+}
+
+void CSpell_List::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_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;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ Hover(fTimeDelta);
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_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 CSpell_List::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::COLOR))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_List::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_List::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_List::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_List::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CSpell_List::Color()
+{
+ m_pVIBufferCom->Set_Index_Renge_Color(0, 3, _float4(255.f / 255.f, 255.f / 255.f, 0.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(4, 7, _float4(150.f / 255.f, 120.f / 255.f, 240.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(8, 12, _float4(190.f / 255.f, 46.f / 255.f, 34.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(13, 16, _float4(24.f / 255.f, 190.f / 255.f, 255.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(17, 19, _float4(200.f / 255.f, 220.f / 255.f, 150.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(20, 22, _float4(50.f / 255.f, 150.f / 255.f, 110.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(23, 25, _float4(24.f / 255.f, 190.f / 255.f, 255.f / 255.f, 1.f));
+}
+
+void CSpell_List::Hover(_float fTimeDelta)
+{
+ 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));
+
+ // 엘리먼트의 월드 위치를 더해주면 엘리먼트 좌표계 기준이 됨
+ 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;
+ Info.iSlotID = 0;
+ if (m_iSpellType == -1)
+ {
+ Info.iHover_Index = -1;
+ static_cast(m_pOwner)->Function_Callback(TEXT("Hover"), &Info);
+ }
+
+ else
+ {
+ Info.iHover_Index = m_iSpellType;
+ static_cast(m_pOwner)->Function_Callback(TEXT("Hover"), &Info);
+ }
+
+}
+
+HRESULT CSpell_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_fAngle", &m_fAngle, 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_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CSpell_List::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellType_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_List* CSpell_List::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_List* pInstance = new CSpell_List(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_List");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_List::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_List* pInstance = new CSpell_List(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_List");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_List::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_List::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_List_Image.cpp b/Jusin154_Team3D/Client/Private/Spell_List_Image.cpp
new file mode 100644
index 000000000..2d03173e0
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_List_Image.cpp
@@ -0,0 +1,288 @@
+#include "pch.h"
+#include "Spell_List_Image.h"
+#include "GameInstance.h"
+
+CSpell_List_Image::CSpell_List_Image(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_List_Image::CSpell_List_Image(const CSpell_List_Image& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_List_Image::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_List_Image::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeY = 90.f;
+ Desc.fSizeX = 90.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_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ UV();
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ m_pVIBufferCom->Set_ImageUV(pUVDesc);
+ return S_OK;
+}
+
+void CSpell_List_Image::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_List_Image::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;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_List_Image::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_List_Image::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::EESSENTIAL_SPELL))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_List_Image::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_List_Image::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_List_Image::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_List_Image::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CSpell_List_Image::UV()
+{
+ for (_uint i = 0; i < 26; ++i)
+ {
+ pUVDesc[i].fUV = Meter_Index(i);
+ }
+}
+
+_float4 CSpell_List_Image::Meter_Index(_uint Number)
+{
+ _float2 fImage_Size = { 1024.f, 1792.f };
+
+ _uint iCountX = 4;
+ _uint iCountY = 7;
+
+ _float iImageX = 256.f;
+ _float iImageY = 256.f;
+
+ _uint iframeX = Number % iCountX;
+ _uint iframeY = Number / iCountX;
+
+ _float2 UVStart;
+ UVStart.x = iframeX * iImageX / fImage_Size.x;
+ UVStart.y = iframeY * iImageY / fImage_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
+ UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
+
+ _float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
+ return UV;
+}
+
+HRESULT CSpell_List_Image::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_fAngle", &m_fAngle, 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 CSpell_List_Image::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List_Image"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Widget_Spell"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_List_Image* CSpell_List_Image::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_List_Image* pInstance = new CSpell_List_Image(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_List_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_List_Image::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_List_Image* pInstance = new CSpell_List_Image(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_List_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_List_Image::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_List_Image::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Panel.cpp b/Jusin154_Team3D/Client/Private/Spell_Panel.cpp
new file mode 100644
index 000000000..955948fb1
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Panel.cpp
@@ -0,0 +1,349 @@
+#include "pch.h"
+#include "Spell_Panel.h"
+#include "GameInstance.h"
+#include "Current_Spell_Slot.h"
+#include "Spell_List.h"
+#include "Eessential_Spell_Slot.h"
+#include "Eessential_Spell.h"
+#include "Spell_List_Image.h"
+#include "Spell_State.h"
+#include "Spell_Hover.h"
+#include "Spell_Hover_Effect.h"
+#include "Spell_Preview.h"
+#include "Spell_Vidio_Border.h"
+#include "Current_Slot_Number.h"
+#include "Spell_Header.h"
+#include "Spell_Header_Line.h"
+//#include "Spell_Data.h"
+#include "Spell_Anim.h"
+
+CSpell_Panel::CSpell_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPanelObject(pDevice, pContext)
+{
+}
+
+CSpell_Panel::CSpell_Panel(const CSpell_Panel& rhs)
+ :CPanelObject(rhs)
+{
+}
+
+HRESULT CSpell_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_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.04f;
+ m_iSpellType = -1;
+ m_iPendingSpell = -1;
+ m_fDelayTime = 1.f;
+ Add_Function(TEXT("Hover"), [this](void* p) {this->Slot_Chack(p); });
+ return S_OK;
+}
+
+void CSpell_Panel::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Panel::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_iSpellType != -1)
+ {
+ m_fHoverTimer += fTimeDelta;
+ }
+ else
+ {
+ m_fHoverTimer = 0.f;
+ Function_Callback(TEXT("FadeOut"));
+ }
+
+ if (m_fHoverTimer >= m_fDelayTime && m_iPendingSpell != m_iSpellType)
+ {
+ m_iPendingSpell = m_iSpellType;
+ Function_Callback(TEXT("FadeIn"));
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_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 CSpell_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 CSpell_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+const CUIObject::SPELLINFO CSpell_Panel::Get_Info(_int Index)
+{
+ return m_Info[Index];
+}
+
+void CSpell_Panel::Slot_Chack(void* pArg)
+{
+ CUIObject::HOVER_INFO* Info = static_cast(pArg);
+
+ _int iSlot = Info->iSlotID;
+ m_iHoverSlot[iSlot] = Info->iHover_Index;
+
+ int finalHover = -1;
+ for (int i = 0; i < 2; ++i)
+ {
+ if (m_iHoverSlot[i] != -1)
+ {
+ finalHover = m_iHoverSlot[i];
+ break;
+ }
+ }
+
+ m_iSpellType = finalHover;
+ Function_Callback(TEXT("Slot_Hover"), &m_iSpellType);
+}
+
+HRESULT CSpell_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 CSpell_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_Spell_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 CSpell_Panel::Ready_Element(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCurrent_Spell_Slot))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Current_Spell_Slot"), m_pCurrent_Spell_Slot);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_List))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_List"), m_pSpell_List);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEessential_Spell_Slot))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Eessential_Spell_Slot"), m_pEessential_Spell_Slot);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEessential_Spell))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Eessential_Spell"), m_pEessential_Spell);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_List_Image))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_List_Image"), m_pSpell_List_Image);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_State))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_State"), m_pSpell_State);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Hover))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Hover"), m_pSpell_Hover);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Hover_Effect))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Hover_Effect"), m_pSpell_Hover_Effect);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Preview))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Preview"), m_pSpell_Preview);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Vidio_Border))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Vidio_Border"), m_pSpell_Vidio_Border);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pCurrent_Slot_Number))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Current_Slot_Number"), m_pCurrent_Slot_Number);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Header))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Header"), m_pSpell_Header);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Header_Line))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Header_Line"), m_pSpell_Header_Line);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Anim))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Anim"), m_pSpell_Anim);
+
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, m_Info, nullptr, reinterpret_cast(&m_pSpell_Data))))
+ //{
+ // return E_FAIL;
+ //}
+ return S_OK;
+}
+
+CSpell_Panel* CSpell_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Panel* pInstance = new CSpell_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Panel* pInstance = new CSpell_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Panel::Describe_Entity()
+{
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Preview.cpp b/Jusin154_Team3D/Client/Private/Spell_Preview.cpp
new file mode 100644
index 000000000..662d64f78
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Preview.cpp
@@ -0,0 +1,288 @@
+#include "pch.h"
+#include "Spell_Preview.h"
+#include "GameInstance.h"
+
+
+CSpell_Preview::CSpell_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Preview::CSpell_Preview(const CSpell_Preview& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Preview::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Preview::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 400.f;
+ Desc.fY = -365.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;
+ }
+ // y값 최소 270 최대 410
+ m_fTimeMult = 3.f;
+ m_fAlpha = 0.f;
+ m_fAlphaTime = 5.f;
+ m_vNine_Slice = _float4(50.f, 75.f, 30.f, 96.f);
+ m_fTopY = m_fY - m_vScale.y * 0.5f;
+ SizeUpX(512.f);
+ SizeUpY(270.f);
+ m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
+ m_fSortZ = 0.02f;
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
+ return S_OK;
+}
+
+void CSpell_Preview::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Preview::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 CSpell_Preview::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpell_Preview::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELL_PREVIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+_vector CSpell_Preview::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Preview::SizeUpX(_float fSizeX)
+{
+ _float fX = (fSizeX - m_vScale.x) * 0.5f;
+ m_fSizeX = fSizeX;
+ m_fX += fX;
+ m_fLerpX += fX;
+
+}
+
+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()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_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_fImageSipos1", &m_vHeaderBack, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_Preview::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_Goldleaf_Large"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_TooltipBorder_4K"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_LighthouseHeaderBack"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_Preview* CSpell_Preview::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Preview* pInstance = new CSpell_Preview(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Preview");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Preview::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Preview* pInstance = new CSpell_Preview(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Preview");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Preview::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Preview::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Slot.cpp b/Jusin154_Team3D/Client/Private/Spell_Slot.cpp
index 6fed41de8..154832ff0 100644
--- a/Jusin154_Team3D/Client/Private/Spell_Slot.cpp
+++ b/Jusin154_Team3D/Client/Private/Spell_Slot.cpp
@@ -197,7 +197,7 @@ HRESULT CSpell_Slot::Bind_ShaderResources()
HRESULT CSpell_Slot::Ready_Components(void* pArg)
{
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Instance"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_Slot"), (CComponent**)&m_pVIBufferCom, nullptr)))
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Spell_State.cpp b/Jusin154_Team3D/Client/Private/Spell_State.cpp
new file mode 100644
index 000000000..a183e12cf
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_State.cpp
@@ -0,0 +1,271 @@
+#include "pch.h"
+#include "Spell_State.h"
+#include "GameInstance.h"
+
+CSpell_State::CSpell_State(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_State::CSpell_State(const CSpell_State& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_State::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_State::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.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_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ return S_OK;
+}
+
+void CSpell_State::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_State::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;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ Hover();
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_State::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_State::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::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 CSpell_State::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_State::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_State::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_State::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CSpell_State::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));
+
+ // 엘리먼트의 월드 위치를 더해주면 엘리먼트 좌표계 기준이 됨
+ fMouse.x -= m_pOwner->Get_WorldPostion().m128_f32[0];
+ fMouse.y -= m_pOwner->Get_WorldPostion().m128_f32[1];
+
+ m_pVIBufferCom->Set_Mouse_Hover(fMouse);
+
+}
+
+HRESULT CSpell_State::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_fAngle", &m_fAngle, 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 CSpell_State::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_NewLock"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_State* CSpell_State::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_State* pInstance = new CSpell_State(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_State");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_State::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_State* pInstance = new CSpell_State(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_State");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_State::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_State::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Spell_Vidio_Border.cpp b/Jusin154_Team3D/Client/Private/Spell_Vidio_Border.cpp
new file mode 100644
index 000000000..32ce2c9e2
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Spell_Vidio_Border.cpp
@@ -0,0 +1,244 @@
+#include "pch.h"
+#include "Spell_Vidio_Border.h"
+#include "GameInstance.h"
+#include "Spell_Anim.h"
+
+CSpell_Vidio_Border::CSpell_Vidio_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Vidio_Border::CSpell_Vidio_Border(const CSpell_Vidio_Border& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Vidio_Border::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Vidio_Border::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 590.f;
+ Desc.fY = -100.f;
+ Desc.fSizeX = 520.f;
+ Desc.fSizeY = 275.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 = 0.f;
+ m_fAlphaTime = 9.f;
+ m_fMoveSpeed = 5.f;
+ m_fLerpX = m_fX;
+ m_fLerpY = 45;
+ m_bStart = false;
+ static_cast(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
+ return S_OK;
+}
+
+void CSpell_Vidio_Border::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Vidio_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_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_bStart = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ if (m_fAlpha >= 0.3f)
+ m_bStart = true;
+
+ __super::Update(fTimeDelta);
+
+}
+
+void CSpell_Vidio_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 CSpell_Vidio_Border::Render()
+{
+ if (m_bStart == true)
+ {
+ 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 CSpell_Vidio_Border::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpell_Vidio_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;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_Vidio_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_TalentVideoBorder"), 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;
+}
+
+CSpell_Vidio_Border* CSpell_Vidio_Border::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Vidio_Border* pInstance = new CSpell_Vidio_Border(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Vidio_Border");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Vidio_Border::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Vidio_Border* pInstance = new CSpell_Vidio_Border(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Vidio_Border");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Vidio_Border::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpell_Vidio_Border::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 2032a399d..075700d80 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -14,7 +14,7 @@ namespace Client
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, 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, END };
enum class SHADER_PASS_UIEDITOR { DEFAULT, 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, END };
- enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, END };
+ enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, END };
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
diff --git a/Jusin154_Team3D/Client/Public/Current_Slot_Number.h b/Jusin154_Team3D/Client/Public/Current_Slot_Number.h
new file mode 100644
index 000000000..5e942a481
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Current_Slot_Number.h
@@ -0,0 +1,60 @@
+#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 CCurrent_Slot_Number final : public CElementObject
+{
+private:
+ CCurrent_Slot_Number(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CCurrent_Slot_Number(const CCurrent_Slot_Number& rhs);
+ virtual ~CCurrent_Slot_Number() = 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;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ void UV();
+ _float4 Meter_Index(_uint Number);
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+ CVIBuffer_UI_Instance::UI_ATLAS_DESC pUVDesc[4];
+
+ _float2 m_fIamge_Size{};
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CCurrent_Slot_Number* 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/Current_Spell_Slot.h b/Jusin154_Team3D/Client/Public/Current_Spell_Slot.h
new file mode 100644
index 000000000..91305afe5
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Current_Spell_Slot.h
@@ -0,0 +1,57 @@
+#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 CCurrent_Spell_Slot final : public CElementObject
+{
+private:
+ CCurrent_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CCurrent_Spell_Slot(const CCurrent_Spell_Slot& rhs);
+ virtual ~CCurrent_Spell_Slot() = 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;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CCurrent_Spell_Slot* 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/Eessential_Spell.h b/Jusin154_Team3D/Client/Public/Eessential_Spell.h
new file mode 100644
index 000000000..096de667d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Eessential_Spell.h
@@ -0,0 +1,61 @@
+#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 CEessential_Spell final : public CElementObject
+{
+private:
+ CEessential_Spell(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEessential_Spell(const CEessential_Spell& rhs);
+ virtual ~CEessential_Spell() = 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;
+
+public:
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+ void UV();
+ _float4 Meter_Index(_uint Number);
+
+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_UI_Instance* m_pVIBufferCom = { nullptr };
+ CVIBuffer_UI_Instance::UI_ATLAS_DESC pUVDesc[8];
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CEessential_Spell* 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 // _DEBUGe;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Eessential_Spell_Slot.h b/Jusin154_Team3D/Client/Public/Eessential_Spell_Slot.h
new file mode 100644
index 000000000..1cc98a0fc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Eessential_Spell_Slot.h
@@ -0,0 +1,65 @@
+#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 CEessential_Spell_Slot final : public CElementObject
+{
+private:
+ CEessential_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEessential_Spell_Slot(const CEessential_Spell_Slot& rhs);
+ virtual ~CEessential_Spell_Slot() = 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;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+
+private:
+ void Hover(_float fTimeDelta);
+
+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 };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+ _float m_fHoverTime{};
+ _int m_iPerSpell_Slot{};
+
+
+public:
+ static CEessential_Spell_Slot* 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/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 8832eb433..ede232fed 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -41,6 +41,9 @@ class CInfoInstance final : public CBase
#pragma region MAP_INFO
HRESULT Load_MapObjects(const _char* pFilePath);
#pragma endregion
+#pragma region Spell_INFO
+ HRESULT Load_SpellInfo(const _char* pFilePath);
+#pragma endregion
private:
diff --git a/Jusin154_Team3D/Client/Public/Magic_Item.h b/Jusin154_Team3D/Client/Public/Magic_Item.h
index 88421e214..fb685bca1 100644
--- a/Jusin154_Team3D/Client/Public/Magic_Item.h
+++ b/Jusin154_Team3D/Client/Public/Magic_Item.h
@@ -41,6 +41,7 @@ class CMagic_Item final : public CElementObject
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
CTexture* m_pDiffuse_TextureCom4 = { nullptr };
CTexture* m_pDiffuse_TextureCom5 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom6 = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Skill_Data.h b/Jusin154_Team3D/Client/Public/Skill_Data.h
index 1f8db1ae1..d5f45f0cd 100644
--- a/Jusin154_Team3D/Client/Public/Skill_Data.h
+++ b/Jusin154_Team3D/Client/Public/Skill_Data.h
@@ -1,5 +1,62 @@
#pragma once
-class CSkill_Data
+
+#include "Client_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Engine)
+class CGameInstance;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSkill_Data final : public CGameObject
{
+public:
+ typedef struct tagSpellInfo
+ {
+ _int iSpell_ID{};
+ _string pSpell_Name;
+ _string pImage_Name;
+ _int iSpell_Type{};
+ _int iSkill_Type{};
+ _float fSpell_CoolTime{};
+ _float fDuration{};
+ _int iAnimNum{};
+ _string pSpellInfo;
+ _bool bSpell_Lock = false;
+ _bool bEquip_Spell = false;
+ }SPELLINFO;
+private:
+ CSkill_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSkill_Data(const CSkill_Data& rhs);
+ virtual ~CSkill_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 };
+ CGameObject* m_pSpell_Panel = { nullptr };
+
+ SPELLINFO SpellInfo = {};
+public:
+ static CSkill_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/Client/Public/Spell_Anim.h b/Jusin154_Team3D/Client/Public/Spell_Anim.h
new file mode 100644
index 000000000..a40ce3957
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_Anim.h
@@ -0,0 +1,62 @@
+#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 CSpell_Anim final : public CElementObject
+{
+private:
+ CSpell_Anim(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Anim(const CSpell_Anim& rhs);
+ virtual ~CSpell_Anim() = 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;
+
+public:
+ virtual void Set_FadeIn() override;
+
+private:
+ void Change_Image(_int SpellID);
+ virtual void Set_SkillType(_int eType) 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 };
+ CTexture* m_pDesendo_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iTotalFrames{}; // 전체 프레임 수
+ _float m_fFrameTime{}; // 한 프레임당 시간(초)
+ _int m_iCurrentFrame{}; // 현재 보여줄 프레임
+
+ _int m_iPerSpell{};
+ _bool m_bAnim_Start = { false };
+public:
+ static CSpell_Anim* 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/Spell_Canvas.h b/Jusin154_Team3D/Client/Public/Spell_Canvas.h
new file mode 100644
index 000000000..f6ca5bf81
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_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 CSpell_Canvas final : public CCanvasObject
+{
+private:
+ CSpell_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Canvas(const CSpell_Canvas& rhs);
+ virtual ~CSpell_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_pSpell_Panel = { nullptr };
+public:
+ static CSpell_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/Spell_Header.h b/Jusin154_Team3D/Client/Public/Spell_Header.h
new file mode 100644
index 000000000..cb7f1956d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_Header.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 CSpell_Header final : public CElementObject
+{
+private:
+ CSpell_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Header(const CSpell_Header& rhs);
+ virtual ~CSpell_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_iSkillType{};
+public:
+ static CSpell_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/Spell_Header_Line.h b/Jusin154_Team3D/Client/Public/Spell_Header_Line.h
new file mode 100644
index 000000000..e51a66e5d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_Header_Line.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 CSpell_Header_Line final : public CElementObject
+{
+private:
+ CSpell_Header_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Header_Line(const CSpell_Header_Line& rhs);
+ virtual ~CSpell_Header_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 };
+
+public:
+ static CSpell_Header_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/Spell_Hover.h b/Jusin154_Team3D/Client/Public/Spell_Hover.h
new file mode 100644
index 000000000..bd223cb21
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_Hover.h
@@ -0,0 +1,63 @@
+#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 CSpell_Hover final : public CElementObject
+{
+private:
+ CSpell_Hover(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Hover(const CSpell_Hover& rhs);
+ virtual ~CSpell_Hover() = 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;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ void Hover();
+
+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 };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom4 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom5 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+public:
+ static CSpell_Hover* 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/Spell_Hover_Effect.h b/Jusin154_Team3D/Client/Public/Spell_Hover_Effect.h
new file mode 100644
index 000000000..c416c180a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_Hover_Effect.h
@@ -0,0 +1,57 @@
+#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 CSpell_Hover_Effect final : public CElementObject
+{
+private:
+ CSpell_Hover_Effect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Hover_Effect(const CSpell_Hover_Effect& rhs);
+ virtual ~CSpell_Hover_Effect() = 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;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CSpell_Hover_Effect* 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/Spell_List.h b/Jusin154_Team3D/Client/Public/Spell_List.h
new file mode 100644
index 000000000..2be2758cf
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_List.h
@@ -0,0 +1,63 @@
+#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 CSpell_List final : public CElementObject
+{
+private:
+ CSpell_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_List(const CSpell_List& rhs);
+ virtual ~CSpell_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;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ void Color();
+ void Hover(_float fTimeDelta);
+
+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_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+ _int m_iPerSpell_Slot{};
+ _float m_fHoverTime{};
+public:
+ static CSpell_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/Spell_List_Image.h b/Jusin154_Team3D/Client/Public/Spell_List_Image.h
new file mode 100644
index 000000000..5fd3c3c10
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_List_Image.h
@@ -0,0 +1,61 @@
+#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 CSpell_List_Image final : public CElementObject
+{
+private:
+ CSpell_List_Image(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_List_Image(const CSpell_List_Image& rhs);
+ virtual ~CSpell_List_Image() = 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;
+
+public:
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+ void UV();
+ _float4 Meter_Index(_uint Number);
+
+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_UI_Instance* m_pVIBufferCom = { nullptr };
+ CVIBuffer_UI_Instance::UI_ATLAS_DESC pUVDesc[26];
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CSpell_List_Image* 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/Spell_Panel.h b/Jusin154_Team3D/Client/Public/Spell_Panel.h
new file mode 100644
index 000000000..9b98c857a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_Panel.h
@@ -0,0 +1,80 @@
+#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 CSpell_Panel final : public CPanelObject
+{
+
+private:
+ CSpell_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Panel(const CSpell_Panel& rhs);
+ virtual ~CSpell_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;
+
+public:
+ virtual const SPELLINFO Get_Info(_int Index) override;
+
+private:
+ void Slot_Chack(void* pArg);
+
+
+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_pCurrent_Spell_Slot = { nullptr };
+ CGameObject* m_pSpell_List = { nullptr };
+ CGameObject* m_pEessential_Spell_Slot = { nullptr };
+ CGameObject* m_pEessential_Spell = { nullptr };
+ CGameObject* m_pSpell_List_Image = { nullptr };
+ CGameObject* m_pSpell_State = { nullptr };
+ CGameObject* m_pSpell_Hover = { nullptr };
+ CGameObject* m_pSpell_Hover_Effect = { nullptr };
+ CGameObject* m_pSpell_Preview = { nullptr };
+ CGameObject* m_pSpell_Vidio_Border = { nullptr };
+ CGameObject* m_pCurrent_Slot_Number = { nullptr };
+ CGameObject* m_pSpell_Data= { nullptr };
+ CGameObject* m_pSpell_Header = { nullptr };
+ CGameObject* m_pSpell_Header_Line = { nullptr };
+ CGameObject* m_pSpell_Anim = { nullptr };
+
+ _int m_iHoverSlot[2] = { -1,-1 };
+
+ SPELLINFO m_Info[34] = {};
+ CUIObject::HOVER_INFO m_Hover;
+
+ _int m_iPendingSpell = -1;
+ _float m_fHoverTimer = 0.f;
+public:
+ static CSpell_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Spell_Preview.h b/Jusin154_Team3D/Client/Public/Spell_Preview.h
new file mode 100644
index 000000000..5952a2c80
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_Preview.h
@@ -0,0 +1,58 @@
+#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 CSpell_Preview final : public CElementObject
+{
+private:
+ CSpell_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Preview(const CSpell_Preview& rhs);
+ virtual ~CSpell_Preview() = 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;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) 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 };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+
+ _float4 m_vHeaderBack{};
+
+public:
+ static CSpell_Preview* 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/Spell_State.h b/Jusin154_Team3D/Client/Public/Spell_State.h
new file mode 100644
index 000000000..9e958722e
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_State.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 CSpell_State final : public CElementObject
+{
+private:
+ CSpell_State(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_State(const CSpell_State& rhs);
+ virtual ~CSpell_State() = 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;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ void Hover();
+
+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_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CSpell_State* 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/Spell_Vidio_Border.h b/Jusin154_Team3D/Client/Public/Spell_Vidio_Border.h
new file mode 100644
index 000000000..eb4c32fd6
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Spell_Vidio_Border.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 CSpell_Vidio_Border final : public CElementObject
+{
+private:
+ CSpell_Vidio_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Vidio_Border(const CSpell_Vidio_Border& rhs);
+ virtual ~CSpell_Vidio_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;
+
+//public:
+// virtual const SPELLINFO Get_Info(_int Index) override;
+//
+//public:
+// virtual void Set_SkillType(_int eType);
+
+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 };
+ CTexture* m_pDesendo_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _float m_fStertTimer{};
+ _int m_iPerIndex{};
+ _bool m_bStart = { false };
+
+public:
+ static CSpell_Vidio_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/Editor/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
index 566519b20..54cece9c3 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
@@ -47,7 +47,7 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
m_vUVScale.x = 1.f;
m_vUVScale.y = 1.f;
m_fCoolTime = 5.f;
- m_fSortZ = 1.f;
+ m_fSortZ = 0.01f;
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
Compute_UI(5);
return S_OK;
diff --git a/Jusin154_Team3D/Editor/Public/Magic_Item.h b/Jusin154_Team3D/Editor/Public/Magic_Item.h
index 18df03ef7..7679c208e 100644
--- a/Jusin154_Team3D/Editor/Public/Magic_Item.h
+++ b/Jusin154_Team3D/Editor/Public/Magic_Item.h
@@ -28,6 +28,7 @@ class CMagic_Item final : public CElementObject
private:
void Compute_UV(_uint iItemID);
void Compute_Image();
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };