@@ -151,6 +151,7 @@ void CGamePlay_Canvas::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pLoading_Panel);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = 1.f;
|
||||
m_fSortZ = 0.01f;
|
||||
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,10 +201,6 @@ 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;
|
||||
@@ -245,10 +241,6 @@ 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;
|
||||
@@ -282,10 +274,6 @@ 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<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -327,7 +315,6 @@ 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);
|
||||
}
|
||||
@@ -337,4 +324,3 @@ void CSpell_Overlay::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ 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 };
|
||||
|
||||
@@ -54,7 +53,6 @@ class CSpell_Overlay final : public CElementObject
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
|
||||
@@ -105,12 +105,12 @@ void CHpBarBG::Update(_float fTimeDelta)
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_3))
|
||||
{
|
||||
Lerp_PosX(20.f);
|
||||
Lerp_PosX(100.f);
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_4))
|
||||
{
|
||||
Lerp_PosX(-20.f);
|
||||
Lerp_PosX(-101.f);
|
||||
}
|
||||
if (m_fHpBar <= 0.3f)
|
||||
{
|
||||
@@ -327,8 +327,6 @@ void CHpBarBG::Free()
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CHpBarBG::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
Reference in New Issue
Block a user