Merge branch 'UI' into Develope
@@ -6,22 +6,27 @@ Texture2D g_DepthTexture;
|
||||
int g_iImageCountX;
|
||||
int g_iImageCountY;
|
||||
|
||||
uint g_iIndexU;
|
||||
uint g_iIndexV;
|
||||
uint g_iQuestType;
|
||||
uint g_iSpellType;
|
||||
|
||||
float g_fPI;
|
||||
float g_fFar;
|
||||
float g_fTime;
|
||||
float g_fTimeMult;
|
||||
float g_fFrame;
|
||||
float g_fDeltaU;
|
||||
float g_fDeltaV;
|
||||
float g_fAlpha;
|
||||
float g_fOwnerAlpha;
|
||||
float g_fCanvasAlpha;
|
||||
float g_fDeltaU;
|
||||
float g_fDeltaV;
|
||||
uint g_iIndexU;
|
||||
uint g_iIndexV;
|
||||
float4 g_fNine_Slice;
|
||||
float g_fAngle;
|
||||
|
||||
float2 g_fOrigin_Size;
|
||||
float2 g_fCurrent_Size;
|
||||
uint g_iQuestType;
|
||||
float g_fPI;
|
||||
|
||||
float4 g_fNine_Slice;
|
||||
|
||||
Texture2D g_Texture;
|
||||
Texture2D g_Texture1;
|
||||
@@ -71,12 +76,13 @@ struct PS_OUT
|
||||
PS_OUT PS_MAIN(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
if (Color.a <= 0.1f)
|
||||
discard;
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
}
|
||||
@@ -84,9 +90,11 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
PS_OUT PS_AlphaBlend(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
|
||||
return Out;
|
||||
@@ -95,45 +103,47 @@ PS_OUT PS_AlphaBlend(PS_IN In)
|
||||
PS_OUT PS_Clamp(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Cursor(PS_IN In)
|
||||
PS_OUT PS_Cursor(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 Color = float4(0.f, 0.f, 0.f, 0.f);
|
||||
float4 White = float4(1.f, 1.f, 1.f, 1.f);
|
||||
float4 Color = float4(0.f, 0.f, 0.f, 0.f);
|
||||
float4 White = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float2 UV = In.vTexcoord;
|
||||
float2 Center = float2(0.5f, 0.5f);
|
||||
float2 UV = In.vTexcoord;
|
||||
float2 Center = float2(0.5f, 0.5f);
|
||||
|
||||
float CW = -g_fTime;
|
||||
float CCW = g_fTime;
|
||||
float CW = -g_fTime;
|
||||
float CCW = g_fTime;
|
||||
|
||||
float2 RedCircle = UV;
|
||||
float2 RedUV = UV - Center;
|
||||
float2 RedCircle = UV;
|
||||
float2 RedUV = UV - Center;
|
||||
|
||||
RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW);
|
||||
RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW);
|
||||
RedCircle = RedCircle + Center;
|
||||
RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW);
|
||||
RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW);
|
||||
RedCircle = RedCircle + Center;
|
||||
|
||||
float2 BlueCircle = UV;
|
||||
float2 BlueCircle = UV;
|
||||
float2 BlueUV = UV - Center;
|
||||
|
||||
BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW);
|
||||
BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW);
|
||||
BlueCircle = BlueCircle + Center;
|
||||
BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW);
|
||||
BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW);
|
||||
BlueCircle = BlueCircle + Center;
|
||||
|
||||
|
||||
float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle);
|
||||
float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle);
|
||||
float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle);
|
||||
float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle);
|
||||
|
||||
if (Texture1.r >= 0.7f)
|
||||
Color = Texture1;
|
||||
@@ -144,7 +154,9 @@ PS_OUT PS_Cursor(PS_IN In)
|
||||
if (all(Color.rgb <= 0.5f))
|
||||
discard;
|
||||
|
||||
Color = White;
|
||||
Color = White;
|
||||
|
||||
Color.a *= Alpha;
|
||||
|
||||
Out.vColor = Color;
|
||||
|
||||
@@ -154,6 +166,7 @@ PS_OUT PS_Cursor(PS_IN In)
|
||||
PS_OUT PS_Key_Hold_Rotation(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float2 uv = In.vTexcoord;
|
||||
|
||||
@@ -170,6 +183,8 @@ PS_OUT PS_Key_Hold_Rotation(PS_IN In)
|
||||
|
||||
tex.rgb = (angle <= rotation) ? 1.0 : tex.rgb;
|
||||
|
||||
tex.a *= Alpha;
|
||||
|
||||
Out.vColor = tex;
|
||||
|
||||
return Out;
|
||||
@@ -178,22 +193,21 @@ PS_OUT PS_Key_Hold_Rotation(PS_IN In)
|
||||
PS_OUT PS_Sptire_Sheet(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float4 Color = float4(0.f, 0.f, 0.f, 0.f);
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float4 Color = float4(0.f, 0.f, 0.f, 0.f);
|
||||
float2 UV = In.vTexcoord;
|
||||
|
||||
int iTotalFrame = g_iImageCountX * g_iImageCountY;
|
||||
|
||||
int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame;
|
||||
int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame;
|
||||
|
||||
int iFrameX = iCurrentFrame % g_iImageCountX;
|
||||
int iFrameY = iCurrentFrame / g_iImageCountX;
|
||||
int iFrameX = iCurrentFrame % g_iImageCountX;
|
||||
int iFrameY = iCurrentFrame / g_iImageCountX;
|
||||
|
||||
float fFreamWidth = 1.0 / g_iImageCountX;
|
||||
float fFreamHeight = 1.0 / g_iImageCountY;
|
||||
float fFreamWidth = 1.0 / g_iImageCountX;
|
||||
float fFreamHeight = 1.0 / g_iImageCountY;
|
||||
|
||||
UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth;
|
||||
UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth;
|
||||
UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight;
|
||||
|
||||
float4 Texture = g_Texture.Sample(DefaultSampler, UV);
|
||||
@@ -203,7 +217,7 @@ PS_OUT PS_Sptire_Sheet(PS_IN In)
|
||||
if (Color.r <= 0.4f)
|
||||
discard;
|
||||
|
||||
Color.a = Alpha;
|
||||
Color.a *= Alpha;
|
||||
|
||||
Out.vColor = Color;
|
||||
|
||||
@@ -213,6 +227,7 @@ PS_OUT PS_Sptire_Sheet(PS_IN In)
|
||||
PS_OUT PS_QuestType(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float3 Color = float3(253.f, 207.f, 11.f) / 255.f;
|
||||
float4 Texture1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
@@ -224,6 +239,7 @@ PS_OUT PS_QuestType(PS_IN In)
|
||||
}
|
||||
}
|
||||
|
||||
Texture1.a *= Alpha;
|
||||
Out.vColor = Texture1;
|
||||
|
||||
return Out;
|
||||
@@ -232,9 +248,11 @@ PS_OUT PS_QuestType(PS_IN In)
|
||||
PS_OUT PS_UVMult(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float4 color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
|
||||
color.a *= Alpha;
|
||||
Out.vColor = color;
|
||||
|
||||
return Out;
|
||||
@@ -243,6 +261,7 @@ PS_OUT PS_UVMult(PS_IN In)
|
||||
PS_OUT PS_NineSlice(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float Left = g_fNine_Slice.x / g_fOrigin_Size.x;
|
||||
float Right = (g_fOrigin_Size.x - g_fNine_Slice.y) / g_fOrigin_Size.x;
|
||||
float Top = g_fNine_Slice.z / g_fOrigin_Size.y;
|
||||
@@ -253,11 +272,11 @@ PS_OUT PS_NineSlice(PS_IN In)
|
||||
float2 UV = In.vTexcoord * 0.5f + 0.5f;
|
||||
float2 ScaledUV = UV;
|
||||
|
||||
if(UV.x < Left)
|
||||
if (UV.x < Left)
|
||||
{
|
||||
ScaledUV.x = UV.x;
|
||||
}
|
||||
else if(UV.x > Right)
|
||||
else if (UV.x > Right)
|
||||
{
|
||||
ScaledUV.x = 1.0f - ((1.0f - UV.x) / ratio.x);
|
||||
}
|
||||
@@ -266,11 +285,11 @@ PS_OUT PS_NineSlice(PS_IN In)
|
||||
ScaledUV.x = Left + (UV.x - Left) / ratio.x;
|
||||
}
|
||||
|
||||
if(UV.y < Top)
|
||||
if (UV.y < Top)
|
||||
{
|
||||
ScaledUV.y = UV.y;
|
||||
}
|
||||
else if(UV.y > Bottom)
|
||||
else if (UV.y > Bottom)
|
||||
{
|
||||
ScaledUV.y = 1.0f - ((1.0f - UV.y) / ratio.y);
|
||||
}
|
||||
@@ -281,8 +300,156 @@ PS_OUT PS_NineSlice(PS_IN In)
|
||||
|
||||
float4 color = g_Texture.Sample(ClampSampler, ScaledUV);
|
||||
|
||||
color.a *= Alpha;
|
||||
Out.vColor = color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Rotation(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
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;
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
|
||||
float3 BGColor = float3(1.f, 1.f, 1.f);
|
||||
|
||||
if (g_iSpellType == 0)
|
||||
{
|
||||
tex1.rgb *= 0.4f;
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
if (tex2.a >= 0.9f)
|
||||
color = tex2;
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
}
|
||||
else
|
||||
{
|
||||
//int iTotalFrame = g_iImageCountX * g_iImageCountY;
|
||||
//int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame;
|
||||
//int iFrameX = iCurrentFrame % g_iImageCountX;
|
||||
//int iFrameY = iCurrentFrame / g_iImageCountX;
|
||||
//float fFreamWidth = 1.0 / g_iImageCountX;
|
||||
//float fFreamHeight = 1.0 / g_iImageCountY;
|
||||
|
||||
//float2 UV = In.vTexcoord;
|
||||
//UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth;
|
||||
//UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight;
|
||||
|
||||
//float4 tex3 = g_Texture2.Sample(DefaultSampler, UV);
|
||||
//if (tex3.r <= 0.5f)
|
||||
// discard;
|
||||
switch (g_iSpellType)
|
||||
{
|
||||
case 1:
|
||||
BGColor = float3(208.f, 179.f, 54.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
BGColor = float3(89.f, 32.f, 215.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
BGColor = float3(190.f, 46., 34.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 4:
|
||||
BGColor = float3(37.f, 129.f, 162.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 5:
|
||||
BGColor = float3(134.f, 171.f, 78.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
BGColor = float3(0.f, 80.f, 55.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 7:
|
||||
BGColor = float3(0.f, 0.f, 0.f);
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
}
|
||||
|
||||
color = tex1;
|
||||
|
||||
//color = tex3;
|
||||
|
||||
if (tex2.a >= 0.9f)
|
||||
color = tex2;
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Slot(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float2 center = float2(0.5f, 0.5f);
|
||||
float2 uv = In.vTexcoord - center;
|
||||
uv *= sqrt(2.0f);
|
||||
float2 Rotation = In.vTexcoord;
|
||||
Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
|
||||
Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
|
||||
Rotation += center;
|
||||
|
||||
float4 color = g_Texture.Sample(ClampSampler, Rotation);
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_SpellAnim(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
//float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
//float2 center = float2(0.5f, 0.5f);
|
||||
//float2 uv = In.vTexcoord - center;
|
||||
//uv *= sqrt(2.0f);
|
||||
//float2 Rotation = In.vTexcoord;
|
||||
//Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
|
||||
//Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
|
||||
//Rotation += center;
|
||||
|
||||
//float4 color = g_Texture.Sample(ClampSampler, Rotation);
|
||||
|
||||
//color.a *= Alpha;
|
||||
|
||||
//Out.vColor = color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -292,7 +459,7 @@ technique11 PosTexTechnique11
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
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_MAIN();
|
||||
@@ -378,4 +545,33 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_NineSlice();
|
||||
}
|
||||
|
||||
pass Rotation
|
||||
{
|
||||
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_Rotation();
|
||||
}
|
||||
|
||||
pass Slot
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Slot();
|
||||
}
|
||||
|
||||
pass SpellAnim
|
||||
{
|
||||
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_SpellAnim();
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 932 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 359 B |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
@@ -163,6 +163,7 @@
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Body.h" />
|
||||
<ClInclude Include="..\public\Active_Icon.h" />
|
||||
<ClInclude Include="..\Public\CallBack_Playable_Behavior.h" />
|
||||
@@ -209,6 +210,10 @@
|
||||
<ClInclude Include="..\Public\State_Jump.h" />
|
||||
<ClInclude Include="..\Public\State_Sprint.h" />
|
||||
<ClInclude Include="..\Public\State_Walk.h" />
|
||||
<ClInclude Include="..\Public\Dummy_PhysXDoor.h" />
|
||||
<ClInclude Include="..\public\Spell_Image.h" />
|
||||
<ClInclude Include="..\public\Spell_Overlay.h" />
|
||||
<ClInclude Include="..\public\Spell_Slot.h" />
|
||||
<ClInclude Include="..\public\Terrain.h" />
|
||||
<ClInclude Include="..\Public\Level_PhysXLab.h" />
|
||||
<ClInclude Include="..\Public\TestEffect.h" />
|
||||
@@ -248,6 +253,7 @@
|
||||
<ClInclude Include="targetver.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Body.cpp" />
|
||||
<ClCompile Include="..\private\Active_Icon.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_Playable_Behavior.cpp" />
|
||||
@@ -294,6 +300,10 @@
|
||||
<ClCompile Include="..\Private\State_Jump.cpp" />
|
||||
<ClCompile Include="..\Private\State_Sprint.cpp" />
|
||||
<ClCompile Include="..\Private\State_Walk.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_PhysXDoor.cpp" />
|
||||
<ClCompile Include="..\private\Spell_Image.cpp" />
|
||||
<ClCompile Include="..\private\Spell_Overlay.cpp" />
|
||||
<ClCompile Include="..\private\Spell_Slot.cpp" />
|
||||
<ClCompile Include="..\private\Terrain.cpp" />
|
||||
<ClCompile Include="..\Private\Level_PhysXLab.cpp" />
|
||||
<ClCompile Include="..\Private\TestEffect.cpp" />
|
||||
|
||||
@@ -249,6 +249,18 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Env\04.Land">
|
||||
<UniqueIdentifier>{66df0152-4b1e-461c-a88e-750770c73d62}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Action_Panel">
|
||||
<UniqueIdentifier>{69af6531-b479-4496-9e9b-245423844204}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Action_Panel\Spell_Slot">
|
||||
<UniqueIdentifier>{09ea24b7-2c4b-430c-826b-bdfdc63c522a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Action_Panel\Spell_Overlay">
|
||||
<UniqueIdentifier>{93166105-4863-4435-b2a1-7c97f9f3226f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Action_Panel\Spell_Image">
|
||||
<UniqueIdentifier>{a5069e0b-5f20-44e5-bb86-56d4febc0996}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -488,6 +500,18 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Land.h">
|
||||
<Filter>02.GameObjects\Env\04.Land</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Action_Panel.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Action_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Spell_Slot.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Action_Panel\Spell_Slot</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Spell_Image.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Action_Panel\Spell_Image</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Spell_Overlay.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Action_Panel\Spell_Overlay</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -723,6 +747,18 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Land.cpp">
|
||||
<Filter>02.GameObjects\Env\04.Land</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Action_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Spell_Slot.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Action_Panel\Spell_Slot</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Spell_Image.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Action_Panel\Spell_Image</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Spell_Overlay.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Action_Panel\Spell_Overlay</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -0,0 +1,210 @@
|
||||
#include "pch.h"
|
||||
#include "Action_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Spell_Slot.h"
|
||||
#include "Spell_Image.h"
|
||||
#include "Spell_Overlay.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 = 1515.f;
|
||||
Desc.fY = 850.f;
|
||||
Desc.fSizeX = 700.f;
|
||||
Desc.fSizeY = 400.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_bVisible = 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;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CAction_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bVisible) {
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CAction_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAction_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
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_Image>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CSpell_Image**>(&m_pSpell_Image))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("SpellImage"), m_pSpell_Image);
|
||||
|
||||
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("SpellOverlay"), m_pSpell_Overlay);
|
||||
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()
|
||||
{
|
||||
}
|
||||
@@ -64,9 +64,8 @@ void CActive_Icon::Update(_float fTimeDelta)
|
||||
{
|
||||
return;
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
m_fOwnerAlpha = static_cast<CUIObject*>(m_pOwner)->Get_Alpha();
|
||||
m_fCanvasAlpha = static_cast<CUIObject*>(m_pOwner)->Get_OwnerAlpha();
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
@@ -91,7 +90,16 @@ void CActive_Icon::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
if (m_bLerpOn == true)
|
||||
{
|
||||
Start_Lerp(fTimeDelta);
|
||||
}
|
||||
|
||||
if (m_bLerpOff == true)
|
||||
{
|
||||
Reset_Pos(fTimeDelta);
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "Mission_Panel.h"
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "Loading_Panel.h"
|
||||
#include "Action_Panel.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
|
||||
CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -93,8 +94,6 @@ HRESULT CGamePlay_Canvas::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
|
||||
{
|
||||
CGameObject* asdf = this;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLoading_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CLoading_Panel**>(&m_pLoading_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -112,6 +111,14 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
|
||||
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);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,9 +98,13 @@ void CIMGUIUI::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CIMGUIUI::Update(_float fTimeDelta)
|
||||
{
|
||||
static const char* SpellTypeNames[] = { "SHADOW", "CONTROL","POWER", "DAMAGE","UTILITY", "TRANSFORM", "CURSE", "ESSENTIAL" };
|
||||
int itemCount = sizeof(SpellTypeNames) / sizeof(const char*);
|
||||
if (m_pGamePlay_Canvas != nullptr)
|
||||
{
|
||||
m_fCanvasAlpha = static_cast<CCanvasObject*>(m_pGamePlay_Canvas)->Get_Alpha();
|
||||
|
||||
|
||||
}
|
||||
if (m_pPanelObject != nullptr)
|
||||
{
|
||||
@@ -139,6 +143,13 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
m_fRight = static_cast<CElementObject*>(m_pElementObject)->Get_Nine_Slice_Right();
|
||||
m_fTop = static_cast<CElementObject*>(m_pElementObject)->Get_Nine_Slice_Top();
|
||||
m_fBottom = static_cast<CElementObject*>(m_pElementObject)->Get_Nine_Slice_Bottom();
|
||||
|
||||
m_vLerpPosition = static_cast<CElementObject*>(m_pElementObject)->Get_Lerp_Pos();
|
||||
m_fLerpX = static_cast<CElementObject*>(m_pElementObject)->Get_Lerp_Pos().m128_f32[0];
|
||||
m_fLerpY = static_cast<CElementObject*>(m_pElementObject)->Get_Lerp_Pos().m128_f32[1];
|
||||
m_fMoveSpeed = static_cast<CElementObject*>(m_pElementObject)->Get_Speed();
|
||||
m_fAngle = static_cast<CElementObject*>(m_pElementObject)->Get_Angle();
|
||||
m_iSkillType = static_cast<CElementObject*>(m_pElementObject)->Get_SkillType();
|
||||
}
|
||||
GUI::Begin("Current_PanelObject_Info");
|
||||
if (m_pGamePlay_Canvas != nullptr)
|
||||
@@ -347,23 +358,60 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
if (GUI::DragFloat("Left", &m_fLeft, 0.1f, 0, m_fSize.x))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Nine_Slice_Left(m_fLeft);
|
||||
}
|
||||
|
||||
if (GUI::DragFloat("Right", &m_fRight, 0.1f,0.5f, m_fSize.x))
|
||||
}
|
||||
|
||||
if (GUI::DragFloat("Right", &m_fRight, 0.1f, 0.5f, m_fSize.x))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Nine_Slice_Right(m_fRight);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (GUI::DragFloat("Top", &m_fTop, 0.1f, 0, m_fSize.y))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Nine_Slice_Top(m_fTop);
|
||||
}
|
||||
|
||||
if (GUI::DragFloat("Bottom", &m_fBottom, 0.1f,0, m_fSize.y))
|
||||
}
|
||||
|
||||
if (GUI::DragFloat("Bottom", &m_fBottom, 0.1f, 0, m_fSize.y))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Nine_Slice_Bottom(m_fBottom);
|
||||
}
|
||||
|
||||
GUI::Text("Lerp");
|
||||
GUI::Text("Lerp Position : %.1f, %.1f", m_vLerpPosition.m128_f32[0], m_vLerpPosition.m128_f32[1]);
|
||||
if (GUI::DragFloat("LerpX", &m_fLerpX, 0.1f, -1920.f, 1920.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Lerp_PosX(m_fLerpX);
|
||||
}
|
||||
|
||||
if (GUI::DragFloat("LerpY", &m_fLerpY, 0.1f, -1080.f, 1080.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Lerp_PosY(m_fLerpY);
|
||||
}
|
||||
if (GUI::Button("LerpOn"))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->LerpOn();
|
||||
}
|
||||
if (GUI::Button("LerpOut"))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->LerpOff();
|
||||
}
|
||||
|
||||
GUI::Text("Speed %.1f", m_fMoveSpeed);
|
||||
if (GUI::DragFloat("Speed", &m_fMoveSpeed, 0.1f, 0.f, 100.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Set_Speed(m_fMoveSpeed);
|
||||
}
|
||||
|
||||
GUI::Text("Angle %.1f", m_fAngle);
|
||||
if (GUI::DragFloat("Angle", &m_fAngle, 0.f, -180.0f, 180.f))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Set_Angle(m_fAngle);
|
||||
}
|
||||
|
||||
GUI::Text("SkillType %d", m_iSkillType);
|
||||
if (GUI::Combo("SkillType", &m_iSkillType, SpellTypeNames, itemCount))
|
||||
{
|
||||
static_cast<CElementObject*>(m_pElementObject)->Set_SkillType(m_iSkillType);
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||