@@ -29,6 +29,7 @@ float g_fMapAngle;
|
||||
float g_fCoolTime;
|
||||
float g_fHp;
|
||||
|
||||
float2 g_fViewport;
|
||||
float2 g_fOrigin_Size;
|
||||
float2 g_fCurrent_Size;
|
||||
float2 g_fHpBG;
|
||||
@@ -63,6 +64,7 @@ Texture2D g_DiffuseTexture;
|
||||
Texture2D g_MaskingTexture;
|
||||
|
||||
int g_iHover;
|
||||
int g_iClick;
|
||||
int g_iColor;
|
||||
|
||||
int g_iStep1 = 0;
|
||||
@@ -1621,6 +1623,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;
|
||||
@@ -1665,7 +1789,6 @@ VS_OUT3D VS_MAIN3D(VS_IN3D In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
|
||||
PS_OUT PS_Enemy_Detection(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
@@ -1774,6 +1897,64 @@ PS_OUT PS_Enemy_Detection(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
VS_OUT3D VS_NONESIZE3D(VS_IN3D In)
|
||||
{
|
||||
VS_OUT3D Out;
|
||||
|
||||
float3 worldCenter = float3(
|
||||
g_WorldMatrix._41,
|
||||
g_WorldMatrix._42,
|
||||
g_WorldMatrix._43
|
||||
);
|
||||
|
||||
float4 clipPos = mul(
|
||||
float4(worldCenter, 1.f),
|
||||
mul(g_ViewMatrix, g_ProjMatrix)
|
||||
);
|
||||
|
||||
float w = clipPos.w;
|
||||
|
||||
clipPos.xy /= w;
|
||||
|
||||
float2 offset = In.vTexcoord - 0.5f;
|
||||
float2 pixelOffset = offset * g_fCurrent_Size.xy;
|
||||
|
||||
float2 ndcOffset;
|
||||
ndcOffset.x = pixelOffset.x / g_fViewport.x * 2.f;
|
||||
ndcOffset.y = pixelOffset.y / g_fViewport.y * 2.f;
|
||||
|
||||
clipPos.xy += ndcOffset;
|
||||
|
||||
clipPos.xy *= w;
|
||||
clipPos.w = w;
|
||||
|
||||
Out.vPosition = clipPos;
|
||||
|
||||
float2 TexCoord = In.vTexcoord;
|
||||
TexCoord.y = 1.f - TexCoord.y;
|
||||
Out.vTexcoord = TexCoord;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Interaction_Object(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha);
|
||||
|
||||
float2 atlasUV = g_fImageUV.xy + In.vTexcoord * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
float2 safeUV = saturate(atlasUV);
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, safeUV);
|
||||
|
||||
Color = tex1;
|
||||
|
||||
Color.a *= g_fAlpha;
|
||||
Out.vColor = Color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 PosTexTechnique11
|
||||
{
|
||||
pass Default
|
||||
@@ -2104,6 +2285,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);
|
||||
@@ -2113,4 +2314,14 @@ technique11 PosTexTechnique11
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Enemy_Detection();
|
||||
}
|
||||
|
||||
pass Interaction_Object
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_None, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_NONESIZE3D();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Interaction_Object();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,8 @@ 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\Interaction_Key.h" />
|
||||
<ClInclude Include="..\Public\InteractiveInfo.h" />
|
||||
<ClInclude Include="..\Public\Intro_BG.h" />
|
||||
<ClInclude Include="..\Public\Intro_Image.h" />
|
||||
@@ -194,6 +197,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 +207,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 +216,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 +371,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 +388,8 @@ 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\Interaction_Key.cpp" />
|
||||
<ClCompile Include="..\Private\InteractiveInfo.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_BG.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_Image.cpp" />
|
||||
@@ -391,12 +401,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 +417,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,30 @@
|
||||
<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\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>
|
||||
<ClInclude Include="..\Public\BroomRaceManager.h">
|
||||
<Filter>02.GameObjects\BroomRaceManager</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Interaction_Key.h">
|
||||
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1264,9 +1287,30 @@
|
||||
<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>
|
||||
<Filter Include="02.GameObjects\UI\Interaction_Key">
|
||||
<UniqueIdentifier>{08163c4a-63c9-4cc2-97b4-97bb2f9467ff}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1813,7 +1857,30 @@
|
||||
<ClCompile Include="..\Private\RaceRing.cpp">
|
||||
<Filter>02.GameObjects\Item\RaceRing</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\BroomRaceManager.cpp" />
|
||||
<ClCompile Include="..\Private\Screen_Wind.cpp">
|
||||
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
||||
</ClCompile>
|
||||
<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>
|
||||
<ClCompile Include="..\Private\BroomRaceManager.cpp">
|
||||
<Filter>02.GameObjects\BroomRaceManager</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Interaction_Key.cpp">
|
||||
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -48,12 +48,14 @@ HRESULT CAccio::Initialize(void* pArg)
|
||||
|
||||
m_pRope_Trail = Get_PartObject<CTrailObject>("Accio_Trail");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light");
|
||||
m_pRotate0 = Get_PartObject<CEffectParts>("Rotate0");
|
||||
|
||||
if (m_pRope_Trail == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
SAFE_ADDREF(m_pRope_Trail);
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pRotate0);
|
||||
|
||||
XMStoreFloat4x4(&m_TrailWorld, XMMatrixIdentity());
|
||||
|
||||
@@ -101,6 +103,8 @@ void CAccio::Update(_float fTimeDelta)
|
||||
{
|
||||
/* 특정 대상과 충돌 했다면*/
|
||||
TrailPos.r[3] = m_pEnemyCCT->Get_Position();
|
||||
|
||||
m_pRotate0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pEnemyCCT->Get_FootPosition());
|
||||
}
|
||||
|
||||
XMStoreFloat4x4(&m_TrailWorld, TrailPos);
|
||||
@@ -111,12 +115,16 @@ void CAccio::Update(_float fTimeDelta)
|
||||
_matrix rotMat = XMMatrixRotationAxis(XMLoadFloat3(&m_vCameraLook), m_fAccRotateTime);
|
||||
|
||||
_float fRange = m_fRange - m_fAccRotateTime / m_fAttenuation;
|
||||
|
||||
|
||||
if (fRange > 0)
|
||||
TrailPos.r[3] += rotMat.r[1] * fRange;
|
||||
}
|
||||
|
||||
m_pRope_Trail->Rope_Trail_Update(TrailPos, pPlayer->Get_WandPos(), fTimeDelta);
|
||||
if(m_isReverse == false)
|
||||
m_pRope_Trail->Rope_Trail_Update(TrailPos, pPlayer->Get_WandPos(), fTimeDelta);
|
||||
else
|
||||
m_pRope_Trail->Rope_Trail_Update(pPlayer->Get_WandPos(), TrailPos, fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -176,7 +184,9 @@ HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
_vector vStartPos = WandPos;
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
_matrix WandWorld = pPlayer->Get_WandPos();
|
||||
_matrix WandWorld = XMMatrixIdentity();
|
||||
|
||||
WandWorld.r[3] = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
XMStoreFloat4x4(&m_TrailWorld , WandWorld);
|
||||
|
||||
@@ -266,14 +276,24 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
CEffectParts* pCircle = Get_PartObject<CEffectParts>("Accio_Circle");
|
||||
CEffectParts* pWandLight = Get_PartObject<CEffectParts>("Wand_Light");
|
||||
CEffectParts* pSpread_Circle = Get_PartObject<CEffectParts>("Spread_Circle");
|
||||
CEffectParts* pAccio_PT = Get_PartObject<CEffectParts>("Accio_PT");
|
||||
|
||||
|
||||
pCircle->Set_Visible(false);
|
||||
pWandLight->Set_Visible(false);
|
||||
pSpread_Circle->Set_Visible(false);
|
||||
|
||||
|
||||
m_pRotate0->Set_Visible(true);
|
||||
pAccio_PT->Set_Visible(true);
|
||||
|
||||
pAccio_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
if(m_isFix)
|
||||
m_pRope_Trail->Get_Component<CTrail>()->Rope_Fix(true);
|
||||
m_pRope_Trail->Get_Component<CTrail>()->Rope_Fix(true);
|
||||
|
||||
if(m_isDissolve)
|
||||
m_pRope_Trail->SetDissolve(true);
|
||||
|
||||
}
|
||||
|
||||
void CAccio::Free()
|
||||
@@ -282,7 +302,7 @@ void CAccio::Free()
|
||||
|
||||
SAFE_RELEASE(m_pRope_Trail);
|
||||
SAFE_RELEASE(m_pWandLight);
|
||||
|
||||
SAFE_RELEASE(m_pRotate0);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -294,9 +314,10 @@ void CAccio::Describe_Entity()
|
||||
GUI::DragFloat("Speed", &m_fLinearSpeed);
|
||||
GUI::DragFloat("Range", &m_fRange);
|
||||
GUI::DragFloat("Attenuation", &m_fAttenuation);
|
||||
GUI::Checkbox("Dissolve", &m_isDissolve);
|
||||
GUI::Checkbox("Reverse", &m_isReverse);
|
||||
GUI::InputInt("LoopTime", &m_iLoopTime);
|
||||
|
||||
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;
|
||||
|
||||
|
||||
@@ -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,31 @@ 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;
|
||||
}
|
||||
|
||||
m_pWindEffect->Get_Effect_Info()->isBillboard = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
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 +92,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 +108,58 @@ 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()->fBlurIntensity = m_fSpeed / 30.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(XMVectorSet(0.f , 1.f, 0.f ,0.f), XMConvertToRadians(180.f))*/;
|
||||
WindTransform->Set_WorldMatrix(WorldMat);
|
||||
|
||||
_vector vCameraLook = XMVector3Normalize(m_pGameInstance->Get_CameraLook());
|
||||
WindTransform->Set_State(STATE::POSITION, m_pGameInstance->Get_CamXMPosition() + vCameraLook * m_fCameraOffset);
|
||||
|
||||
#if _DEBUG
|
||||
#if 진우
|
||||
GUI::Begin("Wind");
|
||||
|
||||
m_pWindEffect->Get_Component<CInstance_Model>()->Describe_Entity();
|
||||
GUI::Checkbox("BillBoard", &m_pWindEffect->Get_Effect_Info()->isBillboard);
|
||||
GUI::DragFloat("Offset", &m_fCameraOffset);
|
||||
GUI::End();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBroom::Render()
|
||||
@@ -125,6 +195,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 +321,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];
|
||||
}
|
||||
|
||||
@@ -21,10 +21,6 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, false);
|
||||
#endif // _DEBUG
|
||||
|
||||
}
|
||||
|
||||
void CCamera_Debug::Update(_float fTimeDelta)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) {
|
||||
return;
|
||||
}
|
||||
@@ -88,6 +84,10 @@ void CCamera_Debug::Update(_float fTimeDelta)
|
||||
__super::Bind_Matrices();
|
||||
}
|
||||
|
||||
void CCamera_Debug::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CCamera_Debug::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) {
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
@@ -144,7 +146,7 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
|
||||
|
||||
(*m_EffectList[ENUM_CLASS(SKILL_TYPE::ACCIO)].begin())->Describe_Entity();
|
||||
|
||||
|
||||
Describe_Entity();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -505,6 +517,34 @@ HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
HRESULT CEffectPool::Reset_Pool()
|
||||
{
|
||||
for (size_t i = 0; i < ENUM_CLASS(SKILL_TYPE::END); i++)
|
||||
{
|
||||
for (auto& pEffect : m_EffectList[i])
|
||||
{
|
||||
SAFE_RELEASE(pEffect);
|
||||
}
|
||||
|
||||
m_EffectList[i].clear();
|
||||
}
|
||||
|
||||
for (auto& pEffect : m_ActiveEffectList)
|
||||
{
|
||||
SAFE_RELEASE(pEffect);
|
||||
}
|
||||
|
||||
|
||||
m_ActiveEffectList.clear();
|
||||
|
||||
|
||||
if (FAILED(Ready_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
CEffectPool* CEffectPool::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
@@ -555,6 +595,14 @@ void CEffectPool::Free()
|
||||
|
||||
void CEffectPool::Describe_Entity()
|
||||
{
|
||||
|
||||
GUI::Begin("Effect Pool");
|
||||
if (GUI::Button("Reset Pool"))
|
||||
{
|
||||
Reset_Pool();
|
||||
}
|
||||
GUI::End();
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -292,6 +296,18 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
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) {
|
||||
@@ -299,9 +315,7 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_pFSM->IsEnable(FSMSTATE::BLINK)) {
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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,16 @@ void CInfoInstance::Event_CallBack(_wstring EventName, void* pArg)
|
||||
}
|
||||
}
|
||||
|
||||
QUESTINFO CInfoInstance::Get_Quest_Info(_int QuestID)
|
||||
{
|
||||
return m_pQuestInfo->Get_Quest(QuestID);
|
||||
}
|
||||
|
||||
_int CInfoInstance::Get_Quest_Count()
|
||||
{
|
||||
return m_pQuestInfo->Get_Count();
|
||||
}
|
||||
|
||||
HRESULT CInfoInstance::Regist_ActiveInteractive(CMapElement_Interactable* pInteractive)
|
||||
{
|
||||
if (nullptr == s_pInstance || nullptr == m_pInteractiveInfo) {
|
||||
@@ -316,6 +327,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 +377,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);
|
||||
|
||||
@@ -27,7 +27,11 @@ void CInstancedProp::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
//pair<_bool, _ubyte> pairShadowResult = m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius());
|
||||
//if (0 == ((_ubyte)SHADOW::SHADOW_FAR & pairShadowResult.second)) {
|
||||
// pairShadowResult.first = true;
|
||||
// Set_Shadow(pairShadowResult);
|
||||
//}
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::Render()
|
||||
|
||||
@@ -0,0 +1,243 @@
|
||||
#include "pch.h"
|
||||
#include "Interaction_Key.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
CInteraction_Key::CInteraction_Key(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CInteraction_Key::CInteraction_Key(const CInteraction_Key& Prototype)
|
||||
: CGameObject(Prototype),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CInteraction_Key::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInteraction_Key::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fSize = _float3(1.f, 1.f, 1.f);
|
||||
m_fAlpha = 1.f;
|
||||
m_vUV = ComputeUV('Z');
|
||||
m_fViewPort = _float2(_float(g_iWinSizeX), _float(g_iWinSizeY));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CInteraction_Key::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CInteraction_Key::Update(_float fTimeDelta)
|
||||
{
|
||||
ReLockOnTarget();
|
||||
}
|
||||
|
||||
void CInteraction_Key::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bActive == true)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CInteraction_Key::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::INTERACTION_OBJECT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CInteraction_Key::Set_Active(_bool bAtcive)
|
||||
{
|
||||
m_bActive = bAtcive;
|
||||
}
|
||||
|
||||
_float4 CInteraction_Key::ComputeUV(_tchar Alphabet)
|
||||
{
|
||||
_uint Number = CMyTools::AlphabetToInt(Alphabet);
|
||||
|
||||
_float2 fIamge_Size = { 320.f, 384.f };
|
||||
|
||||
_uint iXCount = 5;
|
||||
_uint iYCount = 6;
|
||||
|
||||
_float frameWidth = 64.f;
|
||||
_float frameHeight = 64.f;
|
||||
|
||||
_uint frameX = Number % iXCount;
|
||||
_uint frameY = Number / iXCount;
|
||||
|
||||
_float2 UVStart;
|
||||
UVStart.x = frameX * frameWidth / fIamge_Size.x;
|
||||
UVStart.y = frameY * frameHeight / fIamge_Size.y;
|
||||
|
||||
_float2 UVEnd;
|
||||
UVEnd.x = UVStart.x + (frameWidth / fIamge_Size.x);
|
||||
UVEnd.y = UVStart.y + (frameHeight / fIamge_Size.y);
|
||||
|
||||
_float4 UV{};
|
||||
|
||||
return UV = _float4(UVStart.x, UVStart.y, UVEnd.x, UVEnd.y);
|
||||
}
|
||||
|
||||
void CInteraction_Key::ReLockOnTarget()
|
||||
{
|
||||
m_pInfoInstance->Get_LockOnInfo(m_LockOnInteractionObject);
|
||||
if (m_LockOnInteractionObject.pUnit != nullptr)
|
||||
return;
|
||||
|
||||
if (nullptr != m_LockOnInteractionObject.pInteractive)
|
||||
{
|
||||
if (true == m_LockOnInteractionObject.pInteractive->isDead()) {
|
||||
m_bActive = false;
|
||||
m_LockOnInteractionObject.pInteractive = nullptr;
|
||||
}
|
||||
else {
|
||||
m_bActive = true;
|
||||
m_fSize = _float3(40.f, 40.f, 1.f);
|
||||
_vector Position = XMVectorSet(m_LockOnInteractionObject.pInteractive->Get_WorldPostion().m128_f32[0],
|
||||
m_LockOnInteractionObject.pInteractive->Get_WorldPostion().m128_f32[1] + 0.5f,
|
||||
m_LockOnInteractionObject.pInteractive->Get_WorldPostion().m128_f32[2],
|
||||
m_LockOnInteractionObject.pInteractive->Get_WorldPostion().m128_f32[3]);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, Position);
|
||||
}
|
||||
}
|
||||
else{
|
||||
m_bActive = false;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CInteraction_Key::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Keyboard"), 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 CInteraction_Key::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_CamaraPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float3))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
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_fTime", &m_fTime, 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_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_fSize, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fViewport", &m_fViewPort, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CInteraction_Key* CInteraction_Key::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CInteraction_Key* pInstance = new CInteraction_Key(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CInteraction_Key");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CInteraction_Key::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CInteraction_Key* pInstance = new CInteraction_Key(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CInteraction_Key");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CInteraction_Key::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CInteraction_Key::Describe_Entity()
|
||||
{
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -85,7 +85,7 @@ HRESULT CInteractiveInfo::Refresh_LockOnTarget()
|
||||
|
||||
vInteractablePos = pInteractive->Get_LockOnPos();
|
||||
vToMonsterDir = vInteractablePos - vCameraPos;
|
||||
if (150.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) {
|
||||
if (40.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) {
|
||||
continue;
|
||||
}
|
||||
_float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
|
||||
|
||||
@@ -47,6 +47,28 @@ HRESULT CLand::Render()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLand::Render_Shadow(SHADOW eType)
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SHADOW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLand::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
#include "pch.h"
|
||||
#include "Level_Loading.h"
|
||||
|
||||
#include "Loader.h"
|
||||
#include "Light_Main.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Layer.h"
|
||||
#include "Level_Logo.h"
|
||||
#include "Level_GamePlay.h"
|
||||
#include "Level_Restart.h"
|
||||
#include "Level_Field.h"
|
||||
|
||||
#include "Intro_Image.h"
|
||||
#include "Intro_BG.h"
|
||||
#include "Loding_Panel.h"
|
||||
@@ -23,9 +22,6 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
|
||||
m_eNextLevelID = eNextLevelID;
|
||||
|
||||
m_pLoader = CLoader::Create(m_pDevice, m_pContext, eNextLevelID);
|
||||
//m_ShadowDesc.vAt = _float4(-10.f, -10.f, 10.f, 1.f);
|
||||
//m_ShadowDesc.fWidth = 300.f;
|
||||
//m_ShadowDesc.fHeight = 300.f;
|
||||
if (nullptr == m_pLoader) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -64,7 +60,6 @@ void CLevel_Loading::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (m_bNextLevel == true)
|
||||
{
|
||||
pair<CLevel*, function<void()>> pairLevel = { nullptr, nullptr };
|
||||
@@ -77,10 +72,8 @@ void CLevel_Loading::Update(_float fTimeDelta)
|
||||
} break;
|
||||
case LEVEL::GAMEPLAY:
|
||||
{
|
||||
//m_ShadowDesc.vAt = _float4(-194, 18.5f, -153.f, 1.f);
|
||||
//m_ShadowDesc.fHeight = 1000.f;
|
||||
//m_ShadowDesc.fWidth = 1000.f;
|
||||
pairLevel = CLevel_GamePlay::Create(m_pDevice, m_pContext, m_eNextLevelID, nullptr);
|
||||
Capture_TerrainPreShadow();
|
||||
} break;
|
||||
case LEVEL::FIELD:
|
||||
{
|
||||
@@ -90,12 +83,10 @@ void CLevel_Loading::Update(_float fTimeDelta)
|
||||
{
|
||||
pairLevel = CLevel_Restart::Create(m_pDevice, m_pContext, m_eNextLevelID);
|
||||
} break;
|
||||
|
||||
default:
|
||||
assert(false); // E_IMPL
|
||||
break;
|
||||
}
|
||||
// Capture_TerrainPreShadow(m_ShadowDesc);
|
||||
if (SUCCEEDED(m_pGameInstance->Change_Level(pairLevel.first))) {
|
||||
if (nullptr != pairLevel.second)
|
||||
{
|
||||
@@ -115,34 +106,17 @@ HRESULT CLevel_Loading::Render()
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
//
|
||||
//void CLevel_Loading::Capture_TerrainPreShadow(SHADOW_LIGHT_DESC& ShadowDesc)
|
||||
//{
|
||||
// CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_BACKGROUND);
|
||||
// if (nullptr != pLayer) {
|
||||
// ShadowDesc.fFar = 1000.f;
|
||||
// ShadowDesc.fNear = 0.1f;
|
||||
// _float3 vRollPichYaw = { 35.2643897f, 45.f, 0.f }; // (1, -1, 1) 방향 look
|
||||
//
|
||||
// _matrix matRotation = XMMatrixRotationRollPitchYaw(
|
||||
// XMConvertToRadians(vRollPichYaw.x), XMConvertToRadians(vRollPichYaw.y), XMConvertToRadians(vRollPichYaw.z));
|
||||
//
|
||||
// XMStoreFloat4(&ShadowDesc.vEye, XMLoadFloat4(&ShadowDesc.vAt) - matRotation.r[2] * (ShadowDesc.fFar * 0.25f));
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Ready_Shadow_Light(ShadowDesc))) {
|
||||
// assert(false);
|
||||
// }
|
||||
//
|
||||
// const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
// _float4 vPos = {};
|
||||
// for (auto& pObject : *pObjects) {
|
||||
// if (FAILED(m_pGameInstance->Add_RenderGroup(RENDER::PRESHADOW, pObject))) {
|
||||
// assert(false);
|
||||
// }
|
||||
// }
|
||||
// m_pGameInstance->Render_PreShadow();
|
||||
// }
|
||||
//}
|
||||
|
||||
void CLevel_Loading::Capture_TerrainPreShadow()
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_LIGHT);
|
||||
assert(nullptr != pLayer);
|
||||
CLight_Main* pLight = pLayer->Get_Object<CLight_Main>();
|
||||
assert(nullptr != pLight);
|
||||
if (FAILED(pLight->Capture_PreShadow())) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CLevel_Loading::Ready_Layer_BackGround(const _wstring& strLayerTag)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Light_Main.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CLight_Main::CLight_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -22,32 +23,24 @@ HRESULT CLight_Main::Initialize(void* pArg)
|
||||
if (FAILED(__super::Initialize(pArg))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(Ready_Components())){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_State(STATE::LOOK, XMVectorSet(1.f, -1.f, 1.f, 0.f));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLight_Main::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
_float4 vLook = {};
|
||||
XMStoreFloat4(&vLook, m_pTransformCom->Get_State(STATE::LOOK));
|
||||
m_pGameInstance->Ready_Shadow_Light(vLook);
|
||||
_float4 vRPYQuat = {};
|
||||
XMStoreFloat4(&vRPYQuat, m_pTransformCom->Get_QuarternionVector());
|
||||
m_pGameInstance->Ready_Shadow_Light(vRPYQuat);
|
||||
}
|
||||
|
||||
void CLight_Main::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("LIGHT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Main_Light")) {
|
||||
m_pLightCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
@@ -60,10 +53,49 @@ HRESULT CLight_Main::Render()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLight_Main::Capture_PreShadow()
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_BACKGROUND);
|
||||
assert(nullptr != pLayer);
|
||||
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
for (auto& pObject : *pObjects) {
|
||||
if (FAILED(m_pGameInstance->Add_RenderGroup(RENDER::PRESHADOW, pObject))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
vector<_float3> vNeededPos = {};
|
||||
vNeededPos.reserve(12);
|
||||
{
|
||||
// 외곽이 더 많아지면 많아질수록 더 정밀한 경계가 가능
|
||||
// 하지만 더 실제보다 멀리 외곽을 두르면 필요한 것보다 더 많이 찍게 됨
|
||||
// 결국 딱 맞춰서 찍는게 제일 중요함
|
||||
vNeededPos.emplace_back(_float3(-112.f, 155.f, 362.f));
|
||||
vNeededPos.emplace_back(_float3(- 188.f, 10.f, 476.f));
|
||||
vNeededPos.emplace_back(_float3(- 571.f, 19.f, 476.f));
|
||||
vNeededPos.emplace_back(_float3(- 326.f, -64.f, 480.f));
|
||||
vNeededPos.emplace_back(_float3(569.f, 77.f, 250.f));
|
||||
vNeededPos.emplace_back(_float3(320.f, -236.f, 360.f));
|
||||
vNeededPos.emplace_back(_float3(570.f, 277.f, -277.f));
|
||||
vNeededPos.emplace_back(_float3(570.f, 176.f, -527.f));
|
||||
vNeededPos.emplace_back(_float3(- 108.f, -64.f, -1146.f));
|
||||
vNeededPos.emplace_back(_float3(- 824.f, 128.f, -533.f));
|
||||
vNeededPos.emplace_back(_float3(- 826.f, 145.f, -150.f));
|
||||
vNeededPos.emplace_back(_float3(- 256.f, -92.f, -414.f));
|
||||
}
|
||||
_matrix xmViewMatrix = m_pTransformCom->Get_WorldMatrixInv();
|
||||
_float4x4 ViewMatrix = {}; XMStoreFloat4x4(&ViewMatrix, xmViewMatrix);
|
||||
_float4x4 ProjMatrix = {}; XMStoreFloat4x4(&ProjMatrix, Get_OffCenterProjMatrix(xmViewMatrix, vNeededPos));
|
||||
|
||||
m_pGameInstance->Render_PreShadow(ViewMatrix, ProjMatrix);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLight_Main::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
m_pTransformCom->LookAt(XMVectorSet(1.f, -4.f, 1.f, 1.f));
|
||||
LIGHT_DESC LightDesc{};
|
||||
|
||||
LightDesc.eType = LIGHT::DIRECTIONAL;
|
||||
@@ -95,6 +127,35 @@ HRESULT CLight_Main::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_matrix CLight_Main::Get_OffCenterProjMatrix(_fmatrix ViewMatrix, vector<_float3>& WorldPositions)
|
||||
{
|
||||
_float fMinX = FLT_MAX;
|
||||
_float fMinY = FLT_MAX;
|
||||
_float fMinZ = FLT_MAX;
|
||||
_float fMaxX = -FLT_MAX;
|
||||
_float fMaxY = -FLT_MAX;
|
||||
_float fMaxZ = -FLT_MAX;
|
||||
|
||||
_uint iPosNum = (_uint)WorldPositions.size();
|
||||
for (_uint iIndexPoint = 0; iIndexPoint < iPosNum; ++iIndexPoint)
|
||||
{
|
||||
_vector vLightViewPos = XMVector4Transform(XMVectorSetW(XMLoadFloat3(&WorldPositions[iIndexPoint]), 1.f), ViewMatrix);
|
||||
|
||||
_float x = XMVectorGetX(vLightViewPos);
|
||||
_float y = XMVectorGetY(vLightViewPos);
|
||||
_float z = XMVectorGetZ(vLightViewPos);
|
||||
|
||||
fMinX = min(fMinX, x); fMaxX = max(fMaxX, x);
|
||||
fMinY = min(fMinY, y); fMaxY = max(fMaxY, y);
|
||||
fMinZ = min(fMinZ, z); fMaxZ = max(fMaxZ, z);
|
||||
}
|
||||
_float fShadowDepthMArgin = 10.f; // 캐릭터 이동 보정
|
||||
fMinZ -= fShadowDepthMArgin;
|
||||
fMaxZ += fShadowDepthMArgin;
|
||||
return XMMatrixOrthographicOffCenterLH(fMinX, fMaxX, fMinY, fMaxY, fMinZ, fMaxZ);
|
||||
}
|
||||
|
||||
|
||||
CLight_Main* CLight_Main::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLight_Main* pInstance = new CLight_Main(pDevice, pContext);
|
||||
@@ -131,6 +192,20 @@ void CLight_Main::Free()
|
||||
|
||||
void CLight_Main::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("LIGHT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Main_Light")) {
|
||||
if (GUI::Button("Capture_PreShadow")) {
|
||||
if (FAILED(Capture_PreShadow())) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
m_pLightCom->Describe_Entity();
|
||||
if (GUI::Button("Sync_CamToLight")) {
|
||||
m_pTransformCom->Set_WorldMatrix(m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW_INV));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -112,6 +112,14 @@
|
||||
#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"
|
||||
|
||||
#include "Interaction_Key.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region PHYSX
|
||||
@@ -161,6 +169,7 @@
|
||||
#include "Box_Splesh.h"
|
||||
#include "Chair_Splesh.h"
|
||||
#include "Barral_Splesh.h"
|
||||
#include "Screen_Wind.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -910,6 +919,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
#pragma endregion
|
||||
#if 진우
|
||||
#elif 기무리
|
||||
#else
|
||||
#pragma region UI_ANI
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
|
||||
@@ -1715,6 +1725,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 +2037,34 @@ 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_Interaction_Key*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CInteraction_Key>(g_iStaticLevel, CInteraction_Key::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;
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ void CMapObject_Render::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
case MAPOBJECT_RENDER_TYPE::NORMAL:
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(XMLoadFloat4((_float4*)&m_CombinedWorldMatrix.m[3][0]), m_fRadius));
|
||||
break;
|
||||
case MAPOBJECT_RENDER_TYPE::GLASS:
|
||||
break;
|
||||
@@ -139,10 +140,6 @@ HRESULT CMapObject_Render::Render_Shadow(SHADOW eType)
|
||||
|
||||
for (_uint i = 0; i < iMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SHADOW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters()
|
||||
}
|
||||
vMonsterPos = pMonster->Get_LockOnPos();
|
||||
vToMonsterDir = vMonsterPos - vCameraPos;
|
||||
if (150.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) {
|
||||
if (40.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) {
|
||||
continue;
|
||||
}
|
||||
_float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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));
|
||||
@@ -522,6 +532,7 @@ void CPlayer::ReLockOnTarget()
|
||||
m_LockOnInfo.pUnit = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
//m_pLockOnMonster->Get_State
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ HRESULT CPlayer::InputAction()
|
||||
if (m_pGameInstance->Key_Down(DIK_TAB)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_TAB));
|
||||
if (m_pGameInstance->Key_Down(DIK_X)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_X));
|
||||
if (m_pGameInstance->Key_Down(DIK_G)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_G));
|
||||
if (m_pGameInstance->Key_Down(DIK_Z)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_Z));
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Border.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
#include "InfoInstance.h"
|
||||
CQuest_Border::CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Border::CQuest_Border(const CQuest_Border& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -21,8 +22,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,10 +42,11 @@ 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 = -10.f;
|
||||
m_fFontY = -50.f;
|
||||
SizeUpX(500.f);
|
||||
SizeUpY(500.f);
|
||||
m_iQuest_Count = m_pInfoInstance->Get_Quest_Count();
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -124,7 +126,14 @@ 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));
|
||||
|
||||
for (_int i = 0; i < m_iQuest_Count; ++i)
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest_Info(i).pQuestName.c_str(), _float2((-210 - m_fX), 100 + m_fY));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
Load_QuestInfo("../Bin/Resources/Data/Quest/QuestData.xml");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Data::Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
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) };
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "Mouse_Cursor.h"
|
||||
#include "CameraLockOn.h"
|
||||
#include "Damage_Font.h"
|
||||
#include "Interaction_Key.h"
|
||||
|
||||
CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CUIObject(pDevice, pContext)
|
||||
@@ -166,6 +167,11 @@ HRESULT CUI_Manager::Ready_Components(void* pArg)
|
||||
}
|
||||
Add_Canvas(TEXT("Camera_LockOn"), m_pDamage_Font);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInteraction_Key>(g_iStaticLevel, g_iStaticLevel, LAYER_UI, nullptr, this, reinterpret_cast<CInteraction_Key**>(&m_pInteraction_Key)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Canvas(TEXT("Interaction_Key"), m_pInteraction_Key);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,20 +39,24 @@ class CAccio final : public CEffect_Container
|
||||
|
||||
class CTrailObject* m_pRope_Trail = { nullptr };
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CEffectParts* m_pRotate0 = { nullptr };
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 타게팅 된 위치
|
||||
_float m_fLinearSpeed = 1.5f;
|
||||
_float m_fLinearSpeed = 0.5f;
|
||||
_float3 m_vCameraLook = {};
|
||||
|
||||
_float4x4 m_TrailWorld = {};
|
||||
CCharacter_Controller* m_pEnemyCCT = { nullptr };
|
||||
CCharacter_Controller* m_pEnemyCCT = { nullptr };
|
||||
|
||||
_float m_fAccRotateTime = {};
|
||||
_float m_fTurnSpeed = {55.f };
|
||||
_float m_fTurnSpeed = { 65.f };
|
||||
_float m_fRange = { 1.f };
|
||||
_float m_fAttenuation = { 35.f };
|
||||
_bool m_isFix = { false };
|
||||
_float m_fAttenuation = { 65.f };
|
||||
_bool m_isDissolve = { true };
|
||||
_bool m_isReverse = { false };
|
||||
_int m_iLoopTime = { 5 };
|
||||
|
||||
|
||||
public:
|
||||
static CAccio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -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,9 @@ 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 };
|
||||
_float m_fCameraOffset = { 10.f };
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
@@ -96,7 +98,7 @@ class CBroom final : public CUnit
|
||||
_float m_fAmount = { 1.f };
|
||||
_float m_fInputTime = {};
|
||||
_bool m_bRatio = { false };
|
||||
|
||||
|
||||
HRESULT InputAction();
|
||||
HRESULT InputMove();
|
||||
HRESULT InputKeyUpMove();
|
||||
|
||||
@@ -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, DISTORTION,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, INTERACTION_OBJECT, 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,
|
||||
|
||||
@@ -71,7 +73,7 @@ namespace Client
|
||||
enum class KEYINPUT
|
||||
{
|
||||
INPUT_1 = 1, INPUT_2, INPUT_3, INPUT_4,
|
||||
INPUT_T, INPUT_G, INPUT_X,
|
||||
INPUT_T, INPUT_G, INPUT_X, INPUT_Z,
|
||||
INPUT_TAB,
|
||||
DIM_RBUTTON_UP, DIM_RBUTTON_DOWN,
|
||||
END
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -27,6 +27,9 @@ class CEffectPool final : public CGameObject
|
||||
public:
|
||||
HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel , function<class CEffect_Container*(_uint , _uint)> AddPrototypeEvent);
|
||||
HRESULT Use_Skill(SKILL_TYPE eType , CGameObject* pOwner, void* pArg = nullptr);
|
||||
#ifdef _DEBUG
|
||||
HRESULT Reset_Pool();
|
||||
#endif
|
||||
private:
|
||||
list<class CEffect_Container*> m_EffectList[ENUM_CLASS(SKILL_TYPE::END)] = {};
|
||||
list<class CEffect_Container*> m_ActiveEffectList = {};
|
||||
|
||||
@@ -92,6 +92,10 @@ class CGoblin_Mage final : public CMonster
|
||||
_float m_fTargetSpeed = { 60.f };
|
||||
_float m_fSpeed = {};
|
||||
|
||||
#ifdef _DEBUG
|
||||
_bool m_isDebugMode = {};
|
||||
#endif
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
HRESULT Behavior_IdleExitCheck();
|
||||
void Behavior_IdleExit();
|
||||
|
||||
@@ -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,10 @@ 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);
|
||||
_int Get_Quest_Count();
|
||||
#pragma region Interactive_INFO
|
||||
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
||||
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
||||
@@ -79,6 +83,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);
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CInteraction_Key final : public CGameObject
|
||||
{
|
||||
private:
|
||||
CInteraction_Key(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CInteraction_Key(const CInteraction_Key& Prototype);
|
||||
virtual ~CInteraction_Key() = default;
|
||||
|
||||
public:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
public:
|
||||
void Set_Active(_bool bAtcive);
|
||||
|
||||
private:
|
||||
_float4 ComputeUV(_tchar Alphabet);
|
||||
void ReLockOnTarget();
|
||||
|
||||
private:
|
||||
const _float4x4* m_pSocketMatrices = { };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
LOCKON_INFO m_LockOnInteractionObject = { nullptr };
|
||||
|
||||
_bool m_bActive = { false };
|
||||
_bool m_bAtteckTrigger = { false };
|
||||
|
||||
_float3 m_fSize{};
|
||||
_float m_fAlpha{};
|
||||
_float m_fTime{};
|
||||
_float4 m_vUV{};
|
||||
_float2 m_fViewPort{};
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
static CInteraction_Key* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
|
||||
virtual void Free() override;
|
||||
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
NS_END
|
||||
@@ -29,6 +29,7 @@ class CLand final : public CGameObject
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual HRESULT Render_Shadow(SHADOW eType) override;
|
||||
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
|
||||
@@ -15,10 +15,9 @@ class CLevel_Loading final : public CLevel
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual _uint Get_NextLevelID() override { return ENUM_CLASS(m_eNextLevelID); };
|
||||
//virtual void Capture_TerrainPreShadow(SHADOW_LIGHT_DESC& ShadowDesc);
|
||||
virtual void Capture_TerrainPreShadow();
|
||||
|
||||
private:
|
||||
//SHADOW_LIGHT_DESC m_ShadowDesc = {};
|
||||
LEVEL m_eNextLevelID = { LEVEL::END };
|
||||
class CLoader* m_pLoader = { nullptr };
|
||||
|
||||
|
||||
@@ -17,15 +17,18 @@ class CLight_Main final : public CGameObject
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual HRESULT Capture_PreShadow();
|
||||
|
||||
private:
|
||||
CLight* m_pLightCom = { nullptr };
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
_matrix Get_OffCenterProjMatrix(_fmatrix ViewMatrix, vector<_float3>& WorldPositions);
|
||||
|
||||
public:
|
||||
static CLight_Main* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -33,7 +36,6 @@ class CLight_Main final : public CGameObject
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -35,9 +35,10 @@ class CQuest_Border final : public CElementObject
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
_int m_iColor = { false };
|
||||
|
||||
_int m_iColor{};
|
||||
_int m_iQuest_Count{};
|
||||
|
||||
public:
|
||||
static CQuest_Border* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -56,6 +56,7 @@ class CUI_Manager final : public CUIObject
|
||||
CGameObject* m_pQuest_Canvas = { nullptr };
|
||||
CGameObject* m_pCamera_LockOn = { nullptr };
|
||||
CGameObject* m_pDamage_Font = { nullptr };
|
||||
CGameObject* m_pInteraction_Key = { nullptr };
|
||||
_bool m_bCanvas_Change = { false };
|
||||
|
||||
UI_STATE m_eType{};
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user