diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl index 5c51ddefb..04dfbea48 100644 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl +++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl @@ -1733,35 +1733,36 @@ PS_OUT PS_Broomstick(PS_IN In) Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); Rotation += center; - - float2 startUV = g_fImageUV.xy; - float2 endUV = g_fImageUV.zw; - - float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV); + float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation); tex1.rgb *= 0.4f; color = tex1; tex2.rgb *= 0.3f; color = lerp(color, tex2, tex2.a); - - float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size; - float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size; + float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f; + float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5; float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1; - bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); - if (inside) + bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); + if (inside1) { float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1); color = lerp(color, tex3, tex3.a); - - float CoolTime = 0.f + g_fDeltaV; - float CoolTime2 = 0.f + g_fDeltaV + 0.1f; - atlasUV = startUV + texlocal1 * (endUV - startUV); + } + float2 texpos2 = g_fImageSipos2.xy / g_fCurrent_Size; + float2 texsize2 = g_fImageSipos2.zw / g_fCurrent_Size; + float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2; + bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f); + if (inside2) + { + float2 startUV = g_fImageUV.xy; + float2 endUV = g_fImageUV.zw; + float2 atlasUV = atlasUV = startUV + texlocal2 * (endUV - startUV); float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV); + color = lerp(color, tex4, tex4.a); } color.a *= Alpha; @@ -1827,8 +1828,8 @@ PS_OUT PS_SpellLearnColor(PS_IN In) float2 trailTopLeft = g_Trail[i]; float2 trailCenter = trailTopLeft + itemSize / 2.0f; - float halfWidth = itemSize.x / 2.0f + 6.f; - float halfHeight = itemSize.y / 2.0f + 6.f; + float halfWidth = itemSize.x / 2.0f + 12.f; + float halfHeight = itemSize.y / 2.0f + 12.f; if (pixelPos.x >= trailCenter.x - halfWidth && pixelPos.x <= trailCenter.x + halfWidth && diff --git a/Jusin154_Team3D/Client/Private/Action_Panel.cpp b/Jusin154_Team3D/Client/Private/Action_Panel.cpp index e6068d780..b17660106 100644 --- a/Jusin154_Team3D/Client/Private/Action_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Action_Panel.cpp @@ -86,7 +86,7 @@ void CAction_Panel::Update(_float fTimeDelta) } Magic_Meter_Move(); - + m_fTime -= fTimeDelta; __super::Update(fTimeDelta); } @@ -226,6 +226,10 @@ void CAction_Panel::Ancient_Magic_Throw() void CAction_Panel::Use_Spell(_int Index) { + if (m_fTime >= 0.f) + return; + + m_fTime = 1.f; switch (Index) { case 1: diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index 29c560ab6..6c164d9f1 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -166,14 +166,8 @@ void CInfoInstance::Key_Input(_uint Input) switch (m_eInput) { case ENUM_CLASS(KEYINPUT::INPUT_1): - Event_CallBack(TEXT("Spell"), &m_eInput); - break; case ENUM_CLASS(KEYINPUT::INPUT_2): - Event_CallBack(TEXT("Spell"), &m_eInput); - break; case ENUM_CLASS(KEYINPUT::INPUT_3): - Event_CallBack(TEXT("Spell"), &m_eInput); - break; case ENUM_CLASS(KEYINPUT::INPUT_4): Event_CallBack(TEXT("Spell"), &m_eInput); break; @@ -440,7 +434,6 @@ void CInfoInstance::Release_Information() SAFE_RELEASE(m_pSkillInfo); SAFE_RELEASE(m_pQuestInfo); SAFE_RELEASE(m_pInteractiveInfo); - SAFE_RELEASE(m_pSpellLearn_Data); SAFE_RELEASE(m_pDevice); SAFE_RELEASE(m_pContext); SAFE_RELEASE(m_pGameInstance); diff --git a/Jusin154_Team3D/Client/Private/Magic_Item.cpp b/Jusin154_Team3D/Client/Private/Magic_Item.cpp index 3a23c3b48..3292b19fb 100644 --- a/Jusin154_Team3D/Client/Private/Magic_Item.cpp +++ b/Jusin154_Team3D/Client/Private/Magic_Item.cpp @@ -42,27 +42,22 @@ HRESULT CMagic_Item::Initialize(void* pArg) m_fAngle = XMConvertToRadians(-135.f); m_fAlphaTime = 1.f; m_fSortZ = 0.2f; - m_fCoolTime = 5.f; - m_vUVScale.y = 1.f; - m_iArratCount = 2; - Compute_UV(0); + Compute_UV(1); Compute_Image(); m_fFontX = 1171.f; m_fFontY = 870.f; - m_iPotionIndex = 0; - m_iPerPotionIndex = -1; return S_OK; } void CMagic_Item::Compute_UV(_uint iItemID) { - _float2 fImage_Size = { 1024.f, 512.f }; + _float2 fImage_Size = { 320.f, 384.f }; - _uint iCountX = 4; - _uint iCountY = 2; + _uint iCountX = 5; + _uint iCountY = 6; - _float iImageX = 256.f; - _float iImageY = 256.f; + _float iImageX = 64.f; + _float iImageY = 64.f; _uint iframeX = iItemID % iCountX; _uint iframeY = iItemID / iCountX; @@ -81,10 +76,8 @@ void CMagic_Item::Compute_UV(_uint iItemID) void CMagic_Item::Compute_Image() { - m_vImagePos1 = _float2(72.f, 0.f); - m_vImageSize1 = _float2(30.f, 30.f); - m_vImagePos2 = _float2(65.f, 65.f); - m_vImageSize2 = _float2(30.f, 30.f); + m_vImageposi1 = _float4(30.f, 30.f, 120.f, 120.f); + m_vImageposi2 = _float4(70.f, 0.f, 30.f, 30.f); } void CMagic_Item::Priority_Update(_float fTimeDelta) @@ -128,27 +121,6 @@ void CMagic_Item::Update(_float fTimeDelta) } } - if (m_vUVScale.y >= 1.f) - { - if (m_pGameInstance->Key_Down(DIK_TAB)) - { - m_vUVScale.y = 0.f; - } - } - - if (m_iPerPotionIndex != m_iPotionIndex) - { - m_strPotion = to_wstring(m_iPotionIndex); - m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f; - m_iPerPotionIndex = m_iPotionIndex; - } - - - if (m_vUVScale.y <= 1) - { - m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime); - } - m_fTime += fTimeDelta * m_fTimeMult; __super::Update(fTimeDelta); } @@ -172,7 +144,7 @@ HRESULT CMagic_Item::Render() { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_ITEM)))) + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::BROOMSTICK)))) { return E_FAIL; } @@ -184,7 +156,6 @@ HRESULT CMagic_Item::Render() { return E_FAIL; } - m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha)); return S_OK; } @@ -224,18 +195,6 @@ HRESULT CMagic_Item::Bind_ShaderResources() { 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_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; @@ -264,35 +223,11 @@ HRESULT CMagic_Item::Bind_ShaderResources() { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float)))) + if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi1, sizeof(_float4)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float)))) - { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4)))) - { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_RawValue("g_iArrayCount", &m_iArratCount, sizeof(_uint)))) - { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2)))) - { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vImageSize1, sizeof(_float2)))) - { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition2", &m_vImagePos2, sizeof(_float2)))) - { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes2", &m_vImageSize2, sizeof(_float2)))) + if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImageposi2, sizeof(_float4)))) { return E_FAIL; } @@ -300,6 +235,7 @@ HRESULT CMagic_Item::Bind_ShaderResources() { return E_FAIL; } + return S_OK; } @@ -313,27 +249,15 @@ HRESULT CMagic_Item::Ready_Components(void* pArg) { return E_FAIL; } - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr))) + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr))) { return E_FAIL; } - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr))) + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Broom9"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr))) { return E_FAIL; } - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Item"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr))) - { - return E_FAIL; - } - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Tab"), reinterpret_cast(&m_pDiffuse_TextureCom4), nullptr))) - { - return E_FAIL; - } - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_AmountFrame"), reinterpret_cast(&m_pDiffuse_TextureCom5), nullptr))) - { - return E_FAIL; - } - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom6), nullptr))) + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Keyboard"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr))) { return E_FAIL; } @@ -379,9 +303,6 @@ void CMagic_Item::Free() 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_pDiffuse_TextureCom6); SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pVIBufferCom); } diff --git a/Jusin154_Team3D/Client/Private/Skill_Data.cpp b/Jusin154_Team3D/Client/Private/Skill_Data.cpp index 6db20bcc1..87a66ea56 100644 --- a/Jusin154_Team3D/Client/Private/Skill_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Skill_Data.cpp @@ -17,10 +17,12 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon m_bNoCool = false; m_pInfoInstance->Add_Event(TEXT("NoCooL"), [this](void* p) {this->NoCool(*reinterpret_cast<_bool*>(p)); }); Spell_UnLock(2); + Spell_UnLock(3); Spell_UnLock(4); Spell_UnLock(6); Spell_UnLock(11); Spell_UnLock(14); + Spell_UnLock(20); return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp index 306ace767..da1943a73 100644 --- a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp +++ b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp @@ -101,7 +101,7 @@ void CSpellLearn_MovePointer::Set_Booster(void* pArg) Booster* Info = static_cast(pArg); m_Booster.iBoosterIndex = Info->iBoosterIndex; m_Booster.bBoosterOn = Info->bBoosterOn; - m_bBooster = true; + m_bBooster = m_Booster.bBoosterOn; } void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta) @@ -175,7 +175,7 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta) if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) { m_bBooster = false; - m_fMoveSpeed = 160.f; + m_fMoveSpeed = 170.f; static_cast(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster); } } diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp index c97dfdcf8..bff6981fc 100644 --- a/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp +++ b/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp @@ -297,7 +297,7 @@ HRESULT CSpellLearn_Overlay::Ready_Components(void* pArg) void CSpellLearn_Overlay::Clear() { - m_vUVScale.y = 1.2f; + m_vUVScale.y = 1.5f; m_bClear = true; } @@ -328,7 +328,7 @@ void CSpellLearn_Overlay::Compute_UI(_uint SpellID) void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta) { - m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.05f, fTimeaDalta * m_fMoveSpeed); + m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.06f, fTimeaDalta * m_fMoveSpeed); } void CSpellLearn_Overlay::SizeUp(_float fSizeX) diff --git a/Jusin154_Team3D/Client/Public/Magic_Item.h b/Jusin154_Team3D/Client/Public/Magic_Item.h index e2df4a2e4..b0a653622 100644 --- a/Jusin154_Team3D/Client/Public/Magic_Item.h +++ b/Jusin154_Team3D/Client/Public/Magic_Item.h @@ -34,27 +34,19 @@ 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 }; CTexture* m_pDiffuse_TextureCom2 = { nullptr }; 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 }; _float4 m_vUV{}; _uint m_iArratCount{}; - _float2 m_vImageSize1 = {}; - _float2 m_vImagePos1 = {}; - _float2 m_vImageSize2 = {}; - _float2 m_vImagePos2 = {}; - - _int m_iPotionIndex{}; - _int m_iPerPotionIndex{}; - _wstring m_strPotion; + _float4 m_vImageposi1 = {}; + _float4 m_vImageposi2 = {}; public: static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml index 920bb4764..ffe4b05d4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml @@ -714,5 +714,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl index 5c51ddefb..04dfbea48 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl @@ -1733,35 +1733,36 @@ PS_OUT PS_Broomstick(PS_IN In) Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); Rotation += center; - - float2 startUV = g_fImageUV.xy; - float2 endUV = g_fImageUV.zw; - - float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV); + float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation); tex1.rgb *= 0.4f; color = tex1; tex2.rgb *= 0.3f; color = lerp(color, tex2, tex2.a); - - float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size; - float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size; + float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f; + float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5; float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1; - bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); - if (inside) + bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); + if (inside1) { float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1); color = lerp(color, tex3, tex3.a); - - float CoolTime = 0.f + g_fDeltaV; - float CoolTime2 = 0.f + g_fDeltaV + 0.1f; - atlasUV = startUV + texlocal1 * (endUV - startUV); + } + float2 texpos2 = g_fImageSipos2.xy / g_fCurrent_Size; + float2 texsize2 = g_fImageSipos2.zw / g_fCurrent_Size; + float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2; + bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f); + if (inside2) + { + float2 startUV = g_fImageUV.xy; + float2 endUV = g_fImageUV.zw; + float2 atlasUV = atlasUV = startUV + texlocal2 * (endUV - startUV); float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV); + color = lerp(color, tex4, tex4.a); } color.a *= Alpha; @@ -1827,8 +1828,8 @@ PS_OUT PS_SpellLearnColor(PS_IN In) float2 trailTopLeft = g_Trail[i]; float2 trailCenter = trailTopLeft + itemSize / 2.0f; - float halfWidth = itemSize.x / 2.0f + 6.f; - float halfHeight = itemSize.y / 2.0f + 6.f; + float halfWidth = itemSize.x / 2.0f + 12.f; + float halfHeight = itemSize.y / 2.0f + 12.f; if (pixelPos.x >= trailCenter.x - halfWidth && pixelPos.x <= trailCenter.x + halfWidth && diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/AvadaKedavra.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/AvadaKedavra.png new file mode 100644 index 000000000..9ba5cfb67 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/AvadaKedavra.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/Transformation.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/Transformation.png new file mode 100644 index 000000000..506dea8b2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/Transformation.png differ diff --git a/Jusin154_Team3D/Editor/Private/Magic_Item.cpp b/Jusin154_Team3D/Editor/Private/Magic_Item.cpp index 91c3b012a..a8f16745b 100644 --- a/Jusin154_Team3D/Editor/Private/Magic_Item.cpp +++ b/Jusin154_Team3D/Editor/Private/Magic_Item.cpp @@ -51,7 +51,7 @@ HRESULT CMagic_Item::Initialize(void* pArg) void CMagic_Item::Compute_UV(_uint iItemID) { - _float2 fImage_Size = { 320.f, 384.f}; + _float2 fImage_Size = { 320.f, 384.f }; _uint iCountX = 5; _uint iCountY = 6; @@ -76,8 +76,8 @@ void CMagic_Item::Compute_UV(_uint iItemID) void CMagic_Item::Compute_Image() { - m_vImagePos1 = _float2(72.f, 0.f); - m_vImageSize1 = _float2(30.f, 30.f); + m_vImageposi1 = _float4(30.f, 30.f, 120.f, 120.f); + m_vImageposi2 = _float4(70.f, 0.f, 30.f, 30.f); } void CMagic_Item::Priority_Update(_float fTimeDelta) @@ -121,19 +121,6 @@ void CMagic_Item::Update(_float fTimeDelta) } } - if (m_vUVScale.y >= 1.f) - { - if (m_pGameInstance->Key_Down(DIK_TAB)) - { - m_vUVScale.y = 0.f; - } - } - - if (m_vUVScale.y <= 1) - { - m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime); - } - m_fTime += fTimeDelta * m_fTimeMult; __super::Update(fTimeDelta); } @@ -236,11 +223,11 @@ HRESULT CMagic_Item::Bind_ShaderResources() { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2)))) + if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi1, sizeof(_float4)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vImageSize1, sizeof(_float2)))) + if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos2", &m_vImageposi2, sizeof(_float4)))) { return E_FAIL; } @@ -248,6 +235,7 @@ HRESULT CMagic_Item::Bind_ShaderResources() { return E_FAIL; } + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp index ea257f75e..e87b2b30c 100644 --- a/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp +++ b/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp @@ -98,7 +98,7 @@ void CSpellLearn_MovePointer::Set_Booster(void* pArg) Booster* Info = static_cast(pArg); m_Booster.iBoosterIndex = Info->iBoosterIndex; m_Booster.bBoosterOn = Info->bBoosterOn; - m_bBooster = true; + m_bBooster = m_Booster.bBoosterOn; } void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Public/Magic_Item.h b/Jusin154_Team3D/Editor/Public/Magic_Item.h index ebf7422c7..898ecac51 100644 --- a/Jusin154_Team3D/Editor/Public/Magic_Item.h +++ b/Jusin154_Team3D/Editor/Public/Magic_Item.h @@ -39,8 +39,8 @@ class CMagic_Item final : public CElementObject _float4 m_vUV{}; _uint m_iArratCount{}; - _float2 m_vImageSize1 = {}; - _float2 m_vImagePos1 = {}; + _float4 m_vImageposi1 = {}; + _float4 m_vImageposi2 = {}; public: static CMagic_Item* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);