diff --git a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp index 5aa3ee03a..2ba2436c6 100644 --- a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp +++ b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp @@ -151,7 +151,6 @@ void CGamePlay_Canvas::Free() { __super::Free(); - SAFE_RELEASE(m_pLoading_Panel); SAFE_RELEASE(m_pVIBufferCom); } diff --git a/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp index d7335caec..46a9dc8f9 100644 --- a/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp +++ b/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp @@ -44,12 +44,12 @@ HRESULT CSpell_Overlay::Initialize(void* pArg) m_fAngle = XMConvertToRadians(-135.f); m_fAlpha = 1.f; m_fAlphaTime = 1.f; + m_vUVScale.x = 1.f; m_vUVScale.y = 1.f; m_fCoolTime = 5.f; - m_fSortZ = 0.01f; + m_fSortZ = 1.f; m_iSkillType = ENUM_CLASS(SKILLTYPE::CONTROL); Compute_UI(5); - m_bActive = true; return S_OK; } @@ -74,7 +74,7 @@ void CSpell_Overlay::Compute_UI(_uint SpellID) 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}; + _float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y }; m_vUV = UV; } @@ -143,7 +143,7 @@ void CSpell_Overlay::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); } __super::Late_Update(fTimeDelta); } @@ -201,6 +201,10 @@ HRESULT CSpell_Overlay::Bind_ShaderResources() { return E_FAIL; } + if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0))) + { + return E_FAIL; + } if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { return E_FAIL; @@ -241,6 +245,10 @@ HRESULT CSpell_Overlay::Bind_ShaderResources() { return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float)))) + { + return E_FAIL; + } if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float)))) { return E_FAIL; @@ -274,6 +282,10 @@ HRESULT CSpell_Overlay::Ready_Components(void* pArg) { return E_FAIL; } + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), 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; @@ -315,6 +327,7 @@ void CSpell_Overlay::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); } @@ -324,3 +337,4 @@ void CSpell_Overlay::Describe_Entity() { } #endif // _DEBUG + diff --git a/Jusin154_Team3D/Client/Public/Spell_Overlay.h b/Jusin154_Team3D/Client/Public/Spell_Overlay.h index ae3ce440e..376fd9611 100644 --- a/Jusin154_Team3D/Client/Public/Spell_Overlay.h +++ b/Jusin154_Team3D/Client/Public/Spell_Overlay.h @@ -39,6 +39,7 @@ class CSpell_Overlay final : public CElementObject 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 }; @@ -53,6 +54,7 @@ class CSpell_Overlay final : public CElementObject virtual void Free() override; #ifdef _DEBUG void Describe_Entity() override; + #endif // _DEBUG }; diff --git a/Jusin154_Team3D/Editor/Private/HpBarBG.cpp b/Jusin154_Team3D/Editor/Private/HpBarBG.cpp index 8af4488ab..ed50d24fd 100644 --- a/Jusin154_Team3D/Editor/Private/HpBarBG.cpp +++ b/Jusin154_Team3D/Editor/Private/HpBarBG.cpp @@ -105,12 +105,12 @@ void CHpBarBG::Update(_float fTimeDelta) if (m_pGameInstance->Key_Down(DIK_3)) { - Lerp_PosX(100.f); + Lerp_PosX(20.f); } if (m_pGameInstance->Key_Down(DIK_4)) { - Lerp_PosX(-101.f); + Lerp_PosX(-20.f); } if (m_fHpBar <= 0.3f) { @@ -327,6 +327,8 @@ void CHpBarBG::Free() SAFE_RELEASE(m_pVIBufferCom); } +#ifdef _DEBUG void CHpBarBG::Describe_Entity() { } +#endif // _DEBUG