@@ -1167,24 +1167,20 @@ PS_OUT PS_Spell_Drag(PS_IN In)
|
||||
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
|
||||
float4 tex2Color = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
|
||||
float tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r;
|
||||
float4 tex2Color = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
Color = tex1;
|
||||
tex2.rgb = tex2Color;
|
||||
tex2Color.a = tex2;
|
||||
Color = lerp(tex1, tex2Color, tex2Color.a);
|
||||
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
|
||||
float2 Imagetexpos1 = g_fImageUV.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageUV.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
|
||||
float4 tex3 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
|
||||
float2 atlasUV = g_fImageUV.xy + In.vTexcoord * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
//float2 center = (g_fImageUV.xy + g_fImageUV.zw) * 0.5f;
|
||||
//float2 uv = atlasUV - center;
|
||||
//uv *= 0.7f;
|
||||
//uv += center;
|
||||
float4 tex3 = g_Texture3.Sample(ClampSampler, atlasUV);
|
||||
|
||||
if (inside1)
|
||||
{
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
}
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
|
||||
Color.a *= Alpha;
|
||||
|
||||
|
||||
@@ -58,8 +58,8 @@ HRESULT CBroom::InputKeyUpMove()
|
||||
HRESULT CBroom::InputSpell()
|
||||
{
|
||||
if (
|
||||
m_pGameInstance->Key_Down(DIK_1)
|
||||
|| m_pGameInstance->Key_Down(DIK_2)
|
||||
/* m_pGameInstance->Key_Down(DIK_1)
|
||||
||*/ m_pGameInstance->Key_Down(DIK_2)
|
||||
|| m_pGameInstance->Key_Down(DIK_3)
|
||||
|| m_pGameInstance->Key_Down(DIK_4)
|
||||
)
|
||||
|
||||
@@ -242,6 +242,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\public\Skill_Data.h" />
|
||||
<ClInclude Include="..\Public\Spell_Anim.h" />
|
||||
<ClInclude Include="..\Public\Spell_Canvas.h" />
|
||||
<ClInclude Include="..\Public\Spell_Drag.h" />
|
||||
<ClInclude Include="..\Public\Spell_Header.h" />
|
||||
<ClInclude Include="..\Public\Spell_Header_Line.h" />
|
||||
<ClInclude Include="..\Public\Spell_Hover.h" />
|
||||
@@ -365,6 +366,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\Skill_Data.cpp" />
|
||||
<ClCompile Include="..\Private\Spell_Anim.cpp" />
|
||||
<ClCompile Include="..\Private\Spell_Canvas.cpp" />
|
||||
<ClCompile Include="..\Private\Spell_Drag.cpp" />
|
||||
<ClCompile Include="..\Private\Spell_Header.cpp" />
|
||||
<ClCompile Include="..\Private\Spell_Header_Line.cpp" />
|
||||
<ClCompile Include="..\Private\Spell_Hover.cpp" />
|
||||
|
||||
@@ -356,6 +356,9 @@
|
||||
<Filter>02.GameObjects\Item\Troll_Rock</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Dagger.h" />
|
||||
<ClInclude Include="..\Public\Spell_Drag.h">
|
||||
<Filter>02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Drag</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1116,6 +1119,9 @@
|
||||
<Filter>02.GameObjects\Item\Troll_Rock</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_Dagger.cpp" />
|
||||
<ClCompile Include="..\Private\Spell_Drag.cpp">
|
||||
<Filter>02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Drag</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "Spell_UI.h"
|
||||
#include "Potion.h"
|
||||
#include "Magic_Item.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CAction_Panel::CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
@@ -17,7 +18,8 @@ CAction_Panel::CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
|
||||
}
|
||||
|
||||
CAction_Panel::CAction_Panel(const CAction_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
:CPanelObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -54,7 +56,10 @@ HRESULT CAction_Panel::Initialize(void* pArg)
|
||||
Magic_Meter_UV();
|
||||
Magic_Meter_Visible(1, true);
|
||||
Magic_Meter_Visible(5, true);
|
||||
m_bActive = true;
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
m_pInfoInstance->Add_Event(TEXT("Spell"), [this](void* p) {this->Use_Spell(*reinterpret_cast<_int*>(p)); });
|
||||
m_pInfoInstance->Add_Event(TEXT("GetSpell"), [this](void* p) {this->Spell_Setting(p); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -175,6 +180,50 @@ void CAction_Panel::Matic_Meter_Move()
|
||||
|
||||
}
|
||||
|
||||
void CAction_Panel::Use_Spell(_int Index)
|
||||
{
|
||||
switch (Index)
|
||||
{
|
||||
case 1:
|
||||
static_cast<CSpell_Overlay*>(m_pSpell_Overlay1)->Use_Spell();
|
||||
break;
|
||||
case 2:
|
||||
static_cast<CSpell_Overlay*>(m_pSpell_Overlay2)->Use_Spell();
|
||||
break;
|
||||
case 3:
|
||||
static_cast<CSpell_Overlay*>(m_pSpell_Overlay3)->Use_Spell();
|
||||
break;
|
||||
case 4:
|
||||
static_cast<CSpell_Overlay*>(m_pSpell_Overlay4)->Use_Spell();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void CAction_Panel::Spell_Setting(void* pArg)
|
||||
{
|
||||
GETSKILLINFO Info = *static_cast<GETSKILLINFO*>(pArg);
|
||||
|
||||
switch (Info.iSlotIndexX + 1)
|
||||
{
|
||||
case 1:
|
||||
static_cast<CSpell_Overlay*>(m_pSpell_Overlay1)->Spell_Setting(Info.iSlotIndexY, Info.iSpellIndex);
|
||||
break;
|
||||
case 2:
|
||||
static_cast<CSpell_Overlay*>(m_pSpell_Overlay2)->Spell_Setting(Info.iSlotIndexY, Info.iSpellIndex);
|
||||
break;
|
||||
case 3:
|
||||
static_cast<CSpell_Overlay*>(m_pSpell_Overlay3)->Spell_Setting(Info.iSlotIndexY, Info.iSpellIndex);
|
||||
break;
|
||||
case 4:
|
||||
static_cast<CSpell_Overlay*>(m_pSpell_Overlay4)->Spell_Setting(Info.iSlotIndexY, Info.iSpellIndex);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
@@ -192,11 +241,29 @@ HRESULT CAction_Panel::Ready_Element(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Spell_Slot"), m_pSpell_Slot);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Overlay>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Overlay**>(&m_pSpell_Overlay))))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Overlay>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Overlay**>(&m_pSpell_Overlay1))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Spell_Overlay"), m_pSpell_Overlay);
|
||||
Add_Element(TEXT("Spell_Overlay1"), m_pSpell_Overlay1);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Overlay>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Overlay**>(&m_pSpell_Overlay2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
static_cast<CUIObject*>(m_pSpell_Overlay2)->MoveX(481.f);
|
||||
Add_Element(TEXT("Spell_Overlay2"), m_pSpell_Overlay2);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Overlay>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Overlay**>(&m_pSpell_Overlay3))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
static_cast<CUIObject*>(m_pSpell_Overlay3)->MoveX(582.f);
|
||||
Add_Element(TEXT("Spell_Overlay3"), m_pSpell_Overlay3);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Overlay>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Overlay**>(&m_pSpell_Overlay4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
static_cast<CUIObject*>(m_pSpell_Overlay4)->MoveX(683.f);
|
||||
Add_Element(TEXT("Spell_Overlay4"), m_pSpell_Overlay4);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSlot_Number>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSlot_Number**>(&m_pSlot_Number))))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
@@ -47,7 +47,6 @@ HRESULT CCurrent_Slot_Number::Initialize(void* pArg)
|
||||
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);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -113,7 +112,7 @@ HRESULT CCurrent_Slot_Number::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::UVALPHABLEND))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Current_Spell_Slot.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CCurrent_Spell_Slot::CCurrent_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -8,7 +9,8 @@ CCurrent_Spell_Slot::CCurrent_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceCont
|
||||
}
|
||||
|
||||
CCurrent_Spell_Slot::CCurrent_Spell_Slot(const CCurrent_Spell_Slot& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -47,7 +49,11 @@ HRESULT CCurrent_Spell_Slot::Initialize(void* pArg)
|
||||
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);
|
||||
m_bActive = true;
|
||||
m_bChangeSlot = false;
|
||||
m_iSpellType = -1;
|
||||
m_iSkill_Index = -1;
|
||||
Clear(-1);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -91,6 +97,43 @@ void CCurrent_Spell_Slot::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
Hover();
|
||||
|
||||
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_bClick == false)
|
||||
{
|
||||
m_bClick = true;
|
||||
m_iSkill_Index = Chack_Slot(m_iSlot_Index);
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Current_Hover"), &m_iSkill_Index);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Mouse_Up(DIM_LBUTTON))
|
||||
{
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (m_iSpellType != -1)
|
||||
{
|
||||
Get_Skill(m_iSpellType, m_iSlot_Index);
|
||||
}
|
||||
|
||||
if (m_iSkill_Index != -1)
|
||||
{
|
||||
Get_Skill(m_iSkill_Index, m_iSlot_Index);
|
||||
m_iSkill_Index = -1;
|
||||
}
|
||||
m_bHover = false;
|
||||
m_bClick = false;
|
||||
m_iSkill_Index = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_iSkill_Index = -1;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Current_Hover"), &m_iSkill_Index);
|
||||
}
|
||||
}
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -113,7 +156,7 @@ HRESULT CCurrent_Spell_Slot::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::DEFAULT))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::SPELL_SLOT))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -153,6 +196,114 @@ void CCurrent_Spell_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
void CCurrent_Spell_Slot::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_iSlot_Index = m_pVIBufferCom->Set_Mouse_Hover(fMouse);
|
||||
if (m_iSlot_Index != -1)
|
||||
{
|
||||
m_bHover = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bHover = false;
|
||||
m_bClick = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CCurrent_Spell_Slot::Click_Slot(_bool bClick)
|
||||
{
|
||||
if (bClick == true)
|
||||
{
|
||||
m_bClick = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CCurrent_Spell_Slot::Get_Skill(_int SpellIndex, _int SlotIndex)
|
||||
{
|
||||
if (SlotIndex == -1)
|
||||
return;
|
||||
|
||||
if (SpellIndex == -1)
|
||||
return;
|
||||
|
||||
_int iSlotx = 4;
|
||||
|
||||
_int x = SlotIndex % iSlotx;
|
||||
_int y = SlotIndex / iSlotx;
|
||||
|
||||
m_GetSkillInfo.iSlotIndexX = x;
|
||||
m_GetSkillInfo.iSlotIndexY = y;
|
||||
m_GetSkillInfo.iSpellIndex = SpellIndex;
|
||||
|
||||
m_iSpell[y][x] = SpellIndex;
|
||||
m_pVIBufferCom->Set_Equip_Index(SlotIndex);
|
||||
m_vUV.fUV = UV(SpellIndex);
|
||||
m_pVIBufferCom->Set_Index_Color(SlotIndex, static_cast<_float>(m_pInfoInstance->Get_Spell_Info(SpellIndex).iSpell_Type));
|
||||
m_pVIBufferCom->Set_Index_ImageUV(SlotIndex, m_vUV);
|
||||
m_pInfoInstance->Event_CallBack(TEXT("GetSpell"), &m_GetSkillInfo);
|
||||
}
|
||||
|
||||
_int CCurrent_Spell_Slot::Chack_Slot(_int Index) const
|
||||
{
|
||||
_int iSlotx = 4;
|
||||
|
||||
_int x = Index % iSlotx;
|
||||
_int y = Index / iSlotx;
|
||||
|
||||
return m_iSpell[y][x];
|
||||
}
|
||||
|
||||
void CCurrent_Spell_Slot::Clear(_int iValue)
|
||||
{
|
||||
for (_int i = 0; i < 4; ++i)
|
||||
{
|
||||
for (_int j = 0; j < 4; ++j)
|
||||
{
|
||||
m_iSpell[i][j] = iValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_float4 CCurrent_Spell_Slot::UV(_int SpellID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 1792.f };
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 7;
|
||||
|
||||
_float iImageX = 256.f;
|
||||
_float iImageY = 256.f;
|
||||
|
||||
_uint iframeX = SpellID % iCountX;
|
||||
_uint iframeY = SpellID / 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 CCurrent_Spell_Slot::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
@@ -171,6 +322,14 @@ HRESULT CCurrent_Spell_Slot::Bind_ShaderResources()
|
||||
{
|
||||
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;
|
||||
@@ -201,7 +360,15 @@ HRESULT CCurrent_Spell_Slot::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellType_Generic"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Spell"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -244,6 +411,8 @@ void CCurrent_Spell_Slot::Free()
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,6 @@ HRESULT CEessential_Spell::Initialize(void* pArg)
|
||||
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);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,6 @@ HRESULT CEessential_Spell_Slot::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_fDelayTime = 0.5f;
|
||||
m_iPerSpell_Slot = -1;
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -92,7 +91,7 @@ void CEessential_Spell_Slot::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
Hover(fTimeDelta);
|
||||
Hover();
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
@@ -157,7 +156,7 @@ void CEessential_Spell_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
void CEessential_Spell_Slot::Hover(_float fTimeDelta)
|
||||
void CEessential_Spell_Slot::Hover()
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
@@ -186,7 +185,7 @@ void CEessential_Spell_Slot::Hover(_float fTimeDelta)
|
||||
Info.iHover_Index = m_iSpellType + ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Hover"), &Info);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,7 @@ HRESULT CGamePlay_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_bVisible = true;
|
||||
m_bActive = true;
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,6 @@ HRESULT CHpBarBG::Initialize(void* pArg)
|
||||
m_fHpBGPos = _float2(0.f, 13.f);
|
||||
m_fHpBG = _float2(0, m_fSizeX);
|
||||
SizeUpX(240.f);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -99,13 +99,59 @@ SPELL_INFO CInfoInstance::Get_Spell_Info(_int Spell_Info)
|
||||
{
|
||||
return m_pSkillInfo->Get_Info(Spell_Info);
|
||||
}
|
||||
|
||||
_int CInfoInstance::Update_Spell(_int SpellIndex)
|
||||
{
|
||||
return m_pSkillInfo->Update_Spell(SpellIndex);
|
||||
}
|
||||
|
||||
_float CInfoInstance::Get_CoolTime(_int SpellID)
|
||||
{
|
||||
return m_pSkillInfo->Get_CoolTime(SpellID);
|
||||
}
|
||||
void CInfoInstance::Change_Canvas()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CInfoInstance::Key_Input(_uint Input)
|
||||
{
|
||||
m_eInput = Input;
|
||||
|
||||
switch (m_eInput)
|
||||
{
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_1):
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_2):
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_3):
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_4):
|
||||
Event_CallBack(TEXT("Spell"), &m_eInput);
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_T):
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_G):
|
||||
|
||||
break;
|
||||
case ENUM_CLASS(KEYINPUT::INPUT_TAB):
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void CInfoInstance::Add_Event(_wstring EventName, function<void(void*)> Event)
|
||||
{
|
||||
UI_Event.emplace(EventName, Event);
|
||||
}
|
||||
|
||||
void CInfoInstance::Event_CallBack(_wstring EventName, void* pArg)
|
||||
{
|
||||
auto range = UI_Event.equal_range(EventName);
|
||||
for (auto it = range.first; it != range.second; ++it)
|
||||
{
|
||||
it->second(pArg);
|
||||
}
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -44,7 +44,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
//플레이어보다 먼저 생성해야함!
|
||||
if (FAILED(Reday_Layer_EffectPool())) {
|
||||
if (FAILED(Reday_Layer_EffectPool())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
// 이것도 플레이어보다 먼저 생성해야함!
|
||||
@@ -138,7 +138,7 @@ HRESULT CLevel_GamePlay::Render()
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Lights()
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT))){
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
/* Map Containters */
|
||||
/* 테스트용 맵 */
|
||||
|
||||
//CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
||||
/* 전체 맵 */
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
|
||||
|
||||
@@ -250,6 +250,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
{
|
||||
CInfoInstance::GetInstance()->Load_SpellInfo("../Bin/Resources/Data/UI/Spell/SpellInfo.xml");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CUI_Manager>(g_iStaticLevel, g_iStaticLevel, LAYER_UI))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -274,7 +276,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
|
||||
CCamera_Debug* pCamera = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Debug>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))){
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Debug>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -300,7 +302,7 @@ HRESULT CLevel_GamePlay::Ready_Markers()
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))){
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -319,7 +321,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSkyBox>(g_iStaticLevel, NEXT_LEVEL, LAYER_SKYBOX))){
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSkyBox>(g_iStaticLevel, NEXT_LEVEL, LAYER_SKYBOX))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -339,7 +341,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
{
|
||||
for (_uint i = 0; i < 2; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER,&i))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,9 +29,21 @@
|
||||
|
||||
#pragma region UI
|
||||
|
||||
#include "Skill_Data.h"
|
||||
#include "UI_Manager.h"
|
||||
|
||||
#include "GamePlay_Canvas.h"
|
||||
|
||||
#include "Mission_Panel.h"
|
||||
//#include "MissionBanner_Border.h"
|
||||
//#include "MissionBanner_Key.h"
|
||||
//#include "Mission_Icon.h"
|
||||
//#include "Mouse_Cursor.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "NoMountIcon.h"
|
||||
|
||||
#include "Loading_Panel.h"
|
||||
#include "LoadingWidget.h"
|
||||
#include "LoadingWidget_Flame.h"
|
||||
@@ -47,12 +59,6 @@
|
||||
#include "Spell_UI.h"
|
||||
#include "Magic_Item.h"
|
||||
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
#include "NoMountIcon.h"
|
||||
|
||||
#include "Mission_Panel.h"
|
||||
|
||||
#include "Spell_Canvas.h"
|
||||
#include "Spell_Panel.h"
|
||||
#include "Current_Spell_Slot.h"
|
||||
@@ -69,6 +75,8 @@
|
||||
#include "Spell_Vidio_Border.h"
|
||||
#include "Spell_Anim.h"
|
||||
#include "Current_Slot_Number.h"
|
||||
#include "Spell_Drag.h"
|
||||
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -1651,6 +1659,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_UI_Manager*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSkill_Data>(g_iStaticLevel, CSkill_Data::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_GamePlay_Canvas*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
@@ -1801,6 +1814,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Drag>(g_iStaticLevel, CSpell_Drag::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_SkyBox */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSkyBox>(g_iStaticLevel, CSkyBox::Create(m_pDevice, m_pContext))))
|
||||
|
||||
@@ -47,7 +47,7 @@ HRESULT CLoadingWidget::Initialize(void* pArg)
|
||||
m_iImageFrameX = 6; // 이미지의 x 갯수
|
||||
m_iImageFrameY = 6; // 이미지의 y 갯수
|
||||
|
||||
//m_bActive = true;
|
||||
m_bActive = false;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@ HRESULT CLoadingWidget_Flame::Initialize(void* pArg)
|
||||
m_iImageFrameX = 3; // 이미지의 x 갯수
|
||||
m_iImageFrameY = 3; // 이미지의 y 갯수
|
||||
|
||||
m_bActive = true;
|
||||
// 이 친구는 FadeIn을 해주면 알아서 한번 깜빡이고 들어감
|
||||
// 조절을 할꺼면 나중에 제대로 확인을 한 다음에 할 예정
|
||||
Set_FadeIn();
|
||||
|
||||
@@ -41,7 +41,6 @@ HRESULT CLoading_Panel::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ HRESULT CMagic_Icon::Initialize(void* pArg)
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 3.f;
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,6 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
m_iArratCount = 2;
|
||||
Compute_UV(0);
|
||||
Compute_Image();
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,6 @@ HRESULT CMagic_Meter::Initialize(void* pArg)
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fMaxGauge = 20.f;
|
||||
m_fCurrentGauge = 10.f;
|
||||
Visible(false);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ HRESULT CMiniMap_Panel::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_bActive = true;
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,6 @@ HRESULT CMiniMap_TrimBorder::Initialize(void* pArg)
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 3.f;
|
||||
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,6 @@ HRESULT CNoMountIcon::Initialize(void* pArg)
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 0.7f;
|
||||
m_fAlphaTime = 3.f;
|
||||
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -103,6 +103,9 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(m_pContext);
|
||||
#endif // _DEBUG
|
||||
|
||||
// UI 연동 추가
|
||||
m_pInfoInstance->Add_Event(TEXT("JAP"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,13 @@
|
||||
|
||||
#pragma region States
|
||||
|
||||
// UI 연동 추가
|
||||
void CPlayer::Get_Spell(_int SkillIndex)
|
||||
{
|
||||
if (SkillIndex == ENUM_CLASS(SKILL_TYPE::DIFFINDO))
|
||||
Index = SkillIndex;
|
||||
}
|
||||
|
||||
void CPlayer::TestKeyInput(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_F1))
|
||||
@@ -735,6 +742,13 @@ void CPlayer::Behavior_CombatEnter()
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::COMBAT);
|
||||
|
||||
// UI 연동 추가
|
||||
if (Index == ENUM_CLASS(SKILL_TYPE::DIFFINDO))
|
||||
{
|
||||
Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::DIFFINDO, Get_PartObject<CWand>()); }, 0.1f);
|
||||
Index = -1;
|
||||
}
|
||||
|
||||
if (m_pModelCom->Get_SecondAnimIndex() == m_Animation[STATEANIM::LUMOS].first)
|
||||
{
|
||||
m_pModelCom->Set_Second_AnimationIndex(-1, ENUM_CLASS(BLEND_BONE::SHOULDER_R));
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#include "UIObject.h"
|
||||
#include "tinyxml2.h"
|
||||
|
||||
;
|
||||
|
||||
CSkill_Data::CSkill_Data()
|
||||
{
|
||||
}
|
||||
@@ -13,7 +11,6 @@ CSkill_Data::CSkill_Data()
|
||||
HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -22,14 +19,52 @@ const SPELL_INFO& CSkill_Data::Get_Info(_uint SpellID) const
|
||||
return SpellInfo[SpellID];
|
||||
}
|
||||
|
||||
_int CSkill_Data::Update_Spell(_int SpellID)
|
||||
{
|
||||
if (SpellID < 0 || SpellID > m_iSpell_Count)
|
||||
return ENUM_CLASS(SKILL_TYPE::END);
|
||||
|
||||
if (SpellInfo[SpellID].bUse_Skill == false)
|
||||
return ENUM_CLASS(SKILL_TYPE::END);
|
||||
|
||||
SpellInfo[SpellID].bUse_Skill = false;
|
||||
m_iSpell_CoolTime[SpellID] = 0.f;
|
||||
|
||||
return SpellInfo[SpellID].iSkill_Type;
|
||||
}
|
||||
|
||||
void CSkill_Data::Update(_float fTimeDelta)
|
||||
{
|
||||
for (_int i = 0; i < m_iSpell_Count; ++i)
|
||||
{
|
||||
if (SpellInfo[i].bUse_Skill == false)
|
||||
{
|
||||
if (m_iSpell_CoolTime[i] <= 1.f)
|
||||
{
|
||||
m_iSpell_CoolTime[i] += fTimeDelta * (1.f / SpellInfo[i].fSpell_CoolTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
SpellInfo[i].bUse_Skill = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CSkill_Data::Change_Level()
|
||||
{
|
||||
}
|
||||
|
||||
_float CSkill_Data::Get_CoolTime(_int SpellID)
|
||||
{
|
||||
if (SpellID < 0 || SpellID > m_iSpell_Count)
|
||||
return 0.f;
|
||||
|
||||
return m_iSpell_CoolTime[SpellID];
|
||||
}
|
||||
|
||||
HRESULT CSkill_Data::Load_SpellInfo(const _char* pFilePath)
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
@@ -62,13 +97,16 @@ HRESULT CSkill_Data::Load_SpellInfo(const _char* pFilePath)
|
||||
pSpell->QueryFloatAttribute("Duration", &SpellInfo[id].fDuration);
|
||||
pSpell->QueryIntAttribute("AnimNum", &SpellInfo[id].iAnimNum);
|
||||
SpellInfo[id].pSpellInfo = CMyTools::ToWstring(pSpell->Attribute("SpellInfo"));
|
||||
int lock = 0, equip = 0;
|
||||
int lock = 0, equip = 0, use = 0;
|
||||
pSpell->QueryIntAttribute("Spell_Lock", &lock);
|
||||
pSpell->QueryIntAttribute("Equip_Spell", &equip);
|
||||
pSpell->QueryIntAttribute("Use_Skill", &use);
|
||||
SpellInfo[id].bSpell_Lock = lock != 0;
|
||||
SpellInfo[id].bEquip_Spell = equip != 0;
|
||||
|
||||
SpellInfo[id].bUse_Skill = use != 0;
|
||||
pSpell = pSpell->NextSiblingElement("Spell");
|
||||
m_iSpell_Count++;
|
||||
m_iSpell_CoolTime[id] = 1.2f;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -47,7 +47,6 @@ HRESULT CSlot_Number::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Pos(350.f, 10.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_pVIBufferCom->Set_ImageUV(pUVDesc);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -102,7 +101,7 @@ void CSlot_Number::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
if (m_bVisible)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
@@ -113,7 +112,7 @@ HRESULT CSlot_Number::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::UVALPHABLEND))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,6 @@ HRESULT CSpell_Anim::Initialize(void* pArg)
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -183,6 +182,8 @@ void CSpell_Anim::Set_SkillType(_int eType)
|
||||
m_iCurrentFrame = 0;
|
||||
Change_Image(eType);
|
||||
}
|
||||
else if (eType == -1)
|
||||
m_iPerSpell = eType;
|
||||
}
|
||||
|
||||
HRESULT CSpell_Anim::Bind_ShaderResources()
|
||||
@@ -228,7 +229,7 @@ HRESULT CSpell_Anim::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Arresto_Momentum"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Accio"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ HRESULT CSpell_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,413 @@
|
||||
#include "pch.h"
|
||||
#include "Spell_Drag.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpell_Drag::CSpell_Drag(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CSpell_Drag::CSpell_Drag(const CSpell_Drag& rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CSpell_Drag::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpell_Drag::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_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fDelayTime = 0.2f;
|
||||
m_fSortZ = 0.f;
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::ARRESTO_MOMENTUM);
|
||||
Compute_UI(m_iSkillType);
|
||||
m_bMove = false;
|
||||
m_bClick = false;
|
||||
m_iSpellType = -1;
|
||||
m_iCurrent_Slot_Index = -1;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SpellType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Current_Hover"), [this](void* p) {this->Set_Current_Slot(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpell_Drag::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CSpell_Drag::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;
|
||||
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
|
||||
{
|
||||
if (m_iSpellType == -1 && m_iCurrent_Slot_Index == -1)
|
||||
{
|
||||
m_bFalse = true;
|
||||
return;
|
||||
}
|
||||
|
||||
m_vStart_MousePos = XMVectorSet(0.f, 0.f, 0.f, 0.f);
|
||||
|
||||
POINT m_pPt{};
|
||||
GetCursorPos(&m_pPt);
|
||||
ScreenToClient(g_hWnd, &m_pPt);
|
||||
_float2 fMouse{};
|
||||
fMouse.x = m_pPt.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = m_pPt.y - (g_iWinSizeY * 0.5f);
|
||||
|
||||
m_vStart_MousePos = XMVectorSet(fMouse.x, fMouse.y, 0.f, 1.f);
|
||||
m_bFalse = false;
|
||||
}
|
||||
|
||||
if (m_bFalse == false && (m_bHover == true || m_bCurrent_Hover == true))
|
||||
{
|
||||
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
|
||||
{
|
||||
POINT pt{};
|
||||
GetCursorPos(&pt);
|
||||
ScreenToClient(g_hWnd, &pt);
|
||||
|
||||
float moveX = pt.x - (g_iWinSizeX * 0.5f);
|
||||
float moveY = pt.y - (g_iWinSizeY * 0.5f);
|
||||
|
||||
m_vMove_MousePos = XMVectorSet(moveX, moveY, 0.f, 1.f);
|
||||
|
||||
_vector Dir = m_vMove_MousePos - m_vStart_MousePos;
|
||||
_float fLength2 = XMVectorGetX(XMVector2Dot(Dir, Dir));
|
||||
|
||||
if (fLength2 >= 50.f)
|
||||
{
|
||||
m_bMove = true;
|
||||
}
|
||||
m_bClick = true;
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_iSpellType = -1;
|
||||
}
|
||||
|
||||
if (m_bMove == true)
|
||||
{
|
||||
MoveX(Get_MousePos().x);
|
||||
MoveY(Get_MousePos().y);
|
||||
}
|
||||
|
||||
|
||||
if (m_pGameInstance->Mouse_Up(DIM_LBUTTON) && m_bClick == true)
|
||||
{
|
||||
m_bHover = false;
|
||||
m_bClick = false;
|
||||
m_bCurrent_Hover = false;
|
||||
m_bMove = false;
|
||||
m_iSpellType = -1;
|
||||
}
|
||||
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Click"), &m_bClick);
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CSpell_Drag::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
if (m_bMove == true)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CSpell_Drag::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELL_DRAG))))
|
||||
{
|
||||
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_Drag::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CSpell_Drag::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_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_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_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CSpell_Drag::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellType_Generic"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SelectedPresetBorder"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_GoldLeaf"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Widget_Spell"), 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;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpell_Drag::Compute_UI(_uint SpellID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 1792.f };
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 7;
|
||||
|
||||
_float iImageX = 256.f;
|
||||
_float iImageY = 256.f;
|
||||
|
||||
_uint iframeX = SpellID % iCountX;
|
||||
_uint iframeY = SpellID / 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 };
|
||||
m_vUV = UV;
|
||||
}
|
||||
|
||||
void CSpell_Drag::Set_SpellType(_int SpellID)
|
||||
{
|
||||
if (SpellID == -1 || SpellID >= 26)
|
||||
{
|
||||
m_iSkillType = -1;
|
||||
m_bHover = false;
|
||||
return;
|
||||
}
|
||||
m_iSpellType = SpellID;
|
||||
m_bHover = true;
|
||||
Compute_UI(m_pInfoInstance->Get_Spell_Info(m_iSpellType).iSkill_Type);
|
||||
}
|
||||
|
||||
_float2 CSpell_Drag::Get_MousePos()
|
||||
{
|
||||
POINT m_pPt{};
|
||||
GetCursorPos(&m_pPt);
|
||||
ScreenToClient(g_hWnd, &m_pPt);
|
||||
_float2 fMouse{};
|
||||
fMouse.x = m_pPt.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = m_pPt.y - (g_iWinSizeY * 0.5f);
|
||||
|
||||
m_vMove_MousePos = XMVectorSet(fMouse.x, fMouse.y, 0.f, 1.f);
|
||||
return fMouse;
|
||||
}
|
||||
|
||||
void CSpell_Drag::Set_Current_Slot(_uint Index)
|
||||
{
|
||||
if (Index == -1)
|
||||
{
|
||||
m_iCurrent_Slot_Index = -1;
|
||||
m_bCurrent_Hover = false;
|
||||
return;
|
||||
}
|
||||
m_iCurrent_Slot_Index = Index;
|
||||
m_bCurrent_Hover = true;
|
||||
Compute_UI(m_pInfoInstance->Get_Spell_Info(m_iCurrent_Slot_Index).iSkill_Type);
|
||||
}
|
||||
|
||||
CSpell_Drag* CSpell_Drag::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSpell_Drag* pInstance = new CSpell_Drag(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CSpell_Drag");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CSpell_Drag::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CSpell_Drag* pInstance = new CSpell_Drag(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Drag");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CSpell_Drag::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);
|
||||
}
|
||||
|
||||
void CSpell_Drag::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Spell_Header.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpell_Header::CSpell_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -8,7 +9,8 @@ CSpell_Header::CSpell_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
|
||||
}
|
||||
|
||||
CSpell_Header::CSpell_Header(const CSpell_Header& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -46,7 +48,6 @@ HRESULT CSpell_Header::Initialize(void* pArg)
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -93,7 +94,7 @@ void CSpell_Header::Update(_float fTimeDelta)
|
||||
|
||||
if (m_iSpellType != -1)
|
||||
{
|
||||
m_iSkillType = static_cast<CUIObject*>(m_pOwner)->Get_Info(m_iSpellType).iSpell_Type;
|
||||
m_iSkillType = m_pInfoInstance->Get_Spell_Info(m_iSpellType).iSpell_Type;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
@@ -41,7 +41,6 @@ HRESULT CSpell_Header_Line::Initialize(void* pArg)
|
||||
m_fAlphaTime = 5.f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,6 @@ HRESULT CSpell_Hover::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -91,7 +90,10 @@ void CSpell_Hover::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
m_pVIBufferCom->Set_Hover_Index(m_iSpellType);
|
||||
if (m_bClick == false)
|
||||
{
|
||||
m_pVIBufferCom->Set_Hover_Index(m_iSpellType);
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
@@ -156,6 +158,18 @@ void CSpell_Hover::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
void CSpell_Hover::Click_Slot(_bool bClick)
|
||||
{
|
||||
if (bClick == true)
|
||||
{
|
||||
m_bClick = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick = false;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpell_Hover::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
|
||||
@@ -48,7 +48,6 @@ HRESULT CSpell_Hover_Effect::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -91,7 +90,10 @@ void CSpell_Hover_Effect::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
m_pVIBufferCom->Set_Hover_Index(m_iSpellType);
|
||||
if (m_bClick == false)
|
||||
{
|
||||
m_pVIBufferCom->Set_Hover_Index(m_iSpellType);
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -155,6 +157,18 @@ void CSpell_Hover_Effect::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
void CSpell_Hover_Effect::Click_Slot(_bool bClick)
|
||||
{
|
||||
if (bClick == true)
|
||||
{
|
||||
m_bClick = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick = false;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpell_Hover_Effect::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
|
||||
@@ -48,9 +48,11 @@ HRESULT CSpell_List::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_fDelayTime = 0.5f;
|
||||
m_iPerSpell_Slot = -1;
|
||||
m_bClick = false;
|
||||
Color();
|
||||
m_bActive = true;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Click"), [this](void* p) {this->Click_Slot(*reinterpret_cast<_bool*>(p)); });
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
void CSpell_List::Priority_Update(_float fTimeDelta)
|
||||
@@ -93,7 +95,10 @@ void CSpell_List::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
Hover(fTimeDelta);
|
||||
if (m_bClick == false)
|
||||
{
|
||||
Hover();
|
||||
}
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -159,16 +164,16 @@ void CSpell_List::SizeUpdate(_float fSizeX, _float 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));
|
||||
m_pVIBufferCom->Set_Index_Renge_Color(0, 3, 0.f);
|
||||
m_pVIBufferCom->Set_Index_Renge_Color(4, 7, 1.f);
|
||||
m_pVIBufferCom->Set_Index_Renge_Color(8, 12, 2.f);
|
||||
m_pVIBufferCom->Set_Index_Renge_Color(13, 16, 3.f);
|
||||
m_pVIBufferCom->Set_Index_Renge_Color(17, 19, 4.f);
|
||||
m_pVIBufferCom->Set_Index_Renge_Color(20, 22, 5.f);
|
||||
m_pVIBufferCom->Set_Index_Renge_Color(23, 25, 3.f);
|
||||
}
|
||||
|
||||
void CSpell_List::Hover(_float fTimeDelta)
|
||||
void CSpell_List::Hover()
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
@@ -199,6 +204,18 @@ void CSpell_List::Hover(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
void CSpell_List::Click_Slot(_bool bClick)
|
||||
{
|
||||
if (bClick == true)
|
||||
{
|
||||
m_bClick = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick = false;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpell_List::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
|
||||
@@ -48,7 +48,6 @@ HRESULT CSpell_List_Image::Initialize(void* pArg)
|
||||
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);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Spell_Overlay.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpell_Overlay::CSpell_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -8,7 +9,8 @@ CSpell_Overlay::CSpell_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pCont
|
||||
}
|
||||
|
||||
CSpell_Overlay::CSpell_Overlay(const CSpell_Overlay& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -48,15 +50,16 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
|
||||
m_vUVScale.y = 1.f;
|
||||
m_fCoolTime = 5.f;
|
||||
m_fSortZ = 0.01f;
|
||||
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
|
||||
Compute_UI(5);
|
||||
m_bActive = true;
|
||||
m_iSlotCount = 4;
|
||||
m_iCurrent_Slot = 0;
|
||||
Array_Clear(-1);
|
||||
Bool_Array_Clear(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSpell_Overlay::Compute_UI(_uint SpellID)
|
||||
_float4 CSpell_Overlay::Compute_UI(_uint SpellID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 1536.f};
|
||||
_float2 fImage_Size = { 1024.f, 1792.f };
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 6;
|
||||
@@ -75,8 +78,76 @@ 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};
|
||||
m_vUV = UV;
|
||||
_float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
|
||||
return UV;
|
||||
}
|
||||
|
||||
void CSpell_Overlay::Array_Clear(_int Value)
|
||||
{
|
||||
for (_int i = 0; i < m_iSlotCount; ++i)
|
||||
{
|
||||
m_Spells[i] = Value;
|
||||
}
|
||||
for (_int i = 0; i < m_iSlotCount; ++i)
|
||||
{
|
||||
m_iSpellType[i] = Value;
|
||||
}
|
||||
for (_int i = 0; i < m_iSlotCount; ++i)
|
||||
{
|
||||
m_vUV[i] = _float4(_float(Value), _float(Value), _float(Value), _float(Value));
|
||||
}
|
||||
}
|
||||
|
||||
void CSpell_Overlay::Bool_Array_Clear(_bool Bool)
|
||||
{
|
||||
for (_int i = 0; i < m_iSlotCount; ++i)
|
||||
{
|
||||
m_bEquipped[i] = Bool;
|
||||
}
|
||||
for (_int i = 0; i < m_iSlotCount; ++i)
|
||||
{
|
||||
m_bSpellUsed[i] = Bool;
|
||||
}
|
||||
}
|
||||
|
||||
void CSpell_Overlay::Spell_Setting(_int SlotIndex, _int SpellIndex)
|
||||
{
|
||||
if (SlotIndex < 0 || SlotIndex > m_iSlotCount)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_Spells[SlotIndex] = SpellIndex;
|
||||
m_bEquipped[SlotIndex] = true;
|
||||
m_bSpellUsed[SlotIndex] = m_pInfoInstance->Get_Spell_Info(SpellIndex).bUse_Skill;
|
||||
m_vUV[SlotIndex] = Compute_UI(SpellIndex);
|
||||
m_iSpellType[SlotIndex] = m_pInfoInstance->Get_Spell_Info(SpellIndex).iSpell_Type;
|
||||
}
|
||||
|
||||
void CSpell_Overlay::Use_Spell()
|
||||
{
|
||||
if (m_bEquipped[m_iCurrent_Slot] == true && m_bSpellUsed[m_iCurrent_Slot] == true)
|
||||
{
|
||||
m_pInfoInstance->Update_Spell(m_Spells[m_iCurrent_Slot]);
|
||||
m_pInfoInstance->Event_CallBack(TEXT("JAP"), &m_Spells[m_iCurrent_Slot]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CSpell_Overlay::Set_SpellSlot(_int Index)
|
||||
{
|
||||
if (Index < 0)
|
||||
{
|
||||
m_iCurrent_Slot = m_iSlotCount - 1;
|
||||
}
|
||||
else if (Index >= m_iSlotCount)
|
||||
{
|
||||
m_iCurrent_Slot = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_iCurrent_Slot = Index;
|
||||
}
|
||||
}
|
||||
|
||||
void CSpell_Overlay::Priority_Update(_float fTimeDelta)
|
||||
@@ -119,18 +190,17 @@ void CSpell_Overlay::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_vUVScale.y >= 1.f)
|
||||
for (_int i = 0; i < m_iSlotCount; ++i)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_1))
|
||||
if (m_bEquipped[i] == true)
|
||||
{
|
||||
m_vUVScale.y = 0.f;
|
||||
m_bSpellUsed[i] = m_pInfoInstance->Get_Spell_Info(m_Spells[i]).bUse_Skill;
|
||||
m_fCoolTime = m_pInfoInstance->Get_CoolTime(m_Spells[m_iCurrent_Slot]);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_vUVScale.y <= 1)
|
||||
{
|
||||
m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
|
||||
}
|
||||
|
||||
m_vUVScale.y = m_fCoolTime;
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
@@ -144,7 +214,10 @@ void CSpell_Overlay::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
if (m_bEquipped[m_iCurrent_Slot] == true)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
@@ -226,7 +299,7 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType[m_iCurrent_Slot], sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -258,7 +331,7 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV[m_iCurrent_Slot], sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "Spell_Header.h"
|
||||
#include "Spell_Header_Line.h"
|
||||
#include "Spell_Anim.h"
|
||||
#include "Spell_Drag.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CSpell_Panel::CSpell_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -60,9 +61,11 @@ HRESULT CSpell_Panel::Initialize(void* pArg)
|
||||
m_iPendingSpell = -1;
|
||||
m_fDelayTime = 1.f;
|
||||
m_bActive = true;
|
||||
|
||||
Add_Function(TEXT("Hover"), [this](void* p) {this->Slot_Chack(p); });
|
||||
|
||||
Add_Function(TEXT("Click"), [this](void* p) {this->Click_Slot(*reinterpret_cast<_bool*>(p)); });
|
||||
Add_Function(TEXT("Current_Slot_Click"), [this](void* p) {this->Current_Slot_Chack(*reinterpret_cast<_int*>(p)); });
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -84,7 +87,7 @@ void CSpell_Panel::Update(_float fTimeDelta)
|
||||
|
||||
if (m_iSpellType != -1)
|
||||
{
|
||||
m_fHoverTimer += fTimeDelta;
|
||||
m_fHoverTimer += fTimeDelta;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -92,9 +95,9 @@ void CSpell_Panel::Update(_float fTimeDelta)
|
||||
Function_Callback(TEXT("FadeOut"));
|
||||
}
|
||||
|
||||
if (m_fHoverTimer >= m_fDelayTime && m_iPendingSpell != m_iSpellType)
|
||||
if (m_fHoverTimer >= m_fDelayTime)
|
||||
{
|
||||
m_iPendingSpell = m_iSpellType;
|
||||
|
||||
Function_Callback(TEXT("FadeIn"));
|
||||
}
|
||||
|
||||
@@ -163,6 +166,23 @@ void CSpell_Panel::Slot_Chack(void* pArg)
|
||||
Function_Callback(TEXT("Slot_Hover"), &m_iSpellType);
|
||||
}
|
||||
|
||||
void CSpell_Panel::Click_Slot(_bool bClick)
|
||||
{
|
||||
if (bClick == true)
|
||||
{
|
||||
m_bHover = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bHover = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CSpell_Panel::Current_Slot_Chack(_int Index)
|
||||
{
|
||||
m_iCurrent_Slot_Index = Index;
|
||||
}
|
||||
|
||||
HRESULT CSpell_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
@@ -304,6 +324,12 @@ HRESULT CSpell_Panel::Ready_Element(void* pArg)
|
||||
}
|
||||
Add_Element(TEXT("Spell_Anim"), m_pSpell_Anim);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Drag>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Drag**>(&m_pSpell_Drag))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Spell_Drag"), m_pSpell_Drag);
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Data>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, m_Info, nullptr, reinterpret_cast<CSpell_Data**>(&m_pSpell_Data))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
|
||||
@@ -49,7 +49,6 @@ HRESULT CSpell_Preview::Initialize(void* pArg)
|
||||
m_fSortZ = 0.02f;
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,6 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
|
||||
m_pVIBufferCom->Set_Cloned(true);
|
||||
m_pVIBufferCom->Set_Pos(380.f, -30.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,8 +46,7 @@ HRESULT CSpell_State::Initialize(void* pArg)
|
||||
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_bActive = true;
|
||||
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -90,8 +89,13 @@ void CSpell_State::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
Hover();
|
||||
if (m_bClick == false)
|
||||
{
|
||||
m_pVIBufferCom->Set_Hover_Index(m_iSpellType);
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -154,21 +158,16 @@ void CSpell_State::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
void CSpell_State::Hover()
|
||||
void CSpell_State::Click_Slot(_bool bClick)
|
||||
{
|
||||
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);
|
||||
|
||||
if (bClick == true)
|
||||
{
|
||||
m_bClick = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick = false;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CSpell_State::Bind_ShaderResources()
|
||||
|
||||
@@ -45,7 +45,6 @@ HRESULT CSpell_UI::Initialize(void* pArg)
|
||||
//m_vImageUV[2] = Image_UV(1);
|
||||
//m_vImageUV[3] = Alphabet_UV('T');
|
||||
Set_ImagePos();
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#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)
|
||||
@@ -48,8 +47,6 @@ HRESULT CSpell_Vidio_Border::Initialize(void* pArg)
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeIn"), [this](void* p) {this->Set_FadeIn(); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("FadeOut"), [this](void* p) {this->Set_FadeOut(); });
|
||||
m_bActive = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,12 @@ NS_BEGIN(Client)
|
||||
|
||||
class CAction_Panel final : public CPanelObject
|
||||
{
|
||||
typedef struct Get_Skill_Info
|
||||
{
|
||||
_int iSlotIndexX{};
|
||||
_int iSlotIndexY{};
|
||||
_int iSpellIndex{};
|
||||
}GETSKILLINFO;
|
||||
private:
|
||||
CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CAction_Panel(const CAction_Panel& rhs);
|
||||
@@ -27,6 +33,9 @@ class CAction_Panel final : public CPanelObject
|
||||
void Magic_Meter_Visible(_uint iIndex, _bool bVisible);
|
||||
void Magic_Meter_UV();
|
||||
void Matic_Meter_Move();
|
||||
|
||||
void Use_Spell(_int Index);
|
||||
void Spell_Setting(void* pArg);
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
@@ -35,6 +44,8 @@ class CAction_Panel final : public CPanelObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
@@ -43,7 +54,10 @@ class CAction_Panel final : public CPanelObject
|
||||
_uint m_iMagic_Meter_Count{};
|
||||
|
||||
CGameObject* m_pSpell_Slot = { nullptr };
|
||||
CGameObject* m_pSpell_Overlay = { nullptr };
|
||||
CGameObject* m_pSpell_Overlay1 = { nullptr };
|
||||
CGameObject* m_pSpell_Overlay2 = { nullptr };
|
||||
CGameObject* m_pSpell_Overlay3 = { nullptr };
|
||||
CGameObject* m_pSpell_Overlay4 = { nullptr };
|
||||
CGameObject* m_pSlot_Number = { nullptr };
|
||||
CGameObject* m_pHpBarBG = { nullptr };
|
||||
CGameObject* m_pMagic_Meter1 = { nullptr };
|
||||
|
||||
@@ -12,28 +12,31 @@ namespace Client
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, END };
|
||||
enum class SHADER_PASS_UIEDITOR { DEFAULT, 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, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, 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, SPELL_DRAG, END };
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, END };
|
||||
|
||||
|
||||
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
|
||||
enum class SKILL_TYPE {
|
||||
ARESTO_MOMENTUM, GLACIUS, LEVIOSO, TRANSFORM, ASSIO,
|
||||
DEPULSO, DESCENDO, FLIPENDO, CONFRINGO, DIFFINDO, EXPELLIARMUS,
|
||||
BOMBARDA, INCENDIO, DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA,
|
||||
CONJURING_SPELL, ALTERING_SPELL, EVANESCO, AVADA_KEDAVRA, CRUCIO, IMPERIO,
|
||||
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, JAP, REVELIO, PROTEGO, STUPEFY,
|
||||
|
||||
enum class SKILL_TYPE {
|
||||
ARRESTO_MOMENTUM, GLACIUS, LEVIOSO, TRANSFORM, // 노란색
|
||||
ACCIO, DEPULSO, DESCENDO, FLIPENDO, // 보라색
|
||||
CONFRINGO, DIFFINDO, EXPELLIARMUS, BOMBARDA, INCENDIO, // 빨간색
|
||||
DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA, // 하늘색
|
||||
CONJURING_SPELL, ALTERING_SPELL, EVANESCO, // 연녹색
|
||||
AVADA_KEDAVRA, CRUCIO, IMPERIO, // 진녹색
|
||||
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색
|
||||
JAP, REVELIO, PROTEGO, STUPEFY, // 검은색
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
|
||||
JAP_SIDE, BOMBARDA_SIDE , DESCENDO_SIDE , LEVIOSO_SIDE
|
||||
,END
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, END
|
||||
};
|
||||
|
||||
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
|
||||
|
||||
enum class KEYINPUT
|
||||
{
|
||||
INPUT_1, INPUT_2, INPUT_3, INPUT_4,
|
||||
INPUT_T,
|
||||
INPUT_1 = 1, INPUT_2, INPUT_3, INPUT_4,
|
||||
INPUT_T, INPUT_G,
|
||||
INPUT_TAB,
|
||||
END
|
||||
};
|
||||
|
||||
@@ -29,5 +29,6 @@ namespace Client
|
||||
_wstring pSpellInfo;
|
||||
_bool bSpell_Lock = false;
|
||||
_bool bEquip_Spell = false;
|
||||
_bool bUse_Skill = false;
|
||||
}SPELL_INFO;
|
||||
};
|
||||
|
||||
@@ -13,6 +13,12 @@ NS_BEGIN(Client)
|
||||
|
||||
class CCurrent_Spell_Slot final : public CElementObject
|
||||
{
|
||||
typedef struct Get_Skill_Info
|
||||
{
|
||||
_int iSlotIndexX{};
|
||||
_int iSlotIndexY{};
|
||||
_int iSpellIndex{};
|
||||
}GETSKILLINFO;
|
||||
private:
|
||||
CCurrent_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CCurrent_Spell_Slot(const CCurrent_Spell_Slot& rhs);
|
||||
@@ -29,6 +35,14 @@ class CCurrent_Spell_Slot final : public CElementObject
|
||||
virtual void SizeUpY(_float fSizeY) override;
|
||||
virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
|
||||
|
||||
private:
|
||||
void Hover();
|
||||
void Click_Slot(_bool bClick);
|
||||
void Get_Skill(_int SpellIndex, _int SlotIndex);
|
||||
_int Chack_Slot(_int Index) const;
|
||||
void Clear(_int iValue);
|
||||
|
||||
_float4 UV(_int SpellID);
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
@@ -37,14 +51,27 @@ class CCurrent_Spell_Slot final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_float m_fOffSetX{};
|
||||
_float m_fOffSetY{};
|
||||
_uint m_iCols{};
|
||||
class CUI_Manager* m_pManager = { nullptr };
|
||||
|
||||
_float m_fOffSetX{};
|
||||
_float m_fOffSetY{};
|
||||
_uint m_iCols{};
|
||||
|
||||
_bool m_bChangeSlot = { false };
|
||||
|
||||
_int m_iSlot_Index{};
|
||||
_int m_iSkill_Index{};
|
||||
_int m_iSpell[4][4]{};
|
||||
CVIBuffer_UI_Instance::UI_ATLAS_DESC m_vUV{};
|
||||
GETSKILLINFO m_GetSkillInfo = {};
|
||||
public:
|
||||
static CCurrent_Spell_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -31,7 +31,7 @@ class CEessential_Spell_Slot final : public CElementObject
|
||||
|
||||
|
||||
private:
|
||||
void Hover(_float fTimeDelta);
|
||||
void Hover();
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
@@ -45,8 +45,13 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
SPELL_INFO Get_Spell_Info(_int Spell_Info);
|
||||
_int Update_Spell(_int SpellIndex);
|
||||
_float Get_CoolTime(_int SpellID);
|
||||
void Change_Canvas();
|
||||
void Key_Input(_uint Input);
|
||||
void Key_Input(_uint Input); // 플레이어 키 입력
|
||||
|
||||
void Add_Event(_wstring EventName, function<void(void*)> Event);
|
||||
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
|
||||
#pragma endregion
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
@@ -58,7 +63,10 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
class CMapInfo* m_pMapInfo = { nullptr };
|
||||
class CSkill_Data* m_pSkillInfo= { nullptr };
|
||||
_uint m_eInput = ENUM_CLASS(KEYINPUT::END);
|
||||
_int m_eSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
|
||||
// 임시로 이벤트 1개 만들어 둠
|
||||
multimap<_wstring, function<void(void*)>> UI_Event;
|
||||
#ifdef _DEBUG
|
||||
_string m_strLog = {};
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -31,8 +31,6 @@ class CMiniMap_Panel final : public CPanelObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CGameObject* m_pMiniMap_TrimBorder = { nullptr };
|
||||
CGameObject* m_pNoMountIcon = { nullptr };
|
||||
|
||||
@@ -82,6 +82,10 @@ class CPlayer final : public CUnit
|
||||
|
||||
|
||||
private:
|
||||
// UI 연동 추가
|
||||
void Get_Spell(_int SkillIndex);
|
||||
_int Index{-1};
|
||||
|
||||
void TestKeyInput(_float fTimeDelta);
|
||||
virtual void Add_FSM();
|
||||
virtual void Set_Anim();
|
||||
|
||||
@@ -21,16 +21,19 @@ class CSkill_Data final : public CBase
|
||||
public:
|
||||
void Update(_float fTimeDelta);
|
||||
void Change_Level();
|
||||
|
||||
_float Get_CoolTime(_int SpellID);
|
||||
|
||||
public:
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
public:
|
||||
const SPELL_INFO& Get_Info(_uint SpellID) const;
|
||||
_int Update_Spell(_int SpellID);
|
||||
|
||||
private:
|
||||
SPELL_INFO SpellInfo[34] = {};
|
||||
_int m_iSpell_Count{};
|
||||
SPELL_INFO SpellInfo[34] = {};
|
||||
_float m_iSpell_CoolTime[34] = {};
|
||||
|
||||
private:
|
||||
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
#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_Drag final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CSpell_Drag(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CSpell_Drag(const CSpell_Drag& rhs);
|
||||
virtual ~CSpell_Drag() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
void Compute_UI(_uint SpellID);
|
||||
virtual void Set_SpellType(_int SpellID) override;
|
||||
_float2 Get_MousePos();
|
||||
void Set_Current_Slot(_uint Index);
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
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 };
|
||||
|
||||
_vector m_vStart_MousePos{};
|
||||
_vector m_vMove_MousePos{};
|
||||
_float4 m_vUV{};
|
||||
|
||||
_int m_iCurrent_Slot_Index{};
|
||||
|
||||
_bool m_bCurrent_Hover = { false };
|
||||
_bool m_bMove = { false };
|
||||
_bool m_bClick = { false };
|
||||
_bool m_bFalse = { false };
|
||||
public:
|
||||
static CSpell_Drag* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -32,6 +32,8 @@ class CSpell_Header final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
@@ -30,7 +30,7 @@ class CSpell_Hover final : public CElementObject
|
||||
virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
|
||||
|
||||
private:
|
||||
void Hover();
|
||||
void Click_Slot(_bool bClick);
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
@@ -29,6 +29,9 @@ class CSpell_Hover_Effect final : public CElementObject
|
||||
virtual void SizeUpY(_float fSizeY) override;
|
||||
virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
|
||||
|
||||
private:
|
||||
void Click_Slot(_bool bClick);
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
|
||||
@@ -31,7 +31,8 @@ class CSpell_List final : public CElementObject
|
||||
|
||||
private:
|
||||
void Color();
|
||||
void Hover(_float fTimeDelta);
|
||||
void Hover();
|
||||
void Click_Slot(_bool bClick);
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
@@ -25,7 +25,6 @@ class CSpell_Overlay final : public CElementObject
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
@@ -33,9 +32,18 @@ class CSpell_Overlay final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
void Compute_UI(_uint SpellID);
|
||||
_float4 Compute_UI(_uint SpellID);
|
||||
void Array_Clear(_int Value);
|
||||
void Bool_Array_Clear(_bool Bool);
|
||||
|
||||
public:
|
||||
void Spell_Setting(_int SlotIndex, _int SpellIndex);
|
||||
void Set_SpellSlot(_int Index);
|
||||
void Use_Spell();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
@@ -46,7 +54,15 @@ class CSpell_Overlay final : public CElementObject
|
||||
_int m_iImageFrameX{};
|
||||
_int m_iImageFrameY{};
|
||||
_float m_fFrame{};
|
||||
_float4 m_vUV{};
|
||||
_float4 m_vUV[4] = {};
|
||||
|
||||
_int m_iSlotCount{};
|
||||
_int m_Spells[4] = { 0 };
|
||||
_int m_iSpellType[4] = { 0 };
|
||||
_int m_iCurrent_Slot{};
|
||||
|
||||
_bool m_bEquipped[4] = { false };
|
||||
_bool m_bSpellUsed[4] = { false };
|
||||
|
||||
public:
|
||||
static CSpell_Overlay* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -31,6 +31,8 @@ class CSpell_Panel final : public CPanelObject
|
||||
|
||||
private:
|
||||
void Slot_Chack(void* pArg);
|
||||
void Click_Slot(_bool Click);
|
||||
void Current_Slot_Chack(_int Index);
|
||||
|
||||
|
||||
private:
|
||||
@@ -62,13 +64,19 @@ class CSpell_Panel final : public CPanelObject
|
||||
CGameObject* m_pSpell_Header = { nullptr };
|
||||
CGameObject* m_pSpell_Header_Line = { nullptr };
|
||||
CGameObject* m_pSpell_Anim = { nullptr };
|
||||
CGameObject* m_pSpell_Drag = { 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;
|
||||
_int m_iPendingSpell = -1;
|
||||
_float m_fHoverTimer = 0.f;
|
||||
|
||||
_int m_iCurrent_Slot_Index{};
|
||||
_bool m_bCurrentSlot_Hover = { false };
|
||||
|
||||
public:
|
||||
static CSpell_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -30,7 +30,7 @@ class CSpell_State final : public CElementObject
|
||||
virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
|
||||
|
||||
private:
|
||||
void Hover();
|
||||
void Click_Slot(_bool bClick);
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
@@ -25,12 +25,6 @@ class CSpell_Vidio_Border final : public CElementObject
|
||||
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;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,36 +1,36 @@
|
||||
<SpellInfo>
|
||||
<Spell Spell_ID="0" Spell_Name="아레스토 모멘텀" Image_Name="Arresto_Momentum" Spell_Type="0" Skill_Type="0" Spell_Cooltime="15" Duration="15" AnimNum="120" SpellInfo="적과 대상의 속도를 모두 늦춰, 다음 행동을 생각할 시간을 벌 수 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="1" Spell_Name="글래시우스" Image_Name="Glacius" Spell_Type="0" Skill_Type="1" Spell_Cooltime="10" Duration="10" AnimNum="156" SpellInfo="적을 얼려서 후속 공격 시 대미지를 증가시킵니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="2" Spell_Name="레비오소" Image_Name="Levioso" Spell_Type="0" Skill_Type="2" Spell_Cooltime="8" Duration="8" AnimNum="180" SpellInfo="물건과 적을 공중에 띄웁니다. 퍼즐을 풀거나 적을 놀라게 할 때 유용합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="3" Spell_Name="변신" Image_Name="Transformation" Spell_Type="0" Skill_Type="3" Spell_Cooltime="20" Duration="15" AnimNum="146" SpellInfo="물건과 적의 형태를 바꿉니다. 퍼즐을 풀 때도 사용할 수 있고 무해한 장식품에도 사용할 수 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="4" Spell_Name="아씨오" Image_Name="Accio" Spell_Type="1" Skill_Type="4" Spell_Cooltime="8" Duration="0" AnimNum="151" SpellInfo="다양한 물체나 적을 근처로 당기는 소환 마법입니다 특정 무거운 마법 물체를 가까이 당기려면 지속적인 노력이 더 요구되기도 합니다. 일단 물체를 소환하면 버튼을 입력하지 않고도 자동으로 윙가디움 레비오사가 시전되어 계속 공중에 띄울 수 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="5" Spell_Name="디펄소" Image_Name="Depulso" Spell_Type="1" Skill_Type="5" Spell_Cooltime="10" Duration="0" AnimNum="152" SpellInfo="여러 가지 물건과 적을 상당히 강력한 힘으로 밀어냅니다. 적에게 직접 대미지를 주지는 않지만, 적과 물체를 서로 부딪치게 해서 큰 대미지를 줄 수 있습니다. 또한 물건을 밀거나 회전시켜서 다양한 목적을 달성할 때 유리합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="6" Spell_Name="디센도" Image_Name="Descendo" Spell_Type="1" Skill_Type="6" Spell_Cooltime="10" Duration="0" AnimNum="155" SpellInfo="직접 대미지를 주지는 않지만 , 물건과 적을 바닥에 세게 떨어뜨리면 매우 겅력한 대미지를 줄 수 있습니다. 공중에 뜬 적을 떨어뜨리면 훨씬 더 강력한 대미지를 줍니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="7" Spell_Name="플리펜도" Image_Name="Flipendo" Spell_Type="1" Skill_Type="7" Spell_Cooltime="5" Duration="0" AnimNum="188" SpellInfo="물건과 적을 들어올려 거꾸로 뒤집을 수 있습니다. 쿨다운 시간이 짧아서, 공중 콤보를 시작하거나 계속 이어 나갈 때 유용한 주문입니다. 물건을 즉시 뒤집어서 퍼즐을 풀거나 특정한 적의 약점을 이용할 때도 유용합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="8" Spell_Name="콘프링고" Image_Name="Confringo" Spell_Type="2" Skill_Type="8" Spell_Cooltime="10" Duration="0" AnimNum="157" SpellInfo="장거리 볼트로 적중 시 대미지를 줍니다. 불 기반 공격을 받는 적은 몇 초 동안 계속 대미지를 입습니다. 그리고 대미지를 입는 동안 적과 충돌하면 화염이 폭발합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="9" Spell_Name="디핀도" Image_Name="Diffindo" Spell_Type="2" Skill_Type="9" Spell_Cooltime="15" Duration="0" AnimNum="150" SpellInfo="멀리 떨어진 물건과 적을 베어 강력한 대미지를 줍니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="10" Spell_Name="엑스펠리아르무스" Image_Name="Expelliarmus" Spell_Type="2" Skill_Type="10" Spell_Cooltime="10" Duration="0" AnimNum="146" SpellInfo="지팡이와 무기를 휘두르는 적을 무장해제시킵니다. 그리고 모든 적에게 대미지를 입힙니다. 무기가 없는 적에게도 대미지를 줄 수 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="11" Spell_Name="봄바르다" Image_Name="Bombarda" Spell_Type="2" Skill_Type="11" Spell_Cooltime="15" Duration="0" AnimNum="262" SpellInfo="적중 시 큰 대미지를 주며, 동시에 폭발하여 대형 장애물을 부수고 주변 적에 대미지르 줍니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="12" Spell_Name="인센디오" Image_Name="Incendio" Spell_Type="2" Skill_Type="12" Spell_Cooltime="8" Duration="0" AnimNum="213" SpellInfo="단거리 공격으로 목표물과 거리가 가까울 때만 사용할 수 있습니다. 이 주문을 외우면 대상은 매우 강력한 대미지를 입고, 특정 물체에 사용하면 불을 붙일 수 있습니다. 불을 이용한 공격으로 공격을 받은 적은 몇 초 동안 계속 대미지를 받습니다. 그리고 대미지를 입는 공안 적과 충돌하면 화염이 폭발합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="13" Spell_Name="투영" Image_Name="Disillusionment" Spell_Type="3" Skill_Type="13" Spell_Cooltime="0.5" Duration="0" AnimNum="260" SpellInfo="주변 환경에 녹아들어 남들이 알봐보기 어렵게 만듭니다. 적들에게 들키지 않고 몰래 접근해, 페트리피쿠스 토탈루스를 시전하려고 할 때 아주 유용합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="14" Spell_Name="루모스" Image_Name="Lumos" Spell_Type="3" Skill_Type="14" Spell_Cooltime="0.5" Duration="0" AnimNum="365" SpellInfo="어두운 곳을 환하게 밝히거나, 퍼즐에서 추가 조명이 필요할 때 사용합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="15" Spell_Name="레파로" Image_Name="Reparo" Spell_Type="3" Skill_Type="15" Spell_Cooltime="0.5" Duration="0" AnimNum="385" SpellInfo="손상된 특정 물체를 이전 상태로 신속하게 되돌릴 수 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="16" Spell_Name="윙가디움 레비오사" Image_Name="Wingardium_Leviosa" Spell_Type="3" Skill_Type="16" Spell_Cooltime="0.5" Duration="5" AnimNum="273" SpellInfo="이동 가능한 물체를 공중에 띄워 움직입니다. 움직임으로 물체의 위치를 조절하고, F V Q E로 물체의 거리를 조절하거나 회전시킬 수 있습니다. 윙가디움 레비오사는 아씨오로 소환된 물체에 자동으로 시전됩니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="17" Spell_Name="구현 마법" Image_Name="Conjuring_Spell" Spell_Type="4" Skill_Type="17" Spell_Cooltime="0" Duration="0" AnimNum="115" SpellInfo="필요의 방에서 시전하면 물체를 나타나게 할 수 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="18" Spell_Name="개조 마법" Image_Name="Altering_Spell" Spell_Type="4" Skill_Type="18" Spell_Cooltime="0" Duration="0" AnimNum="349" SpellInfo="필요의 방에서 시전하면 물체의 물리적 형태와 특성을 바꿉니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="19" Spell_Name="에바네스코" Image_Name="Evanesco" Spell_Type="4" Skill_Type="19" Spell_Cooltime="0" Duration="0" AnimNum="136" SpellInfo="필요한 방에서 시전하면 물체를 사라지게 하고 월장석이 반환됩니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="20" Spell_Name="아바다 케다브라" Image_Name="Avada_Kedavra" Spell_Type="5" Skill_Type="20" Spell_Cooltime="90" Duration="0" AnimNum="208" SpellInfo="적을 즉시 처치합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="21" Spell_Name="크루시오" Image_Name="Crucio" Spell_Type="5" Skill_Type="21" Spell_Cooltime="20" Duration="20" AnimNum="216" SpellInfo="시간이 소요되는 대미지를 주기에 대부분의 적이 고통에 몸서리칩니다. 또한 저주를 받은 적은 추가 대미지를 받습니다.." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="22" Spell_Name="임페리오" Image_Name="Imperio" Spell_Type="5" Skill_Type="22" Spell_Cooltime="30" Duration="20" AnimNum="462" SpellInfo="일시적으로 적을 동료처럼 변화시켜 싸우게 합니다. 주문이 걸리 ㄴ동안 동료로 바뀐 적은 다른 적들의 공격을 받았을 때 방어력이 높아지며 당신에게 충성합니다. 한편 적을 저주하면 그 적은 추가로 대미지를 받습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="23" Spell_Name="마법 동물 쓰담기용 빗" Image_Name="Beast_Petting_Brush" Spell_Type="3" Skill_Type="23" Spell_Cooltime="0" Duration="0" AnimNum="327" SpellInfo="적마법 동물들을 빗질할 때 쓰는 빗입니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="24" Spell_Name="마법 동물 먹이" Image_Name="Beast_Feed" Spell_Type="3" Skill_Type="24" Spell_Cooltime="0" Duration="0" AnimNum="378" SpellInfo="마법 동물에게 줄 수 있는 먹이입니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="25" Spell_Name="포획 자루" Image_Name="Nab_Sack" Spell_Type="3" Skill_Type="25" Spell_Cooltime="0" Duration="0" AnimNum="235" SpellInfo="마법 동물을 구출하거나 잡을 수 있는 마법 자루입니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="26" Spell_Name="기본 주문" Image_Name="Basic_cast" Spell_Type="6" Skill_Type="26" Spell_Cooltime="0" Duration="0" AnimNum="308" SpellInfo="적과 사물에게 가벼운 대미지를 줍니다. 시전하려면 을 탭하세요." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="27" Spell_Name="레벨리오" Image_Name="Revelio" Spell_Type="6" Skill_Type="27" Spell_Cooltime="0" Duration="0" AnimNum="227" SpellInfo="숨겨진 물건, 퍼즐 아이템, 전리품, 적 등을 모두 포함해 유용하거나 상호작용할 수 있는 다양한 대상을 강조 표시합니다. 로 시전합니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="28" Spell_Name="프로테고" Image_Name="Protego" Spell_Type="6" Skill_Type="28" Spell_Cooltime="0" Duration="0" AnimNum="285" SpellInfo="주문, 무기 등 여러 가지 공격으로부터 보호합니다. 공격이 닿기 직전까지 기다렸다가 로 시전하면 프로테고를 완벽하게 시전할 수 있습니다. 근접 공격자에게는 대미지를 주고, 공격을 반사시켜 적의 방어력을 부술 수도 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="29" Spell_Name="스투페파이" Image_Name="Stupefy" Spell_Type="6" Skill_Type="29" Spell_Cooltime="0" Duration="0" AnimNum="222" SpellInfo="적을 기절시키고 다음 주문을 걸기 쉬운 상태로 만듭니다. 큰 대미지는 아니지만 기절한 적을 추가 대미지를 받고, 이는 금속 숫자로 표시됩니다. 또한 방어벽 마법도 부술 수 있습니다.(난이도 '어려움' 제외) 다가오는 공격에 프로테고로 성공적인 공격을 방어할 , 을 계속 길게 눌러 원하는 적에게 스투페파이 카운터 공격을 사용하세요" Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="30" Spell_Name="고대 마법 던지기" Image_Name="Ancient_Magic_Throw" Spell_Type="6" Skill_Type="30" Spell_Cooltime="0" Duration="0" AnimNum="89" SpellInfo="목표하는 적에게 주변에 있는 물체를 소환하여 던집니다. 적의 방어벽 마법을 무너뜨리는 데 특히 유용합니다. 물체 위에 표시가 떳을 때 로 시전할 수 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="31" Spell_Name="고대 마법" Image_Name="Ancient_magic" Spell_Type="6" Skill_Type="31" Spell_Cooltime="0" Duration="0" AnimNum="152" SpellInfo="고대 마법 MP가 한 부분이라도 가득 차 있으면, 엄청난 대미지를 주고 방어벽 마버을 부수는 강력한 고대 마법을 시전할 수 있게 됩니다. 적의 머리 위에 표시가 나타나면 로 시전하세요" Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="32" Spell_Name="알로호모라" Image_Name="Alohomora" Spell_Type="6" Skill_Type="32" Spell_Cooltime="0" Duration="0" AnimNum="394" SpellInfo="마법 세계 전역에 잠겨 있는 다양한 방이나 장소를 열 수 있지만 제대로 시전하기 위해선 마법 실력이 바탕이 되어야 합니다, 자물쇠 근처에서 로 시전할 수 있습니다." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<Spell Spell_ID="33" Spell_Name="페트리피쿠스 토탈루스" Image_Name="Petrificus_Totalus" Spell_Type="6" Skill_Type="33" Spell_Cooltime="0" Duration="0" AnimNum="275" SpellInfo="대부분의 적을 쓰러뜨릴 만큼 강력한 주문이지만 더 위험한 적들은 약간의 대미지를 입힐 뿐, 빠르게 그 영향에서 벗어날 수 있습니다. 이 주문을들키지 않게 적에게 몰래 접근한 후 를 누르면 시전됩니다.." Spell_Lock="0" Equip_Spell="0"/>
|
||||
<SpellInfo>
|
||||
<Spell Spell_ID="0" Spell_Name="아레스토 모멘텀" Image_Name="Arresto_Momentum" Spell_Type="0" Skill_Type="0" Spell_Cooltime="15" Duration="15" AnimNum="120" SpellInfo="적과 대상의 속도를 모두 늦춰, 다음 행동을 생각할 시간을 벌 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="1" Spell_Name="글래시우스" Image_Name="Glacius" Spell_Type="0" Skill_Type="1" Spell_Cooltime="10" Duration="10" AnimNum="156" SpellInfo="적을 얼려서 후속 공격 시 대미지를 증가시킵니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="2" Spell_Name="레비오소" Image_Name="Levioso" Spell_Type="0" Skill_Type="2" Spell_Cooltime="8" Duration="8" AnimNum="180" SpellInfo="물건과 적을 공중에 띄웁니다. 퍼즐을 풀거나 적을 놀라게 할 때 유용합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="3" Spell_Name="변신" Image_Name="Transformation" Spell_Type="0" Skill_Type="3" Spell_Cooltime="20" Duration="15" AnimNum="146" SpellInfo="물건과 적의 형태를 바꿉니다. 퍼즐을 풀 때도 사용할 수 있고 무해한 장식품에도 사용할 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="4" Spell_Name="아씨오" Image_Name="Accio" Spell_Type="1" Skill_Type="4" Spell_Cooltime="8" Duration="0" AnimNum="151" SpellInfo="다양한 물체나 적을 근처로 당기는 소환 마법입니다 특정 무거운 마법 물체를 가까이 당기려면 지속적인 노력이 더 요구되기도 합니다. 일단 물체를 소환하면 버튼을 입력하지 않고도 자동으로 윙가디움 레비오사가 시전되어 계속 공중에 띄울 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="5" Spell_Name="디펄소" Image_Name="Depulso" Spell_Type="1" Skill_Type="5" Spell_Cooltime="10" Duration="0" AnimNum="152" SpellInfo="여러 가지 물건과 적을 상당히 강력한 힘으로 밀어냅니다. 적에게 직접 대미지를 주지는 않지만, 적과 물체를 서로 부딪치게 해서 큰 대미지를 줄 수 있습니다. 또한 물건을 밀거나 회전시켜서 다양한 목적을 달성할 때 유리합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="6" Spell_Name="디센도" Image_Name="Descendo" Spell_Type="1" Skill_Type="6" Spell_Cooltime="10" Duration="0" AnimNum="155" SpellInfo="직접 대미지를 주지는 않지만 , 물건과 적을 바닥에 세게 떨어뜨리면 매우 겅력한 대미지를 줄 수 있습니다. 공중에 뜬 적을 떨어뜨리면 훨씬 더 강력한 대미지를 줍니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="7" Spell_Name="플리펜도" Image_Name="Flipendo" Spell_Type="1" Skill_Type="7" Spell_Cooltime="5" Duration="0" AnimNum="188" SpellInfo="물건과 적을 들어올려 거꾸로 뒤집을 수 있습니다. 쿨다운 시간이 짧아서, 공중 콤보를 시작하거나 계속 이어 나갈 때 유용한 주문입니다. 물건을 즉시 뒤집어서 퍼즐을 풀거나 특정한 적의 약점을 이용할 때도 유용합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="8" Spell_Name="콘프링고" Image_Name="Confringo" Spell_Type="2" Skill_Type="8" Spell_Cooltime="10" Duration="0" AnimNum="157" SpellInfo="장거리 볼트로 적중 시 대미지를 줍니다. 불 기반 공격을 받는 적은 몇 초 동안 계속 대미지를 입습니다. 그리고 대미지를 입는 동안 적과 충돌하면 화염이 폭발합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="9" Spell_Name="디핀도" Image_Name="Diffindo" Spell_Type="2" Skill_Type="9" Spell_Cooltime="15" Duration="0" AnimNum="150" SpellInfo="멀리 떨어진 물건과 적을 베어 강력한 대미지를 줍니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="10" Spell_Name="엑스펠리아르무스" Image_Name="Expelliarmus" Spell_Type="2" Skill_Type="10" Spell_Cooltime="10" Duration="0" AnimNum="146" SpellInfo="지팡이와 무기를 휘두르는 적을 무장해제시킵니다. 그리고 모든 적에게 대미지를 입힙니다. 무기가 없는 적에게도 대미지를 줄 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="11" Spell_Name="봄바르다" Image_Name="Bombarda" Spell_Type="2" Skill_Type="11" Spell_Cooltime="15" Duration="0" AnimNum="262" SpellInfo="적중 시 큰 대미지를 주며, 동시에 폭발하여 대형 장애물을 부수고 주변 적에 대미지르 줍니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="12" Spell_Name="인센디오" Image_Name="Incendio" Spell_Type="2" Skill_Type="12" Spell_Cooltime="8" Duration="0" AnimNum="213" SpellInfo="단거리 공격으로 목표물과 거리가 가까울 때만 사용할 수 있습니다. 이 주문을 외우면 대상은 매우 강력한 대미지를 입고, 특정 물체에 사용하면 불을 붙일 수 있습니다. 불을 이용한 공격으로 공격을 받은 적은 몇 초 동안 계속 대미지를 받습니다. 그리고 대미지를 입는 공안 적과 충돌하면 화염이 폭발합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="13" Spell_Name="투영" Image_Name="Disillusionment" Spell_Type="3" Skill_Type="13" Spell_Cooltime="0.5" Duration="0" AnimNum="260" SpellInfo="주변 환경에 녹아들어 남들이 알봐보기 어렵게 만듭니다. 적들에게 들키지 않고 몰래 접근해, 페트리피쿠스 토탈루스를 시전하려고 할 때 아주 유용합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="14" Spell_Name="루모스" Image_Name="Lumos" Spell_Type="3" Skill_Type="14" Spell_Cooltime="0.5" Duration="0" AnimNum="365" SpellInfo="어두운 곳을 환하게 밝히거나, 퍼즐에서 추가 조명이 필요할 때 사용합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="15" Spell_Name="레파로" Image_Name="Reparo" Spell_Type="3" Skill_Type="15" Spell_Cooltime="0.5" Duration="0" AnimNum="385" SpellInfo="손상된 특정 물체를 이전 상태로 신속하게 되돌릴 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="16" Spell_Name="윙가디움 레비오사" Image_Name="Wingardium_Leviosa" Spell_Type="3" Skill_Type="16" Spell_Cooltime="0.5" Duration="5" AnimNum="273" SpellInfo="이동 가능한 물체를 공중에 띄워 움직입니다. 움직임으로 물체의 위치를 조절하고, F V Q E로 물체의 거리를 조절하거나 회전시킬 수 있습니다. 윙가디움 레비오사는 아씨오로 소환된 물체에 자동으로 시전됩니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="17" Spell_Name="구현 마법" Image_Name="Conjuring_Spell" Spell_Type="4" Skill_Type="17" Spell_Cooltime="0" Duration="0" AnimNum="115" SpellInfo="필요의 방에서 시전하면 물체를 나타나게 할 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="18" Spell_Name="개조 마법" Image_Name="Altering_Spell" Spell_Type="4" Skill_Type="18" Spell_Cooltime="0" Duration="0" AnimNum="349" SpellInfo="필요의 방에서 시전하면 물체의 물리적 형태와 특성을 바꿉니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="19" Spell_Name="에바네스코" Image_Name="Evanesco" Spell_Type="4" Skill_Type="19" Spell_Cooltime="0" Duration="0" AnimNum="136" SpellInfo="필요한 방에서 시전하면 물체를 사라지게 하고 월장석이 반환됩니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="20" Spell_Name="아바다 케다브라" Image_Name="Avada_Kedavra" Spell_Type="5" Skill_Type="20" Spell_Cooltime="90" Duration="0" AnimNum="208" SpellInfo="적을 즉시 처치합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="21" Spell_Name="크루시오" Image_Name="Crucio" Spell_Type="5" Skill_Type="21" Spell_Cooltime="20" Duration="20" AnimNum="216" SpellInfo="시간이 소요되는 대미지를 주기에 대부분의 적이 고통에 몸서리칩니다. 또한 저주를 받은 적은 추가 대미지를 받습니다.." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="22" Spell_Name="임페리오" Image_Name="Imperio" Spell_Type="5" Skill_Type="22" Spell_Cooltime="30" Duration="20" AnimNum="462" SpellInfo="일시적으로 적을 동료처럼 변화시켜 싸우게 합니다. 주문이 걸리 ㄴ동안 동료로 바뀐 적은 다른 적들의 공격을 받았을 때 방어력이 높아지며 당신에게 충성합니다. 한편 적을 저주하면 그 적은 추가로 대미지를 받습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="23" Spell_Name="마법 동물 쓰담기용 빗" Image_Name="Beast_Petting_Brush" Spell_Type="3" Skill_Type="23" Spell_Cooltime="0" Duration="0" AnimNum="327" SpellInfo="적마법 동물들을 빗질할 때 쓰는 빗입니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="24" Spell_Name="마법 동물 먹이" Image_Name="Beast_Feed" Spell_Type="3" Skill_Type="24" Spell_Cooltime="0" Duration="0" AnimNum="378" SpellInfo="마법 동물에게 줄 수 있는 먹이입니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="25" Spell_Name="포획 자루" Image_Name="Nab_Sack" Spell_Type="3" Skill_Type="25" Spell_Cooltime="0" Duration="0" AnimNum="235" SpellInfo="마법 동물을 구출하거나 잡을 수 있는 마법 자루입니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="26" Spell_Name="기본 주문" Image_Name="Basic_cast" Spell_Type="6" Skill_Type="26" Spell_Cooltime="0" Duration="0" AnimNum="308" SpellInfo="적과 사물에게 가벼운 대미지를 줍니다. 시전하려면 을 탭하세요." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="27" Spell_Name="레벨리오" Image_Name="Revelio" Spell_Type="6" Skill_Type="27" Spell_Cooltime="0" Duration="0" AnimNum="227" SpellInfo="숨겨진 물건, 퍼즐 아이템, 전리품, 적 등을 모두 포함해 유용하거나 상호작용할 수 있는 다양한 대상을 강조 표시합니다. 로 시전합니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="28" Spell_Name="프로테고" Image_Name="Protego" Spell_Type="6" Skill_Type="28" Spell_Cooltime="0" Duration="0" AnimNum="285" SpellInfo="주문, 무기 등 여러 가지 공격으로부터 보호합니다. 공격이 닿기 직전까지 기다렸다가 로 시전하면 프로테고를 완벽하게 시전할 수 있습니다. 근접 공격자에게는 대미지를 주고, 공격을 반사시켜 적의 방어력을 부술 수도 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="29" Spell_Name="스투페파이" Image_Name="Stupefy" Spell_Type="6" Skill_Type="29" Spell_Cooltime="0" Duration="0" AnimNum="222" SpellInfo="적을 기절시키고 다음 주문을 걸기 쉬운 상태로 만듭니다. 큰 대미지는 아니지만 기절한 적을 추가 대미지를 받고, 이는 금속 숫자로 표시됩니다. 또한 방어벽 마법도 부술 수 있습니다.(난이도 '어려움' 제외) 다가오는 공격에 프로테고로 성공적인 공격을 방어할 , 을 계속 길게 눌러 원하는 적에게 스투페파이 카운터 공격을 사용하세요" Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="30" Spell_Name="고대 마법 던지기" Image_Name="Ancient_Magic_Throw" Spell_Type="6" Skill_Type="30" Spell_Cooltime="0" Duration="0" AnimNum="89" SpellInfo="목표하는 적에게 주변에 있는 물체를 소환하여 던집니다. 적의 방어벽 마법을 무너뜨리는 데 특히 유용합니다. 물체 위에 표시가 떳을 때 로 시전할 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="31" Spell_Name="고대 마법" Image_Name="Ancient_magic" Spell_Type="6" Skill_Type="31" Spell_Cooltime="0" Duration="0" AnimNum="152" SpellInfo="고대 마법 MP가 한 부분이라도 가득 차 있으면, 엄청난 대미지를 주고 방어벽 마버을 부수는 강력한 고대 마법을 시전할 수 있게 됩니다. 적의 머리 위에 표시가 나타나면 로 시전하세요" Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="32" Spell_Name="알로호모라" Image_Name="Alohomora" Spell_Type="6" Skill_Type="32" Spell_Cooltime="0" Duration="0" AnimNum="394" SpellInfo="마법 세계 전역에 잠겨 있는 다양한 방이나 장소를 열 수 있지만 제대로 시전하기 위해선 마법 실력이 바탕이 되어야 합니다, 자물쇠 근처에서 로 시전할 수 있습니다." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
<Spell Spell_ID="33" Spell_Name="페트리피쿠스 토탈루스" Image_Name="Petrificus_Totalus" Spell_Type="6" Skill_Type="33" Spell_Cooltime="0" Duration="0" AnimNum="275" SpellInfo="대부분의 적을 쓰러뜨릴 만큼 강력한 주문이지만 더 위험한 적들은 약간의 대미지를 입힐 뿐, 빠르게 그 영향에서 벗어날 수 있습니다. 이 주문을들키지 않게 적에게 몰래 접근한 후 를 누르면 시전됩니다.." Spell_Lock="0" Equip_Spell="0" Use_Skill="1"/>
|
||||
</SpellInfo>
|
||||
|
||||
@@ -631,7 +631,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In)
|
||||
vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x;
|
||||
vTexcoord.y = In.vTexcoord.y;
|
||||
|
||||
vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(BorderZeroSampler, vTexcoord);
|
||||
vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
|
||||
}
|
||||
|
||||
Out.vBlurX = vColor;
|
||||
@@ -818,7 +818,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_Y(PS_IN In)
|
||||
vTexcoord.x = In.vTexcoord.x;
|
||||
vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y;
|
||||
|
||||
vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(BorderZeroSampler, vTexcoord);
|
||||
vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
|
||||
}
|
||||
|
||||
Out.vBlurX = vColor;
|
||||
|
||||
@@ -1167,24 +1167,20 @@ PS_OUT PS_Spell_Drag(PS_IN In)
|
||||
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
|
||||
float4 tex2Color = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
|
||||
float tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r;
|
||||
float4 tex2Color = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
Color = tex1;
|
||||
tex2.rgb = tex2Color;
|
||||
tex2Color.a = tex2;
|
||||
Color = lerp(tex1, tex2Color, tex2Color.a);
|
||||
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
|
||||
float2 Imagetexpos1 = g_fImageUV.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageUV.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
|
||||
float4 tex3 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
|
||||
float2 atlasUV = g_fImageUV.xy + In.vTexcoord * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
//float2 center = (g_fImageUV.xy + g_fImageUV.zw) * 0.5f;
|
||||
//float2 uv = atlasUV - center;
|
||||
//uv *= 0.7f;
|
||||
//uv += center;
|
||||
float4 tex3 = g_Texture3.Sample(ClampSampler, atlasUV);
|
||||
|
||||
if (inside1)
|
||||
{
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
}
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
|
||||
Color.a *= Alpha;
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ float g_fAngle;
|
||||
float g_fFar;
|
||||
float g_fTime;
|
||||
|
||||
float4 g_UV;
|
||||
|
||||
struct VS_IN
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -25,16 +27,19 @@ struct VS_IN
|
||||
float2 vSize : TEXCOORD1;
|
||||
float2 vPos : TEXCOORD2;
|
||||
float4 vUV : TEXCOORD3;
|
||||
float4 vColor : TEXCOORD4;
|
||||
float vBaseColor : TEXCOORD4;
|
||||
float bHover : TEXCOORD5;
|
||||
float bSpell : TEXCOORD6;
|
||||
};
|
||||
|
||||
struct VS_OUT
|
||||
{
|
||||
float4 vPosition : SV_POSITION;
|
||||
float2 vTexcoord : TEXCOORD0;
|
||||
float4 vColor : TEXCOORD1;
|
||||
float bHover : TEXCOORD2;
|
||||
float2 vUV : TEXCOORD1;
|
||||
float vBaseColor : TEXCOORD2;
|
||||
float bHover : TEXCOORD3;
|
||||
float bSpell : TEXCOORD4;
|
||||
};
|
||||
|
||||
VS_OUT VS_MAIN(VS_IN In)
|
||||
@@ -55,9 +60,11 @@ VS_OUT VS_MAIN(VS_IN In)
|
||||
float3 vFinalWorldPos = vLocalPos + vParentPos;
|
||||
|
||||
Out.vPosition = mul(float4(vFinalWorldPos, 1.f), matVP);
|
||||
Out.vTexcoord = UV.xy + In.vTexcoord * (UV.zw - UV.xy);
|
||||
Out.vColor = In.vColor;
|
||||
Out.vUV = UV.xy + In.vTexcoord * (UV.zw - UV.xy);
|
||||
Out.vTexcoord = In.vTexcoord;
|
||||
Out.vBaseColor = In.vBaseColor;
|
||||
Out.bHover = In.bHover;
|
||||
Out.bSpell = In.bSpell;
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -65,8 +72,10 @@ struct PS_IN
|
||||
{
|
||||
float4 vPosition : SV_POSITION;
|
||||
float2 vTexcoord : TEXCOORD0;
|
||||
float4 vColor : TEXCOORD1;
|
||||
float bHover : TEXCOORD2;
|
||||
float2 vUV : TEXCOORD1;
|
||||
float vBaseColor : TEXCOORD2;
|
||||
float bHover : TEXCOORD3;
|
||||
float bSpell : TEXCOORD4;
|
||||
};
|
||||
|
||||
struct PS_OUT
|
||||
@@ -113,6 +122,23 @@ PS_OUT PS_Alpha_Blend(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_UVAlpha_Blend(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 color = g_Texture.Sample(ClampSampler, In.vUV);
|
||||
|
||||
if (color.a <= 0.4f)
|
||||
discard;
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Megic_Meter(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
@@ -191,7 +217,7 @@ PS_OUT PS_Eessential_Spell(PS_IN In)
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, In.vUV);
|
||||
|
||||
color = tex1;
|
||||
|
||||
@@ -208,10 +234,35 @@ PS_OUT PS_Color_Image(PS_IN In)
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float3 BGColor = float3(1.f, 1.f, 1.f);
|
||||
switch (In.vBaseColor)
|
||||
{
|
||||
case 0:
|
||||
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
|
||||
break;
|
||||
case 1:
|
||||
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
|
||||
break;
|
||||
case 2:
|
||||
BGColor = float3(190.f, 46., 34.f) / 255.f;
|
||||
break;
|
||||
case 3:
|
||||
BGColor = float3(24.f, 190.f, 255.f) / 255.f;
|
||||
break;
|
||||
case 4:
|
||||
BGColor = float3(200.f, 220.f, 150.f) / 255.f;
|
||||
break;
|
||||
case 5:
|
||||
BGColor = float3(50.f, 150.f, 110.f) / 255.f;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
|
||||
|
||||
color = tex1;
|
||||
color *= In.vColor;
|
||||
color.rgb *= BGColor;
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
@@ -247,10 +298,7 @@ PS_OUT PS_Spell_Hover(PS_IN In)
|
||||
color.rgb = HoverOff;
|
||||
color.a *= 0.5f;
|
||||
}
|
||||
|
||||
|
||||
color *= In.vColor;
|
||||
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
@@ -281,7 +329,7 @@ PS_OUT PS_Spell_Effect(PS_IN In)
|
||||
|
||||
//float2 maskUV = In.vTexcoord;
|
||||
|
||||
//maskUV.x += g_fTime * float2(0.05, 0.02); // 속도 조절 가능
|
||||
//maskUV.x += g_fTime * float2(0.05, 0.02); // ?띾룄 議곗젅 媛??
|
||||
|
||||
//float2 center = float2(0.5, 0.0);
|
||||
//float2 uv = In.vTexcoord - center;
|
||||
@@ -297,14 +345,73 @@ PS_OUT PS_Spell_Effect(PS_IN In)
|
||||
color.a *= tex1;
|
||||
color.a *= mask;
|
||||
color.a *= Alpha;
|
||||
|
||||
color *= In.vColor;
|
||||
|
||||
Out.vColor = color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Spell_Slot(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float2 center = float2(0.5f, 0.5f);
|
||||
float2 uv = In.vTexcoord - center;
|
||||
uv *= sqrt(2.0f);
|
||||
float2 Rotation = In.vTexcoord;
|
||||
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;
|
||||
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
if (In.bSpell != 0)
|
||||
{
|
||||
float3 BGColor = float3(1.f, 1.f, 1.f);
|
||||
switch (In.vBaseColor)
|
||||
{
|
||||
case 0:
|
||||
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
|
||||
break;
|
||||
case 1:
|
||||
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
|
||||
break;
|
||||
case 2:
|
||||
BGColor = float3(190.f, 46., 34.f) / 255.f;
|
||||
break;
|
||||
case 3:
|
||||
BGColor = float3(24.f, 190.f, 255.f) / 255.f;
|
||||
break;
|
||||
case 4:
|
||||
BGColor = float3(200.f, 220.f, 150.f) / 255.f;
|
||||
break;
|
||||
case 5:
|
||||
BGColor = float3(50.f, 150.f, 110.f) / 255.f;
|
||||
break;
|
||||
|
||||
}
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
tex1.rgb *= BGColor;
|
||||
Color = tex1;
|
||||
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vUV);
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, Rotation);
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, Rotation);
|
||||
Color = tex3;
|
||||
}
|
||||
|
||||
Out.vColor = Color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 PosTexTechnique11
|
||||
{
|
||||
pass Default
|
||||
@@ -329,6 +436,17 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_Alpha_Blend();
|
||||
}
|
||||
|
||||
pass UVAlphaBlend
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_UVAlpha_Blend();
|
||||
}
|
||||
|
||||
pass Megic_Meter
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
@@ -405,4 +523,15 @@ technique11 PosTexTechnique11
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Spell_Effect();
|
||||
}
|
||||
|
||||
pass Spell_Slot
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Spell_Slot();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -510,7 +510,7 @@ float4 DrawEffect(PS_IN In)
|
||||
// discard;
|
||||
|
||||
|
||||
fTimeRatio = 1 - pow(1 - fTimeRatio, 3);
|
||||
//fTimeRatio = 1 - pow(1 - fTimeRatio, 3);
|
||||
|
||||
float fFade = smoothstep(fTimeRatio - 0.1f, fTimeRatio + 0.1f, vMtrlDissolve.r);
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 787 B |
Binary file not shown.
@@ -322,6 +322,7 @@
|
||||
<ClInclude Include="..\Public\Monster.h" />
|
||||
<ClInclude Include="..\public\Mouse_Cursor.h" />
|
||||
<ClInclude Include="..\Public\RootModelPart.h" />
|
||||
<ClInclude Include="..\public\UI_Manager.h" />
|
||||
<ClInclude Include="..\Public\Wand.h" />
|
||||
<ClInclude Include="Editor.h" />
|
||||
<ClInclude Include="framework.h" />
|
||||
@@ -491,6 +492,7 @@
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\RootModelPart.cpp" />
|
||||
<ClCompile Include="..\private\UI_Manager.cpp" />
|
||||
<ClCompile Include="..\Private\Wand.cpp" />
|
||||
<ClCompile Include="Editor.cpp" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -475,6 +475,9 @@
|
||||
<Filter Include="04.InfoInstance\02.MapInfo">
|
||||
<UniqueIdentifier>{6b288e75-d33a-4a9d-9cb0-139d3671ad13}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\UI_Manager">
|
||||
<UniqueIdentifier>{fe7d5909-159c-4130-ae5e-e08e648b193c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -927,6 +930,9 @@
|
||||
<ClInclude Include="..\Public\MapInfo.h">
|
||||
<Filter>04.InfoInstance\02.MapInfo</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\UI_Manager.h">
|
||||
<Filter>50.UI\UI_Manager</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -1378,6 +1384,9 @@
|
||||
<ClCompile Include="..\Private\MapInfo.cpp">
|
||||
<Filter>04.InfoInstance\02.MapInfo</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\UI_Manager.cpp">
|
||||
<Filter>50.UI\UI_Manager</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -54,6 +54,8 @@ HRESULT CAction_Panel::Initialize(void* pArg)
|
||||
Magic_Meter_UV();
|
||||
Magic_Meter_Visible(1, true);
|
||||
Magic_Meter_Visible(5, true);
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -86,7 +88,7 @@ void CAction_Panel::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
if (m_bVisible) {
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
|
||||
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
@@ -208,7 +210,7 @@ HRESULT CAction_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Spell_Overlay"), m_pSpell_Overlay);
|
||||
Add_Element(TEXT("Spell_Overlay1"), m_pSpell_Overlay);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSlot_Number>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSlot_Number**>(&m_pSlot_Number))))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
@@ -67,13 +67,14 @@ void CBombard::Update(_float fTimeDelta)
|
||||
pPJTransform->Translation(m_vCameraLook * 2.f);
|
||||
|
||||
|
||||
|
||||
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 2.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
if (true == m_pGameInstance->SphereCast(0.5f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 2.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC, m_Hitbuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CBombard::Late_Update(_float fTimeDelta)
|
||||
@@ -87,9 +88,9 @@ void CBombard::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
HRESULT CBombard::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
@@ -113,6 +114,8 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_pLight_Projectile->Set_Visible(true);
|
||||
|
||||
// 건드린 친구들 순서대로 다 가져옴 ( 정렬은 안되어있음 )
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -160,12 +163,17 @@ CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
|
||||
@@ -48,7 +48,7 @@ HRESULT CBombardSide::Initialize(void* pArg)
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWandParticle);
|
||||
|
||||
m_fDuration = 2.f;
|
||||
m_fDuration = 2.5f;
|
||||
|
||||
m_Events.emplace(0.6f, [&](){
|
||||
m_isParticleEnd = true;
|
||||
@@ -111,9 +111,9 @@ void CBombardSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Pre_Setting(CGameObject* pObject)
|
||||
HRESULT CBombardSide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ HRESULT CCurrent_Slot_Number::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::UVALPHABLEND))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
#include "pch.h"
|
||||
#include "Current_Spell_Slot.h"
|
||||
#include "GameInstance.h"
|
||||
#include "UI_Manager.h"
|
||||
|
||||
CCurrent_Spell_Slot::CCurrent_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CCurrent_Spell_Slot::CCurrent_Spell_Slot(const CCurrent_Spell_Slot& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CCurrent_Spell_Slot::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCurrent_Spell_Slot::Initialize(void* pArg)
|
||||
@@ -47,6 +48,11 @@ HRESULT CCurrent_Spell_Slot::Initialize(void* pArg)
|
||||
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);
|
||||
m_bChangeSlot = false;
|
||||
m_iSpellType = -1;
|
||||
m_iSkill_Index = -1;
|
||||
Clear(-1);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("Slot_Hover"), [this](void* p) {this->Set_SkillType(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -90,6 +96,45 @@ void CCurrent_Spell_Slot::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
Hover();
|
||||
|
||||
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_bClick == false)
|
||||
{
|
||||
m_bClick = true;
|
||||
m_iSkill_Index = Chack_Slot(m_iSlot_Index);
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Current_Hover"), &m_iSkill_Index);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Mouse_Up(DIM_LBUTTON))
|
||||
{
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (m_iSpellType != -1)
|
||||
{
|
||||
Get_Skill(m_iSpellType, m_iSlot_Index);
|
||||
}
|
||||
|
||||
if (m_iSkill_Index != -1)
|
||||
{
|
||||
Get_Skill(m_iSkill_Index, m_iSlot_Index);
|
||||
m_iSkill_Index = -1;
|
||||
}
|
||||
m_bHover = false;
|
||||
m_bClick = false;
|
||||
m_iSkill_Index = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_iSkill_Index = -1;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Current_Hover"), &m_iSkill_Index);
|
||||
}
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -112,7 +157,7 @@ HRESULT CCurrent_Spell_Slot::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::DEFAULT))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::SPELL_SLOT))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -152,6 +197,110 @@ void CCurrent_Spell_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
void CCurrent_Spell_Slot::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_iSlot_Index = m_pVIBufferCom->Set_Mouse_Hover(fMouse);
|
||||
if (m_iSlot_Index != -1)
|
||||
{
|
||||
m_bHover = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bHover = false;
|
||||
m_bClick = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CCurrent_Spell_Slot::Click_Slot(_bool bClick)
|
||||
{
|
||||
if (bClick == true)
|
||||
{
|
||||
m_bClick = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CCurrent_Spell_Slot::Get_Skill(_int SpellIndex, _int SlotIndex)
|
||||
{
|
||||
if (SlotIndex == -1)
|
||||
return;
|
||||
|
||||
if (SpellIndex == -1)
|
||||
return;
|
||||
|
||||
_int iSlotx = 4;
|
||||
|
||||
_int x = SlotIndex % iSlotx;
|
||||
_int y = SlotIndex / iSlotx;
|
||||
|
||||
m_iSpell[y][x] = SpellIndex;
|
||||
m_pVIBufferCom->Set_Equip_Index(SlotIndex);
|
||||
m_vUV.fUV = UV(SpellIndex);
|
||||
m_pVIBufferCom->Set_Index_Color(SlotIndex, static_cast<_float>(static_cast<CUIObject*>(m_pOwner)->Get_Info(SpellIndex).iSpell_Type));
|
||||
m_pVIBufferCom->Set_Index_ImageUV(SlotIndex, m_vUV);
|
||||
//m_pManager->Event_Callback(TEXT("Skill_Change"));
|
||||
}
|
||||
|
||||
_int CCurrent_Spell_Slot::Chack_Slot(_int Index) const
|
||||
{
|
||||
_int iSlotx = 4;
|
||||
|
||||
_int x = Index % iSlotx;
|
||||
_int y = Index / iSlotx;
|
||||
|
||||
return m_iSpell[y][x];
|
||||
}
|
||||
|
||||
void CCurrent_Spell_Slot::Clear(_int iValue)
|
||||
{
|
||||
for (_int i = 0; i < 4; ++i)
|
||||
{
|
||||
for (_int j = 0; j < 4; ++j)
|
||||
{
|
||||
m_iSpell[i][j] = iValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_float4 CCurrent_Spell_Slot::UV(_int SpellID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 1792.f };
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 7;
|
||||
|
||||
_float iImageX = 256.f;
|
||||
_float iImageY = 256.f;
|
||||
|
||||
_uint iframeX = SpellID % iCountX;
|
||||
_uint iframeY = SpellID / 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 CCurrent_Spell_Slot::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
@@ -170,6 +319,14 @@ HRESULT CCurrent_Spell_Slot::Bind_ShaderResources()
|
||||
{
|
||||
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;
|
||||
@@ -200,7 +357,15 @@ HRESULT CCurrent_Spell_Slot::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SpellType_Generic"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Spell"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -208,7 +373,6 @@ HRESULT CCurrent_Spell_Slot::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -243,6 +407,8 @@ void CCurrent_Spell_Slot::Free()
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ HRESULT CDecendo::Initialize(void* pArg)
|
||||
SAFE_ADDREF(m_pProjectile_Blur);
|
||||
SAFE_ADDREF(m_pProjectile);
|
||||
|
||||
m_fDuration = 2.5f;
|
||||
m_fDuration = 3.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -71,18 +71,18 @@ void CDecendo::Update(_float fTimeDelta)
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(m_vCameraLook * 0.5f);
|
||||
|
||||
|
||||
if (m_fAccTime > XM_2PI)
|
||||
if (m_fRotateAccTime > XM_2PI)
|
||||
return;
|
||||
|
||||
m_fAccTime += fTimeDelta * 7.5f;
|
||||
m_fRotateAccTime += fTimeDelta * 7.5f;
|
||||
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime));
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime));
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fRotateAccTime));
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fRotateAccTime));
|
||||
|
||||
|
||||
//TODO : 다시 위치 잡기
|
||||
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 0.5f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
if (true == m_pGameInstance->SphereCast(0.0625, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 2.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC, m_Hitbuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
@@ -101,9 +101,9 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -149,6 +149,7 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
|
||||
m_vRotateUp = XMVector3Normalize(m_vRotateUp);
|
||||
|
||||
m_fRotateAccTime = 0.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -197,14 +198,19 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
|
||||
@@ -99,9 +99,9 @@ void CDecendoSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject)
|
||||
HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -110,6 +110,11 @@ void CEditEffect::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
_vector CEditEffect::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
void CEditEffect::Reference_Mat_For_EditEffect()
|
||||
{
|
||||
|
||||
@@ -417,8 +422,9 @@ void CEditEffect::Describe_Entity()
|
||||
{
|
||||
//여기서 모델, 텍스쳐, 선택할 수 있도록 함
|
||||
|
||||
|
||||
const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" };
|
||||
const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION"};
|
||||
const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION" , "PRESHADOW"};
|
||||
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
|
||||
const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR", "BLEND", "BLEND_NOWORLD", "BLOOM" ,"BLOOM_NOWORLD" ,"BLUR_NO_EMMISVE", "BLUR_NO_WORLD_NO_EMISSIVE","WEIGHTBLEND_FOR_BLEND"};
|
||||
const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY"};
|
||||
|
||||
@@ -91,7 +91,7 @@ void CEessential_Spell_Slot::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
Hover(fTimeDelta);
|
||||
Hover();
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
@@ -156,7 +156,7 @@ void CEessential_Spell_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
void CEessential_Spell_Slot::Hover(_float fTimeDelta)
|
||||
void CEessential_Spell_Slot::Hover()
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
|
||||
@@ -62,6 +62,8 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
(*m_EffectList[ENUM_CLASS(SKILL_TYPE::JAP)].begin())->Describe_Entity();
|
||||
|
||||
}
|
||||
|
||||
void CEffectPool::Update(_float fTimeDelta)
|
||||
@@ -127,95 +129,95 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CBombard* pEffect = nullptr;
|
||||
// CBombard* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CBombard>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CBombard>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CDecendo* pEffect = nullptr;
|
||||
// CDecendo* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CDecendo>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CDecendo>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CProtego* pEffect = nullptr;
|
||||
// CProtego* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CProtego>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CProtego>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CRevelio* pEffect = nullptr;
|
||||
// CRevelio* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRevelio>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CRevelio>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CNomalJapSide* pEffect = nullptr;
|
||||
// CNomalJapSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CNomalJapSide>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CNomalJapSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLevioso* pEffect = nullptr;
|
||||
// CLevioso* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CLevioso>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CLevioso>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBombardSide* pEffect = nullptr;
|
||||
// CBombardSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CBombardSide>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CBombardSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLeviosoSide* pEffect = nullptr;
|
||||
// CLeviosoSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CLeviosoSide>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CLeviosoSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
//if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CDecendoSide* pEffect = nullptr;
|
||||
// CDecendoSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CDecendoSide>(iPrototypeLevel, nullptr);
|
||||
// pEffect = m_pGameInstance->Clone_Prototype<CDecendoSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
// return pEffect; }
|
||||
//))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner)
|
||||
HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg)
|
||||
{
|
||||
if (pOwner == nullptr)
|
||||
return S_OK;
|
||||
@@ -225,7 +227,7 @@ HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner)
|
||||
if (pSkill->Get_Visible() == true)
|
||||
continue;
|
||||
|
||||
pSkill->Pre_Setting(pOwner);
|
||||
pSkill->Pre_Setting(pOwner, pArg);
|
||||
|
||||
m_ActiveEffectList.push_back(pSkill);
|
||||
Safe_AddRef(pSkill);
|
||||
|
||||
@@ -306,7 +306,7 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject)
|
||||
HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
@@ -418,3 +418,53 @@ void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
|
||||
|
||||
}
|
||||
|
||||
_int CEffect_Container::CollisionCheck()
|
||||
{
|
||||
_bool bIsCollide = { false };
|
||||
|
||||
// 건드린 친구들 순서대로 다 가져옴 ( 정렬은 안되어있음 )
|
||||
for (PSX::PxU32 i = 0; i < m_Hitbuffer.nbTouches; ++i)
|
||||
{
|
||||
const PSX::PxSweepHit& Hit = m_Hitbuffer.touches[i];
|
||||
/* 기타 로직 */
|
||||
|
||||
PSX::PxRigidActor* pActor = Hit.actor;
|
||||
PSX::PxShape* pShape = Hit.shape;
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData) {
|
||||
|
||||
PhsXUserData* pUserData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
|
||||
if (pUserData->iSubKind == ENUM_CLASS(PXOBJECT::WALL)) {
|
||||
bIsCollide = true;
|
||||
}
|
||||
|
||||
|
||||
if (pUserData->iSubKind >= UINT_MAX - 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (bIsCollide == true)
|
||||
return i;
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_STATIC:
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
{
|
||||
if (bIsCollide == true)
|
||||
return i;
|
||||
}
|
||||
break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "GameInstance.h"
|
||||
#include "UI_Manager.h"
|
||||
#include "Mission_Panel.h"
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "Loading_Panel.h"
|
||||
@@ -44,11 +45,13 @@ HRESULT CGamePlay_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGamePlay_Canvas::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "State_Land.h"
|
||||
#include "State_Move.h"
|
||||
#include "State_Combat.h"
|
||||
#include "InfoInstance.h"
|
||||
#pragma endregion
|
||||
|
||||
CGoblin::CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -53,6 +54,8 @@ HRESULT CGoblin::Initialize(void* pArg)
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(-10.f, 0.f, -10.f, 1.f));
|
||||
|
||||
CInfoInstance::GetInstance()->Regist_ActiveMonster(this);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -67,7 +70,7 @@ void CGoblin::Update(_float fTimeDelta)
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
//m_pCharacter_Controller->Move(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
@@ -76,7 +79,7 @@ void CGoblin::Late_Update(_float fTimeDelta)
|
||||
__super::Late_Update(fTimeDelta);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
|
||||
|
||||
m_pTransformCom->LookAt(m_pPlayerTransform->Get_State(STATE::POSITION));
|
||||
//m_pTransformCom->LookAt(m_pPlayerTransform->Get_State(STATE::POSITION));
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "pch.h"
|
||||
#include "IMGUIUI.h"
|
||||
#include "UIObject.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "Spell_Canvas.h"
|
||||
#include "UI_Manager.h"
|
||||
#include "CanvasObject.h"
|
||||
#include "PanelObject.h"
|
||||
#include "ElementObject.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
@@ -32,6 +32,38 @@ HRESULT CIMGUIUI::Initialize(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CIMGUIUI::CanvaswstringTostring(vector<wstring>& panelNames)
|
||||
{
|
||||
m_iCanvasNamestring.clear();
|
||||
m_iCanvaslName.clear();
|
||||
m_iCanvasNamewstring.clear();
|
||||
|
||||
m_iCanvasNamewstring = panelNames;
|
||||
|
||||
for (auto& wname : panelNames)
|
||||
{
|
||||
// wstring -> UTF-8 string 변환
|
||||
int size = WideCharToMultiByte(CP_UTF8, 0,
|
||||
wname.c_str(), (int)wname.size(),
|
||||
nullptr, 0, nullptr, nullptr);
|
||||
|
||||
std::string result(size, 0);
|
||||
|
||||
WideCharToMultiByte(CP_UTF8, 0,
|
||||
wname.c_str(), (int)wname.size(),
|
||||
&result[0], size, nullptr, nullptr);
|
||||
|
||||
// 변환된 string 저장
|
||||
m_iCanvasNamestring.push_back(std::move(result));
|
||||
}
|
||||
|
||||
// vector<const char*> 업데이트
|
||||
for (auto& str : m_iCanvasNamestring)
|
||||
m_iCanvaslName.push_back(str.c_str());
|
||||
|
||||
m_iCanvasCount = 999;
|
||||
}
|
||||
|
||||
void CIMGUIUI::PanelwstringTostring(vector<std::wstring>& panelNames)
|
||||
{
|
||||
m_iPanelNamestring.clear();
|
||||
@@ -104,7 +136,6 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
{
|
||||
static const char* SpellTypeNames[] = { "CONTROL","POWER", "DAMAGE","UTILITY", "TRANSFORM", "CURSE", "ESSENTIAL" };
|
||||
int itemCount = sizeof(SpellTypeNames) / sizeof(const char*);
|
||||
static const char* CanvasNames[] = { "GamePlay Canvas", "Spell Canvas" };
|
||||
static int iCanvasIndex = 0;
|
||||
if (m_pCurrent_Canvas != nullptr)
|
||||
{
|
||||
@@ -154,17 +185,20 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
m_fMoveSpeed = static_cast<CElementObject*>(m_pElementObject)->Get_Speed();
|
||||
m_fAngle = static_cast<CElementObject*>(m_pElementObject)->Get_Angle();
|
||||
m_iSpellType = static_cast<CElementObject*>(m_pElementObject)->Get_SkillType();
|
||||
m_iSkillType = static_cast<CElementObject*>(m_pElementObject)->Get_SpellType();
|
||||
m_fCoolTime = static_cast<CElementObject*>(m_pElementObject)->Get_CoolTime();
|
||||
}
|
||||
GUI::Begin("Current_PanelObject_Info");
|
||||
if (m_pCurrent_Canvas != nullptr)
|
||||
GUI::Begin("Current_CanvasObject_Info");
|
||||
if (m_pUI_Manager != nullptr)
|
||||
{
|
||||
if (GUI::Combo("Canvas", &iCanvasIndex, CanvasNames, 2))
|
||||
auto CanvasName = static_cast<CUI_Manager*>(m_pUI_Manager)->Canvas_Name();
|
||||
if (CanvasName != m_iCanvasNamewstring)
|
||||
{
|
||||
if (iCanvasIndex == 0)
|
||||
m_pCurrent_Canvas = m_pGamePlay_Canvas;
|
||||
else
|
||||
m_pCurrent_Canvas = m_pSpell_Canvas;
|
||||
CanvaswstringTostring(CanvasName);
|
||||
}
|
||||
if (GUI::Combo("Canvas", &m_iCanvasCount, m_iCanvaslName.data(), static_cast<_int>(m_iCanvaslName.size())))
|
||||
{
|
||||
m_pCurrent_Canvas = static_cast<CUI_Manager*>(m_pUI_Manager)->Get_Canvas(m_iCanvasNamewstring[m_iCanvasCount]);
|
||||
}
|
||||
}
|
||||
if (m_pCurrent_Canvas != nullptr)
|
||||
@@ -436,6 +470,7 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
static_cast<CElementObject*>(m_pElementObject)->Set_Angle(m_fAngle);
|
||||
}
|
||||
|
||||
GUI::Text("SpellType %d", m_iSkillType);
|
||||
GUI::Text("SkillType %d", m_iSpellType);
|
||||
if (GUI::Combo("SkillType", &m_iSpellType, SpellTypeNames, itemCount))
|
||||
{
|
||||
@@ -467,15 +502,12 @@ HRESULT CIMGUIUI::Bind_ShaderResources()
|
||||
|
||||
HRESULT CIMGUIUI::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGamePlay_Canvas>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CGamePlay_Canvas**>(&m_pGamePlay_Canvas))))
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CUI_Manager>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CUI_Manager**>(&m_pUI_Manager))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Canvas>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Canvas**>(&m_pSpell_Canvas))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "Player.h"
|
||||
#include "EffectPool.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Goblin.h"
|
||||
|
||||
CLevel_EffectViewer::CLevel_EffectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -43,6 +44,9 @@ HRESULT CLevel_EffectViewer::Initialize()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -61,10 +65,16 @@ HRESULT CLevel_EffectViewer::Initialize()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Sky")))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
ZeroMemory(&m_PlaneData, sizeof(m_PlaneData));
|
||||
m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
m_pGameInstance->Add_Editor_Plane(m_PlaneData);
|
||||
|
||||
return S_OK;
|
||||
@@ -138,7 +148,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_PhysX(const _wstring& strLayerTag)
|
||||
CDummy_PhysXBox::PHYSXDUMMY_DESC Desc{};
|
||||
Desc.vPos = { m_pGameInstance->Random_Float(0.f, 30.f), m_pGameInstance->Random_Float(3.f, 33.f), m_pGameInstance->Random_Float(0.f, 30.f) };
|
||||
Desc.vRotRPY = { m_pGameInstance->Random_Float(0.f, XM_2PI), m_pGameInstance->Random_Float(0.f, XM_2PI), m_pGameInstance->Random_Float(0.f, XM_2PI) };
|
||||
Desc.iSubKind = 0;
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::BOX);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_PhysXBox>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
|
||||
return E_FAIL;
|
||||
@@ -149,7 +159,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_PhysX(const _wstring& strLayerTag)
|
||||
CDummy_PhysXWall::PHYSXDUMMY_DESC Desc{};
|
||||
Desc.vPos = { -15.f, 3.f, 15.f };
|
||||
Desc.vRotRPY = { 0.f, m_pGameInstance->Random_Float(0.f, XM_2PI), 0.f };
|
||||
Desc.iSubKind = 23;
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::WALL);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_PhysXWall>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
|
||||
return E_FAIL;
|
||||
@@ -160,7 +170,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_PhysX(const _wstring& strLayerTag)
|
||||
CDummy_PhysXMonster::PHYSXDUMMY_DESC Desc{};
|
||||
Desc.vPos = { 0.f, 150.f, 5.f };
|
||||
Desc.vRotRPY = { 12.f, 0.f, 0.f };
|
||||
Desc.iSubKind = 10;
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_WARRIOR);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_PhysXMonster>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ void CLevioso::Update(_float fTimeDelta)
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
|
||||
|
||||
if (true == m_pGameInstance->SphereCast(0.0f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, m_Hitbuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
@@ -112,10 +112,10 @@ void CLevioso::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
|
||||
HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
@@ -126,6 +126,8 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
|
||||
_vector WandPos = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
CEditEffect* pWandSmoke = Get_PartObject<CEditEffect>("Levioso_Wand0");
|
||||
CEditEffect* pWandLight= Get_PartObject<CEditEffect>("Levioso_Wand_Light");
|
||||
|
||||
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
@@ -134,10 +136,12 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
pWandSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, pPlayer->Get_PartObject<CWand>()->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pPlayer->Get_PartObject<CWand>()->Get_WorldPostion());
|
||||
|
||||
m_pLeviosoPJ_0->Set_Visible(true);
|
||||
m_pTrail_PT_0->Set_Visible(true);
|
||||
pWandSmoke->Set_Visible(true);
|
||||
pWandLight->Set_Visible(true);
|
||||
|
||||
m_pLeviosoTrail->Set_Visible(true);
|
||||
m_pLeviosoTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
@@ -196,7 +200,7 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.block.position.x, m_Hitbuffer.block.position.y, m_Hitbuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
@@ -208,6 +212,15 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_fAccTime = 0.f;
|
||||
m_fDuration = 3.f; //적중하면 지속시간 3초
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return;
|
||||
|
||||
_vector WandPos = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
CEditEffect* pWandLight = Get_PartObject<CEditEffect>("Levioso_Wand_Light");
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pPlayer->Get_PartObject<CWand>()->Get_WorldPostion());
|
||||
//CEditEffect* pLevioso_Hit = Get_PartObject<CEditEffect>("Levioso_Hit");
|
||||
//CEditEffect* pLevioso_Bottom_Wind = Get_PartObject<CEditEffect>("Levioso_Bottom_Wind");
|
||||
//CEditEffect* pLevioso_Rotate0 = Get_PartObject<CEditEffect>("Levioso_Rotate0");
|
||||
|
||||
@@ -88,9 +88,9 @@ void CLeviosoSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject)
|
||||
HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#pragma region UI
|
||||
|
||||
#include "Spell_Data.h"
|
||||
#include "UI_Manager.h"
|
||||
|
||||
#include "GamePlay_Canvas.h"
|
||||
|
||||
@@ -81,6 +82,7 @@
|
||||
#include "Spell_Vidio_Border.h"
|
||||
#include "Spell_Anim.h"
|
||||
#include "Current_Slot_Number.h"
|
||||
#include "Spell_Drag.h"
|
||||
|
||||
#include "IMGUIUI.h"
|
||||
|
||||
@@ -710,6 +712,11 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), 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(ENUM_CLASS(LEVEL::UI), TEXT("Wingardium_Leviosa"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
|
||||
{
|
||||
@@ -827,6 +834,11 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CUI_Manager>(g_iStaticLevel, CUI_Manager::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -986,6 +998,10 @@ HRESULT CLoader::Loading_For_UI()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Drag>(g_iStaticLevel, CSpell_Drag::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CIMGUIUI>(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
@@ -1183,6 +1199,12 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
|
||||
vector<future<pair<_wstring, CModel*>*>> futures = {};
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Goblin_Model")
|
||||
|
||||
));
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_SkyboxModel")
|
||||
@@ -1263,6 +1285,8 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJap>(ENUM_CLASS(LEVEL::EFFECT), CNomalJap::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin>(g_iStaticLevel, CGoblin::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
/* For.Prototype_GameObject_DummySkyBox */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDummySkyBox>(g_iStaticLevel, CDummySkyBox::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
@@ -2007,6 +2031,7 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
TEXT("Desc_Box")
|
||||
));
|
||||
|
||||
|
||||
for (auto& job : futures) {
|
||||
pair<_wstring, CModel*>* pResult = job.get();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) {
|
||||
|
||||
@@ -43,7 +43,6 @@ HRESULT CMagic_Meter::Initialize(void* pArg)
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fMaxGauge = 20.f;
|
||||
m_fCurrentGauge = 10.f;
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,8 @@ HRESULT CMiniMap_Panel::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user