[Add] 클라이언트에 퀘스트 추가
This commit is contained in:
@@ -1,8 +1,80 @@
|
||||
<QuestInfo>
|
||||
<QuestData>
|
||||
<Quest QuestID="1" QuestType="Main" QuestName="트롤을 잡아라!" QuestInfo="마을에서 난리를 피우는 트롤을 제압하기">
|
||||
<Quest QuestID="0" QuestType="Main" QuestName="전사의 결투!" QuestInfo="고블린 전사와 힘겨루기를 해서 승리하기" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="1" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
<Objective Type="0" TargetID="0" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="1" QuestType="Main" QuestName="마법 대결!" QuestInfo="고블린 마법사와 마법 대결에서 승리하기" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="1" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="2" QuestType="Main" QuestName="트롤을 잡아라!" QuestInfo="마을에서 난리를 피우는 트롤을 제압하기" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="3" QuestType="Main" QuestName="빗자루 레이스!" QuestInfo="빗자루 레이스에서 1등 하기" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="-1" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="4" QuestType="Main" QuestName="zxcv!" QuestInfo="zxcv" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="5" QuestType="Main" QuestName="qwer!" QuestInfo="qwer" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="6" QuestType="Main" QuestName="tyui!" QuestInfo="tyui" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="7" QuestType="Main" QuestName="ghjk!" QuestInfo="ghjk" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="8" QuestType="Main" QuestName="vbnm!" QuestInfo="vbnm" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
</Rewards>
|
||||
</Quest>
|
||||
<Quest QuestID="9" QuestType="Main" QuestName="1234!" QuestInfo="1234" AcceptState="0">
|
||||
<Objectives>
|
||||
<Objective Type="0" TargetID="2" RequiredCount="1" CurrentCount="0"/>
|
||||
</Objectives>
|
||||
<Rewards>
|
||||
<Reward Type="1" Value="BOMBARDA"/>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<StatInfo>
|
||||
<STAT_PLAYER Name="플레이어" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN Name="고블린 전사" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN_WIZARD Name="고블린 마법사" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_TROLL Name="트롤" HP="400" MAXHP="400" TARGETHP="400" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
||||
<STAT_PLAYER Name="플레이어" OBJECTID="-1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN Name="고블린 전사" OBJECTID="0" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN_WIZARD Name="고블린 마법사" OBJECTID="1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_TROLL Name="트롤" OBJECTID="2" HP="400" MAXHP="400" TARGETHP="400" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
||||
</StatInfo>
|
||||
|
||||
@@ -18,7 +18,9 @@ float g_fFar;
|
||||
float g_fTime;
|
||||
|
||||
float4 g_UV;
|
||||
|
||||
float2 g_fOrigin_Size;
|
||||
float2 g_fCurrent_Size;
|
||||
float4 g_fNine_Slice;
|
||||
struct VS_IN
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -435,6 +437,67 @@ PS_OUT PS_Spell_Lock(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_Quest_Slot(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 uv = In.vTexcoord;
|
||||
float2 CurrentPixelPosition = uv * g_fCurrent_Size;
|
||||
float OriginLeft = g_fNine_Slice.x;
|
||||
float OriginRight = g_fNine_Slice.y;
|
||||
float OriginTop = g_fNine_Slice.z;
|
||||
float OriginBottom = g_fNine_Slice.w;
|
||||
|
||||
float CurrentLeft = OriginLeft;
|
||||
float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
|
||||
float CurrentTop = OriginTop;
|
||||
float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
|
||||
|
||||
float2 Finaluv = In.vTexcoord;
|
||||
|
||||
if (CurrentPixelPosition.x < CurrentLeft)
|
||||
{
|
||||
Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
|
||||
}
|
||||
else if (CurrentPixelPosition.x > CurrentRight)
|
||||
{
|
||||
float dist = CurrentPixelPosition.x - CurrentRight;
|
||||
Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
|
||||
}
|
||||
else
|
||||
{
|
||||
float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
|
||||
Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
|
||||
}
|
||||
|
||||
if (CurrentPixelPosition.y < CurrentTop)
|
||||
{
|
||||
Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
|
||||
}
|
||||
else if (CurrentPixelPosition.y > CurrentBottom)
|
||||
{
|
||||
float dist = CurrentPixelPosition.y - CurrentBottom;
|
||||
Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
|
||||
Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
|
||||
}
|
||||
|
||||
float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
|
||||
|
||||
color = tex1;
|
||||
|
||||
color.a *= Alpha;
|
||||
Out.vColor = color;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 PosTexTechnique11
|
||||
{
|
||||
pass Default
|
||||
@@ -568,4 +631,15 @@ technique11 PosTexTechnique11
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Spell_Lock();
|
||||
}
|
||||
|
||||
pass Quest_Slot
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Quest_Slot();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,30 +177,25 @@ 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\Interaction_Panel.h" />
|
||||
<ClInclude Include="..\public\MapElement_Chest.h" />
|
||||
<ClInclude Include="..\public\MapElement_Door.h" />
|
||||
<ClInclude Include="..\public\MapElement_Chest_Lid.h" />
|
||||
<ClInclude Include="..\Public\Quest_Border.h" />
|
||||
<ClInclude Include="..\public\QuestInstance.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" />
|
||||
<ClInclude Include="..\Public\Quest_Entry_Line.h" />
|
||||
<ClInclude Include="..\public\Quest_Info.h" />
|
||||
<ClInclude Include="..\public\Quest_Info_Header.h" />
|
||||
<ClInclude Include="..\public\Quest_Info_Line.h" />
|
||||
<ClInclude Include="..\public\Quest_List.h" />
|
||||
<ClInclude Include="..\public\Quest_Panel.h" />
|
||||
<ClInclude Include="..\public\Quest_Slot.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" />
|
||||
@@ -400,30 +395,25 @@ 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\Interaction_Panel.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Chest.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Chest_Lid.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Border.cpp" />
|
||||
<ClCompile Include="..\private\QuestInstance.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" />
|
||||
<ClCompile Include="..\Private\Quest_Entry_Line.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Info.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Info_Header.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Info_Line.cpp" />
|
||||
<ClCompile Include="..\private\Quest_List.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Panel.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Slot.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" />
|
||||
|
||||
@@ -586,18 +586,6 @@
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel">
|
||||
<UniqueIdentifier>{cf0e6cef-f688-481a-8e7e-478038907ca8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Border">
|
||||
<UniqueIdentifier>{0a514079-ba47-4973-8472-07a80f1390cc}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Header">
|
||||
<UniqueIdentifier>{104ae31b-3c6a-4acb-9886-abace9859c6e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine">
|
||||
<UniqueIdentifier>{2af37b38-5cbe-4701-8681-638dfe78a9ce}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_List">
|
||||
<UniqueIdentifier>{0dfdc08d-b662-45f1-a1ea-1ca474010600}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Info">
|
||||
<UniqueIdentifier>{971fb38a-f92c-4eea-99d3-287704800ba5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -607,24 +595,21 @@
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line">
|
||||
<UniqueIdentifier>{a5e3c859-7e28-47b3-8b2e-3be3348bb7ee}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<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>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Interaction_Panel">
|
||||
<UniqueIdentifier>{daeac33b-8465-457b-ba3f-18738f7a0d32}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Status">
|
||||
<UniqueIdentifier>{18181fd1-eb00-4d29-a2aa-071428fe4ba6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line">
|
||||
<UniqueIdentifier>{64947266-fbe6-49ca-aa4d-bb58a5a3aff5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Slot">
|
||||
<UniqueIdentifier>{f4b89bbe-d67d-4314-9843-5daf515e7ee7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\QuestInstance">
|
||||
<UniqueIdentifier>{a2d06f57-c74f-4604-91b4-884bf6586584}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -1209,18 +1194,6 @@
|
||||
<ClInclude Include="..\public\Quest_Panel.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Border.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Border</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Quest_Header.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Header</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Quest_HeaderLine.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Quest_List.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_List</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Quest_Info.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
||||
</ClInclude>
|
||||
@@ -1230,24 +1203,21 @@
|
||||
<ClInclude Include="..\public\Quest_Info_Line.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
||||
</ClInclude>
|
||||
<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>
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Status</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Interaction_Panel.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Interaction_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Quest_Slot.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Slot</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Quest_Entry_Line.h">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\QuestInstance.h">
|
||||
<Filter>50.UI\QuestInstance</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -1834,18 +1804,6 @@
|
||||
<ClCompile Include="..\private\Quest_Panel.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Border.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Border</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Quest_Header.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Header</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Quest_HeaderLine.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Quest_List.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_List</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Quest_Info.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
||||
</ClCompile>
|
||||
@@ -1855,24 +1813,21 @@
|
||||
<ClCompile Include="..\private\Quest_Info_Line.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
||||
</ClCompile>
|
||||
<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>
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Status</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Interaction_Panel.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Interaction_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Quest_Slot.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Slot</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Quest_Entry_Line.cpp">
|
||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\QuestInstance.cpp">
|
||||
<Filter>50.UI\QuestInstance</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -1,200 +0,0 @@
|
||||
#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()
|
||||
{
|
||||
}
|
||||
@@ -1,199 +0,0 @@
|
||||
#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()
|
||||
{
|
||||
}
|
||||
@@ -102,20 +102,14 @@
|
||||
|
||||
#include "Quest_Canvas.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "Quest_Border.h"
|
||||
#include "Quest_Header.h"
|
||||
#include "Quest_HeaderLine.h"
|
||||
#include "Quest_List.h"
|
||||
#include "Quest_Info.h"
|
||||
#include "Quest_Info_Header.h"
|
||||
#include "Quest_Info_Line.h"
|
||||
#include "Quest_Entry_Line.h"
|
||||
|
||||
#include "Quest_Status_Panel.h"
|
||||
#include "Quest_Status.h"
|
||||
#include "Quest_Slot.h"
|
||||
|
||||
#include "Completed_Panel.h"
|
||||
#include "InProgress_Panel.h"
|
||||
#include "QuestInstance.h"
|
||||
|
||||
#include "IMGUIUI.h"
|
||||
|
||||
@@ -919,6 +913,15 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Quest_Slot_Desc{};
|
||||
|
||||
Quest_Slot_Desc.iNum = 10;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Quest_Slot"),
|
||||
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Quest_Slot_Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strMessage = TEXT("Shader Loading..");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
|
||||
@@ -1147,22 +1150,6 @@ HRESULT CLoader::Loading_For_UI()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Border>(g_iStaticLevel, CQuest_Border::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Header>(g_iStaticLevel, CQuest_Header::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_HeaderLine>(g_iStaticLevel, CQuest_HeaderLine::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_List>(g_iStaticLevel, CQuest_List::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Info>(g_iStaticLevel, CQuest_Info::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -1179,22 +1166,15 @@ 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))))
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Slot>(g_iStaticLevel, CQuest_Slot::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))))
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuestInstance>(g_iStaticLevel, CQuestInstance::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
#include "pch.h"
|
||||
#include "QuestInstance.h"
|
||||
|
||||
CQuestInstance::CQuestInstance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CQuest(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuestInstance::CQuestInstance(const CQuestInstance& rhs)
|
||||
:CQuest(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
HRESULT CQuestInstance::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuestInstance::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuestInstance::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CQuestInstance* CQuestInstance::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuestInstance* pInstance = new CQuestInstance(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuestInstance");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuestInstance::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuestInstance* pInstance = new CQuestInstance(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Header");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuestInstance::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CQuestInstance::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -1,264 +0,0 @@
|
||||
#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)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Border::CQuest_Border(const CQuest_Border& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 150.f;
|
||||
Desc.fSizeX = 192.f;
|
||||
Desc.fSizeY = 192.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(48.f, 148.f, 48.f, 148.f);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = -10.f;
|
||||
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())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Border::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_bHover = true;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
{
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = false;
|
||||
}
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Border::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_Border::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
|
||||
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"), 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;
|
||||
}
|
||||
|
||||
_vector CQuest_Border::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
|
||||
{
|
||||
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_iColor", &m_iColor, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Border::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_LighthouseGoalBorder_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;
|
||||
}
|
||||
|
||||
CQuest_Border* CQuest_Border::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Border* pInstance = new CQuest_Border(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_Border");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_Border::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_Border* pInstance = new CQuest_Border(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_Border");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_Border::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CQuest_Border::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -3,10 +3,6 @@
|
||||
#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)
|
||||
@@ -27,8 +23,8 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = 540.f;
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = g_iWinSizeX;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
@@ -44,14 +40,7 @@ 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;
|
||||
}
|
||||
|
||||
@@ -76,19 +65,6 @@ void CQuest_Canvas::Late_Update(_float 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;
|
||||
}
|
||||
|
||||
@@ -99,39 +75,6 @@ _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;
|
||||
}
|
||||
|
||||
@@ -141,49 +84,18 @@ HRESULT CQuest_Canvas::Ready_Components(void* pArg)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -191,33 +103,6 @@ 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);
|
||||
@@ -248,8 +133,6 @@ void CQuest_Canvas::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "GameObject.h"
|
||||
#include "UIObject.h"
|
||||
#include "tinyxml2.h"
|
||||
#include "QuestInstance.h"
|
||||
|
||||
CQuest_Data::CQuest_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CGameObject(pDevice, pContext)
|
||||
@@ -53,8 +54,9 @@ HRESULT CQuest_Data::Initialize(void* pArg)
|
||||
while (pObjective)
|
||||
{
|
||||
OBJECTIVEINFO obj{};
|
||||
|
||||
pObjective->QueryIntAttribute("Objective", &obj.iObjectType);
|
||||
_int Clear = 0;
|
||||
pObjective->QueryIntAttribute("Objective", &Clear);
|
||||
obj.bClear = Clear != 0;
|
||||
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
|
||||
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
||||
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
|
||||
@@ -87,6 +89,8 @@ HRESULT CQuest_Data::Initialize(void* pArg)
|
||||
pQuest = pQuest->NextSiblingElement("Quest");
|
||||
}
|
||||
|
||||
Set_AcceptQuest(0);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -96,6 +100,8 @@ void CQuest_Data::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CQuest_Data::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_0))
|
||||
Update_AcceptQuest(0);
|
||||
}
|
||||
|
||||
void CQuest_Data::Late_Update(_float fTimeDelta)
|
||||
@@ -117,9 +123,83 @@ CQuest_Data::QUESTINFO CQuest_Data::Get_Quest(_int QuestID)
|
||||
return QuestInfos[QuestID];
|
||||
}
|
||||
|
||||
_int CQuest_Data::Get_Count()
|
||||
const vector<CQuest_Data::QUESTINFO>& CQuest_Data::Get_AllQuest() const
|
||||
{
|
||||
return m_iQuest_Count;
|
||||
return CQuest_Data::QuestInfos;
|
||||
}
|
||||
|
||||
const vector<CQuest_Data::QUESTINFO>& CQuest_Data::Get_ClearQuest() const
|
||||
{
|
||||
return CQuest_Data::m_QuestEndInfos;
|
||||
}
|
||||
|
||||
const vector<CQuest_Data::QUESTINFO>& CQuest_Data::Get_AcceptQuest() const
|
||||
{
|
||||
return CQuest_Data::m_QuestAcceptedInfos;
|
||||
}
|
||||
|
||||
_int CQuest_Data::Get_Count(_int Index)
|
||||
{
|
||||
switch (Index)
|
||||
{
|
||||
case 0:
|
||||
return m_iQuest_Count;
|
||||
|
||||
case 1:
|
||||
return m_iAcceptQeustCount;
|
||||
|
||||
case 2:
|
||||
return m_iClearQeustCount;
|
||||
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CQuest_Data::Set_AcceptQuest(_int Index)
|
||||
{
|
||||
if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED) || QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED))
|
||||
return S_OK;
|
||||
QuestInfos[Index].iAcceptState = ENUM_CLASS(QUESTSTATE::ACCEPTED);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuestInstance>
|
||||
(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], this, reinterpret_cast <CQuestInstance**>(&m_pQuestInstance))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_QuestAcceptedInfoObject.push_back(m_pQuestInstance);
|
||||
m_QuestAcceptedInfos.push_back(QuestInfos[Index]);
|
||||
m_iAcceptQeustCount++;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Data::Set_ClearQuest(_int Index)
|
||||
{
|
||||
if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::NONE) || QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED))
|
||||
return;
|
||||
|
||||
QuestInfos[Index].iAcceptState = ENUM_CLASS(QUESTSTATE::CLEARED);
|
||||
m_QuestEndInfos.push_back(QuestInfos[Index]);
|
||||
m_iClearQeustCount++;
|
||||
if (m_iAcceptQeustCount >= 0)
|
||||
m_iAcceptQeustCount--;
|
||||
}
|
||||
|
||||
void CQuest_Data::Update_AcceptQuest(_int MonsterID)
|
||||
{
|
||||
m_QuestAcceptedInfoObject.erase(remove_if(m_QuestAcceptedInfoObject.begin(), m_QuestAcceptedInfoObject.end(),
|
||||
[MonsterID, this](auto& it) {
|
||||
CQuestInstance* instance = static_cast<CQuestInstance*>(it);
|
||||
if (static_cast<CQuestInstance*>(it)->Update_Objective(MonsterID) == true)
|
||||
{
|
||||
Set_ClearQuest(static_cast<CQuestInstance*>(it)->Get_QuestID());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}),
|
||||
m_QuestAcceptedInfoObject.end()
|
||||
);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Data::Bind_ShaderResources()
|
||||
|
||||
@@ -214,11 +214,9 @@ void CQuest_Entry_Line::Set_Hover(_int Index)
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -1,249 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Header.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CQuest_Header::CQuest_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_Header::CQuest_Header(const CQuest_Header& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = 352.f;
|
||||
Desc.fSizeX = 128.f;
|
||||
Desc.fSizeY = 32.f;
|
||||
|
||||
m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = 780.f;
|
||||
m_fFontY = 520.f;
|
||||
SizeUpX(600.f);
|
||||
SizeUpY(80.f);
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Header::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Header::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_bHover = true;
|
||||
m_fAlpha = 1.f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
{
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;
|
||||
m_bHover = false;
|
||||
}
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_Header::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_Header::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
|
||||
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"), 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));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_Header::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
|
||||
{
|
||||
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_iColor", &m_iColor, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Header::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_LighthouseHeaderBack"), 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;
|
||||
}
|
||||
|
||||
CQuest_Header* CQuest_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Header* pInstance = new CQuest_Header(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_Header");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_Header::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_Header* pInstance = new CQuest_Header(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_Header");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_Header::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CQuest_Header::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -1,222 +0,0 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_HeaderLine.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CQuest_HeaderLine::CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_HeaderLine::CQuest_HeaderLine(const CQuest_HeaderLine& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
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) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::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 * m_fAlphaTime;;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
m_bFadeOut = false;
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::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_HeaderLine::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 CQuest_HeaderLine::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_HeaderLine::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_TutorialDividerBottom_middle"), 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;
|
||||
}
|
||||
|
||||
CQuest_HeaderLine* CQuest_HeaderLine::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_HeaderLine* pInstance = new CQuest_HeaderLine(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_HeaderLine");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_HeaderLine::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_HeaderLine* pInstance = new CQuest_HeaderLine(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CQuest_HeaderLine");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CQuest_HeaderLine::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Info.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Panel.h"
|
||||
|
||||
CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -45,7 +46,7 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
||||
SizeUpX(960);
|
||||
SizeUpY(m_fOriginPerviewSize);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = 740.f;
|
||||
m_fFontX = 530.f;
|
||||
m_fFontY = 500.f;
|
||||
m_iPerQuestIndex = -1;
|
||||
Visible(false);
|
||||
@@ -107,7 +108,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);
|
||||
}
|
||||
}
|
||||
@@ -126,7 +127,7 @@ HRESULT CQuest_Info::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), static_cast<CQuest_Panel*>(m_pOwner)->Get_Quest(m_iQuest_Index).pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -213,18 +214,16 @@ HRESULT CQuest_Info::Ready_Components(void* pArg)
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
void CQuest_Info::Set_Hover(_int Index)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Info_Header.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Panel.h"
|
||||
|
||||
CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
@@ -41,7 +42,7 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
|
||||
m_fSortZ = 0.02f;
|
||||
m_fFontX = 740.f;
|
||||
m_fFontX = 925.f;
|
||||
m_fFontY = 520.f;
|
||||
m_iColor = 2;
|
||||
SizeUpX(1105.f);
|
||||
@@ -51,19 +52,6 @@ HRESULT CQuest_Info_Header::Initialize(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);
|
||||
}
|
||||
}
|
||||
|
||||
void CQuest_Info_Header::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
@@ -120,7 +108,7 @@ void CQuest_Info_Header::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);
|
||||
}
|
||||
}
|
||||
@@ -139,9 +127,9 @@ HRESULT CQuest_Info_Header::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_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));
|
||||
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), static_cast<CQuest_Panel*>(m_pOwner)->Get_Quest(m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), static_cast<CQuest_Panel*>(m_pOwner)->Get_Quest(m_iQuest_Index).pQuestName.c_str(), _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;
|
||||
}
|
||||
|
||||
@@ -225,6 +213,17 @@ 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);
|
||||
return;
|
||||
}
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext);
|
||||
|
||||
@@ -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)
|
||||
@@ -99,7 +99,7 @@ void CQuest_Info_Line::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);
|
||||
}
|
||||
}
|
||||
@@ -208,11 +208,9 @@ void CQuest_Info_Line::Set_Hover(_int Index)
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Visible(true);
|
||||
}
|
||||
Visible(true);
|
||||
}
|
||||
|
||||
CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_Panel.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Border.h"
|
||||
#include "Quest_Header.h"
|
||||
#include "Quest_HeaderLine.h"
|
||||
#include "Quest_List.h"
|
||||
#include "Quest_Info.h"
|
||||
#include "Quest_Info_Header.h"
|
||||
#include "Quest_Info_Line.h"
|
||||
#include "Quest_Entry_Line.h"
|
||||
#include "Quest_Data.h"
|
||||
#include "Quest_Slot.h"
|
||||
#include "Quest_Status.h"
|
||||
|
||||
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPanelObject(pDevice, pContext)
|
||||
@@ -30,9 +28,9 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.f;
|
||||
Desc.fSizeX = 1575.f;
|
||||
Desc.fX = 960.f;
|
||||
Desc.fY = -540.f;
|
||||
Desc.fSizeX = g_iWinSizeX;
|
||||
Desc.fSizeY = g_iWinSizeY;
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
@@ -53,22 +51,11 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
||||
m_fDelayTime = 1.f;
|
||||
Visible(true);
|
||||
ElementAllVisible(true);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QUESTPANELDATA"), [this](void* p) {this->Set_Quest_Data(reinterpret_cast<CQuest_Data*>(p)); });
|
||||
Set_Status();
|
||||
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Panel::Set_Quest_Count(_int Index)
|
||||
{
|
||||
m_iQuest_Count = Index;
|
||||
}
|
||||
|
||||
void CQuest_Panel::Set_Quest_Data(CQuest_Data* Data)
|
||||
{
|
||||
m_pQuest_Date = Data;
|
||||
Function_Callback(TEXT("QUEST_DATA"), m_pQuest_Date);
|
||||
static_cast<CQuest_List*>(m_pQuest_List)->Set_Name(static_cast<CQuest_Data*>(m_pQuest_Date)->Get_Quest(0).pQuestName, 0);
|
||||
}
|
||||
|
||||
void CQuest_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
@@ -102,6 +89,19 @@ 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;
|
||||
}
|
||||
|
||||
@@ -112,39 +112,71 @@ _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(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;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_Panel::Ready_Element(void* pArg)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Border>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Border**>(&m_pQuest_Border))))
|
||||
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;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Border"), m_pQuest_Border);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Header>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Header**>(&m_pQuest_Header))))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Slot>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Slot**>(&m_pQuest_Slot))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_Header"), m_pQuest_Header);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_HeaderLine>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_HeaderLine**>(&m_pQuest_HeaderLine))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_HeaderLine"), m_pQuest_HeaderLine);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_List>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_List**>(&m_pQuest_List))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Element(TEXT("Quest_List"), m_pQuest_List);
|
||||
Add_Element(TEXT("Quest_Slot"), m_pQuest_Slot);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Info>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Info**>(&m_pQuest_Info))))
|
||||
{
|
||||
@@ -170,9 +202,73 @@ HRESULT CQuest_Panel::Ready_Element(void* pArg)
|
||||
}
|
||||
Add_Element(TEXT("Quest_Entry_Line"), m_pQuest_Entry_Line);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
_int CQuest_Panel::Set_Quest_Count(_int Index)
|
||||
{
|
||||
return static_cast<CQuest_Data*>(m_pQuest_Data)->Get_Count(Index);
|
||||
}
|
||||
|
||||
CQuest_Data::QUESTINFO CQuest_Panel::Get_Quest(_int QuestID)
|
||||
{
|
||||
return static_cast<CQuest_Data*>(m_pQuest_Data)->Get_Quest(QuestID);
|
||||
}
|
||||
|
||||
void CQuest_Panel::Set_Status()
|
||||
{
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status1)->Set_Status(0, -860.f, 400.f, TEXT("전 체"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status2)->Set_Status(1, -860.f, 220.f, TEXT("진행중"));
|
||||
static_cast<CQuest_Status*>(m_pQuest_Status3)->Set_Status(2, -860.f, 40.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_Panel::Slot_Hover(_int Index)
|
||||
{
|
||||
_int iIndex{};
|
||||
if (m_bClick[Index] == true)
|
||||
return;
|
||||
|
||||
for (_int i = 0; i < 3; ++i)
|
||||
{
|
||||
if (i == Index)
|
||||
{
|
||||
m_bClick[i] = true;
|
||||
iIndex = i;
|
||||
}
|
||||
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<CQuest_Slot*>(m_pQuest_Slot)->Set_QuestType(iIndex);
|
||||
}
|
||||
|
||||
CQuest_Panel* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_Panel* pInstance = new CQuest_Panel(pDevice, pContext);
|
||||
@@ -203,6 +299,8 @@ void CQuest_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
|
||||
+112
-74
@@ -1,30 +1,32 @@
|
||||
#include "pch.h"
|
||||
#include "Quest_List.h"
|
||||
#include "Quest_Slot.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Quest_Panel.h"
|
||||
|
||||
CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
CQuest_Slot::CQuest_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CElementObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CQuest_List::CQuest_List(const CQuest_List& rhs)
|
||||
CQuest_Slot::CQuest_Slot(const CQuest_Slot& rhs)
|
||||
:CElementObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Initialize_Prototype()
|
||||
HRESULT CQuest_Slot::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Initialize(void* pArg)
|
||||
HRESULT CQuest_Slot::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = -475.f;
|
||||
Desc.fY = -150.f;
|
||||
Desc.fX = 0.f;
|
||||
Desc.fY = 0.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) };
|
||||
|
||||
if (FAILED(__super::Initialize(&Desc)))
|
||||
@@ -36,19 +38,26 @@ HRESULT CQuest_List::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fTimeMult = 3.f;
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_fTimeMult = 3.f;
|
||||
m_vNine_Slice = _float4(70.f, 186.f, 0.f, 64.f);
|
||||
m_fFontX = 770.f;
|
||||
m_fFontY = 520.f;
|
||||
m_fAlphaTime = 1.f;
|
||||
m_fFontX = 300.f;
|
||||
m_fFontY = 330.f;
|
||||
m_fOffSetX = 0.f;
|
||||
m_fOffSetY = 85;
|
||||
m_iCols = 1;
|
||||
SizeUpX(495.f);
|
||||
SizeUpY(80.f);
|
||||
m_pVIBufferCom->Set_Cloned(true);
|
||||
m_pVIBufferCom->Set_Pos(-475.f, 330.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_iQuestCount = static_cast<CQuest_Panel*>(m_pOwner)->Set_Quest_Count(ENUM_CLASS(QUESTSTATE::NONE));
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_List::Priority_Update(_float fTimeDelta)
|
||||
void CQuest_Slot::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
@@ -57,18 +66,17 @@ void CQuest_List::Priority_Update(_float fTimeDelta)
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_List::Update(_float fTimeDelta)
|
||||
void CQuest_Slot::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)
|
||||
{
|
||||
@@ -80,7 +88,7 @@ void CQuest_List::Update(_float fTimeDelta)
|
||||
if (m_bFadeOut == true)
|
||||
{
|
||||
if (m_fAlpha >= 0.f)
|
||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
||||
m_fAlpha -= fTimeDelta;
|
||||
|
||||
if (m_fAlpha <= 0.f)
|
||||
{
|
||||
@@ -88,71 +96,87 @@ void CQuest_List::Update(_float fTimeDelta)
|
||||
m_fAlpha = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_iQuestIndex);
|
||||
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CQuest_List::Late_Update(_float fTimeDelta)
|
||||
void CQuest_Slot::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (m_bVisible) {
|
||||
if (m_bVisible)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Render()
|
||||
HRESULT CQuest_Slot::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::QUEST_BORDER)))) {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::QUEST_SLOT))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
||||
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
if (FAILED(m_pVIBufferCom->Render()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Render_Text(m_pFontSize, m_pQuest_Name.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
|
||||
|
||||
for (_int i = 0; i < m_iQuestCount; ++i)
|
||||
{
|
||||
m_fFontY = 190 + i * 85.f;
|
||||
if (i == m_iQuestIndex)
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size30"), static_cast<CQuest_Panel*>(m_pOwner)->Get_Quest(i).pQuestName.c_str(), _float2(m_fFontX - 10.f + m_fX, m_fFontY - 10.F - m_fY));
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), static_cast<CQuest_Panel*>(m_pOwner)->Get_Quest(i).pQuestName.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CQuest_List::Get_WorldPostion()
|
||||
_vector CQuest_Slot::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Bind_ShaderResources()
|
||||
void CQuest_Slot::SizeUpX(_float fSizeX)
|
||||
{
|
||||
m_fSizeX = fSizeX;
|
||||
m_pVIBufferCom->Set_SizeX(m_fSizeX);
|
||||
}
|
||||
|
||||
void CQuest_Slot::SizeUpY(_float fSizeY)
|
||||
{
|
||||
m_fSizeY = fSizeY;
|
||||
m_pVIBufferCom->Set_SizeY(m_fSizeY);
|
||||
}
|
||||
|
||||
void CQuest_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
{
|
||||
m_fSizeX = fSizeX;
|
||||
m_fSizeY = fSizeY;
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
}
|
||||
|
||||
HRESULT CQuest_Slot::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
{
|
||||
@@ -189,7 +213,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;
|
||||
@@ -202,16 +226,12 @@ HRESULT CQuest_List::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CQuest_List::Ready_Components(void* pArg)
|
||||
HRESULT CQuest_Slot::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Quest_Slot"), (CComponent**)&m_pVIBufferCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -219,7 +239,7 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -227,19 +247,18 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_List::Hover()
|
||||
void CQuest_Slot::Hover()
|
||||
{
|
||||
POINT ptMouse{};
|
||||
GetCursorPos(&ptMouse);
|
||||
ScreenToClient(g_hWnd, &ptMouse);
|
||||
_float2 fMouse{};
|
||||
_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_iQuestIndex = m_pVIBufferCom->Set_Mouse_Hover(fMouse);
|
||||
|
||||
if (m_iQuestIndex != -1)
|
||||
{
|
||||
m_bHover = true;
|
||||
}
|
||||
@@ -249,39 +268,57 @@ void CQuest_List::Hover()
|
||||
}
|
||||
}
|
||||
|
||||
void CQuest_List::Set_Name(_wstring Name, _int ID)
|
||||
void CQuest_Slot::Set_QuestType(_int Index)
|
||||
{
|
||||
m_pQuest_Name = Name;
|
||||
m_pQuest_ID = ID;
|
||||
switch (Index)
|
||||
{
|
||||
case 0:
|
||||
m_iQuestCount = static_cast<CQuest_Panel*>(m_pOwner)->Set_Quest_Count(ENUM_CLASS(QUESTSTATE::NONE));
|
||||
m_pVIBufferCom->Set_Draw(-1);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
m_iQuestCount = static_cast<CQuest_Panel*>(m_pOwner)->Set_Quest_Count(ENUM_CLASS(QUESTSTATE::ACCEPTED));
|
||||
m_pVIBufferCom->Set_Draw(m_iQuestCount);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
m_iQuestCount = static_cast<CQuest_Panel*>(m_pOwner)->Set_Quest_Count(ENUM_CLASS(QUESTSTATE::CLEARED));
|
||||
m_pVIBufferCom->Set_Draw(m_iQuestCount);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CQuest_List* CQuest_List::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
CQuest_Slot* CQuest_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CQuest_List* pInstance = new CQuest_List(pDevice, pContext);
|
||||
CQuest_Slot* pInstance = new CQuest_Slot(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CQuest_List");
|
||||
MSG_BOX("Failed to Created : CQuest_Slot");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CQuest_List::Clone(void* pArg, CGameObject* pOwner)
|
||||
CGameObject* CQuest_Slot::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CQuest_List* pInstance = new CQuest_List(*this);
|
||||
CQuest_Slot* pInstance = new CQuest_Slot(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CSpell_Header");
|
||||
MSG_BOX("Failed to Cloned : CQuest_Slot");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CQuest_List::Free()
|
||||
void CQuest_Slot::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
@@ -290,6 +327,7 @@ void CQuest_List::Free()
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
void CQuest_List::Describe_Entity()
|
||||
|
||||
void CQuest_Slot::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -42,8 +42,8 @@ HRESULT CQuest_Status::Initialize(void* pArg)
|
||||
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;
|
||||
m_fFontX = -780.f;
|
||||
m_fFontY = 610.f;
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -274,11 +274,12 @@ void CQuest_Status::Compute_UI(_int Index)
|
||||
m_vUV = UV;
|
||||
}
|
||||
|
||||
void CQuest_Status::Set_Status(_int Index, _float m_fPosY, _wstring Name)
|
||||
void CQuest_Status::Set_Status(_int Index, _float PosX, _float PosY, _wstring Name)
|
||||
{
|
||||
m_iIndex = Index;
|
||||
Compute_UI(Index);
|
||||
MoveY(m_fPosY);
|
||||
MoveX(PosX);
|
||||
MoveY(PosY);
|
||||
m_pName = Name;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,195 +0,0 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
void CQuest_Status_Panel::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
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;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -36,9 +36,10 @@ namespace Editor
|
||||
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX ,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_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
|
||||
|
||||
enum class QUESTTYPE { MAIN, SUB, END };
|
||||
enum class QUESTSTATE { NONE, ACCEPTED, CLEARED };
|
||||
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
|
||||
enum class SKILL_TYPE {
|
||||
ARRESTO_MOMENTUM, GLACIUS, LEVIOSO, TRANSFORM, // 노란색
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
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;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Quest.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CQuestInstance final : public CQuest
|
||||
{
|
||||
private:
|
||||
CQuestInstance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuestInstance(const CQuestInstance& rhs);
|
||||
virtual ~CQuestInstance() = default;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
static CQuestInstance* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -1,48 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CQuest_Border final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Border(const CQuest_Border& rhs);
|
||||
virtual ~CQuest_Border() = 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_Quest_Data(class CQuest_Data* Data);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
class CQuest_Data* m_pQuest_Data = { nullptr };
|
||||
|
||||
_int m_iColor = { false };
|
||||
_int m_iCount = { false };
|
||||
|
||||
public:
|
||||
static CQuest_Border* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -32,20 +32,10 @@ class CQuest_Canvas final : public CCanvasObject
|
||||
|
||||
public:
|
||||
void Clear_Penel();
|
||||
void Update_Panel(_int Index);
|
||||
|
||||
|
||||
class CQuest_Data* Get_Data();
|
||||
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 };
|
||||
CGameObject* m_pQuest_Data = { nullptr };
|
||||
|
||||
_bool m_bClick[3] = { false };
|
||||
_int m_iIndex{};
|
||||
|
||||
@@ -13,10 +13,10 @@ class CQuest_Data final : public CGameObject
|
||||
public:
|
||||
typedef struct tagObjectiveInfo
|
||||
{
|
||||
_int iObjectType{};
|
||||
_int iTargetID{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
_bool bClear{};
|
||||
_int iTargetID{};
|
||||
_int iRequiredCount{};
|
||||
_int iCurrentCount{};
|
||||
}OBJECTIVEINFO;
|
||||
typedef struct tagRewardsInfo
|
||||
{
|
||||
@@ -31,6 +31,7 @@ class CQuest_Data final : public CGameObject
|
||||
_wstring pQuestInfo;
|
||||
vector<OBJECTIVEINFO> ObjectiveInfo;
|
||||
vector<REWARDSINFO> RewardsInfo;
|
||||
_int iAcceptState;
|
||||
}QUESTINFO;
|
||||
private:
|
||||
CQuest_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -46,7 +47,14 @@ class CQuest_Data final : public CGameObject
|
||||
|
||||
public:
|
||||
QUESTINFO Get_Quest(_int QuestID);
|
||||
_int Get_Count();
|
||||
_int Get_Count(_int Index);
|
||||
const vector<QUESTINFO>& Get_AllQuest() const;
|
||||
const vector<QUESTINFO>& Get_ClearQuest() const;
|
||||
const vector<QUESTINFO>& Get_AcceptQuest() const;
|
||||
HRESULT Set_AcceptQuest(_int index);
|
||||
void Set_ClearQuest(_int Index);
|
||||
void Update_AcceptQuest(_int MonsterIndex = -1);
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
@@ -55,17 +63,25 @@ class CQuest_Data final : public CGameObject
|
||||
|
||||
public:
|
||||
//const SPELLINFO& Get_Info(_uint SpellID) const;
|
||||
|
||||
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CGameObject* m_pQuestInstance = { nullptr };
|
||||
|
||||
|
||||
QUESTINFO QuestInfo = {};
|
||||
OBJECTIVEINFO ObjectiveInfo = {};
|
||||
REWARDSINFO RewardsInfo = {};
|
||||
|
||||
vector<QUESTINFO> QuestInfos;
|
||||
vector<QUESTINFO> m_QuestNoneInfos;
|
||||
vector<CGameObject*> m_QuestAcceptedInfoObject;
|
||||
vector<QUESTINFO> m_QuestAcceptedInfos;
|
||||
vector<QUESTINFO> m_QuestEndInfos;
|
||||
|
||||
_int m_iQuest_Count{};
|
||||
_int m_iClearQeustCount{};
|
||||
_int m_iAcceptQeustCount{};
|
||||
|
||||
_bool m_bClear[1] = { false };
|
||||
public:
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CQuest_Header final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Header(const CQuest_Header& rhs);
|
||||
virtual ~CQuest_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;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iColor = true;
|
||||
|
||||
public:
|
||||
static CQuest_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -1,41 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "ElementObject.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CQuest_HeaderLine final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_HeaderLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_HeaderLine(const CQuest_HeaderLine& rhs);
|
||||
virtual ~CQuest_HeaderLine() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iQuest_Index{};
|
||||
public:
|
||||
static CQuest_HeaderLine* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "PanelObject.h"
|
||||
#include "Quest_Data.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CGameObject;
|
||||
@@ -32,24 +33,33 @@ class CQuest_Panel final : public CPanelObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Quest_Count(_int Index);
|
||||
void Set_Quest_Data(class CQuest_Data* Data);
|
||||
_int Set_Quest_Count(_int Index);
|
||||
CQuest_Data::QUESTINFO Get_Quest(_int QuestID);
|
||||
|
||||
private:
|
||||
void Set_Status();
|
||||
void Slot_Hover(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
class CQuest_Data* m_pQuest_Date = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Border = { nullptr };
|
||||
CGameObject* m_pQuest_Header = { nullptr };
|
||||
CGameObject* m_pQuest_HeaderLine = { nullptr };
|
||||
CGameObject* m_pQuest_List = { nullptr };
|
||||
CGameObject* m_pQuest_Data = { nullptr };
|
||||
|
||||
CGameObject* m_pQuest_Info = { nullptr };
|
||||
CGameObject* m_pQuest_Info_Header= { nullptr };
|
||||
CGameObject* m_pQuest_Info_Line = { nullptr };
|
||||
CGameObject* m_pQuest_Entry_Line = { nullptr };
|
||||
CGameObject* m_pQuest_Slot = { nullptr };
|
||||
CGameObject* m_pQuest_Status1 = { nullptr };
|
||||
CGameObject* m_pQuest_Status2 = { nullptr };
|
||||
CGameObject* m_pQuest_Status3 = { nullptr };
|
||||
|
||||
_int m_iQuest_Count{};
|
||||
_bool m_bClick[3] = { false };
|
||||
|
||||
public:
|
||||
static CQuest_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
+17
-11
@@ -5,12 +5,12 @@
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CQuest_List final : public CElementObject
|
||||
class CQuest_Slot final : public CElementObject
|
||||
{
|
||||
private:
|
||||
CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_List(const CQuest_List& rhs);
|
||||
virtual ~CQuest_List() = default;
|
||||
CQuest_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Slot(const CQuest_Slot& rhs);
|
||||
virtual ~CQuest_Slot() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
@@ -19,6 +19,10 @@ class CQuest_List final : public CElementObject
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
virtual void SizeUpX(_float fSizeX) override;
|
||||
virtual void SizeUpY(_float fSizeY) override;
|
||||
virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
@@ -29,21 +33,23 @@ class CQuest_List final : public CElementObject
|
||||
void Hover();
|
||||
|
||||
public:
|
||||
void Set_Name(_wstring Name, _int ID);
|
||||
void Set_QuestType(_int Index);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
|
||||
|
||||
_int m_iColor = { false };
|
||||
|
||||
_wstring m_pFontSize;
|
||||
_wstring m_pQuest_Name;
|
||||
_int m_pQuest_ID{};
|
||||
_float m_fOffSetX{};
|
||||
_float m_fOffSetY{};
|
||||
_uint m_iCols{};
|
||||
_int m_iColor{};
|
||||
|
||||
_int m_iQuestIndex{};
|
||||
_int m_iQuestCount{};
|
||||
public:
|
||||
static CQuest_List* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
static CQuest_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
@@ -27,7 +27,7 @@ class CQuest_Status final : public CElementObject
|
||||
|
||||
public:
|
||||
void Compute_UI(_int Index);
|
||||
void Set_Status(_int Index, _float m_PosY, _wstring Name);
|
||||
void Set_Status(_int Index, _float PosX, _float m_PosY, _wstring Name);
|
||||
|
||||
void Set_Click(_bool bClick);
|
||||
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "PanelObject.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
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;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
Reference in New Issue
Block a user