Merge branch 'Develope' into Shader

This commit is contained in:
kimnuri
2025-12-16 12:37:18 +09:00
749 changed files with 11481 additions and 2302 deletions
@@ -63,6 +63,7 @@ Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
int g_iClick;
int g_iColor;
int g_iStep1 = 0;
@@ -1621,6 +1622,128 @@ PS_OUT PS_Quest_Info(PS_IN In)
return Out;
}
PS_OUT PS_Quest_Status(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
if (g_iClick == 0)
{
if (g_iHover == 0)
{
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
tex1.rgb *= float3(60.f, 80.f, 150.f) / 255.f;
Color = tex1;
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
if (inside1)
{
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
float2 safeUV = saturate(atlasUV);
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
Color = lerp(Color, tex2, tex2.a);
}
}
else
{
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
Color = tex1;
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
if (inside1)
{
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
float2 safeUV = saturate(atlasUV);
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
Color = lerp(Color, tex2, tex2.a);
}
}
}
else
{
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
Color = tex1;
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
if (inside1)
{
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
float2 safeUV = saturate(atlasUV);
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
Color = lerp(Color, tex2, tex2.a);
}
float mask = g_Texture2.Sample(DefaultSampler, In.vTexcoord).r;
float3 glowColor = float3(1.0f, 1.0f, 1.0f);
Color.rgb += glowColor * mask * 0.5f;
Color.rgb *= float3(140.f, 140.f, 20.f) / 255.f;
}
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
PS_OUT PS_Broomstick(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 color = float4(1.f, 1.f, 1.f, 1.f);
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;
float2 startUV = g_fImageUV.xy;
float2 endUV = g_fImageUV.zw;
float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV);
tex1.rgb *= 0.4f;
color = tex1;
tex2.rgb *= 0.3f;
color = lerp(color, tex2, tex2.a);
float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
if(inside)
{
float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
color = lerp(color, tex3, tex3.a);
float CoolTime = 0.f + g_fDeltaV;
float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
atlasUV = startUV + texlocal1 * (endUV - startUV);
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
}
color.a *= Alpha;
Out.vColor = color;
return Out;
}
struct VS_IN3D
{
float3 vPosition : POSITION;
@@ -2104,6 +2227,26 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Quest_Info();
}
pass Quest_Status
{
SetRasterizerState(RS_Nocull);
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_Quest_Status();
}
pass Broomstick
{
SetRasterizerState(RS_Nocull);
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_Broomstick();
}
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
@@ -167,6 +167,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Boss_HpBar.h" />
<ClInclude Include="..\Public\CallBack_Troll_HitReport.h" />
<ClInclude Include="..\Public\CameraLockOn.h" />
<ClInclude Include="..\Public\Completed_Panel.h" />
<ClInclude Include="..\Public\Current_Slot_Number.h" />
<ClInclude Include="..\Public\Current_Spell_Slot.h" />
<ClInclude Include="..\Public\Damage_Font.h" />
@@ -182,6 +183,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Goblin_Protego.h" />
<ClInclude Include="..\Public\Goblin_Spector.h" />
<ClInclude Include="..\Public\HpBarBG.h" />
<ClInclude Include="..\Public\InProgress_Panel.h" />
<ClInclude Include="..\Public\InteractiveInfo.h" />
<ClInclude Include="..\Public\Intro_BG.h" />
<ClInclude Include="..\Public\Intro_Image.h" />
@@ -194,6 +196,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Logo_Glow.h" />
<ClInclude Include="..\Public\Logo_Text.h" />
<ClInclude Include="..\Public\Goblin_Attack.h" />
<ClInclude Include="..\Public\Screen_Wind.h" />
<ClInclude Include="..\Public\Mage_Nomal_Attack.h" />
<ClInclude Include="..\Public\MageSide.h" />
<ClInclude Include="..\Public\Mage_Down_Attack.h" />
@@ -203,6 +206,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Box_Splesh.h" />
<ClInclude Include="..\Public\Quest_Border.h" />
<ClInclude Include="..\Public\Quest_Canvas.h" />
<ClInclude Include="..\Public\Quest_Data.h" />
<ClInclude Include="..\Public\Quest_Entry_Line.h" />
<ClInclude Include="..\Public\Quest_Header.h" />
<ClInclude Include="..\Public\Quest_HeaderLine.h" />
@@ -211,6 +215,8 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Quest_Info_Line.h" />
<ClInclude Include="..\Public\Quest_List.h" />
<ClInclude Include="..\Public\Quest_Panel.h" />
<ClInclude Include="..\Public\Quest_Status.h" />
<ClInclude Include="..\Public\Quest_Status_Panel.h" />
<ClInclude Include="..\Public\RaceRing.h" />
<ClInclude Include="..\Public\State_Broom_TurboFly.h" />
<ClInclude Include="..\Public\StunEffect.h" />
@@ -364,6 +370,7 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Broom_States.cpp" />
<ClCompile Include="..\Private\CallBack_Troll_HitReport.cpp" />
<ClCompile Include="..\Private\CameraLockOn.cpp" />
<ClCompile Include="..\Private\Completed_Panel.cpp" />
<ClCompile Include="..\Private\Current_Slot_Number.cpp" />
<ClCompile Include="..\Private\Current_Spell_Slot.cpp" />
<ClCompile Include="..\Private\Damage_Font.cpp" />
@@ -380,6 +387,7 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Goblin_Protego.cpp" />
<ClCompile Include="..\Private\Goblin_Spector.cpp" />
<ClCompile Include="..\Private\HpBarBG.cpp" />
<ClCompile Include="..\Private\InProgress_Panel.cpp" />
<ClCompile Include="..\Private\InteractiveInfo.cpp" />
<ClCompile Include="..\Private\Intro_BG.cpp" />
<ClCompile Include="..\Private\Intro_Image.cpp" />
@@ -391,12 +399,14 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Logo.cpp" />
<ClCompile Include="..\Private\Logo_Glow.cpp" />
<ClCompile Include="..\Private\Logo_Text.cpp" />
<ClCompile Include="..\Private\Screen_Wind.cpp" />
<ClCompile Include="..\private\MapElement_Chest.cpp" />
<ClCompile Include="..\private\MapElement_Chest_Lid.cpp" />
<ClCompile Include="..\Private\NPC_Ollivander.cpp" />
<ClCompile Include="..\private\MapElement_Door.cpp" />
<ClCompile Include="..\Private\Quest_Border.cpp" />
<ClCompile Include="..\Private\Quest_Canvas.cpp" />
<ClCompile Include="..\Private\Quest_Data.cpp" />
<ClCompile Include="..\Private\Quest_Entry_Line.cpp" />
<ClCompile Include="..\Private\Quest_Header.cpp" />
<ClCompile Include="..\Private\Quest_HeaderLine.cpp" />
@@ -405,6 +415,8 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Quest_Info_Line.cpp" />
<ClCompile Include="..\Private\Quest_List.cpp" />
<ClCompile Include="..\Private\Quest_Panel.cpp" />
<ClCompile Include="..\Private\Quest_Status.cpp" />
<ClCompile Include="..\Private\Quest_Status_Panel.cpp" />
<ClCompile Include="..\Private\RaceRing.cpp" />
<ClCompile Include="..\Private\State_Broom_Dismount.cpp" />
<ClCompile Include="..\Private\State_Broom_Fly.cpp" />
@@ -602,7 +602,25 @@
<ClInclude Include="..\Public\RaceRing.h">
<Filter>02.GameObjects\Item\RaceRing</Filter>
</ClInclude>
<ClInclude Include="..\Public\BroomRaceManager.h" />
<ClInclude Include="..\Public\Screen_Wind.h">
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
</ClInclude>
<ClInclude Include="..\Public\BroomRaceManager.h" />
<ClInclude Include="..\Public\Quest_Status_Panel.h">
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel</Filter>
</ClInclude>
<ClInclude Include="..\Public\InProgress_Panel.h">
<Filter>02.GameObjects\UI\Quest_Canvas\InProgress_Panel</Filter>
</ClInclude>
<ClInclude Include="..\Public\Completed_Panel.h">
<Filter>02.GameObjects\UI\Quest_Canvas\Completed_Panel</Filter>
</ClInclude>
<ClInclude Include="..\Public\Quest_Status.h">
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
</ClInclude>
<ClInclude Include="..\Public\Quest_Data.h">
<Filter>04.Mechanic\Quest</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -1264,9 +1282,27 @@
<Filter Include="02.GameObjects\Item\RaceRing">
<UniqueIdentifier>{f00654f0-c372-4289-ab1d-167941076573}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\ScreenFX">
<UniqueIdentifier>{125737f1-56b3-4746-9be2-ea1bcb90c013}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\BroomRaceManager">
<UniqueIdentifier>{9e8bccb6-c491-4f3a-bdb8-5f03f13ad84d}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel">
<UniqueIdentifier>{9060b2e1-d8cb-4259-a17a-f8ee2407d37c}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\UI\Quest_Canvas\InProgress_Panel">
<UniqueIdentifier>{c25a401b-91f1-4e01-8805-51fffef366a6}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\UI\Quest_Canvas\Completed_Panel">
<UniqueIdentifier>{2bd79ab2-fae7-4757-81b3-26231a4496cf}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status">
<UniqueIdentifier>{bffcced5-6951-4db4-9df1-44b33b52ece7}</UniqueIdentifier>
</Filter>
<Filter Include="04.Mechanic\Quest">
<UniqueIdentifier>{fe64513c-fbb3-4577-b424-82d99c9075a3}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -1813,7 +1849,25 @@
<ClCompile Include="..\Private\RaceRing.cpp">
<Filter>02.GameObjects\Item\RaceRing</Filter>
</ClCompile>
<ClCompile Include="..\Private\Screen_Wind.cpp">
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
</ClCompile>
<ClCompile Include="..\Private\BroomRaceManager.cpp" />
<ClCompile Include="..\Private\Quest_Status_Panel.cpp">
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel</Filter>
</ClCompile>
<ClCompile Include="..\Private\InProgress_Panel.cpp">
<Filter>02.GameObjects\UI\Quest_Canvas\InProgress_Panel</Filter>
</ClCompile>
<ClCompile Include="..\Private\Completed_Panel.cpp">
<Filter>02.GameObjects\UI\Quest_Canvas\Completed_Panel</Filter>
</ClCompile>
<ClCompile Include="..\Private\Quest_Status.cpp">
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
</ClCompile>
<ClCompile Include="..\Private\Quest_Data.cpp">
<Filter>04.Mechanic\Quest</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Private\Goblin_States.cpp">
+5 -3
View File
@@ -249,6 +249,8 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
if (m_bHit == false)
return;
dynamic_cast<CPlayer*>(m_pOwner)->Set_SpellHit(true);
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
@@ -270,8 +272,9 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
pWandLight->Set_Visible(false);
pSpread_Circle->Set_Visible(false);
if(m_isFix)
m_pRope_Trail->Get_Component<CTrail>()->Rope_Fix(true);
m_pRope_Trail->Get_Component<CTrail>()->Rope_Fix(true);
m_pRope_Trail->SetDissolve(true);
}
void CAccio::Free()
@@ -293,7 +296,6 @@ void CAccio::Describe_Entity()
GUI::DragFloat("Range", &m_fRange);
GUI::DragFloat("Attenuation", &m_fAttenuation);
GUI::Checkbox("Collision Fix", &m_isFix);
m_pRope_Trail->Describe_Entity();
m_pRope_Trail->Get_Component<CTrail>()->Describe_Entity();
@@ -33,7 +33,7 @@ HRESULT CAction_Panel::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 1150.f;
Desc.fY = 850.f;
Desc.fY = -850.f;
Desc.fSizeX = 1650.f;
Desc.fSizeY = 450.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) };
@@ -180,7 +180,7 @@ void CAction_Panel::Magic_Meter_UV()
for (_uint i = 0; i < 5; ++i)
{
m_vMagic_MeterUV[i].x = 570.f - (55.f * i);
m_vMagic_MeterUV[i].y = 145.f;
m_vMagic_MeterUV[i].y = -145.f;
}
}
@@ -25,7 +25,7 @@ HRESULT CBoss_HpBar::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 0.f;
Desc.fY = 40.f;
Desc.fY = -40.f;
Desc.fSizeX = 218.f;
Desc.fSizeY = 82.f;
+82 -3
View File
@@ -4,6 +4,9 @@
#include "GameInstance.h"
#include "InfoInstance.h"
#include "Unit.h"
#include "PartObject.h"
#include "EffectParts.h"
CBroom::CBroom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CUnit(pDevice, pContext)
{
@@ -31,6 +34,9 @@ HRESULT CBroom::Initialize(void* pArg)
return E_FAIL;
}
Add_FSM();
Set_Anim();
@@ -47,18 +53,28 @@ HRESULT CBroom::Initialize(void* pArg)
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 10.f, 0.f, 1.f));
m_pParentUnit = dynamic_cast<CUnit*>(m_pOwner);
if (m_pParentUnit->IsAI() == false)
{
if (FAILED(Ready_Child())) {
return E_FAIL;
}
}
return S_OK;
}
void CBroom::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CBroom::Update(_float fTimeDelta)
{
__super::Update(fTimeDelta);
Update_CameraCoordinateSystem();
if(!m_pParentUnit->IsAI())
@@ -73,6 +89,15 @@ void CBroom::Update(_float fTimeDelta)
m_bHoverToggle = true;
m_fSpeed = 0.f;
if(m_pWindEffect != nullptr)
{
if(m_pWindEffect->Get_Visible() == true) // 전 프레임에 트루였다면
{
m_pWindEffect->Set_Visible(false);
m_pWindEffect->Get_Effect_Info()->fSoftMask = 1.f;
}
}
m_pFSM->Change_State(FSMSTATE::IDLE);
}
@@ -80,16 +105,51 @@ void CBroom::Update(_float fTimeDelta)
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
/* 윈드 이펙트 */
if (m_bRide == true && m_pWindEffect != nullptr)
{
if (m_fSpeed <= 5.f)
{
m_pWindEffect->Set_Visible(false);
return;
}
m_pWindEffect->Set_Visible(true);
m_pWindEffect->Get_Component<CInstance_Model>()->Set_TimeMult(0.5f + m_fSpeed / 20.f);
m_pWindEffect->Get_Effect_Info()->fSoftMask = 1.f + m_fSpeed / 10.f;
}
}
void CBroom::Late_Update(_float fTimeDelta)
{
__super::Late_Update(fTimeDelta);
if (m_bRide == true && m_pWindEffect != nullptr)
{
CTransform* WindTransform = m_pWindEffect->Get_Component<CTransform>();
_matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix() * XMMatrixRotationAxis(WindTransform->Get_State(STATE::UP) , XMConvertToRadians(180.f));
WindTransform->Set_WorldMatrix(WorldMat);
WindTransform->Set_State(STATE::POSITION, m_pGameInstance->Get_CamXMPosition());
GUI::Begin("Wind");
m_pWindEffect->Get_Component<CInstance_Model>()->Describe_Entity();
GUI::End();
}
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
HRESULT CBroom::Render()
@@ -125,6 +185,23 @@ HRESULT CBroom::Render()
return S_OK;
}
HRESULT CBroom::Ready_Child()
{
CPartObject::PARTOBJECT_DESC PartsDesc{};
PartsDesc.pParentTransform = m_pTransformCom;
if (FAILED(Add_PartObject<CEffectParts>("Wind_Screen", g_iStaticLevel, &m_pWindEffect, &PartsDesc)))
{
return E_FAIL;
}
m_pWindEffect->Load("../Bin/Resources/Data/Effect/ScreenFX/Wind", static_cast<LEVEL>(NEXT_LEVEL));
return S_OK;
}
HRESULT CBroom::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -234,6 +311,8 @@ CGameObject* CBroom::Clone(void* pArg, CGameObject* pOwner)
void CBroom::Free()
{
__super::Free();
SAFE_RELEASE(m_pWindEffect);
}
#ifdef _DEBUG
@@ -42,6 +42,8 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
return E_FAIL;
}
m_bAI = true;
if (FAILED(Ready_Parts())) {
return E_FAIL;
}
@@ -83,7 +85,7 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(m_pContext);
#endif // _DEBUG
m_bAI = true;
m_pBroom->Set_Ride(true);
@@ -312,6 +312,7 @@ HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fDecel;
m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
}
@@ -0,0 +1,202 @@
#include "pch.h"
#include "Completed_Panel.h"
#include "GameInstance.h"
CCompleted_Panel::CCompleted_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
{
}
CCompleted_Panel::CCompleted_Panel(const CCompleted_Panel& rhs)
:CPanelObject(rhs)
{
}
HRESULT CCompleted_Panel::Initialize_Prototype()
{
return S_OK;
}
HRESULT CCompleted_Panel::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 0.f;
Desc.fY = 0.f;
Desc.fSizeX = 1575.f;
Desc.fSizeY = g_iWinSizeY;
if (FAILED(__super::Initialize(&Desc)))
{
return E_FAIL;
}
if (FAILED(Ready_Components(pArg)))
{
return E_FAIL;
}
if (FAILED(Ready_Element(pArg)))
{
return E_FAIL;
}
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.04f;
Visible(false);
ElementAllVisible(true);
return S_OK;
}
void CCompleted_Panel::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
__super::Priority_Update(fTimeDelta);
}
void CCompleted_Panel::Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
__super::Update(fTimeDelta);
}
void CCompleted_Panel::Late_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
if (m_bVisible) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
__super::Late_Update(fTimeDelta);
}
}
HRESULT CCompleted_Panel::Render()
{
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Render())) {
return E_FAIL;
}
return S_OK;
}
_vector CCompleted_Panel::Get_WorldPostion()
{
return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CCompleted_Panel::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CCompleted_Panel::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_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CCompleted_Panel::Ready_Element(void* pArg)
{
return S_OK;
}
CCompleted_Panel* CCompleted_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CCompleted_Panel* pInstance = new CCompleted_Panel(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CCompleted_Panel");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CCompleted_Panel::Clone(void* pArg, CGameObject* pOwner)
{
CCompleted_Panel* pInstance = new CCompleted_Panel(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CCompleted_Panel");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CCompleted_Panel::Free()
{
__super::Free();
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
#ifdef _DEBUG
void CCompleted_Panel::Describe_Entity()
{
}
#endif // _DEBUG
@@ -33,6 +33,8 @@
#include "Barral_Splesh.h"
#include "Goblin_Teleport.h"
#include "Accio.h"
#include "Screen_Wind.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
{
@@ -358,6 +360,16 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_WIND, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CScreen_Wind* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CScreen_Wind>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
return S_OK;
}
@@ -25,7 +25,7 @@ HRESULT CEnemy_HpBar::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 0.f;
Desc.fY = 40.f;
Desc.fY = -40.f;
Desc.fSizeX = 128.f;
Desc.fSizeY = 20.f;
@@ -25,7 +25,7 @@ HRESULT CEnemy_Info::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = -180.f;
Desc.fY = 40.f;
Desc.fY = -40.f;
Desc.fSizeX = 50.f;
Desc.fSizeY = 50.f;
@@ -132,8 +132,8 @@ HRESULT CEnemy_Info::Render()
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pEnemy_Name.c_str(), _float2(m_fFontPos.x + m_fX - m_fFontOffSet, m_fFontPos.y + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_pLevel.c_str(), _float2(m_fFontX + m_fX - m_fFont2OffSet, m_fFontY + m_fY), XMVectorSet(0.f, (120.f / 255.f) * m_fAlpha, 0.f, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pEnemy_Name.c_str(), _float2(m_fFontPos.x + m_fX - m_fFontOffSet, m_fFontPos.y - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_pLevel.c_str(), _float2(m_fFontX + m_fX - m_fFont2OffSet, m_fFontY - m_fY), XMVectorSet(0.f, (120.f / 255.f) * m_fAlpha, 0.f, m_fAlpha));
}
return S_OK;
@@ -218,13 +218,13 @@ void CEnemy_Info::Set_Font_Move(_bool Boss)
if (m_bBoss == true)
{
MoveX(-315.f);
MoveY(50.f);
MoveY(-50.f);
m_fFontPos = _float2(1250, 0.f);
}
else
{
MoveX(-180.f);
MoveY(40.f);
MoveY(-40.f);
m_fFontPos = _float2(1115.f, 0.f);
}
}
@@ -28,7 +28,7 @@ HRESULT CEnemy_Panel::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 960.f;
Desc.fY = 50.f;
Desc.fY = -50.f;
Desc.fSizeX = 960.f;
Desc.fSizeY = 150.f;
+11 -6
View File
@@ -294,18 +294,23 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
case ENUM_CLASS(SKILL_TYPE::JAP):
{
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
return;
}
}
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
break;
}
m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
return;
}
if (!m_pFSM->IsEnable(FSMSTATE::BLINK)) {
m_pFSM->Change_State(FSMSTATE::HIT);
}
+25 -7
View File
@@ -67,6 +67,10 @@ HRESULT CGoblin_Mage::Initialize(void* pArg)
m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, 0.f, -4.f, 1.f));
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, 0.f, -4.f, 1.f));
#if 진우
m_isDebugMode = true;
#endif
return S_OK;
}
@@ -257,6 +261,7 @@ _vector CGoblin_Mage::Get_LockOnPos()
void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
{
if (true == m_bDead) {
return;
}
@@ -267,7 +272,6 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
Check_HitAngle(XMLoadFloat4(&CollisionDesc->vHitDir));
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
auto damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
m_fHitRadius = CMyTools::Get_Direction2D(m_pTransformCom->Get_State(STATE::LOOK), XMLoadFloat4(&CollisionDesc->vHitDir));
@@ -282,23 +286,37 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
case ENUM_CLASS(SKILL_TYPE::JAP):
{
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
return;
}
}
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
break;
}
if (!m_pFSM->IsEnable(FSMSTATE::BLINK)) {
m_pFSM->Change_State(FSMSTATE::HIT);
}
#ifdef _DEBUG
if (m_isDebugMode == true)
return;
#endif
auto damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
return;
}
}
void CGoblin_Mage::OnHit(CGameObject* pOther, CGameObject* pCaller)
@@ -418,6 +418,9 @@ void CGoblin_Mage::Behavior_HitEnter()
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS];
break;
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -427,6 +430,7 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
CTransform* pTransform = m_pTarget->Get_Component<CTransform>();
if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_FWD].first)
{
@@ -437,20 +441,63 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
}
}
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::LEVIOSO))
{
_vector vDir = m_pTransformCom->Get_State(STATE::UP);
vDir = XMVector4Normalize(vDir);
_vector vPos = m_pCharacter_Controller->Get_Position();
m_fAirTime += fTimeDelta;
_vector Force = vDir * fTimeDelta;
if (m_fAirTime < 1.3f) {
m_pCharacter_Controller->Set_Position(vPos + Force);
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
{
_vector vDir = m_pTransformCom->Get_State(STATE::UP);
vDir = XMVector4Normalize(vDir);
_vector vPos = m_pCharacter_Controller->Get_Position();
m_fAirTime += fTimeDelta;
_vector Force = vDir * fTimeDelta;
if (m_fAirTime < 1.3f) {
m_pCharacter_Controller->Set_Position(vPos + Force);
}
else {
m_pCharacter_Controller->Set_Position(vPos);
}
m_pCharacter_Controller->SetGravity(false);
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
{
m_fAirTime = 0.f;
m_pCharacter_Controller->SetGravity(true);
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
else {
m_pCharacter_Controller->Set_Position(vPos);
}
else
{
if (!m_bPos)
{
m_pCharacter_Controller->SetGravity(false);
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
_vector vUp = m_pTransformCom->Get_State(STATE::UP);
vUp = XMVector4Normalize(vUp);
_vector vPos = m_pCharacter_Controller->Get_Position();
_vector Force = vUp * fTimeDelta * 15.f;
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
if (fLength >= 3.5f)
{
m_pCharacter_Controller->Set_Position(
vMonsterPos + vDir * m_fSpeed * fTimeDelta + Force
);
}
else {
m_bPos = true;
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
m_pCharacter_Controller->SetGravity(false);
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
{
@@ -461,19 +508,20 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
}
}
if (m_pModelCom->IsFinishedAnim())
{
m_bLookAt = true;
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
}
return E_FAIL;
}
void CGoblin_Mage::Behavior_HitExit()
{
m_pFSM->Disable_State(FSMSTATE::HIT);
m_bPos = false;
m_bLookAt = true;
}
void CGoblin_Mage::Behavior_DeadEnter()
@@ -741,6 +789,7 @@ void CGoblin_Mage::Set_Anim()
m_Animation[STATEANIM::LAND] = { 376, false };
m_Animation[STATEANIM::HIT_LEVIOSO] = { 381, false };
m_Animation[STATEANIM::INCARCEROUS] = { 382,false };
m_Animation[STATEANIM::STUMBLE_BWD_L] = { 394, false };
m_Animation[STATEANIM::STUMBLE_BWD_R] = { 395, false };
@@ -494,6 +494,9 @@ void CGoblin::Behavior_HitEnter()
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS];
break;
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -503,6 +506,7 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
CTransform* pTransform = m_pTarget->Get_Component<CTransform>();
if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_FWD].first)
{
@@ -513,20 +517,63 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
}
}
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::LEVIOSO))
{
_vector vDir = m_pTransformCom->Get_State(STATE::UP);
vDir = XMVector4Normalize(vDir);
_vector vPos = m_pCharacter_Controller->Get_Position();
m_fAirTime += fTimeDelta;
_vector Force = vDir * fTimeDelta;
if (m_fAirTime < 1.3f) {
m_pCharacter_Controller->Set_Position(vPos + Force);
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
{
_vector vDir = m_pTransformCom->Get_State(STATE::UP);
vDir = XMVector4Normalize(vDir);
_vector vPos = m_pCharacter_Controller->Get_Position();
m_fAirTime += fTimeDelta;
_vector Force = vDir * fTimeDelta;
if (m_fAirTime < 1.3f) {
m_pCharacter_Controller->Set_Position(vPos + Force);
}
else {
m_pCharacter_Controller->Set_Position(vPos);
}
m_pCharacter_Controller->SetGravity(false);
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
{
m_fAirTime = 0.f;
m_pCharacter_Controller->SetGravity(true);
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
else {
m_pCharacter_Controller->Set_Position(vPos);
}
else
{
if (!m_bPos)
{
m_pCharacter_Controller->SetGravity(false);
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
_vector vUp = m_pTransformCom->Get_State(STATE::UP);
vUp = XMVector4Normalize(vUp);
_vector vPos = m_pCharacter_Controller->Get_Position();
_vector Force = vUp * fTimeDelta * 15.f;
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
if (fLength >= 3.5f)
{
m_pCharacter_Controller->Set_Position(
vMonsterPos + vDir * m_fSpeed * fTimeDelta + Force
);
}
else {
m_bPos = true;
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
m_pCharacter_Controller->SetGravity(false);
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
{
@@ -537,10 +584,8 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
}
}
if (m_pModelCom->IsFinishedAnim())
{
m_bLookAt = true;
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
}
@@ -550,6 +595,8 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
void CGoblin::Behavior_HitExit()
{
m_pFSM->Disable_State(FSMSTATE::HIT);
m_bPos = false;
m_bLookAt = true;
}
void CGoblin::Behavior_DeadEnter()
@@ -817,6 +864,7 @@ void CGoblin::Set_Anim()
m_Animation[STATEANIM::LAND] = { 376, false };
m_Animation[STATEANIM::HIT_LEVIOSO] = { 381, false };
m_Animation[STATEANIM::INCARCEROUS] = { 382,false };
m_Animation[STATEANIM::STUMBLE_BWD_L] = { 394, false };
m_Animation[STATEANIM::STUMBLE_BWD_R] = { 395, false };
+1 -1
View File
@@ -24,7 +24,7 @@ HRESULT CHpBarBG::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 600.f;
Desc.fY = 180.f;
Desc.fY = -180.f;
Desc.fSizeX = 144.f;
Desc.fSizeY = 50.f;
@@ -0,0 +1,201 @@
#include "pch.h"
#include "InProgress_Panel.h"
#include "GameInstance.h"
CInProgress_Panel::CInProgress_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
{
}
CInProgress_Panel::CInProgress_Panel(const CInProgress_Panel& rhs)
:CPanelObject(rhs)
{
}
HRESULT CInProgress_Panel::Initialize_Prototype()
{
return S_OK;
}
HRESULT CInProgress_Panel::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 0.f;
Desc.fY = 0.f;
Desc.fSizeX = 1575.f;
Desc.fSizeY = g_iWinSizeY;
if (FAILED(__super::Initialize(&Desc)))
{
return E_FAIL;
}
if (FAILED(Ready_Components(pArg)))
{
return E_FAIL;
}
if (FAILED(Ready_Element(pArg)))
{
return E_FAIL;
}
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.04f;
Visible(false);
ElementAllVisible(true);
return S_OK;
}
void CInProgress_Panel::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
__super::Priority_Update(fTimeDelta);
}
void CInProgress_Panel::Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
__super::Update(fTimeDelta);
}
void CInProgress_Panel::Late_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
if (m_bVisible) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
__super::Late_Update(fTimeDelta);
}
}
HRESULT CInProgress_Panel::Render()
{
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Render())) {
return E_FAIL;
}
return S_OK;
}
_vector CInProgress_Panel::Get_WorldPostion()
{
return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CInProgress_Panel::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CInProgress_Panel::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_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CInProgress_Panel::Ready_Element(void* pArg)
{
return S_OK;
}
CInProgress_Panel* CInProgress_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CInProgress_Panel* pInstance = new CInProgress_Panel(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CInProgress_Panel");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CInProgress_Panel::Clone(void* pArg, CGameObject* pOwner)
{
CInProgress_Panel* pInstance = new CInProgress_Panel(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CInProgress_Panel");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CInProgress_Panel::Free()
{
__super::Free();
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
#ifdef _DEBUG
void CInProgress_Panel::Describe_Entity()
{
}
#endif // _DEBUG
@@ -6,6 +6,7 @@
#include "PlayerInfo.h"
#include "InteractiveInfo.h"
#include "Skill_Data.h"
#include "Quest_Data.h"
#include "Damage_Font.h"
#include "Player.h"
@@ -261,6 +262,11 @@ void CInfoInstance::Event_CallBack(_wstring EventName, void* pArg)
}
}
QUESTINFO CInfoInstance::Get_Quest_Info(_int QuestID)
{
return m_pQuestInfo->Get_Quest(QuestID);
}
HRESULT CInfoInstance::Regist_ActiveInteractive(CMapElement_Interactable* pInteractive)
{
if (nullptr == s_pInstance || nullptr == m_pInteractiveInfo) {
@@ -316,6 +322,10 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
if (nullptr == m_pSkillInfo) {
return E_FAIL;
}
m_pQuestInfo = CQuest_Data::Create(pDevice, pContext);
if (nullptr == m_pQuestInfo) {
return E_FAIL;
}
m_pInteractiveInfo = CInteractiveInfo::Create(pDevice, pContext);
if (nullptr == m_pInteractiveInfo) {
return E_FAIL;
@@ -362,6 +372,7 @@ void CInfoInstance::Release_Information()
SAFE_RELEASE(m_pPlayerInfo);
SAFE_RELEASE(m_pMonsterInfo);
SAFE_RELEASE(m_pSkillInfo);
SAFE_RELEASE(m_pQuestInfo);
SAFE_RELEASE(m_pInteractiveInfo);
SAFE_RELEASE(m_pDevice);
SAFE_RELEASE(m_pContext);
@@ -254,7 +254,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Background = false;
#endif //
#ifdef 진우
isReady_Background = true;
isReady_Background = false;
#endif //
#ifdef 기무리
isReady_Background = true;
@@ -268,7 +268,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
if(false == isReady_Background)
{
/* 테스트용 맵 */
CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
CInfoInstance::GetInstance()->Load_MapObjects("Map1215");
}
else
{
+46 -13
View File
@@ -112,6 +112,12 @@
#include "Quest_Info_Line.h"
#include "Quest_Entry_Line.h"
#include "Quest_Status_Panel.h"
#include "Quest_Status.h"
#include "Completed_Panel.h"
#include "InProgress_Panel.h"
#pragma endregion
#pragma region PHYSX
@@ -161,6 +167,7 @@
#include "Box_Splesh.h"
#include "Chair_Splesh.h"
#include "Barral_Splesh.h"
#include "Screen_Wind.h"
#pragma endregion
@@ -1457,19 +1464,19 @@ HRESULT CLoader::Loading_For_GamePlay()
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc1{};
{
Desc.eType = ACTOR::BOX;
Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ };
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
Desc.fContactOffset = { 0.05f };
Desc.vhalfGeometryInfo = { 1.f, 1.f, 1.f };
Desc.fDensity = 1.f;
Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
Desc.eLockFlag = {};
Desc.vAutoDamping = { 1.f, 1.f };
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
Desc.vLocalTranslation = { 0.f, 0.f, 0.f };
Desc1.eType = ACTOR::BOX;
Desc1.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
Desc1.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE };
Desc1.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
Desc1.vMatInfo = { 0.5f, 0.5f, 0.6f };
Desc1.fContactOffset = { 0.05f };
Desc1.vhalfGeometryInfo = { 1.f, 1.f, 1.f };
Desc1.fDensity = 1.f;
Desc1.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
Desc1.eLockFlag = {};
Desc1.vAutoDamping = { 1.f, 1.f };
Desc1.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
Desc1.vLocalTranslation = { 0.f, 0.f, 0.f };
}
@@ -1715,6 +1722,10 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(NEXT_LEVEL, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CScreen_Wind>(NEXT_LEVEL, CScreen_Wind::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
@@ -2023,6 +2034,28 @@ HRESULT CLoader::Loading_For_GamePlay()
{
return E_FAIL;
}
/* For.Prototype_GameObject_Quest_Status_Panel*/
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status_Panel>(g_iStaticLevel, CQuest_Status_Panel::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
/* For.Prototype_GameObject_Quest_Status*/
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status>(g_iStaticLevel, CQuest_Status::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
/* For.Prototype_GameObject_Completed_Panel*/
if (FAILED(m_pGameInstance->Add_Prototype<CCompleted_Panel>(g_iStaticLevel, CCompleted_Panel::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
/* For.Prototype_GameObject_InProgress_Panel*/
if (FAILED(m_pGameInstance->Add_Prototype<CInProgress_Panel>(g_iStaticLevel, CInProgress_Panel::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
}
/* For.Prototype_GameObject_Damage_Font*/
if (FAILED(m_pGameInstance->Add_Prototype<CDamage_Font>(g_iStaticLevel, CDamage_Font::Create(m_pDevice, m_pContext))))
@@ -22,7 +22,7 @@ HRESULT CLoadingWidget::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 800.f;
Desc.fY = 400.f;
Desc.fY = -400.f;
Desc.fSizeX = 200.f;
Desc.fSizeY = 200.f;
@@ -22,7 +22,7 @@ HRESULT CLoadingWidget_Flame::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = -237.f;
Desc.fY = 90.f;
Desc.fY = -90.f;
Desc.fSizeX = 100.f;
Desc.fSizeY = 100.f;
@@ -24,7 +24,7 @@ HRESULT CLoading_Panel::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 1200.f;
Desc.fY = 900.f;
Desc.fY = -900.f;
Desc.fSizeX = 1515.f;
Desc.fSizeY = 300.f;
@@ -22,7 +22,7 @@ HRESULT CMagic_Icon::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 630.f;
Desc.fY = 125.f;
Desc.fY = -125.f;
Desc.fSizeX = 65.f;
Desc.fSizeY = 65.f;
@@ -22,7 +22,7 @@ HRESULT CMagic_Item::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = -800.f;
Desc.fY = 70.f;
Desc.fY = -70.f;
Desc.fSizeX = 100.f;
Desc.fSizeY = 100.f;
@@ -184,7 +184,7 @@ HRESULT CMagic_Item::Render()
{
return E_FAIL;
}
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
return S_OK;
}
@@ -23,7 +23,7 @@ HRESULT CMagic_Meter::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 190.f;
Desc.fY = 145.f;
Desc.fY = -145.f;
Desc.fSizeX = 70.f;
Desc.fSizeY = 20.f;
@@ -24,7 +24,7 @@ HRESULT CMiniMap_Panel::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 170.f;
Desc.fY = 920.f;
Desc.fY = -920.f;
Desc.fSizeX = 280.f;
Desc.fSizeY = 280.f;
@@ -40,8 +40,8 @@ void CNPC_Ollivander::Late_Update(_float fTimeDelta)
{
m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
//m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
//m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
__super::Late_Update(fTimeDelta);
}
@@ -22,7 +22,7 @@ HRESULT CNoMountIcon::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 120.f;
Desc.fY = -90;
Desc.fY = 90;
Desc.fSizeX = 65.f;
Desc.fSizeY = 65.f;
+10
View File
@@ -61,6 +61,11 @@ HRESULT CPlayer::Initialize(void* pArg)
}
#ifdef _DEBUG
Load_KeyFrame();
#if 진우
m_isDebugMode = true; // 디버그 무적 모드
#endif
#endif // _DEBUG
m_pBroomModel = m_pBroom->Get_Component<CModel>();
@@ -304,6 +309,11 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
}
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
{
#ifdef _DEBUG
if (m_isDebugMode == true)
return;
#endif
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
if (CollisionDesc) {
Check_HitAngle(XMLoadFloat4(&CollisionDesc->vHitDir));
@@ -2616,7 +2616,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::MAPHELP] = { 122,false };
m_Animation[STATEANIM::POTION] = { 115,false }; // 114 포션 // 909 루모스
m_Animation[STATEANIM::ACCIO] = { 417,false };
m_Animation[STATEANIM::ACCIO] = { 759,false };
m_Animation[STATEANIM::DESCENDO] = { 857,false };
m_Animation[STATEANIM::DEPULSO] = { 858,false };
m_Animation[STATEANIM::DIFFINDO] = { 862,false };
+2 -2
View File
@@ -24,7 +24,7 @@ HRESULT CPotion::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 700.f;
Desc.fY = 150.f;
Desc.fY = -150.f;
Desc.fSizeX = 80.f;
Desc.fSizeY = 80.f;
@@ -141,7 +141,7 @@ HRESULT CPotion::Render()
if (FAILED(m_pVIBufferCom->Render())) {
return E_FAIL;
}
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
return S_OK;
}
+9 -9
View File
@@ -65,7 +65,7 @@ void CProtego::Update(_float fTimeDelta)
return;
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
@@ -118,14 +118,14 @@ HRESULT CProtego::Ready_Components(void* pArg)
}
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_PROTEGO);
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor());
}
//{ // DO
// CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
// Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_PROTEGO);
// if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) {
// return E_FAIL;
// }
// m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor());
//}
return S_OK;
}
@@ -21,8 +21,8 @@ HRESULT CQuest_Border::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = -485.f;
Desc.fY = -150.f;
Desc.fX = -475.f;
Desc.fY = 150.f;
Desc.fSizeX = 192.f;
Desc.fSizeY = 192.f;
@@ -41,8 +41,8 @@ HRESULT CQuest_Border::Initialize(void* pArg)
m_fAlphaTime = 5.f;
m_vNine_Slice = _float4(48.f, 148.f, 48.f, 148.f);
m_fSortZ = 0.02f;
m_fFontX = 740.f;
m_fFontY = 500.f;
m_fFontX = -31.5f;
m_fFontY = -50.f;
SizeUpX(500.f);
SizeUpY(500.f);
Visible(true);
@@ -124,7 +124,9 @@ HRESULT CQuest_Border::Render()
return E_FAIL;
}
//m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("전 체")) - 22) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("전 체"), _float2((m_fFontX - m_fX) - OffSet, m_fFontY + m_fY));
return S_OK;
}
+117 -8
View File
@@ -3,30 +3,33 @@
#include "Quest_Canvas.h"
#include "GameInstance.h"
#include "Quest_Panel.h"
#include "Quest_Status_Panel.h"
#include "Completed_Panel.h"
#include "InProgress_Panel.h"
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CCanvasObject(pDevice, pContext)
:CCanvasObject(pDevice, pContext)
{
}
CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
:CCanvasObject(rhs)
:CCanvasObject(rhs)
{
}
HRESULT CQuest_Canvas::Initialize_Prototype()
{
return S_OK;
return S_OK;
}
HRESULT CQuest_Canvas::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 0.f;
Desc.fY = 0.f;
Desc.fSizeX = 1920.f;
Desc.fSizeY = 1080.f;
Desc.fX = 960.f;
Desc.fY = 540.f;
Desc.fSizeX = g_iWinSizeX;
Desc.fSizeY = g_iWinSizeY;
if (FAILED(__super::Initialize(&Desc)))
{
@@ -40,7 +43,13 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
{
return E_FAIL;
}
m_fAlpha = 1.f;
m_fOwnerAlpha = 1.f;
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.05f;
Visible(false);
m_iIndex = -1;
Add_Function(TEXT("QuestPanelUpdate"), [this](void* p) {this->Update_Panel(*reinterpret_cast<_int*>(p)); });
return S_OK;
}
@@ -57,12 +66,27 @@ void CQuest_Canvas::Update(_float fTimeDelta)
void CQuest_Canvas::Late_Update(_float fTimeDelta)
{
if (m_bVisible) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
}
__super::Late_Update(fTimeDelta);
}
HRESULT CQuest_Canvas::Render()
{
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Render())) {
return E_FAIL;
}
return S_OK;
}
@@ -73,12 +97,54 @@ _vector CQuest_Canvas::Get_WorldPostion()
HRESULT CQuest_Canvas::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CQuest_Canvas::Ready_Components(void* pArg)
{
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom))) {
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
}
@@ -92,6 +158,25 @@ HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
return E_FAIL;
}
Add_Panel(TEXT("Quest_Panel"), m_pQuest_Panel);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCompleted_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CCompleted_Panel**>(&m_pCompleted_Panel))))
{
return E_FAIL;
}
Add_Panel(TEXT("Completed_Panel"), m_pCompleted_Panel);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInProgress_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CInProgress_Panel**>(&m_pInProgress_Panel))))
{
return E_FAIL;
}
Add_Panel(TEXT("InProgress_Panel"), m_pInProgress_Panel);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CQuest_Status_Panel**>(&m_pQuest_Status_Panel))))
{
return E_FAIL;
}
Add_Panel(TEXT("Quest_Status_Panel"), m_pQuest_Status_Panel);
return S_OK;
}
@@ -99,6 +184,28 @@ void CQuest_Canvas::Clear_Penel()
{
}
void CQuest_Canvas::Update_Panel(_int Index)
{
if (m_iIndex == Index)
return;
m_iIndex = Index;
for (_int i = 0; i < 3; ++i)
{
if (i == Index)
{
m_bClick[i] = true;
}
else
{
m_bClick[i] = false;
}
}
static_cast<CPanelObject*>(m_pQuest_Panel)->Visible(m_bClick[0]);
static_cast<CPanelObject*>(m_pCompleted_Panel)->Visible(m_bClick[1]);
static_cast<CPanelObject*>(m_pInProgress_Panel)->Visible(m_bClick[2]);
}
CQuest_Canvas* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Canvas* pInstance = new CQuest_Canvas(pDevice, pContext);
@@ -129,6 +236,8 @@ void CQuest_Canvas::Free()
{
__super::Free();
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
@@ -0,0 +1,119 @@
#include "pch.h"
#include "Quest_Data.h"
#include "GameObject.h"
#include "UIObject.h"
#include "tinyxml2.h"
#include "InfoInstance.h"
CQuest_Data::CQuest_Data()
: m_pInfoInstance(CInfoInstance::GetInstance()) {
}
HRESULT CQuest_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
return S_OK;
}
void CQuest_Data::Update(_float fTimeDelta)
{
Load_QuestInfo("../Bin/Resources/Data/Quest/QuestData.xml");
}
HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
{
tinyxml2::XMLDocument doc;
tinyxml2::XMLError Error = doc.LoadFile(pFilePath);
if (Error != tinyxml2::XML_SUCCESS)
return E_FAIL;
tinyxml2::XMLElement* pQuestInfo = doc.FirstChildElement("QuestInfo");
if (!pQuestInfo)
return E_FAIL;
tinyxml2::XMLElement* pQuestData = pQuestInfo->FirstChildElement("QuestData");
if (!pQuestData)
return E_FAIL;
tinyxml2::XMLElement* pQuest = pQuestData->FirstChildElement("Quest");
while (pQuest)
{
QUESTINFO quest{};
pQuest->QueryIntAttribute("QuestID", &quest.iQuestID);
pQuest->QueryIntAttribute("QuestType", &quest.iType);
quest.pQuestName = CMyTools::ToWstring(pQuest->Attribute("QuestName"));
quest.pQuestInfo = CMyTools::ToWstring(pQuest->Attribute("QuestInfo"));
tinyxml2::XMLElement* pObjectives = pQuest->FirstChildElement("Objectives");
if (pObjectives)
{
tinyxml2::XMLElement* pObjective = pObjectives->FirstChildElement("Objective");
while (pObjective)
{
OBJECTIVEINFO obj{};
pObjective->QueryIntAttribute("Objective", &obj.iObjectType);
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
quest.ObjectiveInfo.push_back(obj);
pObjective = pObjective->NextSiblingElement("Objective");
}
}
tinyxml2::XMLElement* pRewards = pQuest->FirstChildElement("Rewards");
if (pRewards)
{
tinyxml2::XMLElement* pReward = pRewards->FirstChildElement("Reward");
while (pReward)
{
REWARDSINFO reward{};
pReward->QueryIntAttribute("RequiredCount", &reward.iRewardType);
pReward->QueryIntAttribute("CurrentCount", &reward.iRewardID);
quest.RewardsInfo.push_back(reward);
pReward = pReward->NextSiblingElement("Reward");
}
}
m_iQuest_Count++;
QuestInfos.push_back(quest);
pQuest = pQuest->NextSiblingElement("Quest");
}
return S_OK;
}
QUESTINFO CQuest_Data::Get_Quest(_int QuestID)
{
return QuestInfos[QuestID];
}
_int CQuest_Data::Get_Count()
{
return m_iQuest_Count;
}
CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Data* pInstance = new CQuest_Data();
if (FAILED(pInstance->Initialize(pDevice, pContext)))
{
MSG_BOX("Failed to Created : CQuest_Data");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CQuest_Data::Free()
{
__super::Free();
}
@@ -22,7 +22,7 @@ HRESULT CQuest_Entry_Line::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 330.f;
Desc.fY = -230.f;
Desc.fY = 230.f;
Desc.fSizeX = 256.f;
Desc.fSizeY = 64.f;
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
@@ -44,7 +44,8 @@ HRESULT CQuest_Entry_Line::Initialize(void* pArg)
m_fFontY = 520.f;
SizeUpX(800.f);
SizeUpY(15.f);
Visible(true);
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
Visible(false);
return S_OK;
}
@@ -121,7 +122,7 @@ HRESULT CQuest_Entry_Line::Render()
}
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상") - 22) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
return S_OK;
}
@@ -207,6 +208,19 @@ HRESULT CQuest_Entry_Line::Ready_Components(void* pArg)
return S_OK;
}
void CQuest_Entry_Line::Set_Hover(_int Index)
{
m_iQuest_Index = Index;
if (m_iQuest_Index == -1)
{
Visible(false);
}
else
{
Visible(true);
}
}
CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Entry_Line* pInstance = new CQuest_Entry_Line(pDevice, pContext);
@@ -21,8 +21,8 @@ HRESULT CQuest_Header::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = -485.f;
Desc.fY = -352.f;
Desc.fX = -475.f;
Desc.fY = 352.f;
Desc.fSizeX = 128.f;
Desc.fSizeY = 32.f;
@@ -125,7 +125,7 @@ HRESULT CQuest_Header::Render()
}
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
return S_OK;
}
@@ -3,26 +3,26 @@
#include "GameInstance.h"
CQuest_HeaderLine::CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
:CElementObject(pDevice, pContext)
{
}
CQuest_HeaderLine::CQuest_HeaderLine(const CQuest_HeaderLine& rhs)
:CElementObject(rhs)
:CElementObject(rhs)
{
}
HRESULT CQuest_HeaderLine::Initialize_Prototype()
{
return S_OK;
return S_OK;
}
HRESULT CQuest_HeaderLine::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = -485.f;
Desc.fY = -310.f;
Desc.fX = -475.f;
Desc.fY = 310.f;
Desc.fSizeX = 480.f;
Desc.fSizeY = 10.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) };
+10 -14
View File
@@ -22,7 +22,7 @@ HRESULT CQuest_Info::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 325.f;
Desc.fY = -250.f;
Desc.fY = 250.f;
Desc.fSizeX = 128.f;
Desc.fSizeY = 128.f;
@@ -49,6 +49,7 @@ HRESULT CQuest_Info::Initialize(void* pArg)
m_fFontY = 500.f;
m_iPerQuestIndex = -1;
Visible(true);
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
return S_OK;
}
@@ -96,7 +97,6 @@ void CQuest_Info::Update(_float fTimeDelta)
}
}
m_fTime += fTimeDelta * m_fTimeMult;
Hover();
m_pRect.left = long(m_fX - m_vScale.x * 0.5f);
m_pRect.top = long(m_fY - m_vScale.y * 0.5f);
m_pRect.right = long(m_fX + m_vScale.x * 0.5f);
@@ -218,21 +218,17 @@ HRESULT CQuest_Info::Ready_Components(void* pArg)
return S_OK;
}
void CQuest_Info::Hover()
void CQuest_Info::Set_Hover(_int Index)
{
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);
if (fMouse.x >= m_pRect.left && fMouse.x <= m_pRect.right &&
fMouse.y >= m_pRect.top && fMouse.y <= m_pRect.bottom)
m_iQuest_Index = Index;
if (m_iQuest_Index == -1)
{
_int a = 0;
Visible(false);
}
else
{
Visible(true);
}
}
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -22,7 +22,7 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 345.f;
Desc.fY = -350.f;
Desc.fY = 350.f;
Desc.fSizeX = 128.f;
Desc.fSizeY = 32.f;
@@ -46,7 +46,8 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
m_iColor = 2;
SizeUpX(1105.f);
SizeUpY(60.f);
Visible(true);
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
Visible(false);
return S_OK;
}
@@ -127,7 +128,7 @@ HRESULT CQuest_Info_Header::Render()
}
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
return S_OK;
}
@@ -211,6 +212,19 @@ HRESULT CQuest_Info_Header::Ready_Components(void* pArg)
return S_OK;
}
void CQuest_Info_Header::Set_Hover(_int Index)
{
m_iQuest_Index = Index;
if (m_iQuest_Index == -1)
{
Visible(false);
}
else
{
Visible(true);
}
}
CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext);
@@ -0,0 +1,53 @@
#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 CQuest_Info_Header final : public CElementObject
{
private:
CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CQuest_Info_Header(const CQuest_Info_Header& rhs);
virtual ~CQuest_Info_Header() = default;
public:
virtual void Priority_Update(_float fTimeDelta);
virtual void Update(_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta);
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
public:
void Set_Hover(_int Index);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
_int m_iColor = true;
_int m_iQuest_Index{};
public:
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -3,18 +3,18 @@
#include "GameInstance.h"
CQuest_Info_Line::CQuest_Info_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
:CElementObject(pDevice, pContext)
{
}
CQuest_Info_Line::CQuest_Info_Line(const CQuest_Info_Line& rhs)
:CElementObject(rhs)
:CElementObject(rhs)
{
}
HRESULT CQuest_Info_Line::Initialize_Prototype()
{
return S_OK;
return S_OK;
}
HRESULT CQuest_Info_Line::Initialize(void* pArg)
@@ -22,7 +22,7 @@ HRESULT CQuest_Info_Line::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 323.f;
Desc.fY = -315.f;
Desc.fY = 315.f;
Desc.fSizeX = 256.f;
Desc.fSizeY = 64.f;
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
@@ -42,7 +42,8 @@ HRESULT CQuest_Info_Line::Initialize(void* pArg)
m_vNine_Slice = _float4(11.f, 245.f, 0.f, 64.f);
SizeUpX(934.f);
SizeUpY(15.f);
Visible(true);
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
Visible(false);
return S_OK;
}
@@ -201,6 +202,19 @@ HRESULT CQuest_Info_Line::Ready_Components(void* pArg)
return S_OK;
}
void CQuest_Info_Line::Set_Hover(_int Index)
{
m_iQuest_Index = Index;
if (m_iQuest_Index == -1)
{
Visible(false);
}
else
{
Visible(true);
}
}
CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Info_Line* pInstance = new CQuest_Info_Line(pDevice, pContext);
+58 -4
View File
@@ -1,6 +1,7 @@
#include "pch.h"
#include "Quest_List.h"
#include "GameInstance.h"
#include "InfoInstance.h"
CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
@@ -8,7 +9,8 @@ CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
}
CQuest_List::CQuest_List(const CQuest_List& rhs)
:CElementObject(rhs)
:CElementObject(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -21,8 +23,8 @@ HRESULT CQuest_List::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = -485.f;
Desc.fY = 150.f;
Desc.fX = -475.f;
Desc.fY = -150.f;
Desc.fSizeX = 256.f;
Desc.fSizeY = 64.f;
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
@@ -87,6 +89,28 @@ void CQuest_List::Update(_float fTimeDelta)
}
}
Hover();
if (m_bHover == true)
{
m_fSizeX = 505.f;
m_fSizeY = 90.f;
m_fFontX = 765.f;
m_fFontY = 520.f;
m_pFontSize = TEXT("Font_size21");
m_pQuest_ID = 0;
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
}
else
{
m_fSizeX = 495.f;
m_fSizeY = 80.f;
m_fFontX = 770.f;
m_fFontY = 520.f;
m_pFontSize = TEXT("Font_size20");
m_pQuest_ID = -1;
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
}
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -118,6 +142,8 @@ HRESULT CQuest_List::Render()
return E_FAIL;
}
m_pGameInstance->Render_Text(m_pFontSize, m_pQuest_Name.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
return S_OK;
}
@@ -163,7 +189,7 @@ HRESULT CQuest_List::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
{
return E_FAIL;
}
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
{
return E_FAIL;
@@ -201,6 +227,34 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
return S_OK;
}
void CQuest_List::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));
POINT pt{};
pt.x = _long(fMouse.x);
pt.y = _long(fMouse.y);
if (PtInRect(&m_pRect, pt))
{
m_bHover = true;
}
else
{
m_bHover = false;
}
}
void CQuest_List::Set_Name(_wstring Name, _int ID)
{
m_pQuest_Name = Name;
m_pQuest_ID = ID;
}
CQuest_List* CQuest_List::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_List* pInstance = new CQuest_List(pDevice, pContext);
+8 -67
View File
@@ -11,27 +11,27 @@
#include "Quest_Entry_Line.h"
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
:CPanelObject(pDevice, pContext)
{
}
CQuest_Panel::CQuest_Panel(const CQuest_Panel& rhs)
:CPanelObject(rhs)
:CPanelObject(rhs)
{
}
HRESULT CQuest_Panel::Initialize_Prototype()
{
return S_OK;
return S_OK;
}
HRESULT CQuest_Panel::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 960.f;
Desc.fY = 540.f;
Desc.fSizeX = g_iWinSizeX;
Desc.fX = 0.f;
Desc.fY = 0.f;
Desc.fSizeX = 1575.f;
Desc.fSizeY = g_iWinSizeY;
if (FAILED(__super::Initialize(&Desc)))
@@ -47,7 +47,7 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
return E_FAIL;
}
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.05f;
m_fSortZ = 0.04f;
m_iSpellType = -1;
m_fDelayTime = 1.f;
Visible(true);
@@ -88,18 +88,6 @@ void CQuest_Panel::Late_Update(_float fTimeDelta)
HRESULT CQuest_Panel::Render()
{
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Render())) {
return E_FAIL;
}
return S_OK;
}
@@ -111,56 +99,11 @@ _vector CQuest_Panel::Get_WorldPostion()
HRESULT CQuest_Panel::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CQuest_Panel::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_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
}
return S_OK;
}
@@ -214,7 +157,7 @@ HRESULT CQuest_Panel::Ready_Element(void* pArg)
}
Add_Element(TEXT("Quest_Entry_Line"), m_pQuest_Entry_Line);
return S_OK;
return S_OK;
}
CQuest_Panel* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -247,8 +190,6 @@ void CQuest_Panel::Free()
{
__super::Free();
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
@@ -0,0 +1,366 @@
#include "pch.h"
#include "Quest_Status.h"
#include "GameInstance.h"
CQuest_Status::CQuest_Status(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
{
}
CQuest_Status::CQuest_Status(const CQuest_Status& rhs)
:CElementObject(rhs)
{
}
HRESULT CQuest_Status::Initialize_Prototype()
{
return S_OK;
}
HRESULT CQuest_Status::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 0.f;
Desc.fY = 180.f;
Desc.fSizeX = 128.f;
Desc.fSizeY = 128.f;
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
if (FAILED(__super::Initialize(&Desc)))
{
return E_FAIL;
}
if (FAILED(Ready_Components(pArg)))
{
return E_FAIL;
}
m_fAlpha = 1.f;
m_fTimeMult = 3.f;
m_fAlphaTime = 1.f;
Compute_UI(0);
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
m_fFontX = 80.f;
m_fFontY = 480.f;
Visible(true);
return S_OK;
}
void CQuest_Status::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
__super::Priority_Update(fTimeDelta);
}
void CQuest_Status::Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
if (m_bFadeIn == true)
{
if (m_fAlpha <= 1.f)
m_fAlpha += fTimeDelta * m_fAlphaTime;
if (m_fAlpha >= 1.f)
{
m_bFadeIn = false;
m_fAlpha = 1.f;
}
}
if (m_bFadeOut == true)
{
if (m_fAlpha >= 0.f)
m_fAlpha -= fTimeDelta;
if (m_fAlpha <= 0.f)
{
m_bFadeOut = false;
m_fAlpha = 0.f;
}
}
Hover();
if (m_bHover == true)
{
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
{
m_bClick = true;
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Click"), &m_iIndex);
}
}
if (m_bClick == true)
{
m_fSizeX = 148.f;
m_fSizeY = 148.f;
m_vImageposi = _float4{ 42.f, 42.f, 64.f, 64.f };
}
else
{
m_fSizeX = m_fOrigin_Size.x;
m_fSizeY = m_fOrigin_Size.y;
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
m_bClick = false;
}
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
void CQuest_Status::Late_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
if (m_bVisible)
{
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
}
__super::Late_Update(fTimeDelta);
}
HRESULT CQuest_Status::Render()
{
if (FAILED(Bind_ShaderResources()))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_STATUS))))
{
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources()))
{
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Render()))
{
return E_FAIL;
}
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pName.c_str()) - 30) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pName.c_str(), _float2((m_fFontX - m_fX) - OffSet, m_fFontY - m_fY));
return S_OK;
}
_vector CQuest_Status::Get_WorldPostion()
{
return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CQuest_Status::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
{
return E_FAIL;
}
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
{
return E_FAIL;
}
if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
{
return E_FAIL;
}
if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_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_fImageSipos1", &m_vImageposi, sizeof(_float4))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_bool))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_iClick", &m_bClick, sizeof(_bool))))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CQuest_Status::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_Buttom_Slot"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Atlas"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMiniGame_ButtonRing"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
}
return S_OK;
}
void CQuest_Status::Compute_UI(_int Index)
{
_float2 fImage_Size = { 192.f, 64.f };
_uint iCountX = 3;
_uint iCountY = 1;
_float iImageX = 64.f;
_float iImageY = 64.f;
_uint iframeX = Index % iCountX;
_uint iframeY = Index / 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 CQuest_Status::Set_Status(_int Index, _float m_fPosY, _wstring Text)
{
m_iIndex = Index;
Compute_UI(Index);
MoveY(m_fPosY);
m_pName = Text;
}
void CQuest_Status::Set_Click(_bool bClick)
{
m_bClick = bClick;
}
void CQuest_Status::Hover()
{
POINT ptMouse{};
GetCursorPos(&ptMouse);
ScreenToClient(g_hWnd, &ptMouse);
// 2. UI 중심 기준으로 변환 (현재 구조 유지)
_float2 fMouse;
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
// 3. 이미지 중심 좌표
_float2 center;
center.x = m_fX + m_pOwner->Get_WorldPostion().m128_f32[0];
center.y = m_fY + m_pOwner->Get_WorldPostion().m128_f32[1];
// 4. 반지름 계산 (원형이면 가로 기준)
float radius = m_fSizeX * 0.4f;
// 5. 거리 제곱 계산
float dx = fMouse.x - center.x;
float dy = fMouse.y - center.y;
float distSq = dx * dx + dy * dy;
// 6. 원 안 체크
if (distSq <= radius * radius)
{
m_bHover = true;
}
else
{
m_bHover = false;
}
}
CQuest_Status* CQuest_Status::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Status* pInstance = new CQuest_Status(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CQuest_Status");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CQuest_Status::Clone(void* pArg, CGameObject* pOwner)
{
CQuest_Status* pInstance = new CQuest_Status(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CQuest_Status");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CQuest_Status::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);
}
#ifdef _DEBUG
void CQuest_Status::Describe_Entity()
{
}
#endif // _DEBUG
@@ -0,0 +1,197 @@
#include "pch.h"
#include "Quest_Status_Panel.h"
#include "GameInstance.h"
#include "Quest_Status.h"
CQuest_Status_Panel::CQuest_Status_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
{
}
CQuest_Status_Panel::CQuest_Status_Panel(const CQuest_Status_Panel& rhs)
:CPanelObject(rhs)
{
}
HRESULT CQuest_Status_Panel::Initialize_Prototype()
{
return S_OK;
}
HRESULT CQuest_Status_Panel::Initialize(void* pArg)
{
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = -860.f;
Desc.fY = 120.f;
Desc.fSizeX = 175.f;
Desc.fSizeY = 680.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;
}
if (FAILED(Ready_Element(pArg)))
{
return E_FAIL;
}
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.04f;
Visible(true);
Set_Status();
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
return S_OK;
}
void CQuest_Status_Panel::Set_Status()
{
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Status(0, 180.f, TEXT("전 체"));
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Status(1, 0.f, TEXT("진행중"));
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Status(2, -180.f, TEXT("완 료"));
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Click(true);
m_bClick[0] = true;
m_bClick[1] = false;
m_bClick[2] = false;
}
void CQuest_Status_Panel::Slot_Hover(_int Index)
{
for (_int i = 0; i < 3; ++i)
{
if (i == Index)
{
m_bClick[i] = true;
}
else
{
m_bClick[i] = false;
}
}
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Click(m_bClick[0]);
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Click(m_bClick[1]);
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Click(m_bClick[2]);
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestPanelUpdate"), &Index);
}
void CQuest_Status_Panel::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
__super::Priority_Update(fTimeDelta);
}
void CQuest_Status_Panel::Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
__super::Update(fTimeDelta);
}
void CQuest_Status_Panel::Late_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
{
return;
}
if (m_bVisible) {
__super::Late_Update(fTimeDelta);
}
}
HRESULT CQuest_Status_Panel::Render()
{
return S_OK;
}
_vector CQuest_Status_Panel::Get_WorldPostion()
{
return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CQuest_Status_Panel::Bind_ShaderResources()
{
return S_OK;
}
HRESULT CQuest_Status_Panel::Ready_Components(void* pArg)
{
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
{
return E_FAIL;
}
return S_OK;
}
HRESULT CQuest_Status_Panel::Ready_Element(void* pArg)
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status1))))
{
return E_FAIL;
}
Add_Element(TEXT("Quest_Status1"), m_pQuest_Status1);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status2))))
{
return E_FAIL;
}
Add_Element(TEXT("Quest_Status2"), m_pQuest_Status2);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status3))))
{
return E_FAIL;
}
Add_Element(TEXT("Quest_Status3"), m_pQuest_Status3);
return S_OK;
}
CQuest_Status_Panel* CQuest_Status_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Status_Panel* pInstance = new CQuest_Status_Panel(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CQuest_Status_Panel");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CQuest_Status_Panel::Clone(void* pArg, CGameObject* pOwner)
{
CQuest_Status_Panel* pInstance = new CQuest_Status_Panel(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CQuest_Status_Panel");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CQuest_Status_Panel::Free()
{
__super::Free();
SAFE_RELEASE(m_pVIBufferCom);
}
#ifdef _DEBUG
void CQuest_Status_Panel::Describe_Entity()
{
}
#endif // _DEBUG
@@ -0,0 +1,159 @@
#include "pch.h"
#include "Screen_Wind.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
CScreen_Wind::CScreen_Wind(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CScreen_Wind::CScreen_Wind(const CScreen_Wind& rhs)
: CEffect_Container(rhs)
{
}
HRESULT CScreen_Wind::Initialize_Prototype()
{
return S_OK;
}
HRESULT CScreen_Wind::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
if (FAILED(Ready_Child()))
return E_FAIL;
m_wstrEffectName = L"Screen_Wind";
return S_OK;
}
void CScreen_Wind::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CScreen_Wind::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CScreen_Wind::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CScreen_Wind::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject)))
return E_FAIL;
m_isLoop = true;
m_pWindEffect->Set_Visible(true);
return S_OK;
}
HRESULT CScreen_Wind::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CScreen_Wind::Ready_Child()
{
CPartObject::PARTOBJECT_DESC PartsDesc{};
PartsDesc.pParentTransform = m_pTransformCom;
if (FAILED(Add_PartObject<CEffectParts>("Wind_Screen", g_iStaticLevel, &m_pWindEffect, &PartsDesc)))
{
return E_FAIL;
}
m_pWindEffect->Load("../Bin/Resources/Data/Effect/ScreenFX/Wind", static_cast<LEVEL>(NEXT_LEVEL));
return S_OK;
}
CScreen_Wind* CScreen_Wind::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CScreen_Wind* pInstance = new CScreen_Wind(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CScreen_Wind");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CScreen_Wind::Clone(void* pArg, CGameObject* pOwner)
{
CScreen_Wind* pInstance = new CScreen_Wind(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CScreen_Wind");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CScreen_Wind::OnCollision(CGameObject* pOther, void* pDesc)
{
//CTransform* pOtherTransform = p
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
}
void CScreen_Wind::Free()
{
__super::Free();
SAFE_RELEASE(m_pWindEffect);
}
#ifdef _DEBUG
void CScreen_Wind::Describe_Entity()
{
}
#endif // _DEBUG
HRESULT CScreen_Wind::Bind_ShaderResources()
{
return S_OK;
}
@@ -25,7 +25,7 @@ HRESULT CSpell_Anim::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 590.f;
Desc.fY = -100.f;
Desc.fY = 100.f;
Desc.fSizeX = 470.f;
Desc.fSizeY = 250.f;
@@ -111,7 +111,7 @@ void CSpell_Anim::Update(_float fTimeDelta)
if (m_iPerSpell != -1)
{
m_fY = m_fOrigin_Position.y + m_pInfoInstance->Get_Spell_Info(m_iPerSpell).fVidio;
m_fY = m_fOrigin_Position.y - m_pInfoInstance->Get_Spell_Info(m_iPerSpell).fVidio;
}
__super::Update(fTimeDelta);
@@ -112,7 +112,7 @@ void CSpell_Drag::Update(_float fTimeDelta)
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);
fMouse.y = -m_pPt.y + (g_iWinSizeY * 0.5f);
m_vStart_MousePos = XMVectorSet(fMouse.x, fMouse.y, 0.f, 1.f);
m_bFalse = false;
@@ -127,7 +127,7 @@ void CSpell_Drag::Update(_float fTimeDelta)
ScreenToClient(g_hWnd, &pt);
float moveX = pt.x - (g_iWinSizeX * 0.5f);
float moveY = pt.y - (g_iWinSizeY * 0.5f);
float moveY = -pt.y + (g_iWinSizeY * 0.5f);
m_vMove_MousePos = XMVectorSet(moveX, moveY, 0.f, 1.f);
@@ -351,7 +351,7 @@ _float2 CSpell_Drag::Get_MousePos()
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);
fMouse.y = -m_pPt.y + (g_iWinSizeY * 0.5f);
m_vMove_MousePos = XMVectorSet(fMouse.x, fMouse.y, 0.f, 1.f);
return fMouse;
@@ -24,7 +24,7 @@ HRESULT CSpell_Header::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 600.f;
Desc.fY = -385.f;
Desc.fY = 385.f;
Desc.fSizeX = 512.f;
Desc.fSizeY = 80.f;
@@ -144,8 +144,8 @@ HRESULT CSpell_Header::Render()
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pSpell_Name.c_str()) - 53.f) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pSpell_Name.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((215.f / 255.f) * m_fAlpha, (185.f / 255.f) * m_fAlpha, (95.f / 255.f) * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("Font_size13"), m_fSpell_Type.c_str(), _float2(m_fType.x + m_fX, m_fType.y + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pSpell_Name.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((215.f / 255.f) * m_fAlpha, (185.f / 255.f) * m_fAlpha, (95.f / 255.f) * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("Font_size13"), m_fSpell_Type.c_str(), _float2(m_fType.x + m_fX, m_fType.y - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
return S_OK;
}
@@ -22,7 +22,7 @@ HRESULT CSpell_Header_Line::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 600.f;
Desc.fY = -340.f;
Desc.fY = 340.f;
Desc.fSizeX = 487.f;
Desc.fSizeY = 18.f;
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
@@ -24,7 +24,7 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 380.f;
Desc.fY = 30.f;
Desc.fY = -30.f;
Desc.fSizeX = 105.f;
Desc.fSizeY = 105.f;
@@ -39,7 +39,7 @@ HRESULT CSpell_Panel::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 960.f;
Desc.fY = 540.f;
Desc.fY = -540.f;
Desc.fSizeX = g_iWinSizeX;
Desc.fSizeY = g_iWinSizeY;
@@ -330,10 +330,6 @@ HRESULT CSpell_Panel::Ready_Element(void* pArg)
}
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;
//}
return S_OK;
}
@@ -3,7 +3,6 @@
#include "GameInstance.h"
#include "InfoInstance.h"
CSpell_Preview::CSpell_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
{
@@ -25,7 +24,7 @@ HRESULT CSpell_Preview::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 400.f;
Desc.fY = -365.f;
Desc.fY = 500.f;
Desc.fSizeX = 128.f;
Desc.fSizeY = 128.f;
@@ -46,7 +45,7 @@ HRESULT CSpell_Preview::Initialize(void* pArg)
m_vNine_Slice = _float4(50.f, 75.f, 30.f, 96.f);
m_fTopY = m_fY - m_vScale.y * 0.5f;
m_fPreviewOffSet = 0.f;
m_fOriginPerviewSize = 280.f;
m_fOriginPerviewSize = 280;
SizeUpX(512.f);
SizeUpY(m_fOriginPerviewSize);
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
@@ -103,19 +102,16 @@ void CSpell_Preview::Update(_float fTimeDelta)
m_fAlpha = 0.f;
}
}
m_fTime += fTimeDelta * m_fTimeMult;
if (m_bFadeOut == false)
if (m_iSpellType != -1 && m_iPerSpellIndex != m_iSpellType)
{
if (m_iSpellType != -1)
{
m_pSpell_Info = m_pInfoInstance->Get_Spell_Info(m_iSpellType).pSpellInfo;
m_fPreviewOffSet = m_pInfoInstance->Get_Spell_Info(m_iSpellType).fPreview;
SizeUpY(m_fOriginPerviewSize + m_fPreviewOffSet);
m_iPerSpellIndex = m_iSpellType;
}
m_pSpell_Info = m_pInfoInstance->Get_Spell_Info(m_iSpellType).pSpellInfo;
m_fPreviewOffSet = m_pInfoInstance->Get_Spell_Info(m_iSpellType).fPreview;
SizeUpY(m_fOriginPerviewSize + m_fPreviewOffSet);
m_iPerSpellIndex = m_iSpellType;
}
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -146,9 +142,7 @@ HRESULT CSpell_Preview::Render()
return E_FAIL;
}
m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY - m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
return S_OK;
}
@@ -163,17 +157,14 @@ void CSpell_Preview::SizeUpX(_float fSizeX)
m_fSizeX = fSizeX;
m_fX += fX;
m_fLerpX += fX;
}
void CSpell_Preview::SizeUpY(_float fSizeY)
{
_float prevY = m_fY;
m_fSizeY = fSizeY;
m_fY = m_fTopY + fSizeY * 0.5f;
m_fY = m_fTopY - fSizeY * 0.5f;
_float deltaY = m_fY - prevY;
}
HRESULT CSpell_Preview::Bind_ShaderResources()
@@ -309,6 +300,7 @@ void CSpell_Preview::Free()
SAFE_RELEASE(m_pVIBufferCom);
}
#ifdef _DEBUG
void CSpell_Preview::Describe_Entity()
{
+1 -1
View File
@@ -22,7 +22,7 @@ HRESULT CSpell_UI::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 650.f;
Desc.fY = -60.f;
Desc.fY = 60.f;
Desc.fSizeX = 180.f;
Desc.fSizeY = 50.f;
@@ -24,7 +24,7 @@ HRESULT CSpell_Vidio_Border::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 590.f;
Desc.fY = -100.f;
Desc.fY = 100.f;
Desc.fSizeX = 520.f;
Desc.fSizeY = 275.f;
@@ -98,7 +98,7 @@ void CSpell_Vidio_Border::Update(_float fTimeDelta)
{
if (m_iSpellType != -1)
{
m_fY = m_fOrigin_Position.y + m_pInfoInstance->Get_Spell_Info(m_iSpellType).fVidio;
m_fY = m_fOrigin_Position.y - m_pInfoInstance->Get_Spell_Info(m_iSpellType).fVidio;
}
}
+25 -4
View File
@@ -45,9 +45,6 @@ void CTrailObject::Update(_float fTimeDelta)
return;
/* 디졸브 타임*/
if (m_TrailInfo.vDistortionTime.y != 0)
{
@@ -59,6 +56,22 @@ void CTrailObject::Update(_float fTimeDelta)
}
}
if (m_TrailInfo.isDissolve == true)
{
if (m_TrailInfo.vDissolveTime.y != 0)
{
m_TrailInfo.vDissolveTime.x += fTimeDelta;
if (m_TrailInfo.vDissolveTime.x > m_TrailInfo.vDissolveTime.y)
{
m_bVisible = false;
m_TrailInfo.vDissolveTime.x = 0.f;
m_TrailInfo.isDissolve = false;
}
}
}
/* 블룸 타임*/
if (m_TrailInfo.vBloomTime.y != 0)
@@ -519,6 +532,14 @@ HRESULT CTrailObject::Bind_ShaderResources()
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve", &m_TrailInfo.isDissolve, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_vDissolveTime", &m_TrailInfo.vDissolveTime, sizeof(_float2)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_TrailInfo.vDiffuseDistortioUVAmount, sizeof(_float2)))) {
return E_FAIL;
}
@@ -596,7 +617,7 @@ void CTrailObject::Describe_Entity()
GUI::DragFloat("Dampling", &m_TrailInfo.fDamping);
GUI::DragFloat("Rope Length", &m_TrailInfo.fRopeLength);
GUI::DragFloat("Mass", &m_TrailInfo.fMass);
GUI::TreePop();
}
}
+2 -3
View File
@@ -49,10 +49,9 @@ class CAccio final : public CEffect_Container
CCharacter_Controller* m_pEnemyCCT = { nullptr };
_float m_fAccRotateTime = {};
_float m_fTurnSpeed = {55.f };
_float m_fRange = { 1.f };
_float m_fTurnSpeed = { 65.f };
_float m_fRange = { 1.3f };
_float m_fAttenuation = { 35.f };
_bool m_isFix = { false };
public:
static CAccio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+3 -2
View File
@@ -35,7 +35,7 @@ class CBroom final : public CUnit
_bool Get_Turbo() { return m_bTurbo; }
void Set_Input(BroomInput broomInput) { m_Input = broomInput; }
HRESULT Ready_Child();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
@@ -72,7 +72,8 @@ class CBroom final : public CUnit
_float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
_float3 m_vCameraRightDir = { 1.f, 0.f, 0.f };
BroomInput m_Input;
BroomInput m_Input;
class CEffectParts* m_pWindEffect = { nullptr };
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
+7 -5
View File
@@ -11,15 +11,15 @@ namespace Client
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
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, DEPTH_STOP, WB_CULLING, 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, DEPTH_STOP, WB_CULLING, SCREEN_FX, END };
enum class SHADER_PASS_UIEDITOR {
DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV,
REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO,
ENEMY_DETECTION, END};
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
ENEMY_DETECTION, 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, SPELL_LOCK, END };
enum class SHADER_PASS_NPC_PBR_ANIM {
@@ -44,12 +44,14 @@ namespace Client
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
/* PROPS */
BOX_SPLESH, CHAIL_SPLESH , BARRAL_SPLASH,
/*상태 이펙트*/
STUN,
/*스크린 이펙트*/
SCREEN_WIND,
/*사이드*/
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END,
+27 -3
View File
@@ -66,6 +66,29 @@ namespace Client
DAMAGE_TYPE eType = DAMAGE_TYPE::NOMAL;
}DAMAGE_INFO;
typedef struct tagObjectiveInfo
{
_int iObjectType{};
_int iTargetID{};
_int iRequiredCount{};
_int iCurrentCount{};
}OBJECTIVEINFO;
typedef struct tagRewardsInfo
{
_int iRewardType{};
_int iRewardID{};
}REWARDSINFO;
typedef struct tagQuestInfo
{
_int iQuestID{};
_int iType{};
_wstring pQuestName;
_wstring pQuestInfo;
vector<OBJECTIVEINFO> ObjectiveInfo;
vector<REWARDSINFO> RewardsInfo;
}QUESTINFO;
typedef struct tagEffectInfo
{
@@ -248,17 +271,18 @@ namespace Client
_float fDamping = { 0.5f };
_float fRopeLength = { 0.1f };
_float fMass = { 0.5f };
_float3 vPadding1 = {};
_float2 vDissolveTime = {};
_float fPadding0 = {};
_float3 vPadding2 = {};
_float fPadding1 = {};
_float fPadding2 = {};
_float fPadding3 = {};
_bool isPadding0 = {};
_bool isDissolve = {};
_bool isPadding1 = {};
_bool isPadding2 = {};
@@ -0,0 +1,49 @@
#pragma once
#include "Client_Define.h"
#include "PanelObject.h"
NS_BEGIN(Engine)
class CTexture;
class CShader;
class CVIBuffer_Rect;
NS_END
NS_BEGIN(Client)
class CCompleted_Panel final : public CPanelObject
{
private:
CCompleted_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CCompleted_Panel(const CCompleted_Panel& rhs);
virtual ~CCompleted_Panel() = default;
public:
virtual void Priority_Update(_float fTimeDelta);
virtual void Update(_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta);
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Ready_Element(void* pArg) override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
public:
static CCompleted_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -34,6 +34,7 @@ class CEffectObject abstract : public CPartObject
void Disable_Light();
void Add_Light();
void FollowParents(const _float4x4* pParentsMat, const _float4x4* pOffsetMat = nullptr);
EFFECT_INFO* Get_Effect_Info() { return &m_EffectInfo; }
protected:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
+5
View File
@@ -48,6 +48,7 @@ class CGoblin final : public CMonster
_bool m_bDetection = { false };
class CEffectParts* m_pSmoke = { nullptr };
class CEffectParts* m_pGoblin_Particle = { nullptr };
class CEffectParts* m_pGoblin_Particle2 = { nullptr };
@@ -82,6 +83,10 @@ class CGoblin final : public CMonster
_float m_fLength = {};
_float m_fMoveTime = {};
_bool m_bFirstMove = {};
_bool m_bPos = {};
_float m_fAccel = { 3.f};
_float m_fTargetSpeed = {60.f};
_float m_fSpeed = {};
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
+13 -5
View File
@@ -81,12 +81,20 @@ class CGoblin_Mage final : public CMonster
_float m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = {};
_float m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = { 20.f,5.f,30.f,15.f };
_bool m_bStep = { false };
_float m_fTpTime = {};
_float m_fAirTime = {};
_bool m_bStep = { false };
_float m_fTpTime = {};
_float m_fAirTime = {};
_vector m_vOriginPos = {};
_float m_fLength = {};
_bool m_bShield = { false };
_float m_fLength = {};
_bool m_bShield = { false };
_bool m_bPos = {};
_float m_fAccel = { 3.f };
_float m_fTargetSpeed = { 60.f };
_float m_fSpeed = {};
#ifdef _DEBUG
_bool m_isDebugMode = {};
#endif
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
@@ -0,0 +1,49 @@
#pragma once
#include "Client_Define.h"
#include "PanelObject.h"
NS_BEGIN(Engine)
class CTexture;
class CShader;
class CVIBuffer_Rect;
NS_END
NS_BEGIN(Client)
class CInProgress_Panel final : public CPanelObject
{
private:
CInProgress_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CInProgress_Panel(const CInProgress_Panel& rhs);
virtual ~CInProgress_Panel() = default;
public:
virtual void Priority_Update(_float fTimeDelta);
virtual void Update(_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta);
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Ready_Element(void* pArg) override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
public:
static CInProgress_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -66,6 +66,9 @@ DECLARE_SINGLETON(CInfoInstance)
void Add_Event(_wstring EventName, function<void(void*)> Event);
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
#pragma endregion
#pragma region Spell_INFO
#pragma endregion
QUESTINFO Get_Quest_Info(_int QuestID);
#pragma region Interactive_INFO
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
@@ -79,6 +82,7 @@ DECLARE_SINGLETON(CInfoInstance)
class CMonsterInfo* m_pMonsterInfo = { nullptr };
class CMapInfo* m_pMapInfo = { nullptr };
class CSkill_Data* m_pSkillInfo = { nullptr };
class CQuest_Data* m_pQuestInfo= { nullptr };
class CInteractiveInfo* m_pInteractiveInfo = { nullptr };
class CDamage_Font* m_pDamage_Font = { nullptr };
_uint m_eInput = ENUM_CLASS(KEYINPUT::END);
+5
View File
@@ -127,6 +127,11 @@ class CPlayer final : public CUnit
_float m_fAnimTime = {};
_bool m_bTurbo = {};
/* 무적 불 변수*/
#ifdef _DEBUG
_bool m_isDebugMode = { false };
#endif
HRESULT InputAction();
HRESULT InputMove();
HRESULT InputKeyUpMove();
@@ -34,10 +34,20 @@ class CQuest_Canvas final : public CCanvasObject
public:
void Clear_Penel();
void Update_Panel(_int Index);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
CGameObject* m_pQuest_Panel = { nullptr };
CGameObject* m_pInProgress_Panel = { nullptr };
CGameObject* m_pCompleted_Panel = { nullptr };
CGameObject* m_pQuest_Status_Panel = { nullptr };
_bool m_bClick[3] = { false };
_int m_iIndex{};
public:
static CQuest_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -0,0 +1,49 @@
#pragma once
#include "Client_Define.h"
#include "Base.h"
NS_BEGIN(Engine)
class CGameInstance;
class CUIObject;
NS_END
NS_BEGIN(Client)
class CQuest_Data final : public CBase
{
private:
CQuest_Data();
~CQuest_Data() = default;
public:
virtual void Update(_float fTimeDelta);
public:
HRESULT Load_QuestInfo(const _char* pFilePath);
QUESTINFO Get_Quest(_int QuestID);
_int Get_Count();
//const SPELLINFO& Get_Info(_uint SpellID) const;
private:
CInfoInstance* m_pInfoInstance = { nullptr };
QUESTINFO QuestInfo = {};
OBJECTIVEINFO ObjectiveInfo = {};
REWARDSINFO RewardsInfo = {};
vector<QUESTINFO> QuestInfos;
_int m_iQuest_Count{};
_bool m_bClear[1] = { false };
private:
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
public:
static CQuest_Data* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
};
NS_END
@@ -31,12 +31,16 @@ class CQuest_Entry_Line final : public CElementObject
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
public:
void Set_Hover(_int Index);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
_int m_iColor = { false };
_int m_iQuest_Index{};
public:
static CQuest_Entry_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+3 -2
View File
@@ -31,8 +31,8 @@ class CQuest_Info final : public CElementObject
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
private:
void Hover();
public:
void Set_Hover(_int Index);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
@@ -45,6 +45,7 @@ class CQuest_Info final : public CElementObject
_float m_fOriginPerviewSize{};
_float m_fPreviewOffSet{};
_float4 m_vHeaderBack{};
_int m_iQuest_Index{};
_int m_iPerQuestIndex{};
public:
@@ -31,12 +31,16 @@ class CQuest_Info_Header final : public CElementObject
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
public:
void Set_Hover(_int Index);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
_int m_iColor = true;
_int m_iQuest_Index{};
public:
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -31,12 +31,17 @@ class CQuest_Info_Line final : public CElementObject
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
public:
void Set_Hover(_int Index);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
_int m_iColor = { false };
_int m_iQuest_Index{};
public:
static CQuest_Info_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -31,12 +31,23 @@ class CQuest_List final : public CElementObject
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
private:
void Hover();
public:
void Set_Name(_wstring Name, _int ID);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
CInfoInstance* m_pInfoInstance = { nullptr };
_int m_iColor = { false };
_wstring m_pFontSize;
_wstring m_pQuest_Name;
_int m_pQuest_ID{};
public:
static CQuest_List* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
@@ -0,0 +1,64 @@
#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 CQuest_Status final : public CElementObject
{
private:
CQuest_Status(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CQuest_Status(const CQuest_Status& rhs);
virtual ~CQuest_Status() = default;
public:
virtual void Priority_Update(_float fTimeDelta);
virtual void Update(_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta);
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
public:
void Compute_UI(_int Index);
void Set_Status(_int Index, _float m_PosY, _wstring Text);
void Set_Click(_bool bClick);
private:
void Hover();
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
_wstring m_pName;
_int m_iIndex{};
_float4 m_vUV{};
_float4 m_vImageposi{};
_bool m_bClick = { false };
public:
static CQuest_Status* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -0,0 +1,57 @@
#pragma once
#include "Client_Define.h"
#include "PanelObject.h"
NS_BEGIN(Engine)
class CTexture;
class CShader;
class CVIBuffer_Rect;
NS_END
NS_BEGIN(Client)
class CQuest_Status_Panel final : public CPanelObject
{
private:
CQuest_Status_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CQuest_Status_Panel(const CQuest_Status_Panel& rhs);
virtual ~CQuest_Status_Panel() = default;
public:
virtual void Priority_Update(_float fTimeDelta);
virtual void Update(_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta);
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Ready_Element(void* pArg) override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
private:
void Set_Status();
void Slot_Hover(_int Index);
private:
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
CGameObject* m_pQuest_Status1 = { nullptr };
CGameObject* m_pQuest_Status2 = { nullptr };
CGameObject* m_pQuest_Status3 = { nullptr };
_bool m_bClick[3] = { false };
public:
static CQuest_Status_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -0,0 +1,46 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CScreen_Wind final : public CEffect_Container
{
private:
CScreen_Wind(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CScreen_Wind(const CScreen_Wind& rhs);
virtual ~CScreen_Wind() = default;
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
public:
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
HRESULT Ready_Child();
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
class CEffectParts* m_pWindEffect = { nullptr };
_wstring m_wstrEffectName = {};
public:
static CScreen_Wind* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -60,7 +60,6 @@ class CSpell_Panel final : public CPanelObject
CGameObject* m_pSpell_Preview = { nullptr };
CGameObject* m_pSpell_Vidio_Border = { nullptr };
CGameObject* m_pCurrent_Slot_Number = { nullptr };
CGameObject* m_pSpell_Data= { nullptr };
CGameObject* m_pSpell_Header = { nullptr };
CGameObject* m_pSpell_Header_Line = { nullptr };
CGameObject* m_pSpell_Anim = { nullptr };
@@ -33,6 +33,8 @@ class CTrailObject final : public CPartObject
HRESULT Load_Trail(CEffect_Container::TRAIL_SAVE_INFO Trail_Save_Info, LEVEL eLevel);
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
void SetDissolve(_bool isDissolve) { m_TrailInfo.isDissolve = true; }
private:
HRESULT Bind_ShaderResources() override;
virtual HRESULT Initialize_Prototype() override;
@@ -1969,13 +1969,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_EXT_Walls_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_EXT_Walls_Decals_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_Window_Display</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_Window_Display_Lod1</PrototypeTag>
@@ -1983,14 +1976,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_ext_Glass</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_ext_Glass_Lod1</PrototypeTag>
@@ -44,12 +44,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Int_Decals</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Roof</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Roof_Lod1</PrototypeTag>
@@ -448,14 +442,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_ext_decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod1</PrototypeTag>
@@ -828,14 +814,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_CrossBeam</PrototypeTag>
<Position x="-5.3000016" y="0.70000005" z="1.3000001"/>
@@ -872,13 +850,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_roof_decals_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod1</PrototypeTag>
@@ -983,13 +954,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Gatehouse_Bridge_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Gatehouse_Bridge_Decals_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod1</PrototypeTag>
@@ -1183,12 +1147,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof_Decals</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle_Lod1</PrototypeTag>
@@ -1236,21 +1194,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_EXT_Walls_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_EXT_Walls_Decals_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<Collision Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_EXT_APL_COL</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Quidditch_EXT_APL_COL_Lod1</PrototypeTag>
@@ -1402,14 +1345,6 @@
<Scale x="0.99999976" y="1" z="0.99999976"/>
<Rotation x="0" y="89.999954" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_HogsHead_ext_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_HogsHead_ext_Decals_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_HogsHead_ext_Decals_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_HogsHead_ext_Gutters</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_HogsHead_ext_Gutters_Lod1</PrototypeTag>
@@ -1778,14 +1713,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Glass_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Glass_B_Lod1</PrototypeTag>
@@ -1793,13 +1720,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Glass_Int_B</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Honeydukes_Glass_Int_B_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_HoneyDukes_Roofs</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_HoneyDukes_Roofs_Lod1</PrototypeTag>
@@ -2575,14 +2495,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_H_ext_decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_HM_Gen_H_window_glass_a</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Gen_H_window_glass_a_Lod1</PrototypeTag>
@@ -2681,13 +2593,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Decals_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_J_ext_Windows</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_J_ext_Windows_Lod1</PrototypeTag>
@@ -2742,14 +2647,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Decals_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Decals_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Sign_Anchor</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Sign_Anchor_Lod1</PrototypeTag>
@@ -2764,13 +2661,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Glass_A_int</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Glass_A_int_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="3" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Roof</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Roof_Lod1</PrototypeTag>
@@ -2886,14 +2776,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Glass_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Glass_A_Lod1</PrototypeTag>
@@ -2920,13 +2802,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Decals_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_sign_mid_sign</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_sign_mid_sign_Lod1</PrototypeTag>
@@ -2986,13 +2861,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Decals_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Trims</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Zonkos_ext_Trims_Lod1</PrototypeTag>
@@ -3182,13 +3050,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="1" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_ext_Decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_ext_Decals_Lod1</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_MERGED_WoodTrim_Caps</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_DB_GR_MERGED_WoodTrim_Caps_Lod1</PrototypeTag>
@@ -4714,14 +4575,6 @@
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_H_ext_decals</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod1</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod2</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="2" Key_Index="1">
<PrototypeTag>Prototype_GameObject_SM_HM_Gen_H_window_glass_a</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Gen_H_window_glass_a_Lod1</PrototypeTag>

Some files were not shown because too many files have changed in this diff Show More