[Add] 미니맵 UI 클라이언트에 추가
This commit is contained in:
@@ -13,6 +13,7 @@ uint g_iSpellType;
|
||||
|
||||
float g_fPI;
|
||||
float g_fFar;
|
||||
float g_fBlinkTime;
|
||||
float g_fTime;
|
||||
float g_fTimeMult;
|
||||
float g_fFrame;
|
||||
@@ -28,12 +29,20 @@ float g_fHp;
|
||||
float2 g_fOrigin_Size;
|
||||
float2 g_fCurrent_Size;
|
||||
float2 g_fHpBG;
|
||||
float2 g_Pos;
|
||||
float2 g_fImageSize;
|
||||
|
||||
float4 g_fNine_Slice;
|
||||
float4 g_fImageUV;
|
||||
float4 g_fImageUV1;
|
||||
|
||||
uint g_iArrayCount;
|
||||
float2 g_fItemPosition1;
|
||||
float2 g_fItemImageSizes1;
|
||||
float2 g_fItemPosition2;
|
||||
float2 g_fItemImageSizes2;
|
||||
float2 g_fPosition[4];
|
||||
float2 g_fImageSizes[4];
|
||||
float4 g_fImagesUV[4];
|
||||
|
||||
Texture2D g_Texture;
|
||||
@@ -41,6 +50,7 @@ Texture2D g_Texture1;
|
||||
Texture2D g_Texture2;
|
||||
Texture2D g_Texture3;
|
||||
Texture2D g_Texture4;
|
||||
Texture2D g_Texture5;
|
||||
Texture2D g_DiffuseTexture;
|
||||
Texture2D g_MaskingTexture;
|
||||
|
||||
@@ -251,6 +261,7 @@ PS_OUT PS_Sptire_Sheet(PS_IN In)
|
||||
if (Color.r <= 0.4f)
|
||||
discard;
|
||||
|
||||
|
||||
Color.a *= Alpha;
|
||||
|
||||
Out.vColor = Color;
|
||||
@@ -416,8 +427,30 @@ PS_OUT PS_SpellAnim(PS_IN In)
|
||||
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float4 color = float4(0.f, 0.f, 0.f, 0.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_Texture2.Sample(DefaultSampler, atlasUV);
|
||||
|
||||
tex1.rgb *= 0.4f;
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
if (tex2.a >= 0.9f)
|
||||
color = tex2;
|
||||
float3 BGColor = float3(1.f, 1.f, 1.f);
|
||||
|
||||
switch (g_iSpellType)
|
||||
@@ -444,39 +477,42 @@ PS_OUT PS_SpellAnim(PS_IN In)
|
||||
BGColor = float3(0.f, 0.f, 0.f);
|
||||
break;
|
||||
}
|
||||
float4 color1 = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float2 uv = In.vTexcoord;
|
||||
float2 OverrayUV = In.vTexcoord;
|
||||
float CoolTime = 1.f - g_fDeltaV;
|
||||
float CoolTime2 = 1.f - g_fDeltaV + 0.05;
|
||||
atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
|
||||
tex3.rgb *= BGColor;
|
||||
float4 tex4 = g_Texture2.Sample(DefaultSampler, atlasUV);
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, uv);
|
||||
tex1.rgb *= BGColor;
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, uv);
|
||||
if (tex4.a >= 0.9f)
|
||||
tex3 = tex4;
|
||||
|
||||
if (tex2.a >= 0.9f)
|
||||
tex1 = tex2;
|
||||
|
||||
color = tex1;
|
||||
color1 = tex3;
|
||||
|
||||
float wave1 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f;
|
||||
float wave2 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f;
|
||||
float wave1 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f;
|
||||
float wave2 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f;
|
||||
|
||||
float waveThreshold1 = CoolTime + wave1;
|
||||
float waveThreshold2 = CoolTime2 + wave2;
|
||||
|
||||
if (g_fDeltaV <= 1.f)
|
||||
{
|
||||
if (uv.y >= waveThreshold1 && uv.y <= waveThreshold2)
|
||||
if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
|
||||
{
|
||||
color.rgb = float3(1.f, 1.f, 1.f);
|
||||
color1.rgb = float3(1.f, 1.f, 1.f);
|
||||
}
|
||||
}
|
||||
|
||||
if (uv.y <= CoolTime)
|
||||
if (OverrayUV.y <= CoolTime)
|
||||
{
|
||||
color.a = 0.f;
|
||||
color1.a = 0.f;
|
||||
}
|
||||
|
||||
color = lerp(color, color1, color1.a);
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
@@ -488,6 +524,7 @@ PS_OUT PS_HpBar(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);
|
||||
float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float2 uv = In.vTexcoord;
|
||||
float2 CurrentPixelPosition = uv * g_fCurrent_Size;
|
||||
float OriginLeft = g_fNine_Slice.x;
|
||||
@@ -533,24 +570,46 @@ PS_OUT PS_HpBar(PS_IN In)
|
||||
}
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
|
||||
tex1.rgb = float3(255.f, 0.f, 0.f) / 255.f;
|
||||
if (g_fHp <= 0.3f)
|
||||
{
|
||||
tex1.a *= (sin(g_fBlinkTime) * 0.25f + 0.75f) * 1.5f;
|
||||
}
|
||||
else
|
||||
{
|
||||
tex1.a = 0.f;
|
||||
}
|
||||
Color = tex1;
|
||||
|
||||
float2 BGPos = g_Pos;
|
||||
float2 BGSize = g_fImageSize;
|
||||
float2 BGPixel = Finaluv * g_fOrigin_Size;
|
||||
float2 localUV = (BGPixel - BGPos) / BGSize;
|
||||
bool inside = all(localUV >= 0.0f && localUV <= 1.0f);
|
||||
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, localUV);
|
||||
|
||||
if (inside)
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
|
||||
float2 reversuv = In.vTexcoord;
|
||||
|
||||
reversuv.x = 1.0f - Finaluv;
|
||||
reversuv.x = 1.0f - localUV.x;
|
||||
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv);
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, localUV);
|
||||
|
||||
if (reversuv.x >= g_fHp)
|
||||
{
|
||||
tex2.rgb = float3(0.f, 0.f, 0.f);
|
||||
tex3.rgb = float3(0.f, 0.f, 0.f);
|
||||
}
|
||||
|
||||
float3 Green = float3(112.f, 241.f, 31.f) / 255.f;
|
||||
Green *= 1.2f;
|
||||
tex2.rgb *= Green;
|
||||
float3 Green = (float3(112.f, 241.f, 31.f) / 255.f) * 1.2f;
|
||||
float3 Red = (float3(255.f, 0.f, 0.f) / 255.f) * 1.2f;
|
||||
|
||||
if (all(Color.rgb >= float3(70.f / 255.f, 70.f / 255.f, 70.f / 255.f)))
|
||||
Color = tex2;
|
||||
tex3.rgb *= lerp(Green, Red, g_fTime);
|
||||
|
||||
if (all(Color.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f)))
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
@@ -595,18 +654,28 @@ PS_OUT PS_Magic_Icon(PS_IN In)
|
||||
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
float2 center = float2(0.5f, 0.5f);
|
||||
float2 BGuv = In.vTexcoord - center;
|
||||
BGuv *= sqrt(2.0f);
|
||||
float2 Rotation = In.vTexcoord;
|
||||
Rotation.x = BGuv.x * cos(g_fAngle) - BGuv.y * sin(g_fAngle);
|
||||
Rotation.y = BGuv.x * sin(g_fAngle) + BGuv.y * cos(g_fAngle);
|
||||
Rotation += center;
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
|
||||
|
||||
Color = tex1;
|
||||
Color = lerp(tex1, tex2, tex2.a);
|
||||
|
||||
float2 uv = In.vTexcoord;
|
||||
float2 center = float2(0.5, 0.5);
|
||||
float scale = 1.2;
|
||||
|
||||
uv = (uv - center) * scale + center;
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, uv);
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, uv);
|
||||
|
||||
Color = tex1;
|
||||
|
||||
Color = tex1 * (1 - tex2.a) + tex2;
|
||||
|
||||
Color = Color * (1 - tex3.a) + tex3;
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
@@ -645,30 +714,30 @@ PS_OUT PS_Revelio(PS_IN In)
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float2 UV = In.vTexcoord;
|
||||
|
||||
float2 Position[4];
|
||||
float2 startUV[4];
|
||||
float2 endUV[4];
|
||||
//float2 Position[4];
|
||||
//float2 startUV[4];
|
||||
//float2 endUV[4];
|
||||
|
||||
float2 Atlases[4];
|
||||
//float2 Atlases[4];
|
||||
|
||||
for (int i = 0; i < 4; ++i)
|
||||
{
|
||||
Position[i] = g_fPosition[i];
|
||||
startUV[i] = g_fImagesUV[i].xy;
|
||||
endUV[i] = g_fImagesUV[i].zw;
|
||||
//for (int i = 0; i < 4; ++i)
|
||||
//{
|
||||
// Position[i] = g_fPosition[i];
|
||||
// startUV[i] = g_fImagesUV[i].xy;
|
||||
// endUV[i] = g_fImagesUV[i].zw;
|
||||
|
||||
Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]);
|
||||
}
|
||||
// Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]);
|
||||
//}
|
||||
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, UV);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]);
|
||||
float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]);
|
||||
float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]);
|
||||
float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]);
|
||||
//float4 tex1 = g_Texture.Sample(DefaultSampler, UV);
|
||||
//float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]);
|
||||
//float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]);
|
||||
//float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]);
|
||||
//float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]);
|
||||
|
||||
|
||||
|
||||
//float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
////float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
@@ -676,6 +745,169 @@ PS_OUT PS_Revelio(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Potion(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float4 Color = float4(214.f / 255.f, 225 / 255.f, 36 / 255.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;
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
Color = tex1;
|
||||
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
|
||||
//Color += tex2;
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, Rotation);
|
||||
Color = lerp(Color, tex3, tex3.a);
|
||||
|
||||
float2 Potionuv = In.vTexcoord;
|
||||
float scale = 1.2;
|
||||
|
||||
Potionuv = (Potionuv - center) * scale + center;
|
||||
float4 tex4 = g_Texture3.Sample(ClampSampler, Potionuv);
|
||||
Color = lerp(Color, tex4, tex4.a);
|
||||
|
||||
float2 tex5pos = g_Pos / g_fCurrent_Size;
|
||||
float2 tex5size = g_fOrigin_Size / g_fCurrent_Size;
|
||||
float2 tex5local = (In.vTexcoord - tex5pos) / tex5size;
|
||||
bool inside = all(tex5local >= 0.0f && tex5local <= 1.0f);
|
||||
float4 tex5 = g_Texture4.Sample(ClampSampler, tex5local);
|
||||
if (inside)
|
||||
Color = lerp(Color, tex5, tex5.a);
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Magic_Item(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_Texture3.Sample(ClampSampler, atlasUV);
|
||||
|
||||
tex1.rgb *= 0.4f;
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
if (tex2.a >= 0.9f)
|
||||
color = tex2;
|
||||
float3 BGColor = float3(1.f, 1.f, 1.f);
|
||||
|
||||
switch (g_iSpellType)
|
||||
{
|
||||
case 0:
|
||||
BGColor = float3(50.f, 50.f, 50.f) / 255.f;
|
||||
break;
|
||||
case 1:
|
||||
BGColor = float3(89.f, 32.f, 215.f) / 255.f;
|
||||
break;
|
||||
case 2:
|
||||
BGColor = float3(190.f, 46., 34.f) / 255.f;
|
||||
break;
|
||||
case 3:
|
||||
BGColor = float3(37.f, 129.f, 162.f) / 255.f;
|
||||
break;
|
||||
case 4:
|
||||
BGColor = float3(134.f, 171.f, 78.f) / 255.f;
|
||||
break;
|
||||
}
|
||||
|
||||
float4 color1 = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float2 OverrayUV = In.vTexcoord;
|
||||
float CoolTime = 0.f + g_fDeltaV;
|
||||
float CoolTime2 = 0.f + g_fDeltaV + 0.05;
|
||||
atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
|
||||
tex3.rgb *= BGColor;
|
||||
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
|
||||
|
||||
if (g_fDeltaV <= 1.f)
|
||||
{
|
||||
if (tex4.a >= 0.9f)
|
||||
tex3 = tex4;
|
||||
|
||||
color1 = tex3;
|
||||
|
||||
float wave1 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f;
|
||||
float wave2 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f;
|
||||
|
||||
float waveThreshold1 = CoolTime + wave1;
|
||||
float waveThreshold2 = CoolTime2 + wave2;
|
||||
|
||||
if (g_fDeltaV <= 1.f)
|
||||
{
|
||||
if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
|
||||
{
|
||||
color1.rgb = float3(1.f, 1.f, 1.f);
|
||||
}
|
||||
}
|
||||
|
||||
if (OverrayUV.y <= CoolTime)
|
||||
{
|
||||
color1.a = 0.f;
|
||||
}
|
||||
|
||||
color = lerp(color, color1, color1.a);
|
||||
}
|
||||
else if (g_fDeltaV >= 1.f)
|
||||
color = lerp(color, tex4, tex4.a);
|
||||
|
||||
float4 tex5 = g_Texture2.Sample(ClampSampler, Rotation);
|
||||
color = lerp(color, tex5, tex5.a);
|
||||
|
||||
float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
|
||||
float2 texpos2 = g_fItemPosition2 / g_fCurrent_Size;
|
||||
float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
|
||||
float2 texsize2 = g_fItemImageSizes2 / g_fCurrent_Size;
|
||||
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
|
||||
float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2;
|
||||
|
||||
|
||||
bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
float4 tex6 = g_Texture4.Sample(DefaultSampler, texlocal1);
|
||||
|
||||
if (inside1)
|
||||
color = lerp(color, tex6, tex6.a);
|
||||
|
||||
bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f);
|
||||
|
||||
float4 tex7 = g_Texture5.Sample(DefaultSampler, texlocal2);
|
||||
if (inside2)
|
||||
color = lerp(color, tex7, tex7.a);
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 PosTexTechnique11
|
||||
{
|
||||
pass Default
|
||||
@@ -856,4 +1088,24 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_Revelio();
|
||||
}
|
||||
|
||||
pass Potion
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Potion();
|
||||
}
|
||||
|
||||
pass Magic_Item
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Magic_Item();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -157,6 +157,7 @@
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Bombard.h" />
|
||||
<ClInclude Include="..\Public\Broom.h" />
|
||||
<ClInclude Include="..\public\BuildingContainer.h" />
|
||||
@@ -177,12 +178,19 @@
|
||||
<ClInclude Include="..\Public\Client_Enum.h" />
|
||||
<ClInclude Include="..\Public\Client_Macro.h" />
|
||||
<ClInclude Include="..\Public\Client_Struct.h" />
|
||||
<ClInclude Include="..\public\GamePlay_Canvas.h" />
|
||||
<ClInclude Include="..\Public\Goblin.h" />
|
||||
<ClInclude Include="..\Public\LoadingWidget.h" />
|
||||
<ClInclude Include="..\Public\Loading_Panel.h" />
|
||||
<ClInclude Include="..\public\MapContainer.h" />
|
||||
<ClInclude Include="..\public\MapObject_Collision.h" />
|
||||
<ClInclude Include="..\public\MapObject_Render.h" />
|
||||
<ClInclude Include="..\public\MapPartObject.h" />
|
||||
<ClInclude Include="..\Public\MiniMap_Panel.h" />
|
||||
<ClInclude Include="..\Public\MiniMap_TrimBorder.h" />
|
||||
<ClInclude Include="..\Public\Mission_Panel.h" />
|
||||
<ClInclude Include="..\Public\Monster.h" />
|
||||
<ClInclude Include="..\Public\NoMountIcon.h" />
|
||||
<ClInclude Include="..\Public\PhysXEffectHitBox.h" />
|
||||
<ClInclude Include="..\Public\Dummy_PhysXPlayable.h" />
|
||||
<ClInclude Include="..\Public\Dummy_PhysXWall.h" />
|
||||
@@ -220,6 +228,7 @@
|
||||
<ClInclude Include="targetver.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Bombard.cpp" />
|
||||
<ClCompile Include="..\Private\Broom.cpp" />
|
||||
<ClCompile Include="..\private\BuildingContainer.cpp" />
|
||||
@@ -233,13 +242,20 @@
|
||||
<ClCompile Include="..\Private\Camera_Gaze.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_Arm.cpp" />
|
||||
<ClCompile Include="..\private\GamePlay_Canvas.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp" />
|
||||
<ClCompile Include="..\Private\LoadingWidget.cpp" />
|
||||
<ClCompile Include="..\Private\Loading_Panel.cpp" />
|
||||
<ClCompile Include="..\private\MapContainer.cpp" />
|
||||
<ClCompile Include="..\private\MapObject_Collision.cpp" />
|
||||
<ClCompile Include="..\private\MapObject_Render.cpp" />
|
||||
<ClCompile Include="..\private\MapPartObject.cpp" />
|
||||
<ClCompile Include="..\Private\MiniMap_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\MiniMap_TrimBorder.cpp" />
|
||||
<ClCompile Include="..\Private\Mission_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Monster.cpp" />
|
||||
<ClCompile Include="..\Private\NoMountIcon.cpp" />
|
||||
<ClCompile Include="..\Private\PhysXEffectHitBox.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_Shoulder.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_Socket.cpp" />
|
||||
|
||||
@@ -184,6 +184,30 @@
|
||||
<ClInclude Include="..\public\Terrain.h">
|
||||
<Filter>02.GameObjects\Environment\Terrain</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\GamePlay_Canvas.h">
|
||||
<Filter>02.GameObjects\UI</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\LoadingWidget.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Loading_Panel.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Loding_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Action_Panel.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Action_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\MiniMap_Panel.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Mission_Panel.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Mission_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\MiniMap_TrimBorder.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\MiniMap_TrimBorder</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\NoMountIcon.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -440,6 +464,12 @@
|
||||
<Filter Include="02.GameObjects\Environment\Terrain">
|
||||
<UniqueIdentifier>{7db61780-d774-4a91-a429-2fb7634e43b3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\MiniMap_TrimBorder">
|
||||
<UniqueIdentifier>{59283aaa-2cb7-40da-97a7-2705ed78c830}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon">
|
||||
<UniqueIdentifier>{e5e2a92a-d549-4573-b8e7-d48e7a409888}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -613,6 +643,30 @@
|
||||
<ClCompile Include="..\private\Terrain.cpp">
|
||||
<Filter>02.GameObjects\Environment\Terrain</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Loading_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Loding_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\LoadingWidget.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\GamePlay_Canvas.cpp">
|
||||
<Filter>02.GameObjects\UI</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Action_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\MiniMap_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Mission_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Mission_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\MiniMap_TrimBorder.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\MiniMap_TrimBorder</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\NoMountIcon.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
|
||||
@@ -0,0 +1,297 @@
|
||||
#include "pch.h"
|
||||
#include "Action_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
//#include "Spell_Slot.h"
|
||||
//#include "Spell_Overlay.h"
|
||||
//#include "Slot_Number.h"
|
||||
//#include "HpBarBG.h"
|
||||
//#include "Magic_Meter.h"
|
||||
//#include "Magic_Icon.h"
|
||||
//#include "Spell_UI.h"
|
||||
//#include "Potion.h"
|
||||
//#include "Magic_Item.h"
|
||||
|
||||
CAction_Panel::CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CAction_Panel::CAction_Panel(const CAction_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 1150.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) };
|
||||
|
||||
|
||||
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_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 3.f;
|
||||
m_fOwnerAlpha = 1.f;
|
||||
m_fCanvasAlpha = 1.f;
|
||||
//Magic_Meter_UV();
|
||||
//Magic_Meter_Visible(1, true);
|
||||
//Magic_Meter_Visible(5, true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CAction_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CAction_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Matic_Meter_Move();
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CAction_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bVisible) {
|
||||
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CAction_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
void CAction_Panel::Magic_Meter_Visible(_uint iIndex, _bool bVisible)
|
||||
{
|
||||
/*switch (iIndex)
|
||||
{
|
||||
case 1:
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter1)->Visible(bVisible);
|
||||
break;
|
||||
case 2:
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter2)->Visible(bVisible);
|
||||
break;
|
||||
case 3:
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter3)->Visible(bVisible);
|
||||
break;
|
||||
case 4:
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter4)->Visible(bVisible);
|
||||
break;
|
||||
case 5:
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter5)->Visible(bVisible);
|
||||
break;
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
if (bVisible)
|
||||
m_iMagic_Meter_Count++;
|
||||
else
|
||||
m_iMagic_Meter_Count--;*/
|
||||
}
|
||||
|
||||
void CAction_Panel::Magic_Meter_UV()
|
||||
{
|
||||
//static_cast<CMagic_Meter*>(m_pMagic_Meter1)->Meter_Index(2);
|
||||
//static_cast<CMagic_Meter*>(m_pMagic_Meter2)->Meter_Index(1);
|
||||
//static_cast<CMagic_Meter*>(m_pMagic_Meter3)->Meter_Index(1);
|
||||
//static_cast<CMagic_Meter*>(m_pMagic_Meter4)->Meter_Index(1);
|
||||
//static_cast<CMagic_Meter*>(m_pMagic_Meter5)->Meter_Index(0);
|
||||
|
||||
//for (_uint i = 0; i < 5; ++i)
|
||||
//{
|
||||
// m_vMagic_MeterUV[i].x = 570.f - (55.f * i);
|
||||
// m_vMagic_MeterUV[i].y = 145.f;
|
||||
//}
|
||||
}
|
||||
|
||||
void CAction_Panel::Matic_Meter_Move()
|
||||
{
|
||||
|
||||
/*static_cast<CMagic_Meter*>(m_pMagic_Meter1)->Move(m_vMagic_MeterUV[0].x, m_vMagic_MeterUV[0].y);
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
|
||||
|
||||
if (static_cast<CMagic_Meter*>(m_pMagic_Meter2)->Get_Active() == true)
|
||||
{
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
|
||||
}
|
||||
if (static_cast<CMagic_Meter*>(m_pMagic_Meter3)->Get_Active() == true)
|
||||
{
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter3)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[3].x, m_vMagic_MeterUV[3].y);
|
||||
}
|
||||
if (static_cast<CMagic_Meter*>(m_pMagic_Meter4)->Get_Active() == true)
|
||||
{
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter3)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter4)->Move(m_vMagic_MeterUV[3].x, m_vMagic_MeterUV[3].y);
|
||||
static_cast<CMagic_Meter*>(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[4].x, m_vMagic_MeterUV[4].y);
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Slot>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CSpell_Slot**>(&m_pSpell_Slot))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Spell_Slot"), m_pSpell_Slot);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Overlay>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Overlay**>(&m_pSpell_Overlay))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Spell_Overlay"), m_pSpell_Overlay);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSlot_Number>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSlot_Number**>(&m_pSlot_Number))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Slot_Number"), m_pSlot_Number);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CHpBarBG>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CHpBarBG**>(&m_pHpBarBG))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("HpBarBG"), m_pHpBarBG);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMagic_Meter>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMagic_Meter**>(&m_pMagic_Meter1))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Magic_Meter1"), m_pMagic_Meter1);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMagic_Meter>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMagic_Meter**>(&m_pMagic_Meter2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Magic_Meter2"), m_pMagic_Meter2);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMagic_Meter>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMagic_Meter**>(&m_pMagic_Meter3))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Magic_Meter3"), m_pMagic_Meter3);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMagic_Meter>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMagic_Meter**>(&m_pMagic_Meter4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Magic_Meter4"), m_pMagic_Meter4);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMagic_Meter>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMagic_Meter**>(&m_pMagic_Meter5))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Magic_Meter5"), m_pMagic_Meter5);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMagic_Icon>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMagic_Icon**>(&m_pMagic_Icon))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Magic_Icon"), m_pMagic_Icon);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_UI>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_UI**>(&m_pSpell_UI))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Spell_UI"), m_pSpell_UI);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPotion>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CPotion**>(&m_pPotion))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Potion"), m_pPotion);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMagic_Item>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMagic_Item**>(&m_pMagic_Item))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Magic_Item"), m_pMagic_Item);*/
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CAction_Panel* CAction_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CAction_Panel* pInstance = new CAction_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CAction_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CAction_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CAction_Panel* pInstance = new CAction_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CAction_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CAction_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CAction_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
#include "pch.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "GameInstance.h"
|
||||
//#include "Mission_Panel.h"
|
||||
//#include "MiniMap_Panel.h"
|
||||
#include "Mission_Panel.h"
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "Loading_Panel.h"
|
||||
//#include "Action_Panel.h"
|
||||
#include "Action_Panel.h"
|
||||
//#include "Mouse_Cursor.h"
|
||||
|
||||
CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -95,23 +95,23 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
|
||||
}
|
||||
Add_Panel(TEXT("LoadingPanel"), m_pLoading_Panel);
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMiniMap_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMiniMap_Panel**>(&m_pMinimap_Panel))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//Add_Panel(TEXT("MinimapPanel"), m_pMinimap_Panel);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMiniMap_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMiniMap_Panel**>(&m_pMinimap_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("MinimapPanel"), m_pMinimap_Panel);
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMission_Panel**>(&m_pMission_Panel))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//Add_Panel(TEXT("MissionPanel"), m_pMission_Panel);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMission_Panel**>(&m_pMission_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("MissionPanel"), m_pMission_Panel);
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CAction_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CAction_Panel**>(&m_pAction_Panel))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//Add_Panel(TEXT("ActionPanel"), m_pAction_Panel);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CAction_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CAction_Panel**>(&m_pAction_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("ActionPanel"), m_pAction_Panel);
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -106,9 +106,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
{
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGamePlay_Canvas>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_UI))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGamePlay_Canvas>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_UI))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -6,9 +6,22 @@
|
||||
#include "Camera_Debug.h"
|
||||
#include "Client_Struct.h"
|
||||
#include "Model.h"
|
||||
//#include "GamePlay_Canvas.h"
|
||||
//#include "Loading_Panel.h"
|
||||
//#include "LoadingWidget.h"
|
||||
|
||||
#pragma region UI
|
||||
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "Loading_Panel.h"
|
||||
#include "LoadingWidget.h"
|
||||
|
||||
#include "Action_Panel.h"
|
||||
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
#include "NoMountIcon.h"
|
||||
|
||||
#include "Mission_Panel.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#include "Player.h"
|
||||
#include "Camera_Gaze.h"
|
||||
@@ -154,11 +167,196 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("LoadingWidget"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Loading/LoadingWidget.png"), 0)))) {
|
||||
#pragma region UI
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Keyboard", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Action", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Cursor"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Mission", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Mission_Icon"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/Mission_Icon_%d.png"), 2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("ActiveMission_Icon"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/ActiveMission_Icon_%d.png"), 2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Megic_Metar"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Action/Megic_Meter%d.png"), 3)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/MiniMap", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
Asset_FileLoad("../Bin/Resources/Textures/HUD", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Loading", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Spells", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Spells/SpellMeters", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Potions", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/GadgetWheel", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Item"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region TERRAIN_TEXTURE
|
||||
/* Terrain_Diffuse */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Diffuse"),
|
||||
@@ -470,15 +668,43 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CLoading_Panel>(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CLoadingWidget>(g_iStaticLevel, CLoadingWidget::Create(m_pDevice, m_pContext)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
/* For.Prototype_GameObject_GamePlay_Canvas*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Action_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CAction_Panel>(g_iStaticLevel, CAction_Panel::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Loading_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLoading_Panel>(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Mission_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMission_Panel>(g_iStaticLevel, CMission_Panel::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_MiniMap_TrimBorder*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMiniMap_TrimBorder>(g_iStaticLevel, CMiniMap_TrimBorder::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_NoMountIcon*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNoMountIcon>(g_iStaticLevel, CNoMountIcon::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Minimap_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMiniMap_Panel>(g_iStaticLevel, CMiniMap_Panel::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_LoadingWidget*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLoadingWidget>(g_iStaticLevel, CLoadingWidget::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_SkyBox */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSkyBox>(g_iStaticLevel, CSkyBox::Create(m_pDevice, m_pContext))))
|
||||
|
||||
@@ -36,18 +36,18 @@ HRESULT CLoadingWidget::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_iImageFrameX = 6;
|
||||
m_iImageFrameY = 6;
|
||||
m_fFrame = 0.2f;
|
||||
m_fTimeMult = 3.f;
|
||||
m_fDelayTime = 1.f;
|
||||
m_fEndTime = 1.8f;
|
||||
// UI의 알파값을 조절
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 3.f;
|
||||
m_fMoveSpeed = 10.f;
|
||||
m_bVisible = true;
|
||||
m_bActive = true;
|
||||
|
||||
// 스프라이트 애니메이션의 정보
|
||||
m_fTimeMult = 3.f; // 속도
|
||||
m_fDelayTime = 1.f; // 딜레이
|
||||
m_fFrame = 0.2f; // 프레임
|
||||
m_iImageFrameX = 6; // 이미지의 x 갯수
|
||||
m_iImageFrameY = 6; // 이미지의 y 갯수
|
||||
|
||||
//m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -90,15 +90,7 @@ void CLoadingWidget::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
if (m_bLerpOn == true)
|
||||
{
|
||||
Start_Lerp(m_fMoveSpeed);
|
||||
}
|
||||
|
||||
if (m_bLerpOff == true)
|
||||
{
|
||||
Reset_Pos(m_fMoveSpeed);
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -197,7 +189,7 @@ HRESULT CLoadingWidget::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::STATIC), TEXT("LoadingWidget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_LoadingWidget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@ HRESULT CLoading_Panel::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_bVisible = true;
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
#include "pch.h"
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
#include "NoMountIcon.h"
|
||||
|
||||
CMiniMap_Panel::CMiniMap_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CMiniMap_Panel::CMiniMap_Panel(const CMiniMap_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 170.f;
|
||||
Desc.fY = 920.f;
|
||||
Desc.fSizeX = 280.f;
|
||||
Desc.fSizeY = 280.f;
|
||||
|
||||
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_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMiniMap_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMiniMap_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMiniMap_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_Panel::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CMiniMap_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMiniMap_TrimBorder>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CMiniMap_TrimBorder**>(&m_pMiniMap_TrimBorder))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("MiniMap_TrimBorder"), m_pMiniMap_TrimBorder);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNoMountIcon>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CNoMountIcon**>(&m_pNoMountIcon))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("NoMountIcon"), m_pNoMountIcon);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CMiniMap_Panel* CMiniMap_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMiniMap_Panel* pInstance = new CMiniMap_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMiniMap_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMiniMap_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMiniMap_Panel* pInstance = new CMiniMap_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMiniMap_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMiniMap_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CMiniMap_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
#include "pch.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CMiniMap_TrimBorder::CMiniMap_TrimBorder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CMiniMap_TrimBorder::CMiniMap_TrimBorder(const CMiniMap_TrimBorder& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_TrimBorder::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_TrimBorder::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -20.f;
|
||||
Desc.fY = 0;
|
||||
Desc.fSizeX = 290.f;
|
||||
Desc.fSizeY = 290.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 3.f;
|
||||
|
||||
m_bActive = true;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMiniMap_TrimBorder::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMiniMap_TrimBorder::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMiniMap_TrimBorder::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_TrimBorder::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 CMiniMap_TrimBorder::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CMiniMap_TrimBorder::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_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_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 CMiniMap_TrimBorder::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_HUD_MiniMap_TrimBorder"), 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;
|
||||
}
|
||||
|
||||
CMiniMap_TrimBorder* CMiniMap_TrimBorder::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMiniMap_TrimBorder* pInstance = new CMiniMap_TrimBorder(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMiniMap_TrimBorder");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMiniMap_TrimBorder::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMiniMap_TrimBorder* pInstance = new CMiniMap_TrimBorder(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMiniMap_TrimBorder");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMiniMap_TrimBorder::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CMiniMap_TrimBorder::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,172 @@
|
||||
#include "pch.h"
|
||||
#include "Mission_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
//#include "Mission_KeyHold.h"
|
||||
//#include "Mission_Key.h"
|
||||
//#include "Active_Icon.h"
|
||||
//#include "MissionBanner_Border.h"
|
||||
//#include "MissionBanner_Key.h"
|
||||
|
||||
CMission_Panel::CMission_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CMission_Panel::CMission_Panel(const CMission_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 380.f;
|
||||
Desc.fY = 612.f;
|
||||
Desc.fSizeX = 750.f;
|
||||
Desc.fSizeY = 410.f;
|
||||
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMission_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMission_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CMission_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bVisible) {
|
||||
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CMission_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMission_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMissionBanner_Border>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMissionBanner_Border**>(&m_pMissionBanner_Border))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("MissionBanner_Border"), m_pMissionBanner_Border);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMissionBanner_Key>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMissionBanner_Key**>(&m_pMissionBanner_Key))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("MissionBanner_Key"), m_pMissionBanner_Key);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_KeyHold>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMission_KeyHold**>(&m_pMission_KeyHold))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Mission_KeyHold"), m_pMission_KeyHold);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMission_Key>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CMission_Key**>(&m_pMission_Key))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Mission_Key"), m_pMission_Key);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CActive_Icon>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CActive_Icon**>(&m_pActive_Icon))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Active_Icon"), m_pActive_Icon);
|
||||
*/
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CMission_Panel* CMission_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMission_Panel* pInstance = new CMission_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMission_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMission_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMission_Panel* pInstance = new CMission_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMission_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMission_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CMission_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
#include "pch.h"
|
||||
#include "NoMountIcon.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CNoMountIcon::CNoMountIcon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CNoMountIcon::CNoMountIcon(const CNoMountIcon& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CNoMountIcon::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNoMountIcon::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 120.f;
|
||||
Desc.fY = -90;
|
||||
Desc.fSizeX = 65.f;
|
||||
Desc.fSizeY = 65.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 0.7f;
|
||||
m_fAlphaTime = 3.f;
|
||||
m_bActive = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CNoMountIcon::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CNoMountIcon::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 7.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 7.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 7.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CNoMountIcon::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CNoMountIcon::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 CNoMountIcon::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CNoMountIcon::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_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_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 CNoMountIcon::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_NoMountIcon"), 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;
|
||||
}
|
||||
|
||||
CNoMountIcon* CNoMountIcon::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CNoMountIcon* pInstance = new CNoMountIcon(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CNoMountIcon");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CNoMountIcon::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CNoMountIcon* pInstance = new CNoMountIcon(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CNoMountIcon");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CNoMountIcon::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CNoMountIcon::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CAction_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CAction_Panel(const CAction_Panel& rhs);
|
||||
virtual ~CAction_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:
|
||||
void Magic_Meter_Visible(_uint iIndex, _bool bVisible);
|
||||
void Magic_Meter_UV();
|
||||
void Matic_Meter_Move();
|
||||
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 };
|
||||
|
||||
_float2 m_vMagic_MeterUV[5] = {};
|
||||
_uint m_iMagic_Meter_Count{};
|
||||
|
||||
CGameObject* m_pSpell_Slot = { nullptr };
|
||||
CGameObject* m_pSpell_Overlay = { nullptr };
|
||||
CGameObject* m_pSlot_Number = { nullptr };
|
||||
CGameObject* m_pHpBarBG = { nullptr };
|
||||
CGameObject* m_pMagic_Meter1 = { nullptr };
|
||||
CGameObject* m_pMagic_Meter2 = { nullptr };
|
||||
CGameObject* m_pMagic_Meter3 = { nullptr };
|
||||
CGameObject* m_pMagic_Meter4 = { nullptr };
|
||||
CGameObject* m_pMagic_Meter5 = { nullptr };
|
||||
CGameObject* m_pMagic_Icon = { nullptr };
|
||||
CGameObject* m_pSpell_UI = { nullptr };
|
||||
CGameObject* m_pPotion = { nullptr };
|
||||
CGameObject* m_pMagic_Item = { nullptr };
|
||||
|
||||
public:
|
||||
static CAction_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -3,6 +3,12 @@
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CLoadingWidget final : public CElementObject
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CMiniMap_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CMiniMap_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMiniMap_Panel(const CMiniMap_Panel& rhs);
|
||||
virtual ~CMiniMap_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 };
|
||||
CGameObject* m_pMiniMap_TrimBorder = { nullptr };
|
||||
CGameObject* m_pNoMountIcon = { nullptr };
|
||||
|
||||
|
||||
public:
|
||||
static CMiniMap_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,48 @@
|
||||
#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 CMiniMap_TrimBorder final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CMiniMap_TrimBorder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMiniMap_TrimBorder(const CMiniMap_TrimBorder& rhs);
|
||||
virtual ~CMiniMap_TrimBorder() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
|
||||
public:
|
||||
static CMiniMap_TrimBorder* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CMission_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CMission_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMission_Panel(const CMission_Panel& rhs);
|
||||
virtual ~CMission_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:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CGameObject* m_pMissionBanner_Border = { nullptr };
|
||||
CGameObject* m_pMissionBanner_Key = { nullptr };
|
||||
CGameObject* m_pMission_KeyHold = { nullptr };
|
||||
CGameObject* m_pMission_Key = { nullptr };
|
||||
CGameObject* m_pActive_Icon = { nullptr };
|
||||
|
||||
public:
|
||||
static CMission_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,48 @@
|
||||
#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 CNoMountIcon final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CNoMountIcon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CNoMountIcon(const CNoMountIcon& rhs);
|
||||
virtual ~CNoMountIcon() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
|
||||
public:
|
||||
static CNoMountIcon* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -77,7 +77,7 @@ HRESULT CEffectObject::Render_Blur()
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD)
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_WORLD;
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NON_WORLD_BLUR;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -800.f;
|
||||
Desc.fY = 100.f;
|
||||
Desc.fY = 70.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
|
||||
|
||||
@@ -22,9 +22,9 @@ HRESULT CMiniMap_TrimBorder::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -20.f;
|
||||
Desc.fY = 30;
|
||||
Desc.fSizeX = 256.f;
|
||||
Desc.fSizeY = 256.f;
|
||||
Desc.fY = 0;
|
||||
Desc.fSizeX = 290.f;
|
||||
Desc.fSizeY = 290.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) };
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ HRESULT CNoMountIcon::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 100.f;
|
||||
Desc.fY = -55;
|
||||
Desc.fSizeX = 50.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
Desc.fX = 120.f;
|
||||
Desc.fY = -90;
|
||||
Desc.fSizeX = 65.f;
|
||||
Desc.fSizeY = 65.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,7 @@ HRESULT CSlot_Number::Initialize(void* pArg)
|
||||
m_iCols = 4;
|
||||
UV();
|
||||
m_pVIBufferCom->Set_Cloned(true);
|
||||
m_pVIBufferCom->Set_Pos(350.f, 30.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Pos(350.f, 10.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_pVIBufferCom->Set_ImageUV(pUVDesc);
|
||||
return S_OK;
|
||||
|
||||
@@ -22,9 +22,9 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 380.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
Desc.fY = 30.f;
|
||||
Desc.fSizeX = 105.f;
|
||||
Desc.fSizeY = 105.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
Desc.fSizeX = 105.f;
|
||||
Desc.fSizeY = 105.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
@@ -45,7 +45,7 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
|
||||
m_fOffSetY = 101.f;
|
||||
m_iCols = 4;
|
||||
m_pVIBufferCom->Set_Cloned(true);
|
||||
m_pVIBufferCom->Set_Pos(380.f, 0.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Pos(380.f, -30.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_pVIBufferCom->Set_ImageUV();
|
||||
return S_OK;
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CSpell_UI::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 650.f;
|
||||
Desc.fY = -90.f;
|
||||
Desc.fY = -60.f;
|
||||
Desc.fSizeX = 180.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Editor
|
||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END };
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR ,END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, ALPHA_BLEND, END };
|
||||
enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, END };
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, END };
|
||||
|
||||
|
||||
@@ -502,8 +502,7 @@ HRESULT CPhysX_Manager::Initialize()
|
||||
|
||||
|
||||
// m_pScene->overlap();??????
|
||||
#ifdef EDITOR_PROJECT
|
||||
#ifdef 기무리
|
||||
|
||||
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
PlaneData.iSubKind = UINT_MAX;
|
||||
PlaneData.pOwner = nullptr;
|
||||
@@ -514,115 +513,6 @@ HRESULT CPhysX_Manager::Initialize()
|
||||
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
|
||||
m_pScene->addActor(*pGroundPlane);;
|
||||
|
||||
//{
|
||||
// float halfExtent = .5f;
|
||||
// physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial);
|
||||
// physx::PxU32 size = 30;
|
||||
// physx::PxTransform pxTransform(physx::PxVec3(0));
|
||||
|
||||
// for (physx::PxU32 i = 0; i < size; i++) {
|
||||
// for (physx::PxU32 j = 0; j < size - i; j++) {
|
||||
// physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent);
|
||||
// physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm));
|
||||
// body->attachShape(*shape);
|
||||
// physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f);
|
||||
// m_pScene->addActor(*body);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
#endif // 기무리
|
||||
|
||||
|
||||
#ifdef 진우
|
||||
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
PlaneData.iSubKind = UINT_MAX;
|
||||
PlaneData.pOwner = nullptr;
|
||||
PlaneData.pBody = nullptr;
|
||||
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
pGroundPlane->userData = &PlaneData;
|
||||
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
|
||||
m_pScene->addActor(*pGroundPlane);;
|
||||
|
||||
//{
|
||||
// float halfExtent = .5f;
|
||||
// physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial);
|
||||
// physx::PxU32 size = 30;
|
||||
// physx::PxTransform pxTransform(physx::PxVec3(0));
|
||||
|
||||
// for (physx::PxU32 i = 0; i < size; i++) {
|
||||
// for (physx::PxU32 j = 0; j < size - i; j++) {
|
||||
// physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent);
|
||||
// physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm));
|
||||
// body->attachShape(*shape);
|
||||
// physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f);
|
||||
// m_pScene->addActor(*body);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
#endif // 진우
|
||||
#ifdef gimch
|
||||
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
PlaneData.iSubKind = UINT_MAX;
|
||||
PlaneData.pOwner = nullptr;
|
||||
PlaneData.pBody = nullptr;
|
||||
|
||||
m_pMaterials.reserve(ENUM_CLASS(PXMATERIAL::END));
|
||||
m_pMaterials.push_back(m_pPhysics->createMaterial(0.5f, 0.5f, 0.6f));
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
pGroundPlane->userData = &PlaneData;
|
||||
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
|
||||
m_pScene->addActor(*pGroundPlane);;
|
||||
|
||||
//{
|
||||
// float halfExtent = .5f;
|
||||
// physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial);
|
||||
// physx::PxU32 size = 30;
|
||||
// physx::PxTransform pxTransform(physx::PxVec3(0));
|
||||
|
||||
// for (physx::PxU32 i = 0; i < size; i++) {
|
||||
// for (physx::PxU32 j = 0; j < size - i; j++) {
|
||||
// physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent);
|
||||
// physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm));
|
||||
// body->attachShape(*shape);
|
||||
// physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f);
|
||||
// m_pScene->addActor(*body);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
#endif // 진우
|
||||
#endif // EDITOR_PROJECT
|
||||
|
||||
#ifdef Bin
|
||||
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
PlaneData.iSubKind = UINT_MAX;
|
||||
PlaneData.pOwner = nullptr;
|
||||
PlaneData.pBody = nullptr;
|
||||
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
pGroundPlane->userData = &PlaneData;
|
||||
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
|
||||
m_pScene->addActor(*pGroundPlane);;
|
||||
|
||||
//{
|
||||
// float halfExtent = .5f;
|
||||
// physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial);
|
||||
// physx::PxU32 size = 30;
|
||||
// physx::PxTransform pxTransform(physx::PxVec3(0));
|
||||
|
||||
// for (physx::PxU32 i = 0; i < size; i++) {
|
||||
// for (physx::PxU32 j = 0; j < size - i; j++) {
|
||||
// physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent);
|
||||
// physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm));
|
||||
// body->attachShape(*shape);
|
||||
// physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f);
|
||||
// m_pScene->addActor(*body);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
#endif // 진우
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,25 +82,10 @@ class CPhysX_Manager final : public CBase
|
||||
unordered_set<PSX::PxActor*> m_pRestBodies = { }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함
|
||||
map<_wstring, PSX::PxTriangleMesh*> m_TriangleMeshes = {};
|
||||
map<_wstring, PSX::PxTriangleMeshGeometry*> m_TriangleMeshGeometry = {};
|
||||
#ifdef 기무리
|
||||
|
||||
|
||||
PhsXUserData PlaneData = {};
|
||||
|
||||
#endif // 기무리
|
||||
#ifdef 진우
|
||||
PhsXUserData PlaneData = {};
|
||||
|
||||
#endif // 기무리
|
||||
#ifdef gimch
|
||||
PhsXUserData PlaneData = {};
|
||||
|
||||
#endif // 기무리
|
||||
|
||||
#ifdef Bin
|
||||
PhsXUserData PlaneData = {};
|
||||
|
||||
#endif // 기무리
|
||||
|
||||
|
||||
vector<PSX::PxMaterial*> m_pMaterials = { };
|
||||
_uint m_iNumLevel = {};
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user