diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 067d90c1d..cd43fbd4d 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -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();
+ }
+
}
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 7159e217f..1cbc0504a 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -157,6 +157,7 @@
+
@@ -177,12 +178,19 @@
+
+
+
+
+
+
+
@@ -220,6 +228,7 @@
+
@@ -233,13 +242,20 @@
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index dc84e1389..971d41fc8 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -184,6 +184,30 @@
02.GameObjects\Environment\Terrain
+
+ 02.GameObjects\UI
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Loding_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Action_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Mission_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\MiniMap_TrimBorder
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon
+
@@ -440,6 +464,12 @@
{7db61780-d774-4a91-a429-2fb7634e43b3}
+
+ {59283aaa-2cb7-40da-97a7-2705ed78c830}
+
+
+ {e5e2a92a-d549-4573-b8e7-d48e7a409888}
+
@@ -613,6 +643,30 @@
02.GameObjects\Environment\Terrain
+
+ 02.GameObjects\UI\GamePlay_Canvas\Loding_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget
+
+
+ 02.GameObjects\UI
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Action_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Mission_Panel
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\MiniMap_TrimBorder
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon
+
diff --git a/Jusin154_Team3D/Client/Private/Action_Panel.cpp b/Jusin154_Team3D/Client/Private/Action_Panel.cpp
new file mode 100644
index 000000000..2a5d39e3d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Action_Panel.cpp
@@ -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(m_pMagic_Meter1)->Visible(bVisible);
+ break;
+ case 2:
+ static_cast(m_pMagic_Meter2)->Visible(bVisible);
+ break;
+ case 3:
+ static_cast(m_pMagic_Meter3)->Visible(bVisible);
+ break;
+ case 4:
+ static_cast(m_pMagic_Meter4)->Visible(bVisible);
+ break;
+ case 5:
+ static_cast(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(m_pMagic_Meter1)->Meter_Index(2);
+ //static_cast(m_pMagic_Meter2)->Meter_Index(1);
+ //static_cast(m_pMagic_Meter3)->Meter_Index(1);
+ //static_cast(m_pMagic_Meter4)->Meter_Index(1);
+ //static_cast(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(m_pMagic_Meter1)->Move(m_vMagic_MeterUV[0].x, m_vMagic_MeterUV[0].y);
+ static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
+
+ if (static_cast(m_pMagic_Meter2)->Get_Active() == true)
+ {
+ static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
+ static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
+ }
+ if (static_cast(m_pMagic_Meter3)->Get_Active() == true)
+ {
+ static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
+ static_cast(m_pMagic_Meter3)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
+ static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[3].x, m_vMagic_MeterUV[3].y);
+ }
+ if (static_cast(m_pMagic_Meter4)->Get_Active() == true)
+ {
+ static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y);
+ static_cast(m_pMagic_Meter3)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y);
+ static_cast(m_pMagic_Meter4)->Move(m_vMagic_MeterUV[3].x, m_vMagic_MeterUV[3].y);
+ static_cast(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(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpell_Slot))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Slot"), m_pSpell_Slot);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Overlay"), m_pSpell_Overlay);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSlot_Number))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Slot_Number"), m_pSlot_Number);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pHpBarBG))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("HpBarBG"), m_pHpBarBG);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter1))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter1"), m_pMagic_Meter1);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter2))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter2"), m_pMagic_Meter2);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter3))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter3"), m_pMagic_Meter3);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter4))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter4"), m_pMagic_Meter4);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter5))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Meter5"), m_pMagic_Meter5);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Icon))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Magic_Icon"), m_pMagic_Icon);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_UI))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_UI"), m_pSpell_UI);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pPotion))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Potion"), m_pPotion);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&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()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
index 32fafc0cd..7ce4888cd 100644
--- a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
+++ b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
@@ -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(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMinimap_Panel))))
- //{
- // return E_FAIL;
- //}
- //Add_Panel(TEXT("MinimapPanel"), m_pMinimap_Panel);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMinimap_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("MinimapPanel"), m_pMinimap_Panel);
- //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Panel))))
- //{
- // return E_FAIL;
- //}
- //Add_Panel(TEXT("MissionPanel"), m_pMission_Panel);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("MissionPanel"), m_pMission_Panel);
- //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pAction_Panel))))
- //{
- // return E_FAIL;
- //}
- //Add_Panel(TEXT("ActionPanel"), m_pAction_Panel);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pAction_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("ActionPanel"), m_pAction_Panel);
return S_OK;
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 80c098524..8cde60a3f 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -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(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_UI))) {
- // return E_FAIL;
- //}
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_UI))) {
+ return E_FAIL;
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 3bd3572cc..252674ae6 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -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(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
- // return E_FAIL;
- //}
- //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext)))) {
- // return E_FAIL;
- //}
- //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoadingWidget::Create(m_pDevice, m_pContext)))) {
- // return E_FAIL;
- //}
+ /* For.Prototype_GameObject_GamePlay_Canvas*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_GameObject_Action_Panel*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CAction_Panel::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_GameObject_Loading_Panel*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_GameObject_Mission_Panel*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMission_Panel::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_MiniMap_TrimBorder*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMiniMap_TrimBorder::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_NoMountIcon*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNoMountIcon::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_GameObject_Minimap_Panel*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMiniMap_Panel::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_GameObject_LoadingWidget*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoadingWidget::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
/* For.Prototype_GameObject_SkyBox */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSkyBox::Create(m_pDevice, m_pContext))))
diff --git a/Jusin154_Team3D/Client/Private/LoadingWidget.cpp b/Jusin154_Team3D/Client/Private/LoadingWidget.cpp
index f1edb4509..c10701859 100644
--- a/Jusin154_Team3D/Client/Private/LoadingWidget.cpp
+++ b/Jusin154_Team3D/Client/Private/LoadingWidget.cpp
@@ -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(&m_pDiffuse_TextureCom), nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_LoadingWidget"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Loading_Panel.cpp b/Jusin154_Team3D/Client/Private/Loading_Panel.cpp
index 935aa9b33..674107f29 100644
--- a/Jusin154_Team3D/Client/Private/Loading_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Loading_Panel.cpp
@@ -41,7 +41,6 @@ HRESULT CLoading_Panel::Initialize(void* pArg)
{
return E_FAIL;
}
- m_bVisible = true;
m_bActive = true;
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/MiniMap_Panel.cpp b/Jusin154_Team3D/Client/Private/MiniMap_Panel.cpp
new file mode 100644
index 000000000..fd27809ac
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/MiniMap_Panel.cpp
@@ -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(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pMiniMap_TrimBorder))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("MiniMap_TrimBorder"), m_pMiniMap_TrimBorder);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&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()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/MiniMap_TrimBorder.cpp b/Jusin154_Team3D/Client/Private/MiniMap_TrimBorder.cpp
new file mode 100644
index 000000000..815000463
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/MiniMap_TrimBorder.cpp
@@ -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(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_HUD_MiniMap_TrimBorder"), reinterpret_cast(&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()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Mission_Panel.cpp b/Jusin154_Team3D/Client/Private/Mission_Panel.cpp
new file mode 100644
index 000000000..0307270ee
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Mission_Panel.cpp
@@ -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(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMissionBanner_Border))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("MissionBanner_Border"), m_pMissionBanner_Border);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMissionBanner_Key))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("MissionBanner_Key"), m_pMissionBanner_Key);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_KeyHold))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Mission_KeyHold"), m_pMission_KeyHold);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Key))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Mission_Key"), m_pMission_Key);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&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()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/NoMountIcon.cpp b/Jusin154_Team3D/Client/Private/NoMountIcon.cpp
new file mode 100644
index 000000000..4b9c57339
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/NoMountIcon.cpp
@@ -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(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_NoMountIcon"), reinterpret_cast(&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()
+{
+}
diff --git a/Jusin154_Team3D/Client/Public/Action_Panel.h b/Jusin154_Team3D/Client/Public/Action_Panel.h
new file mode 100644
index 000000000..23aef05b5
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Action_Panel.h
@@ -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
diff --git a/Jusin154_Team3D/Client/Public/LoadingWidget.h b/Jusin154_Team3D/Client/Public/LoadingWidget.h
index bf53b9206..ed6037279 100644
--- a/Jusin154_Team3D/Client/Public/LoadingWidget.h
+++ b/Jusin154_Team3D/Client/Public/LoadingWidget.h
@@ -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
diff --git a/Jusin154_Team3D/Client/Public/MiniMap_Panel.h b/Jusin154_Team3D/Client/Public/MiniMap_Panel.h
new file mode 100644
index 000000000..238afe061
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/MiniMap_Panel.h
@@ -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
diff --git a/Jusin154_Team3D/Client/Public/MiniMap_TrimBorder.h b/Jusin154_Team3D/Client/Public/MiniMap_TrimBorder.h
new file mode 100644
index 000000000..5050690fd
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/MiniMap_TrimBorder.h
@@ -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
diff --git a/Jusin154_Team3D/Client/Public/Mission_Panel.h b/Jusin154_Team3D/Client/Public/Mission_Panel.h
new file mode 100644
index 000000000..798090256
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Mission_Panel.h
@@ -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
diff --git a/Jusin154_Team3D/Client/Public/NoMountIcon.h b/Jusin154_Team3D/Client/Public/NoMountIcon.h
new file mode 100644
index 000000000..eb34b22c8
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/NoMountIcon.h
@@ -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
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index 403d6720b..1a57a01fe 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -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
{
diff --git a/Jusin154_Team3D/Editor/Private/Magic_Item.cpp b/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
index e2da15982..b2a9664e9 100644
--- a/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
+++ b/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
@@ -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;
diff --git a/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp b/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp
index 3aafbe280..dc1a8a276 100644
--- a/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp
+++ b/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp
@@ -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) };
diff --git a/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp b/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp
index ca641dad1..82d7eab8a 100644
--- a/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp
+++ b/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp
@@ -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) };
diff --git a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
index c595674a8..3099589bb 100644
--- a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
+++ b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
@@ -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;
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
index 7b2fb303c..5c7597dd3 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
@@ -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) };
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
index ab7432f97..5b2e5b2bc 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
@@ -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;
diff --git a/Jusin154_Team3D/Editor/Private/Spell_UI.cpp b/Jusin154_Team3D/Editor/Private/Spell_UI.cpp
index f6f8fe911..7990e029e 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_UI.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_UI.cpp
@@ -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;
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 09936371a..d7a83e80b 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -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 };
diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
index 39812e099..8405ef3f4 100644
--- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
@@ -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;
}
diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
index cf9fb125f..52f1c0a07 100644
--- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
@@ -82,25 +82,10 @@ class CPhysX_Manager final : public CBase
unordered_set 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 m_pMaterials = { };
_uint m_iNumLevel = {};
private: