Merge branch 'Develope' into Effect
This commit is contained in:
@@ -63,6 +63,7 @@ Texture2D g_DiffuseTexture;
|
||||
Texture2D g_MaskingTexture;
|
||||
|
||||
int g_iHover;
|
||||
int g_iClick;
|
||||
int g_iColor;
|
||||
|
||||
int g_iStep1 = 0;
|
||||
@@ -1621,6 +1622,128 @@ PS_OUT PS_Quest_Info(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Quest_Status(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
if (g_iClick == 0)
|
||||
{
|
||||
if (g_iHover == 0)
|
||||
{
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
tex1.rgb *= float3(60.f, 80.f, 150.f) / 255.f;
|
||||
Color = tex1;
|
||||
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
float2 safeUV = saturate(atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
Color = tex1;
|
||||
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
float2 safeUV = saturate(atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
Color = tex1;
|
||||
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
float2 safeUV = saturate(atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
}
|
||||
float mask = g_Texture2.Sample(DefaultSampler, In.vTexcoord).r;
|
||||
float3 glowColor = float3(1.0f, 1.0f, 1.0f);
|
||||
Color.rgb += glowColor * mask * 0.5f;
|
||||
Color.rgb *= float3(140.f, 140.f, 20.f) / 255.f;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Broomstick(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float2 center = float2(0.5f, 0.5f);
|
||||
float2 uv = In.vTexcoord - center;
|
||||
uv *= sqrt(2.0f);
|
||||
float2 Rotation = In.vTexcoord;
|
||||
Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
|
||||
Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
|
||||
Rotation += center;
|
||||
|
||||
float2 startUV = g_fImageUV.xy;
|
||||
float2 endUV = g_fImageUV.zw;
|
||||
|
||||
float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV);
|
||||
tex1.rgb *= 0.4f;
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
color = lerp(color, tex2, tex2.a);
|
||||
|
||||
|
||||
float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
|
||||
float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
|
||||
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
|
||||
bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
if(inside)
|
||||
{
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
|
||||
color = lerp(color, tex3, tex3.a);
|
||||
|
||||
float CoolTime = 0.f + g_fDeltaV;
|
||||
float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
|
||||
atlasUV = startUV + texlocal1 * (endUV - startUV);
|
||||
|
||||
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
|
||||
}
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
struct VS_IN3D
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -2104,6 +2227,26 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_Quest_Info();
|
||||
}
|
||||
|
||||
pass Quest_Status
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Quest_Status();
|
||||
}
|
||||
|
||||
pass Broomstick
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Broomstick();
|
||||
}
|
||||
|
||||
pass Enemy_Detection
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
|
||||
@@ -167,6 +167,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Boss_HpBar.h" />
|
||||
<ClInclude Include="..\Public\CallBack_Troll_HitReport.h" />
|
||||
<ClInclude Include="..\Public\CameraLockOn.h" />
|
||||
<ClInclude Include="..\Public\Completed_Panel.h" />
|
||||
<ClInclude Include="..\Public\Current_Slot_Number.h" />
|
||||
<ClInclude Include="..\Public\Current_Spell_Slot.h" />
|
||||
<ClInclude Include="..\Public\Damage_Font.h" />
|
||||
@@ -182,6 +183,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Goblin_Protego.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h" />
|
||||
<ClInclude Include="..\Public\HpBarBG.h" />
|
||||
<ClInclude Include="..\Public\InProgress_Panel.h" />
|
||||
<ClInclude Include="..\Public\InteractiveInfo.h" />
|
||||
<ClInclude Include="..\Public\Intro_BG.h" />
|
||||
<ClInclude Include="..\Public\Intro_Image.h" />
|
||||
@@ -204,6 +206,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Box_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Quest_Border.h" />
|
||||
<ClInclude Include="..\Public\Quest_Canvas.h" />
|
||||
<ClInclude Include="..\Public\Quest_Data.h" />
|
||||
<ClInclude Include="..\Public\Quest_Entry_Line.h" />
|
||||
<ClInclude Include="..\Public\Quest_Header.h" />
|
||||
<ClInclude Include="..\Public\Quest_HeaderLine.h" />
|
||||
@@ -212,6 +215,8 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Quest_Info_Line.h" />
|
||||
<ClInclude Include="..\Public\Quest_List.h" />
|
||||
<ClInclude Include="..\Public\Quest_Panel.h" />
|
||||
<ClInclude Include="..\Public\Quest_Status.h" />
|
||||
<ClInclude Include="..\Public\Quest_Status_Panel.h" />
|
||||
<ClInclude Include="..\Public\RaceRing.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_TurboFly.h" />
|
||||
<ClInclude Include="..\Public\StunEffect.h" />
|
||||
@@ -365,6 +370,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Broom_States.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_Troll_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\CameraLockOn.cpp" />
|
||||
<ClCompile Include="..\Private\Completed_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Current_Slot_Number.cpp" />
|
||||
<ClCompile Include="..\Private\Current_Spell_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\Damage_Font.cpp" />
|
||||
@@ -381,6 +387,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Goblin_Protego.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Spector.cpp" />
|
||||
<ClCompile Include="..\Private\HpBarBG.cpp" />
|
||||
<ClCompile Include="..\Private\InProgress_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\InteractiveInfo.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_BG.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_Image.cpp" />
|
||||
@@ -399,6 +406,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Border.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Canvas.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Data.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Entry_Line.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Header.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_HeaderLine.cpp" />
|
||||
@@ -407,6 +415,8 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Quest_Info_Line.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_List.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Status.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Status_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\RaceRing.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_Dismount.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_Fly.cpp" />
|
||||
|
||||
@@ -604,8 +604,23 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Screen_Wind.h">
|
||||
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\BroomRaceManager.h" />
|
||||
<ClInclude Include="..\Public\Quest_Status_Panel.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\InProgress_Panel.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\InProgress_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Completed_Panel.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Completed_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Status.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Data.h">
|
||||
<Filter>04.Mechanic\Quest</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1269,10 +1284,25 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\ScreenFX">
|
||||
<UniqueIdentifier>{125737f1-56b3-4746-9be2-ea1bcb90c013}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\BroomRaceManager">
|
||||
<UniqueIdentifier>{9e8bccb6-c491-4f3a-bdb8-5f03f13ad84d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel">
|
||||
<UniqueIdentifier>{9060b2e1-d8cb-4259-a17a-f8ee2407d37c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\InProgress_Panel">
|
||||
<UniqueIdentifier>{c25a401b-91f1-4e01-8805-51fffef366a6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Completed_Panel">
|
||||
<UniqueIdentifier>{2bd79ab2-fae7-4757-81b3-26231a4496cf}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status">
|
||||
<UniqueIdentifier>{bffcced5-6951-4db4-9df1-44b33b52ece7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\Quest">
|
||||
<UniqueIdentifier>{fe64513c-fbb3-4577-b424-82d99c9075a3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1823,6 +1853,21 @@
|
||||
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\BroomRaceManager.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Status_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\InProgress_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\InProgress_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Completed_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Completed_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Status.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Data.cpp">
|
||||
<Filter>04.Mechanic\Quest</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -33,7 +33,7 @@ HRESULT CAction_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 1150.f;
|
||||
Desc.fY = 850.f;
|
||||
Desc.fY = -850.f;
|
||||
Desc.fSizeX = 1650.f;
|
||||
Desc.fSizeY = 450.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
@@ -180,7 +180,7 @@ void CAction_Panel::Magic_Meter_UV()
|
||||
for (_uint i = 0; i < 5; ++i)
|
||||
{
|
||||
m_vMagic_MeterUV[i].x = 570.f - (55.f * i);
|
||||
m_vMagic_MeterUV[i].y = 145.f;
|
||||
m_vMagic_MeterUV[i].y = -145.f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ HRESULT CBoss_HpBar::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fY = -40.f;
|
||||
Desc.fSizeX = 218.f;
|
||||
Desc.fSizeY = 82.f;
|
||||
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
#include "pch.h"
|
||||
#include "Completed_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CCompleted_Panel::CCompleted_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CCompleted_Panel::CCompleted_Panel(const CCompleted_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.04f;
|
||||
Visible(false);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HRESULT CCompleted_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CCompleted_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CCompleted_Panel* CCompleted_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CCompleted_Panel* pInstance = new CCompleted_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CCompleted_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CCompleted_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CCompleted_Panel* pInstance = new CCompleted_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CCompleted_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CCompleted_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -25,7 +25,7 @@ HRESULT CEnemy_HpBar::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fY = -40.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 20.f;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ HRESULT CEnemy_Info::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -180.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fY = -40.f;
|
||||
Desc.fSizeX = 50.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
|
||||
@@ -132,8 +132,8 @@ HRESULT CEnemy_Info::Render()
|
||||
|
||||
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pEnemy_Name.c_str(), _float2(m_fFontPos.x + m_fX - m_fFontOffSet, m_fFontPos.y + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_pLevel.c_str(), _float2(m_fFontX + m_fX - m_fFont2OffSet, m_fFontY + m_fY), XMVectorSet(0.f, (120.f / 255.f) * m_fAlpha, 0.f, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pEnemy_Name.c_str(), _float2(m_fFontPos.x + m_fX - m_fFontOffSet, m_fFontPos.y - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_pLevel.c_str(), _float2(m_fFontX + m_fX - m_fFont2OffSet, m_fFontY - m_fY), XMVectorSet(0.f, (120.f / 255.f) * m_fAlpha, 0.f, m_fAlpha));
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
@@ -218,13 +218,13 @@ void CEnemy_Info::Set_Font_Move(_bool Boss)
|
||||
if (m_bBoss == true)
|
||||
{
|
||||
MoveX(-315.f);
|
||||
MoveY(50.f);
|
||||
MoveY(-50.f);
|
||||
m_fFontPos = _float2(1250, 0.f);
|
||||
}
|
||||
else
|
||||
{
|
||||
MoveX(-180.f);
|
||||
MoveY(40.f);
|
||||
MoveY(-40.f);
|
||||
m_fFontPos = _float2(1115.f, 0.f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ HRESULT CEnemy_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 50.f;
|
||||
Desc.fY = -50.f;
|
||||
Desc.fSizeX = 960.f;
|
||||
Desc.fSizeY = 150.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CHpBarBG::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 600.f;
|
||||
Desc.fY = 180.f;
|
||||
Desc.fY = -180.f;
|
||||
Desc.fSizeX = 144.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
#include "pch.h"
|
||||
#include "InProgress_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CInProgress_Panel::CInProgress_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CInProgress_Panel::CInProgress_Panel(const CInProgress_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.04f;
|
||||
Visible(false);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CInProgress_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CInProgress_Panel* CInProgress_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CInProgress_Panel* pInstance = new CInProgress_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CInProgress_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CInProgress_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CInProgress_Panel* pInstance = new CInProgress_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CInProgress_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CInProgress_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "PlayerInfo.h"
|
||||
#include "InteractiveInfo.h"
|
||||
#include "Skill_Data.h"
|
||||
#include "Quest_Data.h"
|
||||
#include "Damage_Font.h"
|
||||
#include "Player.h"
|
||||
|
||||
@@ -261,6 +262,11 @@ void CInfoInstance::Event_CallBack(_wstring EventName, void* pArg)
|
||||
}
|
||||
}
|
||||
|
||||
QUESTINFO CInfoInstance::Get_Quest_Info(_int QuestID)
|
||||
{
|
||||
return m_pQuestInfo->Get_Quest(QuestID);
|
||||
}
|
||||
|
||||
HRESULT CInfoInstance::Regist_ActiveInteractive(CMapElement_Interactable* pInteractive)
|
||||
{
|
||||
if (nullptr == s_pInstance || nullptr == m_pInteractiveInfo) {
|
||||
@@ -316,6 +322,10 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
|
||||
if (nullptr == m_pSkillInfo) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pQuestInfo = CQuest_Data::Create(pDevice, pContext);
|
||||
if (nullptr == m_pQuestInfo) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pInteractiveInfo = CInteractiveInfo::Create(pDevice, pContext);
|
||||
if (nullptr == m_pInteractiveInfo) {
|
||||
return E_FAIL;
|
||||
@@ -362,6 +372,7 @@ void CInfoInstance::Release_Information()
|
||||
SAFE_RELEASE(m_pPlayerInfo);
|
||||
SAFE_RELEASE(m_pMonsterInfo);
|
||||
SAFE_RELEASE(m_pSkillInfo);
|
||||
SAFE_RELEASE(m_pQuestInfo);
|
||||
SAFE_RELEASE(m_pInteractiveInfo);
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
SAFE_RELEASE(m_pContext);
|
||||
|
||||
@@ -112,6 +112,12 @@
|
||||
#include "Quest_Info_Line.h"
|
||||
#include "Quest_Entry_Line.h"
|
||||
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "Quest_Status.h"
|
||||
|
||||
#include "Completed_Panel.h"
|
||||
#include "InProgress_Panel.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region PHYSX
|
||||
@@ -2028,6 +2034,28 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Quest_Status_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status_Panel>(g_iStaticLevel, CQuest_Status_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_Quest_Status*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status>(g_iStaticLevel, CQuest_Status::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Completed_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CCompleted_Panel>(g_iStaticLevel, CCompleted_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_InProgress_Panel*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CInProgress_Panel>(g_iStaticLevel, CInProgress_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Damage_Font*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDamage_Font>(g_iStaticLevel, CDamage_Font::Create(m_pDevice, m_pContext))))
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CLoadingWidget::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 800.f;
|
||||
Desc.fY = 400.f;
|
||||
Desc.fY = -400.f;
|
||||
Desc.fSizeX = 200.f;
|
||||
Desc.fSizeY = 200.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CLoadingWidget_Flame::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -237.f;
|
||||
Desc.fY = 90.f;
|
||||
Desc.fY = -90.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CLoading_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 1200.f;
|
||||
Desc.fY = 900.f;
|
||||
Desc.fY = -900.f;
|
||||
Desc.fSizeX = 1515.f;
|
||||
Desc.fSizeY = 300.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CMagic_Icon::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 630.f;
|
||||
Desc.fY = 125.f;
|
||||
Desc.fY = -125.f;
|
||||
Desc.fSizeX = 65.f;
|
||||
Desc.fSizeY = 65.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -800.f;
|
||||
Desc.fY = 70.f;
|
||||
Desc.fY = -70.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
|
||||
@@ -184,7 +184,7 @@ HRESULT CMagic_Item::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ HRESULT CMagic_Meter::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 190.f;
|
||||
Desc.fY = 145.f;
|
||||
Desc.fY = -145.f;
|
||||
Desc.fSizeX = 70.f;
|
||||
Desc.fSizeY = 20.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CMiniMap_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 170.f;
|
||||
Desc.fY = 920.f;
|
||||
Desc.fY = -920.f;
|
||||
Desc.fSizeX = 280.f;
|
||||
Desc.fSizeY = 280.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CNoMountIcon::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 120.f;
|
||||
Desc.fY = -90;
|
||||
Desc.fY = 90;
|
||||
Desc.fSizeX = 65.f;
|
||||
Desc.fSizeY = 65.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CPotion::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 700.f;
|
||||
Desc.fY = 150.f;
|
||||
Desc.fY = -150.f;
|
||||
Desc.fSizeX = 80.f;
|
||||
Desc.fSizeY = 80.f;
|
||||
|
||||
@@ -141,7 +141,7 @@ HRESULT CPotion::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ HRESULT CQuest_Border::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -485.f;
|
||||
Desc.fY = -150.f;
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 150.f;
|
||||
Desc.fSizeX = 192.f;
|
||||
Desc.fSizeY = 192.f;
|
||||
|
||||
@@ -41,8 +41,8 @@ HRESULT CQuest_Border::Initialize(void* pArg)
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(48.f, 148.f, 48.f, 148.f);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = 740.f;
|
||||
m_fFontY = 500.f;
|
||||
m_fFontX = -31.5f;
|
||||
m_fFontY = -50.f;
|
||||
SizeUpX(500.f);
|
||||
SizeUpY(500.f);
|
||||
Visible(true);
|
||||
@@ -124,7 +124,9 @@ HRESULT CQuest_Border::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("전 체")) - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("전 체"), _float2((m_fFontX - m_fX) - OffSet, m_fFontY + m_fY));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,30 +3,33 @@
|
||||
#include "Quest_Canvas.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "Completed_Panel.h"
|
||||
#include "InProgress_Panel.h"
|
||||
|
||||
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CCanvasObject(pDevice, pContext)
|
||||
:CCanvasObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
|
||||
:CCanvasObject(rhs)
|
||||
:CCanvasObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Canvas::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1920.f;
|
||||
Desc.fSizeY = 1080.f;
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 540.f;
|
||||
Desc.fSizeX = g_iWinSizeX;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
@@ -40,7 +43,13 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fAlpha = 1.f;
|
||||
m_fOwnerAlpha = 1.f;
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.05f;
|
||||
Visible(false);
|
||||
m_iIndex = -1;
|
||||
Add_Function(TEXT("QuestPanelUpdate"), [this](void* p) {this->Update_Panel(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -57,12 +66,27 @@ void CQuest_Canvas::Update(_float fTimeDelta)
|
||||
void CQuest_Canvas::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Canvas::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -73,12 +97,54 @@ _vector CQuest_Canvas::Get_WorldPostion()
|
||||
|
||||
HRESULT CQuest_Canvas::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Canvas::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom))) {
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -92,6 +158,25 @@ HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Quest_Panel"), m_pQuest_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCompleted_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CCompleted_Panel**>(&m_pCompleted_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Completed_Panel"), m_pCompleted_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInProgress_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CInProgress_Panel**>(&m_pInProgress_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("InProgress_Panel"), m_pInProgress_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CQuest_Status_Panel**>(&m_pQuest_Status_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Quest_Status_Panel"), m_pQuest_Status_Panel);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -99,6 +184,28 @@ void CQuest_Canvas::Clear_Penel()
|
||||
{
|
||||
}
|
||||
|
||||
void CQuest_Canvas::Update_Panel(_int Index)
|
||||
{
|
||||
if (m_iIndex == Index)
|
||||
return;
|
||||
|
||||
m_iIndex = Index;
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (i == Index)
|
||||
{
|
||||
m_bClick[i] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick[i] = false;
|
||||
}
|
||||
}
|
||||
static_cast<CPanelObject*>(m_pQuest_Panel)->Visible(m_bClick[0]);
|
||||
static_cast<CPanelObject*>(m_pCompleted_Panel)->Visible(m_bClick[1]);
|
||||
static_cast<CPanelObject*>(m_pInProgress_Panel)->Visible(m_bClick[2]);
|
||||
}
|
||||
|
||||
CQuest_Canvas* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Canvas* pInstance = new CQuest_Canvas(pDevice, pContext);
|
||||
@@ -129,6 +236,8 @@ void CQuest_Canvas::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Data.h"
|
||||
#include "GameObject.h"
|
||||
#include "UIObject.h"
|
||||
#include "tinyxml2.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CQuest_Data::CQuest_Data()
|
||||
: m_pInfoInstance(CInfoInstance::GetInstance()) {
|
||||
}
|
||||
|
||||
HRESULT CQuest_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Data::Update(_float fTimeDelta)
|
||||
{
|
||||
Load_QuestInfo("../Bin/Resources/Data/Quest/QuestData.xml");
|
||||
}
|
||||
|
||||
HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
tinyxml2::XMLError Error = doc.LoadFile(pFilePath);
|
||||
if (Error != tinyxml2::XML_SUCCESS)
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* pQuestInfo = doc.FirstChildElement("QuestInfo");
|
||||
if (!pQuestInfo)
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* pQuestData = pQuestInfo->FirstChildElement("QuestData");
|
||||
if (!pQuestData)
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* pQuest = pQuestData->FirstChildElement("Quest");
|
||||
while (pQuest)
|
||||
{
|
||||
QUESTINFO quest{};
|
||||
|
||||
pQuest->QueryIntAttribute("QuestID", &quest.iQuestID);
|
||||
pQuest->QueryIntAttribute("QuestType", &quest.iType);
|
||||
quest.pQuestName = CMyTools::ToWstring(pQuest->Attribute("QuestName"));
|
||||
quest.pQuestInfo = CMyTools::ToWstring(pQuest->Attribute("QuestInfo"));
|
||||
|
||||
tinyxml2::XMLElement* pObjectives = pQuest->FirstChildElement("Objectives");
|
||||
if (pObjectives)
|
||||
{
|
||||
tinyxml2::XMLElement* pObjective = pObjectives->FirstChildElement("Objective");
|
||||
while (pObjective)
|
||||
{
|
||||
OBJECTIVEINFO obj{};
|
||||
|
||||
pObjective->QueryIntAttribute("Objective", &obj.iObjectType);
|
||||
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
|
||||
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
||||
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
|
||||
|
||||
quest.ObjectiveInfo.push_back(obj);
|
||||
|
||||
pObjective = pObjective->NextSiblingElement("Objective");
|
||||
}
|
||||
}
|
||||
|
||||
tinyxml2::XMLElement* pRewards = pQuest->FirstChildElement("Rewards");
|
||||
if (pRewards)
|
||||
{
|
||||
tinyxml2::XMLElement* pReward = pRewards->FirstChildElement("Reward");
|
||||
while (pReward)
|
||||
{
|
||||
REWARDSINFO reward{};
|
||||
|
||||
pReward->QueryIntAttribute("RequiredCount", &reward.iRewardType);
|
||||
pReward->QueryIntAttribute("CurrentCount", &reward.iRewardID);
|
||||
|
||||
quest.RewardsInfo.push_back(reward);
|
||||
|
||||
pReward = pReward->NextSiblingElement("Reward");
|
||||
}
|
||||
}
|
||||
m_iQuest_Count++;
|
||||
QuestInfos.push_back(quest);
|
||||
|
||||
pQuest = pQuest->NextSiblingElement("Quest");
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
QUESTINFO CQuest_Data::Get_Quest(_int QuestID)
|
||||
{
|
||||
return QuestInfos[QuestID];
|
||||
}
|
||||
|
||||
_int CQuest_Data::Get_Count()
|
||||
{
|
||||
return m_iQuest_Count;
|
||||
}
|
||||
|
||||
CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Data* pInstance = new CQuest_Data();
|
||||
|
||||
if (FAILED(pInstance->Initialize(pDevice, pContext)))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_Data");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_Data::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
@@ -22,7 +22,7 @@ HRESULT CQuest_Entry_Line::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 330.f;
|
||||
Desc.fY = -230.f;
|
||||
Desc.fY = 230.f;
|
||||
Desc.fSizeX = 256.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
@@ -44,7 +44,8 @@ HRESULT CQuest_Entry_Line::Initialize(void* pArg)
|
||||
m_fFontY = 520.f;
|
||||
SizeUpX(800.f);
|
||||
SizeUpY(15.f);
|
||||
Visible(true);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -121,7 +122,7 @@ HRESULT CQuest_Entry_Line::Render()
|
||||
}
|
||||
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상") - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -207,6 +208,19 @@ HRESULT CQuest_Entry_Line::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Entry_Line::Set_Hover(_int Index)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
}
|
||||
|
||||
CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Entry_Line* pInstance = new CQuest_Entry_Line(pDevice, pContext);
|
||||
|
||||
@@ -21,8 +21,8 @@ HRESULT CQuest_Header::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -485.f;
|
||||
Desc.fY = -352.f;
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 352.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 32.f;
|
||||
|
||||
@@ -125,7 +125,7 @@ HRESULT CQuest_Header::Render()
|
||||
}
|
||||
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,26 +3,26 @@
|
||||
#include "GameInstance.h"
|
||||
|
||||
CQuest_HeaderLine::CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_HeaderLine::CQuest_HeaderLine(const CQuest_HeaderLine& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -485.f;
|
||||
Desc.fY = -310.f;
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 310.f;
|
||||
Desc.fSizeX = 480.f;
|
||||
Desc.fSizeY = 10.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 325.f;
|
||||
Desc.fY = -250.f;
|
||||
Desc.fY = 250.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 128.f;
|
||||
|
||||
@@ -49,6 +49,7 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
||||
m_fFontY = 500.f;
|
||||
m_iPerQuestIndex = -1;
|
||||
Visible(true);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -96,7 +97,6 @@ void CQuest_Info::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
Hover();
|
||||
m_pRect.left = long(m_fX - m_vScale.x * 0.5f);
|
||||
m_pRect.top = long(m_fY - m_vScale.y * 0.5f);
|
||||
m_pRect.right = long(m_fX + m_vScale.x * 0.5f);
|
||||
@@ -218,21 +218,17 @@ HRESULT CQuest_Info::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Info::Hover()
|
||||
void CQuest_Info::Set_Hover(_int Index)
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse;
|
||||
fMouse.x = ptMouse.x - g_iWinSizeX * 0.5f;
|
||||
fMouse.y = -(ptMouse.y - g_iWinSizeY * 0.5f);
|
||||
|
||||
if (fMouse.x >= m_pRect.left && fMouse.x <= m_pRect.right &&
|
||||
fMouse.y >= m_pRect.top && fMouse.y <= m_pRect.bottom)
|
||||
m_iQuest_Index = Index;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
_int a = 0;
|
||||
Visible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 345.f;
|
||||
Desc.fY = -350.f;
|
||||
Desc.fY = 350.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 32.f;
|
||||
|
||||
@@ -46,7 +46,8 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
|
||||
m_iColor = 2;
|
||||
SizeUpX(1105.f);
|
||||
SizeUpY(60.f);
|
||||
Visible(true);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -127,7 +128,7 @@ HRESULT CQuest_Info_Header::Render()
|
||||
}
|
||||
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -211,6 +212,19 @@ HRESULT CQuest_Info_Header::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Info_Header::Set_Hover(_int Index)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
}
|
||||
|
||||
CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext);
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Info_Header final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Info_Header(const CQuest_Info_Header& rhs);
|
||||
virtual ~CQuest_Info_Header() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iColor = true;
|
||||
_int m_iQuest_Index{};
|
||||
public:
|
||||
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -3,18 +3,18 @@
|
||||
#include "GameInstance.h"
|
||||
|
||||
CQuest_Info_Line::CQuest_Info_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Info_Line::CQuest_Info_Line(const CQuest_Info_Line& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Info_Line::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Info_Line::Initialize(void* pArg)
|
||||
@@ -22,7 +22,7 @@ HRESULT CQuest_Info_Line::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 323.f;
|
||||
Desc.fY = -315.f;
|
||||
Desc.fY = 315.f;
|
||||
Desc.fSizeX = 256.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
@@ -42,7 +42,8 @@ HRESULT CQuest_Info_Line::Initialize(void* pArg)
|
||||
m_vNine_Slice = _float4(11.f, 245.f, 0.f, 64.f);
|
||||
SizeUpX(934.f);
|
||||
SizeUpY(15.f);
|
||||
Visible(true);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -201,6 +202,19 @@ HRESULT CQuest_Info_Line::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Info_Line::Set_Hover(_int Index)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
}
|
||||
|
||||
CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Info_Line* pInstance = new CQuest_Info_Line(pDevice, pContext);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_List.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -8,7 +9,8 @@ CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
}
|
||||
|
||||
CQuest_List::CQuest_List(const CQuest_List& rhs)
|
||||
:CElementObject(rhs)
|
||||
:CElementObject(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -21,8 +23,8 @@ HRESULT CQuest_List::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -485.f;
|
||||
Desc.fY = 150.f;
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = -150.f;
|
||||
Desc.fSizeX = 256.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
@@ -87,6 +89,28 @@ void CQuest_List::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
Hover();
|
||||
if (m_bHover == true)
|
||||
{
|
||||
m_fSizeX = 505.f;
|
||||
m_fSizeY = 90.f;
|
||||
m_fFontX = 765.f;
|
||||
m_fFontY = 520.f;
|
||||
m_pFontSize = TEXT("Font_size21");
|
||||
m_pQuest_ID = 0;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_fSizeX = 495.f;
|
||||
m_fSizeY = 80.f;
|
||||
m_fFontX = 770.f;
|
||||
m_fFontY = 520.f;
|
||||
m_pFontSize = TEXT("Font_size20");
|
||||
m_pQuest_ID = -1;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -118,6 +142,8 @@ HRESULT CQuest_List::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Render_Text(m_pFontSize, m_pQuest_Name.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -163,7 +189,7 @@ HRESULT CQuest_List::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -201,6 +227,34 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_List::Hover()
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse{};
|
||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = -(ptMouse.y - (g_iWinSizeY * 0.5f));
|
||||
POINT pt{};
|
||||
pt.x = _long(fMouse.x);
|
||||
pt.y = _long(fMouse.y);
|
||||
|
||||
if (PtInRect(&m_pRect, pt))
|
||||
{
|
||||
m_bHover = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bHover = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CQuest_List::Set_Name(_wstring Name, _int ID)
|
||||
{
|
||||
m_pQuest_Name = Name;
|
||||
m_pQuest_ID = ID;
|
||||
}
|
||||
|
||||
CQuest_List* CQuest_List::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_List* pInstance = new CQuest_List(pDevice, pContext);
|
||||
|
||||
@@ -11,27 +11,27 @@
|
||||
#include "Quest_Entry_Line.h"
|
||||
|
||||
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Panel::CQuest_Panel(const CQuest_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 540.f;
|
||||
Desc.fSizeX = g_iWinSizeX;
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
@@ -47,7 +47,7 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.05f;
|
||||
m_fSortZ = 0.04f;
|
||||
m_iSpellType = -1;
|
||||
m_fDelayTime = 1.f;
|
||||
Visible(true);
|
||||
@@ -88,18 +88,6 @@ void CQuest_Panel::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CQuest_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -111,56 +99,11 @@ _vector CQuest_Panel::Get_WorldPostion()
|
||||
|
||||
HRESULT CQuest_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -214,7 +157,7 @@ HRESULT CQuest_Panel::Ready_Element(void* pArg)
|
||||
}
|
||||
Add_Element(TEXT("Quest_Entry_Line"), m_pQuest_Entry_Line);
|
||||
|
||||
return S_OK;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CQuest_Panel* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -247,8 +190,6 @@ void CQuest_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,366 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Status.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CQuest_Status::CQuest_Status(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Status::CQuest_Status(const CQuest_Status& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 180.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 128.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fAlpha = 1.f;
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
Compute_UI(0);
|
||||
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
|
||||
m_fFontX = 80.f;
|
||||
m_fFontY = 480.f;
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Status::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Status::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_bFadeIn == true)
|
||||
{
|
||||
if (m_fAlpha <= 1.f)
|
||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||
|
||||
if (m_fAlpha >= 1.f)
|
||||
{
|
||||
m_bFadeIn = false;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
Hover();
|
||||
if (m_bHover == true)
|
||||
{
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
|
||||
{
|
||||
m_bClick = true;
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Click"), &m_iIndex);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bClick == true)
|
||||
{
|
||||
m_fSizeX = 148.f;
|
||||
m_fSizeY = 148.f;
|
||||
m_vImageposi = _float4{ 42.f, 42.f, 64.f, 64.f };
|
||||
}
|
||||
else
|
||||
{
|
||||
m_fSizeX = m_fOrigin_Size.x;
|
||||
m_fSizeY = m_fOrigin_Size.y;
|
||||
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
|
||||
m_bClick = false;
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Status::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_STATUS))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pName.c_str()) - 30) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pName.c_str(), _float2((m_fFontX - m_fX) - OffSet, m_fFontY - m_fY));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_Status::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vImageposi, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_bool))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iClick", &m_bClick, sizeof(_bool))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Buttom_Slot"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Atlas"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMiniGame_ButtonRing"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Status::Compute_UI(_int Index)
|
||||
{
|
||||
_float2 fImage_Size = { 192.f, 64.f };
|
||||
|
||||
_uint iCountX = 3;
|
||||
_uint iCountY = 1;
|
||||
|
||||
_float iImageX = 64.f;
|
||||
_float iImageY = 64.f;
|
||||
|
||||
_uint iframeX = Index % iCountX;
|
||||
_uint iframeY = Index / iCountX;
|
||||
|
||||
_float2 UVStart;
|
||||
UVStart.x = iframeX * iImageX / fImage_Size.x;
|
||||
UVStart.y = iframeY * iImageY / fImage_Size.y;
|
||||
|
||||
_float2 UVEnd;
|
||||
UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
|
||||
UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
|
||||
|
||||
_float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
|
||||
m_vUV = UV;
|
||||
}
|
||||
|
||||
void CQuest_Status::Set_Status(_int Index, _float m_fPosY, _wstring Text)
|
||||
{
|
||||
m_iIndex = Index;
|
||||
Compute_UI(Index);
|
||||
MoveY(m_fPosY);
|
||||
m_pName = Text;
|
||||
}
|
||||
|
||||
void CQuest_Status::Set_Click(_bool bClick)
|
||||
{
|
||||
m_bClick = bClick;
|
||||
}
|
||||
|
||||
void CQuest_Status::Hover()
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
|
||||
// 2. UI 중심 기준으로 변환 (현재 구조 유지)
|
||||
_float2 fMouse;
|
||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
|
||||
|
||||
// 3. 이미지 중심 좌표
|
||||
_float2 center;
|
||||
center.x = m_fX + m_pOwner->Get_WorldPostion().m128_f32[0];
|
||||
center.y = m_fY + m_pOwner->Get_WorldPostion().m128_f32[1];
|
||||
|
||||
// 4. 반지름 계산 (원형이면 가로 기준)
|
||||
float radius = m_fSizeX * 0.4f;
|
||||
|
||||
// 5. 거리 제곱 계산
|
||||
float dx = fMouse.x - center.x;
|
||||
float dy = fMouse.y - center.y;
|
||||
float distSq = dx * dx + dy * dy;
|
||||
|
||||
// 6. 원 안 체크
|
||||
if (distSq <= radius * radius)
|
||||
{
|
||||
m_bHover = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bHover = false;
|
||||
}
|
||||
}
|
||||
|
||||
CQuest_Status* CQuest_Status::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Status* pInstance = new CQuest_Status(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_Status");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_Status::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_Status* pInstance = new CQuest_Status(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_Status");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_Status::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CQuest_Status::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -0,0 +1,197 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Status.h"
|
||||
|
||||
CQuest_Status_Panel::CQuest_Status_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Status_Panel::CQuest_Status_Panel(const CQuest_Status_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Initialize(void* pArg)
|
||||
{
|
||||
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -860.f;
|
||||
Desc.fY = 120.f;
|
||||
Desc.fSizeX = 175.f;
|
||||
Desc.fSizeY = 680.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.04f;
|
||||
Visible(true);
|
||||
Set_Status();
|
||||
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Set_Status()
|
||||
{
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Status(0, 180.f, TEXT("전 체"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Status(1, 0.f, TEXT("진행중"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Status(2, -180.f, TEXT("완 료"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Click(true);
|
||||
m_bClick[0] = true;
|
||||
m_bClick[1] = false;
|
||||
m_bClick[2] = false;
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Slot_Hover(_int Index)
|
||||
{
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (i == Index)
|
||||
{
|
||||
m_bClick[i] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick[i] = false;
|
||||
}
|
||||
}
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Click(m_bClick[0]);
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Click(m_bClick[1]);
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Click(m_bClick[2]);
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestPanelUpdate"), &Index);
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_Status_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Status_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status1))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status1"), m_pQuest_Status1);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status2"), m_pQuest_Status2);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Status**>(&m_pQuest_Status3))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Status3"), m_pQuest_Status3);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CQuest_Status_Panel* CQuest_Status_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Status_Panel* pInstance = new CQuest_Status_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_Status_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_Status_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_Status_Panel* pInstance = new CQuest_Status_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_Status_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CQuest_Status_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -25,7 +25,7 @@ HRESULT CSpell_Anim::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 590.f;
|
||||
Desc.fY = -100.f;
|
||||
Desc.fY = 100.f;
|
||||
Desc.fSizeX = 470.f;
|
||||
Desc.fSizeY = 250.f;
|
||||
|
||||
@@ -111,7 +111,7 @@ void CSpell_Anim::Update(_float fTimeDelta)
|
||||
|
||||
if (m_iPerSpell != -1)
|
||||
{
|
||||
m_fY = m_fOrigin_Position.y + m_pInfoInstance->Get_Spell_Info(m_iPerSpell).fVidio;
|
||||
m_fY = m_fOrigin_Position.y - m_pInfoInstance->Get_Spell_Info(m_iPerSpell).fVidio;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
@@ -112,7 +112,7 @@ void CSpell_Drag::Update(_float fTimeDelta)
|
||||
ScreenToClient(g_hWnd, &m_pPt);
|
||||
_float2 fMouse{};
|
||||
fMouse.x = m_pPt.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = m_pPt.y - (g_iWinSizeY * 0.5f);
|
||||
fMouse.y = -m_pPt.y + (g_iWinSizeY * 0.5f);
|
||||
|
||||
m_vStart_MousePos = XMVectorSet(fMouse.x, fMouse.y, 0.f, 1.f);
|
||||
m_bFalse = false;
|
||||
@@ -127,7 +127,7 @@ void CSpell_Drag::Update(_float fTimeDelta)
|
||||
ScreenToClient(g_hWnd, &pt);
|
||||
|
||||
float moveX = pt.x - (g_iWinSizeX * 0.5f);
|
||||
float moveY = pt.y - (g_iWinSizeY * 0.5f);
|
||||
float moveY = -pt.y + (g_iWinSizeY * 0.5f);
|
||||
|
||||
m_vMove_MousePos = XMVectorSet(moveX, moveY, 0.f, 1.f);
|
||||
|
||||
@@ -351,7 +351,7 @@ _float2 CSpell_Drag::Get_MousePos()
|
||||
ScreenToClient(g_hWnd, &m_pPt);
|
||||
_float2 fMouse{};
|
||||
fMouse.x = m_pPt.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = m_pPt.y - (g_iWinSizeY * 0.5f);
|
||||
fMouse.y = -m_pPt.y + (g_iWinSizeY * 0.5f);
|
||||
|
||||
m_vMove_MousePos = XMVectorSet(fMouse.x, fMouse.y, 0.f, 1.f);
|
||||
return fMouse;
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CSpell_Header::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 600.f;
|
||||
Desc.fY = -385.f;
|
||||
Desc.fY = 385.f;
|
||||
Desc.fSizeX = 512.f;
|
||||
Desc.fSizeY = 80.f;
|
||||
|
||||
@@ -144,8 +144,8 @@ HRESULT CSpell_Header::Render()
|
||||
|
||||
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pSpell_Name.c_str()) - 53.f) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pSpell_Name.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((215.f / 255.f) * m_fAlpha, (185.f / 255.f) * m_fAlpha, (95.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size13"), m_fSpell_Type.c_str(), _float2(m_fType.x + m_fX, m_fType.y + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pSpell_Name.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY - m_fY), XMVectorSet((215.f / 255.f) * m_fAlpha, (185.f / 255.f) * m_fAlpha, (95.f / 255.f) * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size13"), m_fSpell_Type.c_str(), _float2(m_fType.x + m_fX, m_fType.y - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CSpell_Header_Line::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 600.f;
|
||||
Desc.fY = -340.f;
|
||||
Desc.fY = 340.f;
|
||||
Desc.fSizeX = 487.f;
|
||||
Desc.fSizeY = 18.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 380.f;
|
||||
Desc.fY = 30.f;
|
||||
Desc.fY = -30.f;
|
||||
Desc.fSizeX = 105.f;
|
||||
Desc.fSizeY = 105.f;
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ HRESULT CSpell_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 540.f;
|
||||
Desc.fY = -540.f;
|
||||
Desc.fSizeX = g_iWinSizeX;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
@@ -330,10 +330,6 @@ HRESULT CSpell_Panel::Ready_Element(void* pArg)
|
||||
}
|
||||
Add_Element(TEXT("Spell_Drag"), m_pSpell_Drag);
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSpell_Data>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, m_Info, nullptr, reinterpret_cast<CSpell_Data**>(&m_pSpell_Data))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
|
||||
CSpell_Preview::CSpell_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
@@ -25,7 +24,7 @@ HRESULT CSpell_Preview::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 400.f;
|
||||
Desc.fY = -365.f;
|
||||
Desc.fY = 500.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 128.f;
|
||||
|
||||
@@ -46,7 +45,7 @@ HRESULT CSpell_Preview::Initialize(void* pArg)
|
||||
m_vNine_Slice = _float4(50.f, 75.f, 30.f, 96.f);
|
||||
m_fTopY = m_fY - m_vScale.y * 0.5f;
|
||||
m_fPreviewOffSet = 0.f;
|
||||
m_fOriginPerviewSize = 280.f;
|
||||
m_fOriginPerviewSize = 280;
|
||||
SizeUpX(512.f);
|
||||
SizeUpY(m_fOriginPerviewSize);
|
||||
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
|
||||
@@ -103,19 +102,16 @@ void CSpell_Preview::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
if (m_bFadeOut == false)
|
||||
if (m_iSpellType != -1 && m_iPerSpellIndex != m_iSpellType)
|
||||
{
|
||||
if (m_iSpellType != -1)
|
||||
{
|
||||
m_pSpell_Info = m_pInfoInstance->Get_Spell_Info(m_iSpellType).pSpellInfo;
|
||||
m_fPreviewOffSet = m_pInfoInstance->Get_Spell_Info(m_iSpellType).fPreview;
|
||||
SizeUpY(m_fOriginPerviewSize + m_fPreviewOffSet);
|
||||
m_iPerSpellIndex = m_iSpellType;
|
||||
}
|
||||
m_pSpell_Info = m_pInfoInstance->Get_Spell_Info(m_iSpellType).pSpellInfo;
|
||||
m_fPreviewOffSet = m_pInfoInstance->Get_Spell_Info(m_iSpellType).fPreview;
|
||||
SizeUpY(m_fOriginPerviewSize + m_fPreviewOffSet);
|
||||
m_iPerSpellIndex = m_iSpellType;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -146,9 +142,7 @@ HRESULT CSpell_Preview::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY - m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -163,17 +157,14 @@ void CSpell_Preview::SizeUpX(_float fSizeX)
|
||||
m_fSizeX = fSizeX;
|
||||
m_fX += fX;
|
||||
m_fLerpX += fX;
|
||||
|
||||
}
|
||||
|
||||
void CSpell_Preview::SizeUpY(_float fSizeY)
|
||||
{
|
||||
_float prevY = m_fY;
|
||||
m_fSizeY = fSizeY;
|
||||
m_fY = m_fTopY + fSizeY * 0.5f;
|
||||
|
||||
m_fY = m_fTopY - fSizeY * 0.5f;
|
||||
_float deltaY = m_fY - prevY;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CSpell_Preview::Bind_ShaderResources()
|
||||
@@ -309,6 +300,7 @@ void CSpell_Preview::Free()
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CSpell_Preview::Describe_Entity()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CSpell_UI::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 650.f;
|
||||
Desc.fY = -60.f;
|
||||
Desc.fY = 60.f;
|
||||
Desc.fSizeX = 180.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CSpell_Vidio_Border::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 590.f;
|
||||
Desc.fY = -100.f;
|
||||
Desc.fY = 100.f;
|
||||
Desc.fSizeX = 520.f;
|
||||
Desc.fSizeY = 275.f;
|
||||
|
||||
@@ -98,7 +98,7 @@ void CSpell_Vidio_Border::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_iSpellType != -1)
|
||||
{
|
||||
m_fY = m_fOrigin_Position.y + m_pInfoInstance->Get_Spell_Info(m_iSpellType).fVidio;
|
||||
m_fY = m_fOrigin_Position.y - m_pInfoInstance->Get_Spell_Info(m_iSpellType).fVidio;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ namespace Client
|
||||
ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV,
|
||||
REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
|
||||
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
|
||||
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO,
|
||||
ENEMY_DETECTION, END};
|
||||
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
|
||||
ENEMY_DETECTION, END };
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, END };
|
||||
|
||||
enum class SHADER_PASS_NPC_PBR_ANIM {
|
||||
|
||||
@@ -66,6 +66,29 @@ namespace Client
|
||||
DAMAGE_TYPE eType = DAMAGE_TYPE::NOMAL;
|
||||
}DAMAGE_INFO;
|
||||
|
||||
typedef struct tagObjectiveInfo
|
||||
{
|
||||
_int iObjectType{};
|
||||
_int iTargetID{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
}OBJECTIVEINFO;
|
||||
|
||||
typedef struct tagRewardsInfo
|
||||
{
|
||||
_int iRewardType{};
|
||||
_int iRewardID{};
|
||||
}REWARDSINFO;
|
||||
|
||||
typedef struct tagQuestInfo
|
||||
{
|
||||
_int iQuestID{};
|
||||
_int iType{};
|
||||
_wstring pQuestName;
|
||||
_wstring pQuestInfo;
|
||||
vector<OBJECTIVEINFO> ObjectiveInfo;
|
||||
vector<REWARDSINFO> RewardsInfo;
|
||||
}QUESTINFO;
|
||||
|
||||
typedef struct tagEffectInfo
|
||||
{
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CCompleted_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CCompleted_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CCompleted_Panel(const CCompleted_Panel& rhs);
|
||||
virtual ~CCompleted_Panel() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Ready_Element(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
public:
|
||||
static CCompleted_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CInProgress_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CInProgress_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CInProgress_Panel(const CInProgress_Panel& rhs);
|
||||
virtual ~CInProgress_Panel() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Ready_Element(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
public:
|
||||
static CInProgress_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -66,6 +66,9 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
void Add_Event(_wstring EventName, function<void(void*)> Event);
|
||||
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
#pragma endregion
|
||||
QUESTINFO Get_Quest_Info(_int QuestID);
|
||||
#pragma region Interactive_INFO
|
||||
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
||||
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
||||
@@ -79,6 +82,7 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
class CMonsterInfo* m_pMonsterInfo = { nullptr };
|
||||
class CMapInfo* m_pMapInfo = { nullptr };
|
||||
class CSkill_Data* m_pSkillInfo = { nullptr };
|
||||
class CQuest_Data* m_pQuestInfo= { nullptr };
|
||||
class CInteractiveInfo* m_pInteractiveInfo = { nullptr };
|
||||
class CDamage_Font* m_pDamage_Font = { nullptr };
|
||||
_uint m_eInput = ENUM_CLASS(KEYINPUT::END);
|
||||
|
||||
@@ -34,10 +34,20 @@ class CQuest_Canvas final : public CCanvasObject
|
||||
|
||||
public:
|
||||
void Clear_Penel();
|
||||
void Update_Panel(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Panel = { nullptr };
|
||||
CGameObject* m_pInProgress_Panel = { nullptr };
|
||||
CGameObject* m_pCompleted_Panel = { nullptr };
|
||||
CGameObject* m_pQuest_Status_Panel = { nullptr };
|
||||
|
||||
_bool m_bClick[3] = { false };
|
||||
_int m_iIndex{};
|
||||
public:
|
||||
static CQuest_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Base.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameInstance;
|
||||
class CUIObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Data final : public CBase
|
||||
{
|
||||
private:
|
||||
CQuest_Data();
|
||||
~CQuest_Data() = default;
|
||||
|
||||
public:
|
||||
virtual void Update(_float fTimeDelta);
|
||||
|
||||
public:
|
||||
HRESULT Load_QuestInfo(const _char* pFilePath);
|
||||
QUESTINFO Get_Quest(_int QuestID);
|
||||
_int Get_Count();
|
||||
//const SPELLINFO& Get_Info(_uint SpellID) const;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
QUESTINFO QuestInfo = {};
|
||||
OBJECTIVEINFO ObjectiveInfo = {};
|
||||
REWARDSINFO RewardsInfo = {};
|
||||
|
||||
vector<QUESTINFO> QuestInfos;
|
||||
|
||||
_int m_iQuest_Count{};
|
||||
|
||||
_bool m_bClear[1] = { false };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
|
||||
public:
|
||||
static CQuest_Data* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -31,12 +31,16 @@ class CQuest_Entry_Line final : public CElementObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iColor = { false };
|
||||
_int m_iQuest_Index{};
|
||||
public:
|
||||
static CQuest_Entry_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -31,8 +31,8 @@ class CQuest_Info final : public CElementObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
void Hover();
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
@@ -45,6 +45,7 @@ class CQuest_Info final : public CElementObject
|
||||
_float m_fOriginPerviewSize{};
|
||||
_float m_fPreviewOffSet{};
|
||||
_float4 m_vHeaderBack{};
|
||||
_int m_iQuest_Index{};
|
||||
|
||||
_int m_iPerQuestIndex{};
|
||||
public:
|
||||
|
||||
@@ -31,12 +31,16 @@ class CQuest_Info_Header final : public CElementObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iColor = true;
|
||||
_int m_iQuest_Index{};
|
||||
|
||||
public:
|
||||
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -31,12 +31,17 @@ class CQuest_Info_Line final : public CElementObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iColor = { false };
|
||||
_int m_iQuest_Index{};
|
||||
|
||||
public:
|
||||
static CQuest_Info_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -31,12 +31,23 @@ class CQuest_List final : public CElementObject
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
void Hover();
|
||||
|
||||
public:
|
||||
void Set_Name(_wstring Name, _int ID);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
_int m_iColor = { false };
|
||||
_wstring m_pFontSize;
|
||||
_wstring m_pQuest_Name;
|
||||
_int m_pQuest_ID{};
|
||||
|
||||
public:
|
||||
static CQuest_List* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Status final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_Status(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Status(const CQuest_Status& rhs);
|
||||
virtual ~CQuest_Status() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Compute_UI(_int Index);
|
||||
void Set_Status(_int Index, _float m_PosY, _wstring Text);
|
||||
|
||||
void Set_Click(_bool bClick);
|
||||
|
||||
private:
|
||||
void Hover();
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_wstring m_pName;
|
||||
_int m_iIndex{};
|
||||
_float4 m_vUV{};
|
||||
_float4 m_vImageposi{};
|
||||
_bool m_bClick = { false };
|
||||
public:
|
||||
static CQuest_Status* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,57 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
class CShader;
|
||||
class CVIBuffer_Rect;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Status_Panel final : public CPanelObject
|
||||
{
|
||||
private:
|
||||
CQuest_Status_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Status_Panel(const CQuest_Status_Panel& rhs);
|
||||
virtual ~CQuest_Status_Panel() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Ready_Element(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
void Set_Status();
|
||||
void Slot_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Status1 = { nullptr };
|
||||
CGameObject* m_pQuest_Status2 = { nullptr };
|
||||
CGameObject* m_pQuest_Status3 = { nullptr };
|
||||
|
||||
_bool m_bClick[3] = { false };
|
||||
|
||||
public:
|
||||
static CQuest_Status_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -60,7 +60,6 @@ class CSpell_Panel final : public CPanelObject
|
||||
CGameObject* m_pSpell_Preview = { nullptr };
|
||||
CGameObject* m_pSpell_Vidio_Border = { nullptr };
|
||||
CGameObject* m_pCurrent_Slot_Number = { nullptr };
|
||||
CGameObject* m_pSpell_Data= { nullptr };
|
||||
CGameObject* m_pSpell_Header = { nullptr };
|
||||
CGameObject* m_pSpell_Header_Line = { nullptr };
|
||||
CGameObject* m_pSpell_Anim = { nullptr };
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -63,6 +63,7 @@ Texture2D g_DiffuseTexture;
|
||||
Texture2D g_MaskingTexture;
|
||||
|
||||
int g_iHover;
|
||||
int g_iClick;
|
||||
int g_iColor;
|
||||
|
||||
int g_iStep1 = 0;
|
||||
@@ -1621,6 +1622,128 @@ PS_OUT PS_Quest_Info(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Quest_Status(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
if (g_iClick == 0)
|
||||
{
|
||||
if (g_iHover == 0)
|
||||
{
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
tex1.rgb *= float3(60.f, 80.f, 150.f) / 255.f;
|
||||
Color = tex1;
|
||||
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
float2 safeUV = saturate(atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
Color = tex1;
|
||||
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
float2 safeUV = saturate(atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
Color = tex1;
|
||||
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
|
||||
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
|
||||
float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
|
||||
bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f);
|
||||
if (inside1)
|
||||
{
|
||||
float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy);
|
||||
float2 safeUV = saturate(atlasUV);
|
||||
float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV);
|
||||
Color = lerp(Color, tex2, tex2.a);
|
||||
}
|
||||
float mask = g_Texture2.Sample(DefaultSampler, In.vTexcoord).r;
|
||||
float3 glowColor = float3(1.0f, 1.0f, 1.0f);
|
||||
Color.rgb += glowColor * mask * 0.5f;
|
||||
Color.rgb *= float3(140.f, 140.f, 20.f) / 255.f;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Color.a *= Alpha;
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Broomstick(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float2 center = float2(0.5f, 0.5f);
|
||||
float2 uv = In.vTexcoord - center;
|
||||
uv *= sqrt(2.0f);
|
||||
float2 Rotation = In.vTexcoord;
|
||||
Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
|
||||
Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
|
||||
Rotation += center;
|
||||
|
||||
float2 startUV = g_fImageUV.xy;
|
||||
float2 endUV = g_fImageUV.zw;
|
||||
|
||||
float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
|
||||
|
||||
float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
|
||||
float4 tex2 = g_Texture1.Sample(ClampSampler, atlasUV);
|
||||
tex1.rgb *= 0.4f;
|
||||
color = tex1;
|
||||
tex2.rgb *= 0.3f;
|
||||
|
||||
color = lerp(color, tex2, tex2.a);
|
||||
|
||||
|
||||
float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
|
||||
float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
|
||||
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
|
||||
bool inside = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
|
||||
if(inside)
|
||||
{
|
||||
float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1);
|
||||
color = lerp(color, tex3, tex3.a);
|
||||
|
||||
float CoolTime = 0.f + g_fDeltaV;
|
||||
float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
|
||||
atlasUV = startUV + texlocal1 * (endUV - startUV);
|
||||
|
||||
float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
|
||||
}
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
struct VS_IN3D
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -2104,6 +2227,26 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_Quest_Info();
|
||||
}
|
||||
|
||||
pass Quest_Status
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Quest_Status();
|
||||
}
|
||||
|
||||
pass Broomstick
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Broomstick();
|
||||
}
|
||||
|
||||
pass Enemy_Detection
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -177,11 +177,13 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\public\AlphaMap.h" />
|
||||
<ClInclude Include="..\Public\Body.h" />
|
||||
<ClInclude Include="..\public\Boss_HpBer.h" />
|
||||
<ClInclude Include="..\public\Completed_Panel.h" />
|
||||
<ClInclude Include="..\public\Enemy_Detection.h" />
|
||||
<ClInclude Include="..\Public\Goblin_BattleAxe.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Dagger.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Protego.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h" />
|
||||
<ClInclude Include="..\public\InProgress_Panel.h" />
|
||||
<ClInclude Include="..\public\MapElement_Chest.h" />
|
||||
<ClInclude Include="..\public\MapElement_Door.h" />
|
||||
<ClInclude Include="..\public\MapElement_Chest_Lid.h" />
|
||||
@@ -196,6 +198,8 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\public\Quest_Info_Line.h" />
|
||||
<ClInclude Include="..\public\Quest_List.h" />
|
||||
<ClInclude Include="..\public\Quest_Panel.h" />
|
||||
<ClInclude Include="..\public\Quest_Status.h" />
|
||||
<ClInclude Include="..\public\Quest_Status_Panel.h" />
|
||||
<ClInclude Include="..\Public\Skill_Data.h" />
|
||||
<ClInclude Include="..\Public\State_Blink.h" />
|
||||
<ClInclude Include="..\Public\State_Dead.h" />
|
||||
@@ -395,11 +399,13 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\private\AlphaMap.cpp" />
|
||||
<ClCompile Include="..\Private\Body.cpp" />
|
||||
<ClCompile Include="..\private\Boss_HpBer.cpp" />
|
||||
<ClCompile Include="..\private\Completed_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Enemy_Detection.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_BattleAxe.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Dagger.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Protego.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Spector.cpp" />
|
||||
<ClCompile Include="..\private\InProgress_Panel.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Chest.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Chest_Lid.cpp" />
|
||||
@@ -414,6 +420,8 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\private\Quest_Info_Line.cpp" />
|
||||
<ClCompile Include="..\private\Quest_List.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Panel.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Status.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Status_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Skill_Data.cpp" />
|
||||
<ClCompile Include="..\Private\State_Blink.cpp" />
|
||||
<ClCompile Include="..\Private\State_Dead.cpp" />
|
||||
|
||||
@@ -610,6 +610,18 @@
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line">
|
||||
<UniqueIdentifier>{2347d77a-ac72-4b3e-bf5f-434ca410e544}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Status_Panel">
|
||||
<UniqueIdentifier>{a0cb1a30-7aab-4722-a0c3-fb75cc8986a7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\InProgress_Panel">
|
||||
<UniqueIdentifier>{c6fd65c0-d447-49b7-88f8-a7b12c21e6a2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Completed_Panel">
|
||||
<UniqueIdentifier>{300bca91-ce47-43bb-8848-c1632a714bf3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Status_Panel\Quest_Status">
|
||||
<UniqueIdentifier>{18181fd1-eb00-4d29-a2aa-071428fe4ba6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -1218,6 +1230,18 @@
|
||||
<ClInclude Include="..\public\Quest_Entry_Line.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Quest_Status_Panel.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Status_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Completed_Panel.h">
|
||||
<Filter>50.UI\Quest_Canvas\Completed_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\InProgress_Panel.h">
|
||||
<Filter>50.UI\Quest_Canvas\InProgress_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Quest_Status.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -1828,6 +1852,18 @@
|
||||
<ClCompile Include="..\private\Quest_Entry_Line.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Quest_Status_Panel.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Status_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Completed_Panel.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Completed_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\InProgress_Panel.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\InProgress_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Quest_Status.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -31,7 +31,7 @@ HRESULT CAction_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 1150.f;
|
||||
Desc.fY = 850.f;
|
||||
Desc.fY = -850.f;
|
||||
Desc.fSizeX = 1650.f;
|
||||
Desc.fSizeY = 450.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
@@ -145,7 +145,7 @@ void CAction_Panel::Magic_Meter_UV()
|
||||
for (_uint i = 0; i < 5; ++i)
|
||||
{
|
||||
m_vMagic_MeterUV[i].x = 570.f - (55.f * i);
|
||||
m_vMagic_MeterUV[i].y = 145.f;
|
||||
m_vMagic_MeterUV[i].y = -145.f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CBoss_HpBar::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fY = -40.f;
|
||||
Desc.fSizeX = 218.f;
|
||||
Desc.fSizeY = 82.f;
|
||||
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
#include "pch.h"
|
||||
#include "Completed_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CCompleted_Panel::CCompleted_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CCompleted_Panel::CCompleted_Panel(const CCompleted_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.04f;
|
||||
Visible(false);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HRESULT CCompleted_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CCompleted_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCompleted_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(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 CCompleted_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CCompleted_Panel* CCompleted_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CCompleted_Panel* pInstance = new CCompleted_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CCompleted_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CCompleted_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CCompleted_Panel* pInstance = new CCompleted_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CCompleted_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CCompleted_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -22,7 +22,7 @@ HRESULT CEnemy_Detection::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 500.f;
|
||||
Desc.fY = -500.f;
|
||||
Desc.fSizeX = 150.f;
|
||||
Desc.fSizeY = 150.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CEnemy_HpBar::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fY = -40.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 20.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CEnemy_Info::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -180.f;
|
||||
Desc.fY = 40.f;
|
||||
Desc.fY = -40.f;
|
||||
Desc.fSizeX = 50.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ HRESULT CEnemy_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 50.f;
|
||||
Desc.fY = -50.f;
|
||||
Desc.fSizeX = 960.f;
|
||||
Desc.fSizeY = 150.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CHpBarBG::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 600.f;
|
||||
Desc.fY = 180.f;
|
||||
Desc.fY = -180.f;
|
||||
Desc.fSizeX = 144.f;
|
||||
Desc.fSizeY = 50.f;
|
||||
|
||||
|
||||
@@ -0,0 +1,199 @@
|
||||
#include "pch.h"
|
||||
#include "InProgress_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CInProgress_Panel::CInProgress_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CInProgress_Panel::CInProgress_Panel(const CInProgress_Panel& rhs)
|
||||
:CPanelObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Element(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.04f;
|
||||
Visible(false);
|
||||
ElementAllVisible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CInProgress_Panel::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CInProgress_Panel::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(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 CInProgress_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CInProgress_Panel* CInProgress_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CInProgress_Panel* pInstance = new CInProgress_Panel(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CInProgress_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CInProgress_Panel::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CInProgress_Panel* pInstance = new CInProgress_Panel(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CInProgress_Panel");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CInProgress_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -111,6 +111,12 @@
|
||||
#include "Quest_Info_Line.h"
|
||||
#include "Quest_Entry_Line.h"
|
||||
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "Quest_Status.h"
|
||||
|
||||
#include "Completed_Panel.h"
|
||||
#include "InProgress_Panel.h"
|
||||
|
||||
#include "IMGUIUI.h"
|
||||
|
||||
#pragma endregion
|
||||
@@ -627,208 +633,208 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Altering_Spell"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Altering_Spell"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Alohomora"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Alohomora"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Ancient_Magic"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Ancient_Magic"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Ancient_Magic_Throw"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Ancient_Magic_Throw"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Arresto_Momentum"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Arresto_Momentum"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Avada_Kedavra"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Avada_Kedavra"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Basic_Cast"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Basic_Cast"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Beast_Feed"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Beast_Feed"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Beast_Petting_Brush"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Beast_Petting_Brush"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Bombarda"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Bombarda"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Confringo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Confringo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Conjuring_Spell"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Conjuring_Spell"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Descendo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Descendo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Depulso"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Depulso"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Diffindo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Diffindo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Disillusionment"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Disillusionment"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Evanesco"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Evanesco"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Expelliarmus"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Expelliarmus"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Flipendo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Flipendo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Glacius"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Glacius"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Imperio"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Imperio"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Incendio"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Incendio"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Levioso"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Levioso"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Lumos"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Lumos"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Nab_Sack"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Nab_Sack"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Petrificus_Totalus"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Petrificus_Totalus"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Protego"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Protego"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Reparo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Reparo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Revelio"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Revelio"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Stupefy"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Stupefy"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Transformation"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Transformation"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Wingardium_Leviosa"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Wingardium_Leviosa"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Wingardium_Leviosa"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Wingardium_Leviosa"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Crucio"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Crucio"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216))))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
m_strMessage = TEXT("Model Loading..");
|
||||
|
||||
@@ -1174,6 +1180,25 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status_Panel>(g_iStaticLevel, CQuest_Status_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status>(g_iStaticLevel, CQuest_Status::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CCompleted_Panel>(g_iStaticLevel, CCompleted_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CInProgress_Panel>(g_iStaticLevel, CInProgress_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CIMGUIUI>(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CLoadingWidget_Flame::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -237.f;
|
||||
Desc.fY = 90.f;
|
||||
Desc.fY = -90.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CLoading_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 1200.f;
|
||||
Desc.fY = 900.f;
|
||||
Desc.fY = -900.f;
|
||||
Desc.fSizeX = 1515.f;
|
||||
Desc.fSizeY = 300.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CLogo_Glow::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 470.f;
|
||||
Desc.fY = 385.f;
|
||||
Desc.fY = -385.f;
|
||||
Desc.fSizeX = 256.f;
|
||||
Desc.fSizeY = 128.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CLogo_Text::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 480.f;
|
||||
Desc.fY = -480.f;
|
||||
Desc.fSizeX = 1536.f;
|
||||
Desc.fSizeY = 768.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CMagic_Icon::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 630.f;
|
||||
Desc.fY = 125.f;
|
||||
Desc.fY = -125.f;
|
||||
Desc.fSizeX = 65.f;
|
||||
Desc.fSizeY = 65.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -800.f;
|
||||
Desc.fY = 70.f;
|
||||
Desc.fY = -70.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
|
||||
@@ -42,27 +42,22 @@ HRESULT CMagic_Item::Initialize(void* pArg)
|
||||
m_fAngle = XMConvertToRadians(-135.f);
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fSortZ = 0.2f;
|
||||
m_fCoolTime = 5.f;
|
||||
m_vUVScale.y = 1.f;
|
||||
m_iArratCount = 2;
|
||||
Compute_UV(0);
|
||||
Compute_UV(1);
|
||||
Compute_Image();
|
||||
m_fFontX = 1171.f;
|
||||
m_fFontY = 870.f;
|
||||
m_iPotionIndex = 0;
|
||||
m_iPerPotionIndex = -1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMagic_Item::Compute_UV(_uint iItemID)
|
||||
{
|
||||
_float2 fImage_Size = { 1024.f, 512.f };
|
||||
_float2 fImage_Size = { 320.f, 384.f};
|
||||
|
||||
_uint iCountX = 4;
|
||||
_uint iCountY = 2;
|
||||
_uint iCountX = 5;
|
||||
_uint iCountY = 6;
|
||||
|
||||
_float iImageX = 256.f;
|
||||
_float iImageY = 256.f;
|
||||
_float iImageX = 64.f;
|
||||
_float iImageY = 64.f;
|
||||
|
||||
_uint iframeX = iItemID % iCountX;
|
||||
_uint iframeY = iItemID / iCountX;
|
||||
@@ -83,8 +78,6 @@ void CMagic_Item::Compute_Image()
|
||||
{
|
||||
m_vImagePos1 = _float2(72.f, 0.f);
|
||||
m_vImageSize1 = _float2(30.f, 30.f);
|
||||
m_vImagePos2 = _float2(65.f, 65.f);
|
||||
m_vImageSize2 = _float2(30.f, 30.f);
|
||||
}
|
||||
|
||||
void CMagic_Item::Priority_Update(_float fTimeDelta)
|
||||
@@ -141,13 +134,6 @@ void CMagic_Item::Update(_float fTimeDelta)
|
||||
m_vUVScale.y += fTimeDelta * (1.f / m_fCoolTime);
|
||||
}
|
||||
|
||||
if (m_iPerPotionIndex != m_iPotionIndex)
|
||||
{
|
||||
m_strPotion = to_wstring(m_iPotionIndex);
|
||||
m_fFontOffSet = (m_pGameInstance->FontSizeX(TEXT("UI_size15"), m_strPotion.c_str()) - 13.f) * 0.5f;
|
||||
m_iPerPotionIndex = m_iPotionIndex;
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
@@ -171,7 +157,7 @@ HRESULT CMagic_Item::Render()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_ITEM))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::BROOMSTICK))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -184,9 +170,6 @@ HRESULT CMagic_Item::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("UI_size15"), m_strPotion.c_str(), _float2((m_fFontX + m_fX) - m_fFontOffSet, m_fFontY + m_fY), XMVectorSet((208.f / 255.f) * m_fAlpha, (177.f / 255.f) * m_fAlpha, (52.f / 255.f)* m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -225,18 +208,6 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom4->Bind_ShaderResource(m_pShaderCom, "g_Texture4", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom5->Bind_ShaderResource(m_pShaderCom, "g_Texture5", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom6->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -265,22 +236,6 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iArrayCount", &m_iArratCount, sizeof(_uint))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vImagePos1, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -289,14 +244,6 @@ HRESULT CMagic_Item::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition2", &m_vImagePos2, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes2", &m_vImageSize2, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -314,27 +261,15 @@ HRESULT CMagic_Item::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Broom9"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom2), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Item"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Keyboard_Tab"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom4), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_AmountFrame"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom5), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom6), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Keyboard"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -380,9 +315,6 @@ void CMagic_Item::Free()
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom1);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom2);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom3);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom4);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom5);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom6);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ HRESULT CMagic_Meter::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 190.f;
|
||||
Desc.fY = 145.f;
|
||||
Desc.fY = -145.f;
|
||||
Desc.fSizeX = 70.f;
|
||||
Desc.fSizeY = 20.f;
|
||||
|
||||
|
||||
@@ -98,6 +98,12 @@ HRESULT CMainApp::Ready_Default_Setting()
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size21"), TEXT("../Bin/Resources/Fonts/Font_size21.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size22"), TEXT("../Bin/Resources/Fonts/Font_size22.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size23"), TEXT("../Bin/Resources/Fonts/Font_size23.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Font(TEXT("Font_size30"), TEXT("../Bin/Resources/Fonts/Font_size30.spritefont"))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CMiniMap_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 170.f;
|
||||
Desc.fY = 920.f;
|
||||
Desc.fY = -920.f;
|
||||
Desc.fSizeX = 280.f;
|
||||
Desc.fSizeY = 280.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CMissionBanner_Border::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -207.f;
|
||||
Desc.fY = 115.f;
|
||||
Desc.fY = -115.f;
|
||||
Desc.fSizeX = 256.f;
|
||||
Desc.fSizeY = 128.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CMissionBanner_Key::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -255.f;
|
||||
Desc.fY = 160.f;
|
||||
Desc.fY = -160.f;
|
||||
Desc.fSizeX = 160.f;
|
||||
Desc.fSizeY = 80.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CMission_Icon::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -70.f;
|
||||
Desc.fY = -20.f;
|
||||
Desc.fY = 20.f;
|
||||
Desc.fSizeX = 60.f;
|
||||
Desc.fSizeY = 60.f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ HRESULT CMission_Panel::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 380.f;
|
||||
Desc.fY = 580.f;
|
||||
Desc.fY = -580.f;
|
||||
Desc.fSizeX = 750.f;
|
||||
Desc.fSizeY = 410.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CNoMountIcon::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 120.f;
|
||||
Desc.fY = -90;
|
||||
Desc.fY = 90;
|
||||
Desc.fSizeX = 65.f;
|
||||
Desc.fSizeY = 65.f;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CPotion::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 700.f;
|
||||
Desc.fY = 150.f;
|
||||
Desc.fY = -150.f;
|
||||
Desc.fSizeX = 80.f;
|
||||
Desc.fSizeY = 80.f;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Border.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Data.h"
|
||||
|
||||
CQuest_Border::CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -21,8 +22,8 @@ HRESULT CQuest_Border::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -485.f;
|
||||
Desc.fY = -150.f;
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 150.f;
|
||||
Desc.fSizeX = 192.f;
|
||||
Desc.fSizeY = 192.f;
|
||||
|
||||
@@ -41,14 +42,22 @@ HRESULT CQuest_Border::Initialize(void* pArg)
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(48.f, 148.f, 48.f, 148.f);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = 740.f;
|
||||
m_fFontY = 500.f;
|
||||
m_fFontX = -31.5f;
|
||||
m_fFontY = -50.f;
|
||||
SizeUpX(500.f);
|
||||
SizeUpY(500.f);
|
||||
Visible(true);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QUEST_DATA"), [this](void* p) {this->Set_Quest_Data(reinterpret_cast<CQuest_Data*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Border::Set_Quest_Data(CQuest_Data* Data)
|
||||
{
|
||||
m_pQuest_Data = Data;
|
||||
|
||||
m_iCount = m_pQuest_Data->Get_Count();
|
||||
}
|
||||
|
||||
void CQuest_Border::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
@@ -124,7 +133,14 @@ HRESULT CQuest_Border::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//m_pGameInstance->Render_Text(TEXT("Font_size14"), m_pSpell_Info.c_str(), _float2(m_fFontX + m_fX, (m_fFontY + m_fY) - m_fPreviewOffSet * 0.5f), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("전 체") - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("전 체"), _float2((m_fFontX - m_fX) - OffSet, m_fFontY + m_fY));
|
||||
|
||||
for (_int i = 0; i < m_iCount; ++i)
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pQuest_Data->Get_Quest(i).pQuestName.c_str(), _float2((-210 - m_fX), 100 + m_fY));
|
||||
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
#include "Quest_Canvas.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "Completed_Panel.h"
|
||||
#include "InProgress_Panel.h"
|
||||
#include "Quest_Data.h"
|
||||
|
||||
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CCanvasObject(pDevice, pContext)
|
||||
@@ -23,10 +27,10 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1920.f;
|
||||
Desc.fSizeY = 1080.f;
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 540.f;
|
||||
Desc.fSizeX = g_iWinSizeX;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
@@ -40,7 +44,14 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fAlpha = 1.f;
|
||||
m_fOwnerAlpha = 1.f;
|
||||
m_fCanvasAlpha = 1.f;
|
||||
m_fSortZ = 0.05f;
|
||||
Visible(false);
|
||||
m_iIndex = -1;
|
||||
Add_Function(TEXT("QuestPanelUpdate"), [this](void* p) {this->Update_Panel(*reinterpret_cast<_int*>(p)); });
|
||||
Function_Callback(TEXT("QUESTPANELDATA"), m_pQuest_Data);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -57,12 +68,27 @@ void CQuest_Canvas::Update(_float fTimeDelta)
|
||||
void CQuest_Canvas::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Canvas::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -73,12 +99,54 @@ _vector CQuest_Canvas::Get_WorldPostion()
|
||||
|
||||
HRESULT CQuest_Canvas::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Canvas::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom))) {
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -87,11 +155,35 @@ HRESULT CQuest_Canvas::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Data>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Data**>(&m_pQuest_Data))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CQuest_Panel**>(&m_pQuest_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Quest_Panel"), m_pQuest_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCompleted_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CCompleted_Panel**>(&m_pCompleted_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Completed_Panel"), m_pCompleted_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInProgress_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CInProgress_Panel**>(&m_pInProgress_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("InProgress_Panel"), m_pInProgress_Panel);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Status_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CQuest_Status_Panel**>(&m_pQuest_Status_Panel))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Quest_Status_Panel"), m_pQuest_Status_Panel);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -99,6 +191,33 @@ void CQuest_Canvas::Clear_Penel()
|
||||
{
|
||||
}
|
||||
|
||||
void CQuest_Canvas::Update_Panel(_int Index)
|
||||
{
|
||||
if (m_iIndex == Index)
|
||||
return;
|
||||
|
||||
m_iIndex = Index;
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (i == Index)
|
||||
{
|
||||
m_bClick[i] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bClick[i] = false;
|
||||
}
|
||||
}
|
||||
static_cast<CPanelObject*>(m_pQuest_Panel)->Visible(m_bClick[0]);
|
||||
static_cast<CPanelObject*>(m_pCompleted_Panel)->Visible(m_bClick[1]);
|
||||
static_cast<CPanelObject*>(m_pInProgress_Panel)->Visible(m_bClick[2]);
|
||||
}
|
||||
|
||||
CQuest_Data* CQuest_Canvas::Get_Data()
|
||||
{
|
||||
return static_cast<CQuest_Data*>(m_pQuest_Data);
|
||||
}
|
||||
|
||||
CQuest_Canvas* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Canvas* pInstance = new CQuest_Canvas(pDevice, pContext);
|
||||
@@ -129,6 +248,8 @@ void CQuest_Canvas::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ HRESULT CQuest_Data::Initialize(void* pArg)
|
||||
|
||||
pQuest->QueryIntAttribute("QuestID", &quest.iQuestID);
|
||||
pQuest->QueryIntAttribute("QuestType", &quest.iType);
|
||||
quest.pQuestName = pQuest->Attribute("QuestName");
|
||||
quest.pQuestInfo = pQuest->Attribute("QuestInfo");
|
||||
quest.pQuestName = CMyTools::ToWstring(pQuest->Attribute("QuestName"));
|
||||
quest.pQuestInfo = CMyTools::ToWstring(pQuest->Attribute("QuestInfo"));
|
||||
|
||||
tinyxml2::XMLElement* pObjectives = pQuest->FirstChildElement("Objectives");
|
||||
if (pObjectives)
|
||||
@@ -81,7 +81,7 @@ HRESULT CQuest_Data::Initialize(void* pArg)
|
||||
pReward = pReward->NextSiblingElement("Reward");
|
||||
}
|
||||
}
|
||||
|
||||
m_iQuest_Count++;
|
||||
QuestInfos.push_back(quest);
|
||||
|
||||
pQuest = pQuest->NextSiblingElement("Quest");
|
||||
@@ -112,6 +112,16 @@ _vector CQuest_Data::Get_WorldPostion()
|
||||
return _vector();
|
||||
}
|
||||
|
||||
CQuest_Data::QUESTINFO CQuest_Data::Get_Quest(_int QuestID)
|
||||
{
|
||||
return QuestInfos[QuestID];
|
||||
}
|
||||
|
||||
_int CQuest_Data::Get_Count()
|
||||
{
|
||||
return m_iQuest_Count;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Data::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CQuest_Entry_Line::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 330.f;
|
||||
Desc.fY = -230.f;
|
||||
Desc.fY = 230.f;
|
||||
Desc.fSizeX = 256.f;
|
||||
Desc.fSizeY = 64.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
@@ -44,7 +44,8 @@ HRESULT CQuest_Entry_Line::Initialize(void* pArg)
|
||||
m_fFontY = 520.f;
|
||||
SizeUpX(800.f);
|
||||
SizeUpY(15.f);
|
||||
Visible(true);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -121,7 +122,7 @@ HRESULT CQuest_Entry_Line::Render()
|
||||
}
|
||||
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상") - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -207,6 +208,19 @@ HRESULT CQuest_Entry_Line::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Entry_Line::Set_Hover(_int Index)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
}
|
||||
|
||||
CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Entry_Line* pInstance = new CQuest_Entry_Line(pDevice, pContext);
|
||||
|
||||
@@ -21,8 +21,8 @@ HRESULT CQuest_Header::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -485.f;
|
||||
Desc.fY = -352.f;
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 352.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 32.f;
|
||||
|
||||
@@ -125,7 +125,7 @@ HRESULT CQuest_Header::Render()
|
||||
}
|
||||
|
||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY + m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ HRESULT CQuest_HeaderLine::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -485.f;
|
||||
Desc.fY = -310.f;
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 310.f;
|
||||
Desc.fSizeX = 480.f;
|
||||
Desc.fSizeY = 10.f;
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
@@ -39,7 +39,7 @@ HRESULT CQuest_HeaderLine::Initialize(void* pArg)
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
Visible(true);
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 325.f;
|
||||
Desc.fY = -250.f;
|
||||
Desc.fY = 250.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 128.f;
|
||||
|
||||
@@ -48,7 +48,8 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
||||
m_fFontX = 740.f;
|
||||
m_fFontY = 500.f;
|
||||
m_iPerQuestIndex = -1;
|
||||
Visible(true);
|
||||
Visible(false);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -96,11 +97,6 @@ void CQuest_Info::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
Hover();
|
||||
m_pRect.left = long(m_fX - m_vScale.x * 0.5f);
|
||||
m_pRect.top = long(m_fY - m_vScale.y * 0.5f);
|
||||
m_pRect.right = long(m_fX + m_vScale.x * 0.5f);
|
||||
m_pRect.bottom = long(m_fY + m_vScale.y * 0.5f);
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -111,7 +107,7 @@ void CQuest_Info::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
@@ -217,22 +213,18 @@ HRESULT CQuest_Info::Ready_Components(void* pArg)
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Info::Hover()
|
||||
|
||||
void CQuest_Info::Set_Hover(_int Index)
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse;
|
||||
fMouse.x = ptMouse.x - g_iWinSizeX * 0.5f;
|
||||
fMouse.y = -(ptMouse.y - g_iWinSizeY * 0.5f);
|
||||
|
||||
if (fMouse.x >= m_pRect.left && fMouse.x <= m_pRect.right &&
|
||||
fMouse.y >= m_pRect.top && fMouse.y <= m_pRect.bottom)
|
||||
m_iQuest_Index = Index;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
_int a = 0;
|
||||
Visible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user