Merge branch 'Develope' into Effect
This commit is contained in:
@@ -167,7 +167,6 @@ call Update_Resources.bat
|
|||||||
<ClInclude Include="..\Public\Boss_HpBar.h" />
|
<ClInclude Include="..\Public\Boss_HpBar.h" />
|
||||||
<ClInclude Include="..\Public\CallBack_Troll_HitReport.h" />
|
<ClInclude Include="..\Public\CallBack_Troll_HitReport.h" />
|
||||||
<ClInclude Include="..\Public\CameraLockOn.h" />
|
<ClInclude Include="..\Public\CameraLockOn.h" />
|
||||||
<ClInclude Include="..\Public\Completed_Panel.h" />
|
|
||||||
<ClInclude Include="..\Public\Current_Slot_Number.h" />
|
<ClInclude Include="..\Public\Current_Slot_Number.h" />
|
||||||
<ClInclude Include="..\Public\Current_Spell_Slot.h" />
|
<ClInclude Include="..\Public\Current_Spell_Slot.h" />
|
||||||
<ClInclude Include="..\Public\Damage_Font.h" />
|
<ClInclude Include="..\Public\Damage_Font.h" />
|
||||||
@@ -183,7 +182,6 @@ call Update_Resources.bat
|
|||||||
<ClInclude Include="..\Public\Goblin_Protego.h" />
|
<ClInclude Include="..\Public\Goblin_Protego.h" />
|
||||||
<ClInclude Include="..\Public\Goblin_Spector.h" />
|
<ClInclude Include="..\Public\Goblin_Spector.h" />
|
||||||
<ClInclude Include="..\Public\HpBarBG.h" />
|
<ClInclude Include="..\Public\HpBarBG.h" />
|
||||||
<ClInclude Include="..\Public\InProgress_Panel.h" />
|
|
||||||
<ClInclude Include="..\public\Interaction_Key.h" />
|
<ClInclude Include="..\public\Interaction_Key.h" />
|
||||||
<ClInclude Include="..\Public\InteractiveInfo.h" />
|
<ClInclude Include="..\Public\InteractiveInfo.h" />
|
||||||
<ClInclude Include="..\Public\Intro_BG.h" />
|
<ClInclude Include="..\Public\Intro_BG.h" />
|
||||||
@@ -197,6 +195,9 @@ call Update_Resources.bat
|
|||||||
<ClInclude Include="..\Public\Logo_Glow.h" />
|
<ClInclude Include="..\Public\Logo_Glow.h" />
|
||||||
<ClInclude Include="..\Public\Logo_Text.h" />
|
<ClInclude Include="..\Public\Logo_Text.h" />
|
||||||
<ClInclude Include="..\Public\Goblin_Attack.h" />
|
<ClInclude Include="..\Public\Goblin_Attack.h" />
|
||||||
|
<ClInclude Include="..\Public\QuestInstance.h" />
|
||||||
|
<ClInclude Include="..\Public\Quest_Info_Header.h" />
|
||||||
|
<ClInclude Include="..\Public\Quest_Slot.h" />
|
||||||
<ClInclude Include="..\Public\Screen_Wind.h" />
|
<ClInclude Include="..\Public\Screen_Wind.h" />
|
||||||
<ClInclude Include="..\Public\Mage_Nomal_Attack.h" />
|
<ClInclude Include="..\Public\Mage_Nomal_Attack.h" />
|
||||||
<ClInclude Include="..\Public\MageSide.h" />
|
<ClInclude Include="..\Public\MageSide.h" />
|
||||||
@@ -205,19 +206,13 @@ call Update_Resources.bat
|
|||||||
<ClInclude Include="..\public\MapElement_Chest_Lid.h" />
|
<ClInclude Include="..\public\MapElement_Chest_Lid.h" />
|
||||||
<ClInclude Include="..\Public\NPC_Ollivander.h" />
|
<ClInclude Include="..\Public\NPC_Ollivander.h" />
|
||||||
<ClInclude Include="..\Public\Box_Splesh.h" />
|
<ClInclude Include="..\Public\Box_Splesh.h" />
|
||||||
<ClInclude Include="..\Public\Quest_Border.h" />
|
|
||||||
<ClInclude Include="..\Public\Quest_Canvas.h" />
|
<ClInclude Include="..\Public\Quest_Canvas.h" />
|
||||||
<ClInclude Include="..\Public\Quest_Data.h" />
|
<ClInclude Include="..\Public\Quest_Data.h" />
|
||||||
<ClInclude Include="..\Public\Quest_Entry_Line.h" />
|
<ClInclude Include="..\Public\Quest_Entry_Line.h" />
|
||||||
<ClInclude Include="..\Public\Quest_Header.h" />
|
|
||||||
<ClInclude Include="..\Public\Quest_HeaderLine.h" />
|
|
||||||
<ClInclude Include="..\Public\Quest_Info.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_Info_Line.h" />
|
||||||
<ClInclude Include="..\Public\Quest_List.h" />
|
|
||||||
<ClInclude Include="..\Public\Quest_Panel.h" />
|
<ClInclude Include="..\Public\Quest_Panel.h" />
|
||||||
<ClInclude Include="..\Public\Quest_Status.h" />
|
<ClInclude Include="..\Public\Quest_Status.h" />
|
||||||
<ClInclude Include="..\Public\Quest_Status_Panel.h" />
|
|
||||||
<ClInclude Include="..\Public\RaceRing.h" />
|
<ClInclude Include="..\Public\RaceRing.h" />
|
||||||
<ClInclude Include="..\Public\State_Broom_TurboFly.h" />
|
<ClInclude Include="..\Public\State_Broom_TurboFly.h" />
|
||||||
<ClInclude Include="..\Public\StunEffect.h" />
|
<ClInclude Include="..\Public\StunEffect.h" />
|
||||||
@@ -371,7 +366,6 @@ call Update_Resources.bat
|
|||||||
<ClCompile Include="..\Private\Broom_States.cpp" />
|
<ClCompile Include="..\Private\Broom_States.cpp" />
|
||||||
<ClCompile Include="..\Private\CallBack_Troll_HitReport.cpp" />
|
<ClCompile Include="..\Private\CallBack_Troll_HitReport.cpp" />
|
||||||
<ClCompile Include="..\Private\CameraLockOn.cpp" />
|
<ClCompile Include="..\Private\CameraLockOn.cpp" />
|
||||||
<ClCompile Include="..\Private\Completed_Panel.cpp" />
|
|
||||||
<ClCompile Include="..\Private\Current_Slot_Number.cpp" />
|
<ClCompile Include="..\Private\Current_Slot_Number.cpp" />
|
||||||
<ClCompile Include="..\Private\Current_Spell_Slot.cpp" />
|
<ClCompile Include="..\Private\Current_Spell_Slot.cpp" />
|
||||||
<ClCompile Include="..\Private\Damage_Font.cpp" />
|
<ClCompile Include="..\Private\Damage_Font.cpp" />
|
||||||
@@ -388,7 +382,6 @@ call Update_Resources.bat
|
|||||||
<ClCompile Include="..\Private\Goblin_Protego.cpp" />
|
<ClCompile Include="..\Private\Goblin_Protego.cpp" />
|
||||||
<ClCompile Include="..\Private\Goblin_Spector.cpp" />
|
<ClCompile Include="..\Private\Goblin_Spector.cpp" />
|
||||||
<ClCompile Include="..\Private\HpBarBG.cpp" />
|
<ClCompile Include="..\Private\HpBarBG.cpp" />
|
||||||
<ClCompile Include="..\Private\InProgress_Panel.cpp" />
|
|
||||||
<ClCompile Include="..\private\Interaction_Key.cpp" />
|
<ClCompile Include="..\private\Interaction_Key.cpp" />
|
||||||
<ClCompile Include="..\Private\InteractiveInfo.cpp" />
|
<ClCompile Include="..\Private\InteractiveInfo.cpp" />
|
||||||
<ClCompile Include="..\Private\Intro_BG.cpp" />
|
<ClCompile Include="..\Private\Intro_BG.cpp" />
|
||||||
@@ -401,24 +394,21 @@ call Update_Resources.bat
|
|||||||
<ClCompile Include="..\Private\Logo.cpp" />
|
<ClCompile Include="..\Private\Logo.cpp" />
|
||||||
<ClCompile Include="..\Private\Logo_Glow.cpp" />
|
<ClCompile Include="..\Private\Logo_Glow.cpp" />
|
||||||
<ClCompile Include="..\Private\Logo_Text.cpp" />
|
<ClCompile Include="..\Private\Logo_Text.cpp" />
|
||||||
|
<ClCompile Include="..\Private\QuestInstance.cpp" />
|
||||||
|
<ClCompile Include="..\Private\Quest_Slot.cpp" />
|
||||||
<ClCompile Include="..\Private\Screen_Wind.cpp" />
|
<ClCompile Include="..\Private\Screen_Wind.cpp" />
|
||||||
<ClCompile Include="..\private\MapElement_Chest.cpp" />
|
<ClCompile Include="..\private\MapElement_Chest.cpp" />
|
||||||
<ClCompile Include="..\private\MapElement_Chest_Lid.cpp" />
|
<ClCompile Include="..\private\MapElement_Chest_Lid.cpp" />
|
||||||
<ClCompile Include="..\Private\NPC_Ollivander.cpp" />
|
<ClCompile Include="..\Private\NPC_Ollivander.cpp" />
|
||||||
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_Border.cpp" />
|
|
||||||
<ClCompile Include="..\Private\Quest_Canvas.cpp" />
|
<ClCompile Include="..\Private\Quest_Canvas.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_Data.cpp" />
|
<ClCompile Include="..\Private\Quest_Data.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_Entry_Line.cpp" />
|
<ClCompile Include="..\Private\Quest_Entry_Line.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_Header.cpp" />
|
|
||||||
<ClCompile Include="..\Private\Quest_HeaderLine.cpp" />
|
|
||||||
<ClCompile Include="..\Private\Quest_Info.cpp" />
|
<ClCompile Include="..\Private\Quest_Info.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_Info_Header.cpp" />
|
<ClCompile Include="..\Private\Quest_Info_Header.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_Info_Line.cpp" />
|
<ClCompile Include="..\Private\Quest_Info_Line.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_List.cpp" />
|
|
||||||
<ClCompile Include="..\Private\Quest_Panel.cpp" />
|
<ClCompile Include="..\Private\Quest_Panel.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_Status.cpp" />
|
<ClCompile Include="..\Private\Quest_Status.cpp" />
|
||||||
<ClCompile Include="..\Private\Quest_Status_Panel.cpp" />
|
|
||||||
<ClCompile Include="..\Private\RaceRing.cpp" />
|
<ClCompile Include="..\Private\RaceRing.cpp" />
|
||||||
<ClCompile Include="..\Private\State_Broom_Dismount.cpp" />
|
<ClCompile Include="..\Private\State_Broom_Dismount.cpp" />
|
||||||
<ClCompile Include="..\Private\State_Broom_Fly.cpp" />
|
<ClCompile Include="..\Private\State_Broom_Fly.cpp" />
|
||||||
|
|||||||
@@ -563,30 +563,15 @@
|
|||||||
<ClInclude Include="..\Public\Accio.h">
|
<ClInclude Include="..\Public\Accio.h">
|
||||||
<Filter>02.GameObjects\Effect\Effects\Accio</Filter>
|
<Filter>02.GameObjects\Effect\Effects\Accio</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Quest_Border.h">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\Quest_Entry_Line.h">
|
<ClInclude Include="..\Public\Quest_Entry_Line.h">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Quest_Header.h">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Header</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\Quest_HeaderLine.h">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\Quest_Info.h">
|
<ClInclude Include="..\Public\Quest_Info.h">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Quest_Info_Header.h">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\Quest_Info_Line.h">
|
<ClInclude Include="..\Public\Quest_Info_Line.h">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Quest_List.h">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_List</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\Quest_Canvas.h">
|
<ClInclude Include="..\Public\Quest_Canvas.h">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
@@ -605,17 +590,8 @@
|
|||||||
<ClInclude Include="..\Public\Screen_Wind.h">
|
<ClInclude Include="..\Public\Screen_Wind.h">
|
||||||
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Quest_Status_Panel.h">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\InProgress_Panel.h">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\InProgress_Panel</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\Completed_Panel.h">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Completed_Panel</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\Quest_Status.h">
|
<ClInclude Include="..\Public\Quest_Status.h">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Status</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Quest_Data.h">
|
<ClInclude Include="..\Public\Quest_Data.h">
|
||||||
<Filter>04.Mechanic\Quest</Filter>
|
<Filter>04.Mechanic\Quest</Filter>
|
||||||
@@ -626,6 +602,15 @@
|
|||||||
<ClInclude Include="..\public\Interaction_Key.h">
|
<ClInclude Include="..\public\Interaction_Key.h">
|
||||||
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\Public\QuestInstance.h">
|
||||||
|
<Filter>04.Mechanic\Quest\QuestInstance</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\Public\Quest_Slot.h">
|
||||||
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\Public\Quest_Info_Header.h">
|
||||||
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Image Include="Client.ico">
|
<Image Include="Client.ico">
|
||||||
@@ -1254,18 +1239,9 @@
|
|||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel">
|
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel">
|
||||||
<UniqueIdentifier>{322edb99-c59d-4a92-8ab1-8ec57a9e18fb}</UniqueIdentifier>
|
<UniqueIdentifier>{322edb99-c59d-4a92-8ab1-8ec57a9e18fb}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border">
|
|
||||||
<UniqueIdentifier>{ba5406be-c0a0-41dd-879f-a324d71ea4b8}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line">
|
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line">
|
||||||
<UniqueIdentifier>{c02a6573-5be6-4f17-b1b0-39698c0fff5f}</UniqueIdentifier>
|
<UniqueIdentifier>{c02a6573-5be6-4f17-b1b0-39698c0fff5f}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Header">
|
|
||||||
<UniqueIdentifier>{da2bbb64-73eb-427a-ae36-21c9ed5db304}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine">
|
|
||||||
<UniqueIdentifier>{73ceb062-c340-4365-9fb3-7bb21f9b9552}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info">
|
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info">
|
||||||
<UniqueIdentifier>{bfeebdc4-6aa9-400f-a086-3d6a32a3d37e}</UniqueIdentifier>
|
<UniqueIdentifier>{bfeebdc4-6aa9-400f-a086-3d6a32a3d37e}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
@@ -1275,9 +1251,6 @@
|
|||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line">
|
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line">
|
||||||
<UniqueIdentifier>{7c8b3162-a6d5-441f-84ae-cfb4bf779dfa}</UniqueIdentifier>
|
<UniqueIdentifier>{7c8b3162-a6d5-441f-84ae-cfb4bf779dfa}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_List">
|
|
||||||
<UniqueIdentifier>{2d8d199b-8ba8-497a-afb3-edcc4c905ea5}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Broom_TurboFly">
|
<Filter Include="04.Mechanic\State\Broom_Player\State_Broom_TurboFly">
|
||||||
<UniqueIdentifier>{2326c134-a2bb-45f1-8452-2dd49bf42697}</UniqueIdentifier>
|
<UniqueIdentifier>{2326c134-a2bb-45f1-8452-2dd49bf42697}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
@@ -1293,24 +1266,21 @@
|
|||||||
<Filter Include="02.GameObjects\BroomRaceManager">
|
<Filter Include="02.GameObjects\BroomRaceManager">
|
||||||
<UniqueIdentifier>{9e8bccb6-c491-4f3a-bdb8-5f03f13ad84d}</UniqueIdentifier>
|
<UniqueIdentifier>{9e8bccb6-c491-4f3a-bdb8-5f03f13ad84d}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel">
|
|
||||||
<UniqueIdentifier>{9060b2e1-d8cb-4259-a17a-f8ee2407d37c}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\InProgress_Panel">
|
|
||||||
<UniqueIdentifier>{c25a401b-91f1-4e01-8805-51fffef366a6}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Completed_Panel">
|
|
||||||
<UniqueIdentifier>{2bd79ab2-fae7-4757-81b3-26231a4496cf}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status">
|
|
||||||
<UniqueIdentifier>{bffcced5-6951-4db4-9df1-44b33b52ece7}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="04.Mechanic\Quest">
|
<Filter Include="04.Mechanic\Quest">
|
||||||
<UniqueIdentifier>{fe64513c-fbb3-4577-b424-82d99c9075a3}</UniqueIdentifier>
|
<UniqueIdentifier>{fe64513c-fbb3-4577-b424-82d99c9075a3}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="02.GameObjects\UI\Interaction_Key">
|
<Filter Include="02.GameObjects\UI\Interaction_Key">
|
||||||
<UniqueIdentifier>{08163c4a-63c9-4cc2-97b4-97bb2f9467ff}</UniqueIdentifier>
|
<UniqueIdentifier>{08163c4a-63c9-4cc2-97b4-97bb2f9467ff}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Status">
|
||||||
|
<UniqueIdentifier>{bffcced5-6951-4db4-9df1-44b33b52ece7}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="04.Mechanic\Quest\QuestInstance">
|
||||||
|
<UniqueIdentifier>{35a6cb6f-4bbb-47fb-8f7a-63615128dece}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot">
|
||||||
|
<UniqueIdentifier>{6bbfb8f0-c71a-4769-b1e6-efd5d863ba7f}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="Client.cpp">
|
<ClCompile Include="Client.cpp">
|
||||||
@@ -1818,18 +1788,9 @@
|
|||||||
<ClCompile Include="..\Private\Accio.cpp">
|
<ClCompile Include="..\Private\Accio.cpp">
|
||||||
<Filter>02.GameObjects\Effect\Effects\Accio</Filter>
|
<Filter>02.GameObjects\Effect\Effects\Accio</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\Quest_Border.cpp">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\Private\Quest_Entry_Line.cpp">
|
<ClCompile Include="..\Private\Quest_Entry_Line.cpp">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Entry_Line</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\Quest_Header.cpp">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Header</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\Private\Quest_HeaderLine.cpp">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_HeaderLine</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\Private\Quest_Info.cpp">
|
<ClCompile Include="..\Private\Quest_Info.cpp">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@@ -1839,9 +1800,6 @@
|
|||||||
<ClCompile Include="..\Private\Quest_Info_Line.cpp">
|
<ClCompile Include="..\Private\Quest_Info_Line.cpp">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\Quest_List.cpp">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_List</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\Private\Quest_Canvas.cpp">
|
<ClCompile Include="..\Private\Quest_Canvas.cpp">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@@ -1860,17 +1818,8 @@
|
|||||||
<ClCompile Include="..\Private\Screen_Wind.cpp">
|
<ClCompile Include="..\Private\Screen_Wind.cpp">
|
||||||
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
<Filter>02.GameObjects\Effect\ScreenFX</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\Quest_Status_Panel.cpp">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\Private\InProgress_Panel.cpp">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\InProgress_Panel</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\Private\Completed_Panel.cpp">
|
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Completed_Panel</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\Private\Quest_Status.cpp">
|
<ClCompile Include="..\Private\Quest_Status.cpp">
|
||||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Status_Panel\Quest_Status</Filter>
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Status</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\Quest_Data.cpp">
|
<ClCompile Include="..\Private\Quest_Data.cpp">
|
||||||
<Filter>04.Mechanic\Quest</Filter>
|
<Filter>04.Mechanic\Quest</Filter>
|
||||||
@@ -1881,6 +1830,12 @@
|
|||||||
<ClCompile Include="..\private\Interaction_Key.cpp">
|
<ClCompile Include="..\private\Interaction_Key.cpp">
|
||||||
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\Private\QuestInstance.cpp">
|
||||||
|
<Filter>04.Mechanic\Quest\QuestInstance</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\Private\Quest_Slot.cpp">
|
||||||
|
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||||
|
|||||||
@@ -176,17 +176,24 @@ HRESULT CBroom::Render()
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -243,7 +250,15 @@ HRESULT CBroom::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,13 +189,20 @@ HRESULT CBroomRacerAI::Render_Shadow(SHADOW eType)
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "CamPosition_Target.h"
|
#include "CamPosition_Target.h"
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
#include "Camera_Gaze.h"
|
#include "Camera_Gaze.h"
|
||||||
|
#include "Player.h"
|
||||||
|
|
||||||
CCamPosition_Shoulder::CCamPosition_Shoulder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CCamPosition_Shoulder::CCamPosition_Shoulder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
: CCamPosition(pDevice, pContext)
|
: CCamPosition(pDevice, pContext)
|
||||||
@@ -100,6 +101,14 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta)
|
|||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
Describe_Entity();
|
Describe_Entity();
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
if (dynamic_cast<CPlayer*>(m_pOwner)->Get_UIState() == ENUM_CLASS(UI_STATE::GAMEPLAYER))
|
||||||
|
{
|
||||||
|
m_bMovable = true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_bMovable = false;
|
||||||
|
}
|
||||||
if (m_pGameInstance->Key_Up(DIK_PGDN)) {
|
if (m_pGameInstance->Key_Up(DIK_PGDN)) {
|
||||||
m_bDampingParentPos = !m_bDampingParentPos;
|
m_bDampingParentPos = !m_bDampingParentPos;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,202 +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(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
HRESULT CCompleted_Panel::Ready_Element(void* pArg)
|
|
||||||
{
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
CCompleted_Panel* CCompleted_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
|
||||||
{
|
|
||||||
CCompleted_Panel* pInstance = new CCompleted_Panel(pDevice, pContext);
|
|
||||||
|
|
||||||
if (FAILED(pInstance->Initialize_Prototype()))
|
|
||||||
{
|
|
||||||
MSG_BOX("Failed to Created : CCompleted_Panel");
|
|
||||||
SAFE_RELEASE(pInstance);
|
|
||||||
}
|
|
||||||
|
|
||||||
return pInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
CGameObject* CCompleted_Panel::Clone(void* pArg, CGameObject* pOwner)
|
|
||||||
{
|
|
||||||
CCompleted_Panel* pInstance = new CCompleted_Panel(*this);
|
|
||||||
pInstance->m_pOwner = pOwner;
|
|
||||||
if (FAILED(pInstance->Initialize(pArg)))
|
|
||||||
{
|
|
||||||
MSG_BOX("Failed to Cloned : CCompleted_Panel");
|
|
||||||
SAFE_RELEASE(pInstance);
|
|
||||||
}
|
|
||||||
|
|
||||||
return pInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CCompleted_Panel::Free()
|
|
||||||
{
|
|
||||||
__super::Free();
|
|
||||||
|
|
||||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
|
||||||
SAFE_RELEASE(m_pShaderCom);
|
|
||||||
SAFE_RELEASE(m_pVIBufferCom);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void CCompleted_Panel::Describe_Entity()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif // _DEBUG
|
|
||||||
@@ -174,18 +174,24 @@ HRESULT CGoblin::Render()
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Begin(iShaderPass))) {
|
if (FAILED(m_pShaderCom->Begin(iShaderPass))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -240,13 +246,21 @@ HRESULT CGoblin::Render_Shadow(SHADOW eType)
|
|||||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -308,6 +322,8 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
|||||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||||
if (0 == damagePair.second) {
|
if (0 == damagePair.second) {
|
||||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||||
|
_int ID = m_pStat->Get_Stat().iObjectID;
|
||||||
|
m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -452,6 +468,15 @@ HRESULT CGoblin::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,7 +190,15 @@ HRESULT CGoblin_BattleAxe::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,15 @@ HRESULT CGoblin_Dagger::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,7 +175,12 @@ HRESULT CGoblin_Mage::Render()
|
|||||||
}
|
}
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -187,6 +192,8 @@ HRESULT CGoblin_Mage::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -233,13 +240,20 @@ HRESULT CGoblin_Mage::Render_Shadow(SHADOW eType)
|
|||||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -399,6 +413,15 @@ HRESULT CGoblin_Mage::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ void CGoblin_Mage::Behavior_HitEnter()
|
|||||||
{
|
{
|
||||||
if (m_fHitDegree >= 90.f)
|
if (m_fHitDegree >= 90.f)
|
||||||
{
|
{
|
||||||
_int iRandIndex = m_pGameInstance->Real_Random_Int(0, 5);
|
_int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3);
|
||||||
switch (iRandIndex)
|
switch (iRandIndex)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
@@ -467,7 +467,8 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if(m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
|
||||||
{
|
{
|
||||||
if (!m_bPos)
|
if (!m_bPos)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -161,7 +161,12 @@ HRESULT CGoblin_Spector::Render()
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -173,6 +178,8 @@ HRESULT CGoblin_Spector::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -267,6 +274,15 @@ HRESULT CGoblin_Spector::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -458,7 +458,7 @@ void CGoblin::Behavior_HitEnter()
|
|||||||
{
|
{
|
||||||
if (m_fHitDegree >= 90.f)
|
if (m_fHitDegree >= 90.f)
|
||||||
{
|
{
|
||||||
_int iRandIndex = m_pGameInstance->Real_Random_Int(0, 5);
|
_int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3);
|
||||||
switch (iRandIndex)
|
switch (iRandIndex)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
@@ -543,7 +543,8 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
|
||||||
{
|
{
|
||||||
if (!m_bPos)
|
if (!m_bPos)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,201 +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(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
HRESULT CInProgress_Panel::Ready_Element(void* pArg)
|
|
||||||
{
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
CInProgress_Panel* CInProgress_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
|
||||||
{
|
|
||||||
CInProgress_Panel* pInstance = new CInProgress_Panel(pDevice, pContext);
|
|
||||||
|
|
||||||
if (FAILED(pInstance->Initialize_Prototype()))
|
|
||||||
{
|
|
||||||
MSG_BOX("Failed to Created : CInProgress_Panel");
|
|
||||||
SAFE_RELEASE(pInstance);
|
|
||||||
}
|
|
||||||
|
|
||||||
return pInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
CGameObject* CInProgress_Panel::Clone(void* pArg, CGameObject* pOwner)
|
|
||||||
{
|
|
||||||
CInProgress_Panel* pInstance = new CInProgress_Panel(*this);
|
|
||||||
pInstance->m_pOwner = pOwner;
|
|
||||||
if (FAILED(pInstance->Initialize(pArg)))
|
|
||||||
{
|
|
||||||
MSG_BOX("Failed to Cloned : CInProgress_Panel");
|
|
||||||
SAFE_RELEASE(pInstance);
|
|
||||||
}
|
|
||||||
|
|
||||||
return pInstance;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CInProgress_Panel::Free()
|
|
||||||
{
|
|
||||||
__super::Free();
|
|
||||||
|
|
||||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
|
||||||
SAFE_RELEASE(m_pShaderCom);
|
|
||||||
SAFE_RELEASE(m_pVIBufferCom);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void CInProgress_Panel::Describe_Entity()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif // _DEBUG
|
|
||||||
@@ -262,14 +262,34 @@ void CInfoInstance::Event_CallBack(_wstring EventName, void* pArg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QUESTINFO CInfoInstance::Get_Quest_Info(_int QuestID)
|
QUESTINFO CInfoInstance::Get_Quest(_int QuestID)
|
||||||
{
|
{
|
||||||
return m_pQuestInfo->Get_Quest(QuestID);
|
return m_pQuestInfo->Get_Quest(QuestID);
|
||||||
}
|
}
|
||||||
|
|
||||||
_int CInfoInstance::Get_Quest_Count()
|
_int CInfoInstance::Get_Quest_Count(_int Index)
|
||||||
{
|
{
|
||||||
return m_pQuestInfo->Get_Count();
|
return m_pQuestInfo->Get_Count(Index);
|
||||||
|
}
|
||||||
|
|
||||||
|
const vector<QUESTINFO>& CInfoInstance::Get_AllQuest() const
|
||||||
|
{
|
||||||
|
return m_pQuestInfo->Get_AllQuest();
|
||||||
|
}
|
||||||
|
|
||||||
|
const vector<QUESTINFO>& CInfoInstance::Get_ClearQuest() const
|
||||||
|
{
|
||||||
|
return m_pQuestInfo->Get_ClearQuest();
|
||||||
|
}
|
||||||
|
|
||||||
|
const vector<QUESTINFO>& CInfoInstance::Get_AcceptQuest() const
|
||||||
|
{
|
||||||
|
return m_pQuestInfo->Get_AcceptQuest();
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT CInfoInstance::Set_AcceptQuest(_int Index)
|
||||||
|
{
|
||||||
|
return m_pQuestInfo->Set_AcceptQuest(Index);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CInfoInstance::Regist_ActiveInteractive(CMapElement_Interactable* pInteractive)
|
HRESULT CInfoInstance::Regist_ActiveInteractive(CMapElement_Interactable* pInteractive)
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
|||||||
isReady_Background = false;
|
isReady_Background = false;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
isReady_Background = true;
|
isReady_Background = false;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 인혁
|
#ifdef 인혁
|
||||||
isReady_Background = true;
|
isReady_Background = true;
|
||||||
@@ -509,21 +509,25 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
|||||||
{
|
{
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*for (_uint i = 0; i < 1; ++i) {
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPC_Ollivander>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPC_Ollivander>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CLevel_GamePlay::Ready_Layer_BroomRacerAI(const _wstring& strLayerTag)
|
HRESULT CLevel_GamePlay::Ready_Layer_BroomRacerAI(const _wstring& strLayerTag)
|
||||||
{
|
{
|
||||||
for (_uint i = 0; i < 1; ++i) {
|
//for (_uint i = 0; i < 1; ++i) {
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
|
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
|
||||||
return E_FAIL;
|
// return E_FAIL;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -534,7 +538,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag)
|
|||||||
|
|
||||||
HRESULT CLevel_GamePlay::Ready_Layer_RaceRing(const _wstring& strLayerTag)
|
HRESULT CLevel_GamePlay::Ready_Layer_RaceRing(const _wstring& strLayerTag)
|
||||||
{
|
{
|
||||||
for (_uint i = 0; i < 50; ++i) {
|
for (_uint i = 0; i < 1; ++i) {
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -564,12 +568,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
|||||||
{
|
{
|
||||||
for (_uint i = 0; i < 1; ++i)
|
for (_uint i = 0; i < 1; ++i)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER,&i))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (_uint i = 0; i < 1; ++i)
|
for (_uint i = 0; i <1; ++i)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin_Mage>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &i))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin_Mage>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|||||||
@@ -103,20 +103,14 @@
|
|||||||
|
|
||||||
#include "Quest_Canvas.h"
|
#include "Quest_Canvas.h"
|
||||||
#include "Quest_Panel.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.h"
|
||||||
#include "Quest_Info_Header.h"
|
#include "Quest_Info_Header.h"
|
||||||
#include "Quest_Info_Line.h"
|
#include "Quest_Info_Line.h"
|
||||||
#include "Quest_Entry_Line.h"
|
#include "Quest_Entry_Line.h"
|
||||||
|
|
||||||
#include "Quest_Status_Panel.h"
|
|
||||||
#include "Quest_Status.h"
|
#include "Quest_Status.h"
|
||||||
|
#include "Quest_Slot.h"
|
||||||
|
|
||||||
#include "Completed_Panel.h"
|
#include "QuestInstance.h"
|
||||||
#include "InProgress_Panel.h"
|
|
||||||
|
|
||||||
#include "Interaction_Key.h"
|
#include "Interaction_Key.h"
|
||||||
|
|
||||||
@@ -344,7 +338,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
isLoad_Background = true;
|
isLoad_Background = true;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
isLoad_Background = true;
|
isLoad_Background = false;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 인혁
|
#ifdef 인혁
|
||||||
isLoad_Background = true;
|
isLoad_Background = true;
|
||||||
@@ -1446,6 +1440,14 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
return E_FAIL;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
{ // LIGHT PHYSX DYNAMIC
|
{ // LIGHT PHYSX DYNAMIC
|
||||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
||||||
@@ -1807,6 +1809,12 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* For.Prototype_GameObject_QuestInstance*/
|
||||||
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuestInstance>(g_iStaticLevel, CQuestInstance::Create(m_pDevice, m_pContext))))
|
||||||
|
{
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
/* For.Prototype_GameObject_GamePlay_Canvas*/
|
/* For.Prototype_GameObject_GamePlay_Canvas*/
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
|
if (FAILED(m_pGameInstance->Add_Prototype<CGamePlay_Canvas>(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -2006,26 +2014,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
/* For.Prototype_GameObject_Quest_Border*/
|
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Border>(g_iStaticLevel, CQuest_Border::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
/* For.Prototype_GameObject_Quest_Header*/
|
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Header>(g_iStaticLevel, CQuest_Header::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
/* For.Prototype_GameObject_Quest_HeaderLine*/
|
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_HeaderLine>(g_iStaticLevel, CQuest_HeaderLine::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
/* For.Prototype_GameObject_Quest_List*/
|
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_List>(g_iStaticLevel, CQuest_List::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
/* For.Prototype_GameObject_Quest_Info*/
|
/* For.Prototype_GameObject_Quest_Info*/
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Info>(g_iStaticLevel, CQuest_Info::Create(m_pDevice, m_pContext))))
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Info>(g_iStaticLevel, CQuest_Info::Create(m_pDevice, m_pContext))))
|
||||||
{
|
{
|
||||||
@@ -2046,25 +2034,13 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For.Prototype_GameObject_Quest_Status_Panel*/
|
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status_Panel>(g_iStaticLevel, CQuest_Status_Panel::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
/* For.Prototype_GameObject_Quest_Status*/
|
/* For.Prototype_GameObject_Quest_Status*/
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status>(g_iStaticLevel, CQuest_Status::Create(m_pDevice, m_pContext))))
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status>(g_iStaticLevel, CQuest_Status::Create(m_pDevice, m_pContext))))
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
/* For.Prototype_GameObject_Quest_Slot*/
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Slot>(g_iStaticLevel, CQuest_Slot::Create(m_pDevice, m_pContext))))
|
||||||
/* For.Prototype_GameObject_Completed_Panel*/
|
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CCompleted_Panel>(g_iStaticLevel, CCompleted_Panel::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
/* For.Prototype_GameObject_InProgress_Panel*/
|
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CInProgress_Panel>(g_iStaticLevel, CInProgress_Panel::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,6 +92,15 @@ HRESULT CMonster::Render_OutLine()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
Compute_Depth();
|
Compute_Depth();
|
||||||
_float fRatio = (m_fCamDepth / *m_pGameInstance->Get_CurrentCameraFar());
|
_float fRatio = (m_fCamDepth / *m_pGameInstance->Get_CurrentCameraFar());
|
||||||
m_fOutLineThickness = CMyTools::Lerp_f1D(2.f, 6.f, fRatio);
|
m_fOutLineThickness = CMyTools::Lerp_f1D(2.f, 6.f, fRatio);
|
||||||
|
|||||||
@@ -56,7 +56,12 @@ HRESULT CNPC_Ollivander::Render()
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,6 +71,9 @@ HRESULT CNPC_Ollivander::Render()
|
|||||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -89,12 +97,20 @@ HRESULT CNPC_Ollivander::Render_Shadow(SHADOW eType)
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -108,6 +124,15 @@ HRESULT CNPC_Ollivander::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,6 +139,15 @@ HRESULT CPhysXEffectHitBox::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -253,17 +253,25 @@ HRESULT CPlayer::Render()
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -292,14 +300,21 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -513,6 +528,15 @@ HRESULT CPlayer::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ void CPlayer::Get_UIState(_int UIState)
|
|||||||
|
|
||||||
HRESULT CPlayer::InputAction()
|
HRESULT CPlayer::InputAction()
|
||||||
{
|
{
|
||||||
if ((m_eUIState != ENUM_CLASS(UI_STATE::SPELL))) {
|
if ((m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||||
|
m_eUIState !=ENUM_CLASS(UI_STATE::QUEST_CANVES))) {
|
||||||
if (
|
if (
|
||||||
m_pGameInstance->Key_Down(DIK_SPACE)
|
m_pGameInstance->Key_Down(DIK_SPACE)
|
||||||
|| m_pGameInstance->Key_Down(DIK_LCONTROL)
|
|| m_pGameInstance->Key_Down(DIK_LCONTROL)
|
||||||
@@ -86,6 +87,11 @@ HRESULT CPlayer::InputAction()
|
|||||||
if (m_pGameInstance->Key_Down(DIK_T)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_T));
|
if (m_pGameInstance->Key_Down(DIK_T)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_T));
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
if (m_pGameInstance->Key_Down(DIK_TAB))
|
||||||
|
{
|
||||||
|
if (m_pGameInstance->Key_Down(DIK_TAB)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_TAB));
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -93,7 +99,8 @@ HRESULT CPlayer::InputAction()
|
|||||||
|
|
||||||
HRESULT CPlayer::InputMove()
|
HRESULT CPlayer::InputMove()
|
||||||
{
|
{
|
||||||
if ((m_eUIState != ENUM_CLASS(UI_STATE::SPELL))) {
|
if ((m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||||
|
m_eUIState != ENUM_CLASS(UI_STATE::QUEST_CANVES))) {
|
||||||
|
|
||||||
if (m_pGameInstance->Key_Pressing(DIK_W)
|
if (m_pGameInstance->Key_Pressing(DIK_W)
|
||||||
|| m_pGameInstance->Key_Pressing(DIK_A)
|
|| m_pGameInstance->Key_Pressing(DIK_A)
|
||||||
@@ -109,7 +116,8 @@ HRESULT CPlayer::InputMove()
|
|||||||
|
|
||||||
HRESULT CPlayer::InputKeyUpMove()
|
HRESULT CPlayer::InputKeyUpMove()
|
||||||
{
|
{
|
||||||
if ((m_eUIState != ENUM_CLASS(UI_STATE::SPELL))) {
|
if ((m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||||
|
m_eUIState != ENUM_CLASS(UI_STATE::QUEST_CANVES))) {
|
||||||
if (m_pGameInstance->Key_Up(DIK_W)
|
if (m_pGameInstance->Key_Up(DIK_W)
|
||||||
|| m_pGameInstance->Key_Up(DIK_A)
|
|| m_pGameInstance->Key_Up(DIK_A)
|
||||||
|| m_pGameInstance->Key_Up(DIK_S)
|
|| m_pGameInstance->Key_Up(DIK_S)
|
||||||
@@ -123,7 +131,8 @@ HRESULT CPlayer::InputKeyUpMove()
|
|||||||
|
|
||||||
HRESULT CPlayer::InputSpell()
|
HRESULT CPlayer::InputSpell()
|
||||||
{
|
{
|
||||||
if ((m_eUIState != ENUM_CLASS(UI_STATE::SPELL))) {
|
if ((m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||||
|
m_eUIState != ENUM_CLASS(UI_STATE::QUEST_CANVES))) {
|
||||||
if (
|
if (
|
||||||
m_pGameInstance->Key_Down(DIK_1)
|
m_pGameInstance->Key_Down(DIK_1)
|
||||||
|| m_pGameInstance->Key_Down(DIK_2)
|
|| m_pGameInstance->Key_Down(DIK_2)
|
||||||
@@ -1625,6 +1634,7 @@ HRESULT CPlayer::Behavior_HitExitCheck()
|
|||||||
void CPlayer::Behavior_HitExit()
|
void CPlayer::Behavior_HitExit()
|
||||||
{
|
{
|
||||||
m_pFSM->Disable_State(FSMSTATE::HIT);
|
m_pFSM->Disable_State(FSMSTATE::HIT);
|
||||||
|
m_bLookAt = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPlayer::Behavior_Broom_RideEnter()
|
void CPlayer::Behavior_Broom_RideEnter()
|
||||||
|
|||||||
@@ -0,0 +1,70 @@
|
|||||||
|
#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();
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
void CQuestInstance::Describe_Entity()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif // _DEBUG
|
||||||
@@ -1,259 +0,0 @@
|
|||||||
#include "pch.h"
|
|
||||||
#include "Quest_Border.h"
|
|
||||||
#include "GameInstance.h"
|
|
||||||
#include "InfoInstance.h"
|
|
||||||
CQuest_Border::CQuest_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
|
||||||
:CElementObject(pDevice, pContext)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
CQuest_Border::CQuest_Border(const CQuest_Border& rhs)
|
|
||||||
:CElementObject(rhs),
|
|
||||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
|
||||||
m_iQuest_Count = m_pInfoInstance->Get_Quest_Count();
|
|
||||||
Visible(true);
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
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_iQuest_Count; ++i)
|
|
||||||
{
|
|
||||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest_Info(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(g_iStaticLevel, 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void CQuest_Border::Describe_Entity()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif // _DEBUG
|
|
||||||
@@ -3,9 +3,7 @@
|
|||||||
#include "Quest_Canvas.h"
|
#include "Quest_Canvas.h"
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
#include "Quest_Panel.h"
|
#include "Quest_Panel.h"
|
||||||
#include "Quest_Status_Panel.h"
|
#include "InfoInstance.h"
|
||||||
#include "Completed_Panel.h"
|
|
||||||
#include "InProgress_Panel.h"
|
|
||||||
|
|
||||||
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CCanvasObject(pDevice, pContext)
|
:CCanvasObject(pDevice, pContext)
|
||||||
@@ -13,7 +11,8 @@ CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
|
|||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
|
CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
|
||||||
:CCanvasObject(rhs)
|
:CCanvasObject(rhs),
|
||||||
|
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,8 +25,8 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
|||||||
{
|
{
|
||||||
CUIObject::UIOBJECT_DESC Desc{};
|
CUIObject::UIOBJECT_DESC Desc{};
|
||||||
|
|
||||||
Desc.fX = 960.f;
|
Desc.fX = 0.f;
|
||||||
Desc.fY = 540.f;
|
Desc.fY = 0.f;
|
||||||
Desc.fSizeX = g_iWinSizeX;
|
Desc.fSizeX = g_iWinSizeX;
|
||||||
Desc.fSizeY = g_iWinSizeY;
|
Desc.fSizeY = g_iWinSizeY;
|
||||||
|
|
||||||
@@ -43,13 +42,8 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
m_fAlpha = 1.f;
|
|
||||||
m_fOwnerAlpha = 1.f;
|
|
||||||
m_fCanvasAlpha = 1.f;
|
|
||||||
m_fSortZ = 0.05f;
|
|
||||||
Visible(false);
|
Visible(false);
|
||||||
m_iIndex = -1;
|
m_pInfoInstance->Set_AcceptQuest(0);
|
||||||
Add_Function(TEXT("QuestPanelUpdate"), [this](void* p) {this->Update_Panel(*reinterpret_cast<_int*>(p)); });
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,28 +59,11 @@ void CQuest_Canvas::Update(_float fTimeDelta)
|
|||||||
|
|
||||||
void CQuest_Canvas::Late_Update(_float fTimeDelta)
|
void CQuest_Canvas::Late_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (m_bVisible) {
|
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
__super::Late_Update(fTimeDelta);
|
__super::Late_Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Canvas::Render()
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,39 +74,6 @@ _vector CQuest_Canvas::Get_WorldPostion()
|
|||||||
|
|
||||||
HRESULT CQuest_Canvas::Bind_ShaderResources()
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,15 +83,6 @@ HRESULT CQuest_Canvas::Ready_Components(void* pArg)
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,24 +94,6 @@ HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
|
|||||||
}
|
}
|
||||||
Add_Panel(TEXT("Quest_Panel"), m_pQuest_Panel);
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,26 +101,12 @@ void CQuest_Canvas::Clear_Penel()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_Canvas::Update_Panel(_int Index)
|
void CQuest_Canvas::Visible(_bool bVisible)
|
||||||
{
|
{
|
||||||
if (m_iIndex == Index)
|
_int Index = 0;
|
||||||
return;
|
m_bVisible = bVisible;
|
||||||
|
if (m_bVisible == false)
|
||||||
m_iIndex = Index;
|
Function_Callback(TEXT("QuestPanelClose"), &Index);
|
||||||
for (_int i = 0; i < 3; ++i)
|
|
||||||
{
|
|
||||||
if (i == Index)
|
|
||||||
{
|
|
||||||
m_bClick[i] = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_bClick[i] = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
static_cast<CPanelObject*>(m_pQuest_Panel)->Visible(m_bClick[0]);
|
|
||||||
static_cast<CPanelObject*>(m_pCompleted_Panel)->Visible(m_bClick[1]);
|
|
||||||
static_cast<CPanelObject*>(m_pInProgress_Panel)->Visible(m_bClick[2]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Canvas* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Canvas* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
@@ -236,8 +139,6 @@ void CQuest_Canvas::Free()
|
|||||||
{
|
{
|
||||||
__super::Free();
|
__super::Free();
|
||||||
|
|
||||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
|
||||||
SAFE_RELEASE(m_pShaderCom);
|
|
||||||
SAFE_RELEASE(m_pVIBufferCom);
|
SAFE_RELEASE(m_pVIBufferCom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,13 @@
|
|||||||
#include "UIObject.h"
|
#include "UIObject.h"
|
||||||
#include "tinyxml2.h"
|
#include "tinyxml2.h"
|
||||||
#include "InfoInstance.h"
|
#include "InfoInstance.h"
|
||||||
|
#include "QuestInstance.h"
|
||||||
|
#include "GameInstance.h"
|
||||||
|
|
||||||
CQuest_Data::CQuest_Data()
|
CQuest_Data::CQuest_Data()
|
||||||
: m_pInfoInstance(CInfoInstance::GetInstance()) {
|
: m_pInfoInstance(CInfoInstance::GetInstance()) ,
|
||||||
|
m_pGameInstance(CGameInstance::GetInstance())
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
HRESULT CQuest_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||||
@@ -44,6 +48,7 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
|
|||||||
pQuest->QueryIntAttribute("QuestType", &quest.iType);
|
pQuest->QueryIntAttribute("QuestType", &quest.iType);
|
||||||
quest.pQuestName = CMyTools::ToWstring(pQuest->Attribute("QuestName"));
|
quest.pQuestName = CMyTools::ToWstring(pQuest->Attribute("QuestName"));
|
||||||
quest.pQuestInfo = CMyTools::ToWstring(pQuest->Attribute("QuestInfo"));
|
quest.pQuestInfo = CMyTools::ToWstring(pQuest->Attribute("QuestInfo"));
|
||||||
|
pQuest->QueryIntAttribute("AcceptState", &quest.iAcceptState);
|
||||||
|
|
||||||
tinyxml2::XMLElement* pObjectives = pQuest->FirstChildElement("Objectives");
|
tinyxml2::XMLElement* pObjectives = pQuest->FirstChildElement("Objectives");
|
||||||
if (pObjectives)
|
if (pObjectives)
|
||||||
@@ -52,8 +57,9 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
|
|||||||
while (pObjective)
|
while (pObjective)
|
||||||
{
|
{
|
||||||
OBJECTIVEINFO obj{};
|
OBJECTIVEINFO obj{};
|
||||||
|
_int Clear = 0;
|
||||||
pObjective->QueryIntAttribute("Objective", &obj.iObjectType);
|
pObjective->QueryIntAttribute("Clear", &Clear);
|
||||||
|
obj.bClear = Clear != 0;
|
||||||
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
|
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
|
||||||
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
||||||
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
|
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
|
||||||
@@ -94,9 +100,82 @@ QUESTINFO CQuest_Data::Get_Quest(_int QuestID)
|
|||||||
return QuestInfos[QuestID];
|
return QuestInfos[QuestID];
|
||||||
}
|
}
|
||||||
|
|
||||||
_int CQuest_Data::Get_Count()
|
const vector<QUESTINFO>& CQuest_Data::Get_AllQuest() const
|
||||||
{
|
{
|
||||||
return m_iQuest_Count;
|
return QuestInfos;
|
||||||
|
}
|
||||||
|
|
||||||
|
const vector<QUESTINFO>& CQuest_Data::Get_ClearQuest() const
|
||||||
|
{
|
||||||
|
return m_QuestEndInfos;
|
||||||
|
}
|
||||||
|
|
||||||
|
const vector<QUESTINFO>& CQuest_Data::Get_AcceptQuest() const
|
||||||
|
{
|
||||||
|
return 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], nullptr, reinterpret_cast<CQuestInstance**>(&m_pQuestInstance))))
|
||||||
|
{
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
m_pInfoInstance->Add_Event(TEXT("MonsterDead"), [this](void* p) {this->Update_AcceptQuest(*reinterpret_cast<_int*>(p)); });
|
||||||
|
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()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
@@ -115,5 +194,4 @@ CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pCo
|
|||||||
void CQuest_Data::Free()
|
void CQuest_Data::Free()
|
||||||
{
|
{
|
||||||
__super::Free();
|
__super::Free();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ HRESULT CQuest_Entry_Line::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상") - 22) * 0.5f;
|
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상")) - 22) * 0.5f;
|
||||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
@@ -214,11 +214,9 @@ void CQuest_Entry_Line::Set_Hover(_int Index)
|
|||||||
if (m_iQuest_Index == -1)
|
if (m_iQuest_Index == -1)
|
||||||
{
|
{
|
||||||
Visible(false);
|
Visible(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
Visible(true);
|
||||||
{
|
|
||||||
Visible(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
|||||||
@@ -1,251 +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(g_iStaticLevel, 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void CQuest_Header::Describe_Entity()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif // _DEBUG
|
|
||||||
@@ -1,224 +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(true);
|
|
||||||
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(g_iStaticLevel, 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void CQuest_HeaderLine::Describe_Entity()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif // _DEBUG
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Quest_Info.h"
|
#include "Quest_Info.h"
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
|
#include "InfoInstance.h"
|
||||||
|
|
||||||
CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CElementObject(pDevice, pContext)
|
:CElementObject(pDevice, pContext)
|
||||||
@@ -8,7 +9,8 @@ CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
|||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Info::CQuest_Info(const CQuest_Info& rhs)
|
CQuest_Info::CQuest_Info(const CQuest_Info& rhs)
|
||||||
:CElementObject(rhs)
|
:CElementObject(rhs),
|
||||||
|
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,10 +47,10 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
|||||||
SizeUpX(960);
|
SizeUpX(960);
|
||||||
SizeUpY(m_fOriginPerviewSize);
|
SizeUpY(m_fOriginPerviewSize);
|
||||||
m_fSortZ = 0.02f;
|
m_fSortZ = 0.02f;
|
||||||
m_fFontX = 740.f;
|
m_fFontX = 530.f;
|
||||||
m_fFontY = 500.f;
|
m_fFontY = 500.f;
|
||||||
m_iPerQuestIndex = -1;
|
m_iPerQuestIndex = -1;
|
||||||
Visible(true);
|
Visible(false);
|
||||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -97,10 +99,6 @@ void CQuest_Info::Update(_float fTimeDelta)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_fTime += fTimeDelta * m_fTimeMult;
|
m_fTime += fTimeDelta * m_fTimeMult;
|
||||||
m_pRect.left = long(m_fX - m_vScale.x * 0.5f);
|
|
||||||
m_pRect.top = long(m_fY - m_vScale.y * 0.5f);
|
|
||||||
m_pRect.right = long(m_fX + m_vScale.x * 0.5f);
|
|
||||||
m_pRect.bottom = long(m_fY + m_vScale.y * 0.5f);
|
|
||||||
__super::Update(fTimeDelta);
|
__super::Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,6 +129,7 @@ HRESULT CQuest_Info::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -224,11 +223,9 @@ void CQuest_Info::Set_Hover(_int Index)
|
|||||||
if (m_iQuest_Index == -1)
|
if (m_iQuest_Index == -1)
|
||||||
{
|
{
|
||||||
Visible(false);
|
Visible(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
Visible(true);
|
||||||
{
|
|
||||||
Visible(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Quest_Info_Header.h"
|
#include "Quest_Info_Header.h"
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
|
#include "InfoInstance.h"
|
||||||
|
|
||||||
CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CElementObject(pDevice, pContext)
|
:CElementObject(pDevice, pContext)
|
||||||
@@ -8,7 +9,8 @@ CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContex
|
|||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Info_Header::CQuest_Info_Header(const CQuest_Info_Header& rhs)
|
CQuest_Info_Header::CQuest_Info_Header(const CQuest_Info_Header& rhs)
|
||||||
:CElementObject(rhs)
|
:CElementObject(rhs),
|
||||||
|
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,7 +43,7 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
|
|||||||
m_fAlphaTime = 5.f;
|
m_fAlphaTime = 5.f;
|
||||||
m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
|
m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
|
||||||
m_fSortZ = 0.02f;
|
m_fSortZ = 0.02f;
|
||||||
m_fFontX = 740.f;
|
m_fFontX = 925.f;
|
||||||
m_fFontY = 520.f;
|
m_fFontY = 520.f;
|
||||||
m_iColor = 2;
|
m_iColor = 2;
|
||||||
SizeUpX(1105.f);
|
SizeUpX(1105.f);
|
||||||
@@ -127,8 +129,8 @@ HRESULT CQuest_Info_Header::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
|
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
|
||||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -218,11 +220,9 @@ void CQuest_Info_Header::Set_Hover(_int Index)
|
|||||||
if (m_iQuest_Index == -1)
|
if (m_iQuest_Index == -1)
|
||||||
{
|
{
|
||||||
Visible(false);
|
Visible(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
Visible(true);
|
||||||
{
|
|
||||||
Visible(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "Client_Define.h"
|
|
||||||
#include "ElementObject.h"
|
|
||||||
|
|
||||||
NS_BEGIN(Engine)
|
|
||||||
class CTexture;
|
|
||||||
class CShader;
|
|
||||||
class CVIBuffer_Rect;
|
|
||||||
NS_END
|
|
||||||
|
|
||||||
NS_BEGIN(Client)
|
|
||||||
|
|
||||||
class CQuest_Info_Header final : public CElementObject
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
CQuest_Info_Header(const CQuest_Info_Header& rhs);
|
|
||||||
virtual ~CQuest_Info_Header() = default;
|
|
||||||
|
|
||||||
public:
|
|
||||||
virtual void Priority_Update(_float fTimeDelta);
|
|
||||||
virtual void Update(_float fTimeDelta);
|
|
||||||
virtual void Late_Update(_float fTimeDelta);
|
|
||||||
virtual HRESULT Render() override;
|
|
||||||
virtual _vector Get_WorldPostion() override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
virtual HRESULT Bind_ShaderResources() override;
|
|
||||||
virtual HRESULT Ready_Components(void* pArg) override;
|
|
||||||
virtual HRESULT Initialize_Prototype() override;
|
|
||||||
virtual HRESULT Initialize(void* pArg) override;
|
|
||||||
|
|
||||||
public:
|
|
||||||
void Set_Hover(_int Index);
|
|
||||||
|
|
||||||
private:
|
|
||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
|
||||||
CShader* m_pShaderCom = { nullptr };
|
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
|
||||||
|
|
||||||
_int m_iColor = true;
|
|
||||||
_int m_iQuest_Index{};
|
|
||||||
public:
|
|
||||||
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
|
||||||
virtual void Free() override;
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void Describe_Entity() override;
|
|
||||||
#endif // _DEBUG
|
|
||||||
};
|
|
||||||
|
|
||||||
NS_END
|
|
||||||
@@ -208,11 +208,9 @@ void CQuest_Info_Line::Set_Hover(_int Index)
|
|||||||
if (m_iQuest_Index == -1)
|
if (m_iQuest_Index == -1)
|
||||||
{
|
{
|
||||||
Visible(false);
|
Visible(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
Visible(true);
|
||||||
{
|
|
||||||
Visible(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Quest_Panel.h"
|
#include "Quest_Panel.h"
|
||||||
#include "GameInstance.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.h"
|
||||||
#include "Quest_Info_Header.h"
|
#include "Quest_Info_Header.h"
|
||||||
#include "Quest_Info_Line.h"
|
#include "Quest_Info_Line.h"
|
||||||
#include "Quest_Entry_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)
|
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CPanelObject(pDevice, pContext)
|
:CPanelObject(pDevice, pContext)
|
||||||
@@ -29,9 +28,9 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
|||||||
{
|
{
|
||||||
CUIObject::UIOBJECT_DESC Desc{};
|
CUIObject::UIOBJECT_DESC Desc{};
|
||||||
|
|
||||||
Desc.fX = 0.f;
|
Desc.fX = 960.f;
|
||||||
Desc.fY = 0.f;
|
Desc.fY = -540.f;
|
||||||
Desc.fSizeX = 1575.f;
|
Desc.fSizeX = g_iWinSizeX;
|
||||||
Desc.fSizeY = g_iWinSizeY;
|
Desc.fSizeY = g_iWinSizeY;
|
||||||
|
|
||||||
if (FAILED(__super::Initialize(&Desc)))
|
if (FAILED(__super::Initialize(&Desc)))
|
||||||
@@ -52,7 +51,11 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
|||||||
m_fDelayTime = 1.f;
|
m_fDelayTime = 1.f;
|
||||||
Visible(true);
|
Visible(true);
|
||||||
ElementAllVisible(true);
|
ElementAllVisible(true);
|
||||||
|
Set_Status();
|
||||||
|
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
|
||||||
|
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_Panel::Priority_Update(_float fTimeDelta)
|
void CQuest_Panel::Priority_Update(_float fTimeDelta)
|
||||||
@@ -88,6 +91,18 @@ void CQuest_Panel::Late_Update(_float fTimeDelta)
|
|||||||
|
|
||||||
HRESULT CQuest_Panel::Render()
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -99,39 +114,67 @@ _vector CQuest_Panel::Get_WorldPostion()
|
|||||||
|
|
||||||
HRESULT CQuest_Panel::Bind_ShaderResources()
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Panel::Ready_Components(void* pArg)
|
HRESULT CQuest_Panel::Ready_Components(void* pArg)
|
||||||
{
|
{
|
||||||
|
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom)))
|
||||||
|
{
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Quest_Widget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||||
|
{
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
|
||||||
|
{
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Panel::Ready_Element(void* pArg)
|
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_Slot>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Slot**>(&m_pQuest_Slot))))
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
Add_Element(TEXT("Quest_Border"), m_pQuest_Border);
|
Add_Element(TEXT("Quest_Slot"), m_pQuest_Slot);
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Header>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Header**>(&m_pQuest_Header))))
|
|
||||||
{
|
|
||||||
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);
|
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Info>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Info**>(&m_pQuest_Info))))
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Info>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Info**>(&m_pQuest_Info))))
|
||||||
{
|
{
|
||||||
@@ -157,9 +200,63 @@ HRESULT CQuest_Panel::Ready_Element(void* pArg)
|
|||||||
}
|
}
|
||||||
Add_Element(TEXT("Quest_Entry_Line"), m_pQuest_Entry_Line);
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
{
|
{
|
||||||
CQuest_Panel* pInstance = new CQuest_Panel(pDevice, pContext);
|
CQuest_Panel* pInstance = new CQuest_Panel(pDevice, pContext);
|
||||||
@@ -190,6 +287,8 @@ void CQuest_Panel::Free()
|
|||||||
{
|
{
|
||||||
__super::Free();
|
__super::Free();
|
||||||
|
|
||||||
|
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||||
|
SAFE_RELEASE(m_pShaderCom);
|
||||||
SAFE_RELEASE(m_pVIBufferCom);
|
SAFE_RELEASE(m_pVIBufferCom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+111
-71
@@ -1,32 +1,34 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Quest_List.h"
|
#include "Quest_Slot.h"
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
|
#include "Quest_Panel.h"
|
||||||
#include "InfoInstance.h"
|
#include "InfoInstance.h"
|
||||||
|
|
||||||
CQuest_List::CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Slot::CQuest_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CElementObject(pDevice, pContext)
|
:CElementObject(pDevice, pContext)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_List::CQuest_List(const CQuest_List& rhs)
|
CQuest_Slot::CQuest_Slot(const CQuest_Slot& rhs)
|
||||||
:CElementObject(rhs),
|
:CElementObject(rhs),
|
||||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_List::Initialize_Prototype()
|
HRESULT CQuest_Slot::Initialize_Prototype()
|
||||||
{
|
{
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_List::Initialize(void* pArg)
|
HRESULT CQuest_Slot::Initialize(void* pArg)
|
||||||
{
|
{
|
||||||
CUIObject::UIOBJECT_DESC Desc{};
|
CUIObject::UIOBJECT_DESC Desc{};
|
||||||
|
|
||||||
Desc.fX = -475.f;
|
Desc.fX = 0.f;
|
||||||
Desc.fY = -150.f;
|
Desc.fY = 0.f;
|
||||||
Desc.fSizeX = 256.f;
|
Desc.fSizeX = 256.f;
|
||||||
Desc.fSizeY = 64.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) };
|
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)))
|
if (FAILED(__super::Initialize(&Desc)))
|
||||||
@@ -38,17 +40,26 @@ HRESULT CQuest_List::Initialize(void* pArg)
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_fTimeMult = 3.f;
|
|
||||||
m_fAlpha = 1.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_vNine_Slice = _float4(70.f, 186.f, 0.f, 64.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);
|
SizeUpX(495.f);
|
||||||
SizeUpY(80.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 = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::NONE));
|
||||||
Visible(true);
|
Visible(true);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Priority_Update(_float fTimeDelta)
|
void CQuest_Slot::Priority_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
{
|
{
|
||||||
@@ -57,18 +68,17 @@ void CQuest_List::Priority_Update(_float fTimeDelta)
|
|||||||
__super::Priority_Update(fTimeDelta);
|
__super::Priority_Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Update(_float fTimeDelta)
|
void CQuest_Slot::Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_bFadeIn == true)
|
if (m_bFadeIn == true)
|
||||||
{
|
{
|
||||||
if (m_fAlpha <= 1.f)
|
if (m_fAlpha <= 1.f)
|
||||||
{
|
|
||||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||||
}
|
|
||||||
|
|
||||||
if (m_fAlpha >= 1.f)
|
if (m_fAlpha >= 1.f)
|
||||||
{
|
{
|
||||||
@@ -80,7 +90,7 @@ void CQuest_List::Update(_float fTimeDelta)
|
|||||||
if (m_bFadeOut == true)
|
if (m_bFadeOut == true)
|
||||||
{
|
{
|
||||||
if (m_fAlpha >= 0.f)
|
if (m_fAlpha >= 0.f)
|
||||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
m_fAlpha -= fTimeDelta;
|
||||||
|
|
||||||
if (m_fAlpha <= 0.f)
|
if (m_fAlpha <= 0.f)
|
||||||
{
|
{
|
||||||
@@ -88,71 +98,87 @@ void CQuest_List::Update(_float fTimeDelta)
|
|||||||
m_fAlpha = 0.f;
|
m_fAlpha = 0.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Hover();
|
Hover();
|
||||||
if (m_bHover == true)
|
|
||||||
{
|
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_iQuestIndex);
|
||||||
m_fSizeX = 505.f;
|
|
||||||
m_fSizeY = 90.f;
|
|
||||||
m_fFontX = 765.f;
|
|
||||||
m_fFontY = 520.f;
|
|
||||||
m_pFontSize = TEXT("Font_size21");
|
|
||||||
m_pQuest_ID = 0;
|
|
||||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_fSizeX = 495.f;
|
|
||||||
m_fSizeY = 80.f;
|
|
||||||
m_fFontX = 770.f;
|
|
||||||
m_fFontY = 520.f;
|
|
||||||
m_pFontSize = TEXT("Font_size20");
|
|
||||||
m_pQuest_ID = -1;
|
|
||||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_fTime += fTimeDelta * m_fTimeMult;
|
m_fTime += fTimeDelta * m_fTimeMult;
|
||||||
__super::Update(fTimeDelta);
|
__super::Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Late_Update(_float fTimeDelta)
|
void CQuest_Slot::Late_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_bVisible) {
|
if (m_bVisible)
|
||||||
|
{
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
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;
|
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;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pVIBufferCom->Render())) {
|
if (FAILED(m_pVIBufferCom->Render()))
|
||||||
|
{
|
||||||
return E_FAIL;
|
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"), m_pInfoInstance->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"), m_pInfoInstance->Get_Quest(i).pQuestName.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
|
||||||
|
}
|
||||||
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
_vector CQuest_List::Get_WorldPostion()
|
_vector CQuest_Slot::Get_WorldPostion()
|
||||||
{
|
{
|
||||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
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")))
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||||
{
|
{
|
||||||
@@ -202,16 +228,12 @@ HRESULT CQuest_List::Bind_ShaderResources()
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
return S_OK;
|
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;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -219,7 +241,7 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
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;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -227,19 +249,18 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Hover()
|
void CQuest_Slot::Hover()
|
||||||
{
|
{
|
||||||
POINT ptMouse{};
|
POINT ptMouse{};
|
||||||
GetCursorPos(&ptMouse);
|
GetCursorPos(&ptMouse);
|
||||||
ScreenToClient(g_hWnd, &ptMouse);
|
ScreenToClient(g_hWnd, &ptMouse);
|
||||||
_float2 fMouse{};
|
_float2 fMouse;
|
||||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||||
fMouse.y = -(ptMouse.y - (g_iWinSizeY * 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;
|
m_bHover = true;
|
||||||
}
|
}
|
||||||
@@ -249,39 +270,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;
|
switch (Index)
|
||||||
m_pQuest_ID = ID;
|
{
|
||||||
|
case 0:
|
||||||
|
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::NONE));
|
||||||
|
m_pVIBufferCom->Set_Draw(-1);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1:
|
||||||
|
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::ACCEPTED));
|
||||||
|
m_pVIBufferCom->Set_Draw(m_iQuestCount);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
m_iQuestCount = m_pInfoInstance->Get_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()))
|
if (FAILED(pInstance->Initialize_Prototype()))
|
||||||
{
|
{
|
||||||
MSG_BOX("Failed to Created : CQuest_List");
|
MSG_BOX("Failed to Created : CQuest_Slot");
|
||||||
SAFE_RELEASE(pInstance);
|
SAFE_RELEASE(pInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 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;
|
pInstance->m_pOwner = pOwner;
|
||||||
if (FAILED(pInstance->Initialize(pArg)))
|
if (FAILED(pInstance->Initialize(pArg)))
|
||||||
{
|
{
|
||||||
MSG_BOX("Failed to Cloned : CSpell_Header");
|
MSG_BOX("Failed to Cloned : CQuest_Slot");
|
||||||
SAFE_RELEASE(pInstance);
|
SAFE_RELEASE(pInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
return pInstance;
|
return pInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Free()
|
void CQuest_Slot::Free()
|
||||||
{
|
{
|
||||||
__super::Free();
|
__super::Free();
|
||||||
|
|
||||||
@@ -290,8 +329,9 @@ void CQuest_List::Free()
|
|||||||
SAFE_RELEASE(m_pVIBufferCom);
|
SAFE_RELEASE(m_pVIBufferCom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
void CQuest_List::Describe_Entity()
|
void CQuest_Slot::Describe_Entity()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
@@ -42,8 +42,8 @@ HRESULT CQuest_Status::Initialize(void* pArg)
|
|||||||
m_fAlphaTime = 1.f;
|
m_fAlphaTime = 1.f;
|
||||||
Compute_UI(0);
|
Compute_UI(0);
|
||||||
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
|
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
|
||||||
m_fFontX = 80.f;
|
m_fFontX = -780.f;
|
||||||
m_fFontY = 480.f;
|
m_fFontY = 610.f;
|
||||||
Visible(true);
|
Visible(true);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -97,7 +97,7 @@ void CQuest_Status::Update(_float fTimeDelta)
|
|||||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Click"), &m_iIndex);
|
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("Click"), &m_iIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_bClick == true)
|
if (m_bClick == true)
|
||||||
{
|
{
|
||||||
m_fSizeX = 148.f;
|
m_fSizeX = 148.f;
|
||||||
@@ -115,6 +115,7 @@ void CQuest_Status::Update(_float fTimeDelta)
|
|||||||
__super::Update(fTimeDelta);
|
__super::Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CQuest_Status::Late_Update(_float fTimeDelta)
|
void CQuest_Status::Late_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
@@ -274,12 +275,13 @@ void CQuest_Status::Compute_UI(_int Index)
|
|||||||
m_vUV = UV;
|
m_vUV = UV;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_Status::Set_Status(_int Index, _float m_fPosY, _wstring Text)
|
void CQuest_Status::Set_Status(_int Index, _float PosX, _float PosY, _wstring Name)
|
||||||
{
|
{
|
||||||
m_iIndex = Index;
|
m_iIndex = Index;
|
||||||
Compute_UI(Index);
|
Compute_UI(Index);
|
||||||
MoveY(m_fPosY);
|
MoveX(PosX);
|
||||||
m_pName = Text;
|
MoveY(PosY);
|
||||||
|
m_pName = Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_Status::Set_Click(_bool bClick)
|
void CQuest_Status::Set_Click(_bool bClick)
|
||||||
|
|||||||
@@ -1,197 +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);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void CQuest_Status_Panel::Describe_Entity()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif // _DEBUG
|
|
||||||
@@ -122,7 +122,15 @@ HRESULT CRaceRing::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
|
|||||||
m_bNoCool = false;
|
m_bNoCool = false;
|
||||||
m_pInfoInstance->Add_Event(TEXT("NoCooL"), [this](void* p) {this->NoCool(*reinterpret_cast<_bool*>(p)); });
|
m_pInfoInstance->Add_Event(TEXT("NoCooL"), [this](void* p) {this->NoCool(*reinterpret_cast<_bool*>(p)); });
|
||||||
Spell_UnLock(2);
|
Spell_UnLock(2);
|
||||||
|
Spell_UnLock(4);
|
||||||
Spell_UnLock(6);
|
Spell_UnLock(6);
|
||||||
Spell_UnLock(11);
|
Spell_UnLock(11);
|
||||||
Spell_UnLock(14);
|
Spell_UnLock(14);
|
||||||
@@ -89,7 +90,7 @@ void CSkill_Data::Update(_float fTimeDelta)
|
|||||||
{
|
{
|
||||||
for (_int i = 0; i < 34; ++i)
|
for (_int i = 0; i < 34; ++i)
|
||||||
{
|
{
|
||||||
m_fSpell_CoolTime[i] = 1.f;
|
m_fSpell_CoolTime[i] = 1.2f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -194,7 +194,12 @@ HRESULT CTroll::Render()
|
|||||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,6 +211,8 @@ HRESULT CTroll::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -266,7 +273,12 @@ HRESULT CTroll::Render_OutLine()
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -278,6 +290,8 @@ HRESULT CTroll::Render_OutLine()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -299,13 +313,21 @@ HRESULT CTroll::Render_Shadow(SHADOW eType)
|
|||||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -563,6 +585,15 @@ HRESULT CTroll::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,7 +215,15 @@ HRESULT CTroll_Rock::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,15 @@ HRESULT CTroll_Weapon::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,7 +138,15 @@ HRESULT CWand::Bind_ShaderResources()
|
|||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace Client
|
|||||||
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
|
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
|
||||||
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
|
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
|
||||||
ENEMY_DETECTION, INTERACTION_OBJECT, END};
|
ENEMY_DETECTION, INTERACTION_OBJECT, 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 SHADER_PASS_NPC_PBR_ANIM {
|
enum class SHADER_PASS_NPC_PBR_ANIM {
|
||||||
EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To
|
EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To
|
||||||
@@ -29,6 +29,9 @@ namespace Client
|
|||||||
};
|
};
|
||||||
enum class UI_STATE { GAMEPLAYER, SPELL, QUEST_CANVES, INVENTORY, END };
|
enum class UI_STATE { GAMEPLAYER, SPELL, QUEST_CANVES, INVENTORY, END };
|
||||||
|
|
||||||
|
enum class QUESTTYPE { MAIN, SUB, END };
|
||||||
|
enum class QUESTSTATE {NONE, ACCEPTED, CLEARED, END };
|
||||||
|
|
||||||
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
|
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
|
||||||
|
|
||||||
enum class SKILL_TYPE {
|
enum class SKILL_TYPE {
|
||||||
|
|||||||
@@ -68,10 +68,10 @@ namespace Client
|
|||||||
|
|
||||||
typedef struct tagObjectiveInfo
|
typedef struct tagObjectiveInfo
|
||||||
{
|
{
|
||||||
_int iObjectType{};
|
_bool bClear{};
|
||||||
_int iTargetID{};
|
_int iTargetID{};
|
||||||
_int iRequiredCount{};
|
_int iRequiredCount{};
|
||||||
_int iCurrentCount{};
|
_int iCurrentCount{};
|
||||||
}OBJECTIVEINFO;
|
}OBJECTIVEINFO;
|
||||||
|
|
||||||
typedef struct tagRewardsInfo
|
typedef struct tagRewardsInfo
|
||||||
@@ -84,10 +84,11 @@ namespace Client
|
|||||||
{
|
{
|
||||||
_int iQuestID{};
|
_int iQuestID{};
|
||||||
_int iType{};
|
_int iType{};
|
||||||
_wstring pQuestName;
|
_wstring pQuestName;
|
||||||
_wstring pQuestInfo;
|
_wstring pQuestInfo;
|
||||||
vector<OBJECTIVEINFO> ObjectiveInfo;
|
vector<OBJECTIVEINFO> ObjectiveInfo;
|
||||||
vector<REWARDSINFO> RewardsInfo;
|
vector<REWARDSINFO> RewardsInfo;
|
||||||
|
_int iAcceptState;
|
||||||
}QUESTINFO;
|
}QUESTINFO;
|
||||||
|
|
||||||
typedef struct tagEffectInfo
|
typedef struct tagEffectInfo
|
||||||
|
|||||||
@@ -1,49 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "Client_Define.h"
|
|
||||||
#include "PanelObject.h"
|
|
||||||
|
|
||||||
NS_BEGIN(Engine)
|
|
||||||
class CTexture;
|
|
||||||
class CShader;
|
|
||||||
class CVIBuffer_Rect;
|
|
||||||
NS_END
|
|
||||||
|
|
||||||
NS_BEGIN(Client)
|
|
||||||
|
|
||||||
class CCompleted_Panel final : public CPanelObject
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
CCompleted_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
CCompleted_Panel(const CCompleted_Panel& rhs);
|
|
||||||
virtual ~CCompleted_Panel() = default;
|
|
||||||
|
|
||||||
public:
|
|
||||||
virtual void Priority_Update(_float fTimeDelta);
|
|
||||||
virtual void Update(_float fTimeDelta);
|
|
||||||
virtual void Late_Update(_float fTimeDelta);
|
|
||||||
virtual HRESULT Render() override;
|
|
||||||
virtual _vector Get_WorldPostion() override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
virtual HRESULT Bind_ShaderResources() override;
|
|
||||||
virtual HRESULT Ready_Components(void* pArg) override;
|
|
||||||
virtual HRESULT Ready_Element(void* pArg) override;
|
|
||||||
virtual HRESULT Initialize_Prototype() override;
|
|
||||||
virtual HRESULT Initialize(void* pArg) override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
|
||||||
CShader* m_pShaderCom = { nullptr };
|
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
|
||||||
|
|
||||||
public:
|
|
||||||
static CCompleted_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
|
||||||
virtual void Free() override;
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void Describe_Entity() override;
|
|
||||||
#endif // _DEBUG
|
|
||||||
};
|
|
||||||
|
|
||||||
NS_END
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "Client_Define.h"
|
|
||||||
#include "PanelObject.h"
|
|
||||||
|
|
||||||
NS_BEGIN(Engine)
|
|
||||||
class CTexture;
|
|
||||||
class CShader;
|
|
||||||
class CVIBuffer_Rect;
|
|
||||||
NS_END
|
|
||||||
|
|
||||||
NS_BEGIN(Client)
|
|
||||||
|
|
||||||
class CInProgress_Panel final : public CPanelObject
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
CInProgress_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
CInProgress_Panel(const CInProgress_Panel& rhs);
|
|
||||||
virtual ~CInProgress_Panel() = default;
|
|
||||||
|
|
||||||
public:
|
|
||||||
virtual void Priority_Update(_float fTimeDelta);
|
|
||||||
virtual void Update(_float fTimeDelta);
|
|
||||||
virtual void Late_Update(_float fTimeDelta);
|
|
||||||
virtual HRESULT Render() override;
|
|
||||||
virtual _vector Get_WorldPostion() override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
virtual HRESULT Bind_ShaderResources() override;
|
|
||||||
virtual HRESULT Ready_Components(void* pArg) override;
|
|
||||||
virtual HRESULT Ready_Element(void* pArg) override;
|
|
||||||
virtual HRESULT Initialize_Prototype() override;
|
|
||||||
virtual HRESULT Initialize(void* pArg) override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
|
||||||
CShader* m_pShaderCom = { nullptr };
|
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
|
||||||
|
|
||||||
public:
|
|
||||||
static CInProgress_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
|
||||||
virtual void Free() override;
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void Describe_Entity() override;
|
|
||||||
#endif // _DEBUG
|
|
||||||
};
|
|
||||||
|
|
||||||
NS_END
|
|
||||||
@@ -66,10 +66,14 @@ DECLARE_SINGLETON(CInfoInstance)
|
|||||||
void Add_Event(_wstring EventName, function<void(void*)> Event);
|
void Add_Event(_wstring EventName, function<void(void*)> Event);
|
||||||
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
|
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
#pragma region Spell_INFO
|
#pragma region QuestINFO
|
||||||
|
QUESTINFO Get_Quest(_int QuestID);
|
||||||
|
_int Get_Quest_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);
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
QUESTINFO Get_Quest_Info(_int QuestID);
|
|
||||||
_int Get_Quest_Count();
|
|
||||||
#pragma region Interactive_INFO
|
#pragma region Interactive_INFO
|
||||||
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
||||||
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ class CPlayer final : public CUnit
|
|||||||
void Set_SpellHit(_bool bHit) { m_bSpellHit = bHit; }
|
void Set_SpellHit(_bool bHit) { m_bSpellHit = bHit; }
|
||||||
void Set_Shield(_bool bShield) { m_bShield = bShield; }
|
void Set_Shield(_bool bShield) { m_bShield = bShield; }
|
||||||
void Start_CameraShake(_float fTime, _float fIntense);
|
void Start_CameraShake(_float fTime, _float fIntense);
|
||||||
|
_int Get_UIState() { return m_eUIState; }
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
void Render_CameraCoordinateSystem();
|
void Render_CameraCoordinateSystem();
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Client_Define.h"
|
||||||
|
#include "Quest.h"
|
||||||
|
|
||||||
|
NS_BEGIN(Client)
|
||||||
|
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;
|
||||||
|
#ifdef _DEBUG
|
||||||
|
void Describe_Entity() override;
|
||||||
|
#endif // _DEBUG
|
||||||
|
};
|
||||||
|
|
||||||
|
NS_END
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "Client_Define.h"
|
|
||||||
#include "ElementObject.h"
|
|
||||||
|
|
||||||
NS_BEGIN(Engine)
|
|
||||||
class CTexture;
|
|
||||||
class CShader;
|
|
||||||
class CVIBuffer_Rect;
|
|
||||||
NS_END
|
|
||||||
|
|
||||||
NS_BEGIN(Client)
|
|
||||||
|
|
||||||
class CQuest_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;
|
|
||||||
|
|
||||||
private:
|
|
||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
|
||||||
CShader* m_pShaderCom = { nullptr };
|
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
|
||||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
|
||||||
|
|
||||||
_int m_iColor{};
|
|
||||||
_int m_iQuest_Count{};
|
|
||||||
|
|
||||||
public:
|
|
||||||
static CQuest_Border* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
|
||||||
virtual void Free() override;
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void Describe_Entity() override;
|
|
||||||
#endif // _DEBUG
|
|
||||||
};
|
|
||||||
|
|
||||||
NS_END
|
|
||||||
@@ -34,18 +34,12 @@ class CQuest_Canvas final : public CCanvasObject
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
void Clear_Penel();
|
void Clear_Penel();
|
||||||
void Update_Panel(_int Index);
|
virtual void Visible(_bool bVisible) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
|
||||||
CShader* m_pShaderCom = { nullptr };
|
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||||
|
|
||||||
CGameObject* m_pQuest_Panel = { nullptr };
|
CGameObject* m_pQuest_Panel = { nullptr };
|
||||||
CGameObject* m_pInProgress_Panel = { nullptr };
|
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||||
CGameObject* m_pCompleted_Panel = { nullptr };
|
|
||||||
CGameObject* m_pQuest_Status_Panel = { nullptr };
|
|
||||||
|
|
||||||
_bool m_bClick[3] = { false };
|
_bool m_bClick[3] = { false };
|
||||||
_int m_iIndex{};
|
_int m_iIndex{};
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -19,22 +19,37 @@ class CQuest_Data final : public CBase
|
|||||||
public:
|
public:
|
||||||
virtual void Update(_float fTimeDelta);
|
virtual void Update(_float fTimeDelta);
|
||||||
|
|
||||||
public:
|
private:
|
||||||
HRESULT Load_QuestInfo(const _char* pFilePath);
|
HRESULT Load_QuestInfo(const _char* pFilePath);
|
||||||
|
void Set_ClearQuest(_int Index);
|
||||||
|
void Update_AcceptQuest(_int MonsterIndex = -1);
|
||||||
|
|
||||||
|
public:
|
||||||
QUESTINFO Get_Quest(_int QuestID);
|
QUESTINFO Get_Quest(_int QuestID);
|
||||||
_int Get_Count();
|
_int Get_Count(_int Index);
|
||||||
//const SPELLINFO& Get_Info(_uint SpellID) const;
|
const vector<QUESTINFO>& Get_AllQuest() const;
|
||||||
|
const vector<QUESTINFO>& Get_ClearQuest() const;
|
||||||
|
const vector<QUESTINFO>& Get_AcceptQuest() const;
|
||||||
|
HRESULT Set_AcceptQuest(_int index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||||
|
CGameObject* m_pQuestInstance = { nullptr };
|
||||||
|
CGameInstance* m_pGameInstance = { nullptr };
|
||||||
|
|
||||||
QUESTINFO QuestInfo = {};
|
QUESTINFO QuestInfo = {};
|
||||||
OBJECTIVEINFO ObjectiveInfo = {};
|
OBJECTIVEINFO ObjectiveInfo = {};
|
||||||
REWARDSINFO RewardsInfo = {};
|
REWARDSINFO RewardsInfo = {};
|
||||||
|
|
||||||
vector<QUESTINFO> QuestInfos;
|
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_iQuest_Count{};
|
||||||
|
_int m_iClearQeustCount{};
|
||||||
|
_int m_iAcceptQeustCount{};
|
||||||
|
|
||||||
_bool m_bClear[1] = { false };
|
_bool m_bClear[1] = { false };
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ class CQuest_Entry_Line final : public CElementObject
|
|||||||
|
|
||||||
_int m_iColor = { false };
|
_int m_iColor = { false };
|
||||||
_int m_iQuest_Index{};
|
_int m_iQuest_Index{};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CQuest_Entry_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
static CQuest_Entry_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "Client_Define.h"
|
|
||||||
#include "ElementObject.h"
|
|
||||||
|
|
||||||
NS_BEGIN(Engine)
|
|
||||||
class CTexture;
|
|
||||||
class CShader;
|
|
||||||
class CVIBuffer_Rect;
|
|
||||||
NS_END
|
|
||||||
|
|
||||||
NS_BEGIN(Client)
|
|
||||||
|
|
||||||
class CQuest_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;
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void Describe_Entity() override;
|
|
||||||
#endif // _DEBUG
|
|
||||||
};
|
|
||||||
|
|
||||||
NS_END
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "Client_Define.h"
|
|
||||||
#include "ElementObject.h"
|
|
||||||
|
|
||||||
NS_BEGIN(Engine)
|
|
||||||
class CTexture;
|
|
||||||
class CShader;
|
|
||||||
class CVIBuffer_Rect;
|
|
||||||
NS_END
|
|
||||||
|
|
||||||
NS_BEGIN(Client)
|
|
||||||
|
|
||||||
class CQuest_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 };
|
|
||||||
|
|
||||||
public:
|
|
||||||
static CQuest_HeaderLine* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
|
||||||
virtual void Free() override;
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void Describe_Entity() override;
|
|
||||||
#endif // _DEBUG
|
|
||||||
};
|
|
||||||
|
|
||||||
NS_END
|
|
||||||
@@ -39,6 +39,7 @@ class CQuest_Info final : public CElementObject
|
|||||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||||
CShader* m_pShaderCom = { nullptr };
|
CShader* m_pShaderCom = { nullptr };
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||||
|
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||||
|
|
||||||
_wstring m_pQuest_Info;
|
_wstring m_pQuest_Info;
|
||||||
|
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ class CQuest_Info_Header final : public CElementObject
|
|||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||||
CShader* m_pShaderCom = { nullptr };
|
CShader* m_pShaderCom = { nullptr };
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||||
|
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||||
|
|
||||||
_int m_iColor = true;
|
_int m_iColor = true;
|
||||||
_int m_iQuest_Index{};
|
_int m_iQuest_Index{};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||||
|
|||||||
@@ -32,20 +32,29 @@ class CQuest_Panel final : public CPanelObject
|
|||||||
virtual HRESULT Initialize_Prototype() override;
|
virtual HRESULT Initialize_Prototype() override;
|
||||||
virtual HRESULT Initialize(void* pArg) override;
|
virtual HRESULT Initialize(void* pArg) override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
void Set_Status();
|
||||||
|
void Slot_Hover(_int Index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||||
CShader* m_pShaderCom = { nullptr };
|
CShader* m_pShaderCom = { nullptr };
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||||
|
|
||||||
CGameObject* m_pQuest_Border = { nullptr };
|
class CQuest_Data* m_pQuest_Date = { nullptr };
|
||||||
CGameObject* m_pQuest_Header = { nullptr };
|
|
||||||
CGameObject* m_pQuest_HeaderLine = { nullptr };
|
CGameObject* m_pQuest_Data = { nullptr };
|
||||||
CGameObject* m_pQuest_List = { nullptr };
|
|
||||||
CGameObject* m_pQuest_Info = { nullptr };
|
CGameObject* m_pQuest_Info = { nullptr };
|
||||||
CGameObject* m_pQuest_Info_Header= { nullptr };
|
CGameObject* m_pQuest_Info_Header = { nullptr };
|
||||||
CGameObject* m_pQuest_Info_Line = { nullptr };
|
CGameObject* m_pQuest_Info_Line = { nullptr };
|
||||||
CGameObject* m_pQuest_Entry_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 };
|
||||||
|
|
||||||
|
_bool m_bClick[3] = { false };
|
||||||
public:
|
public:
|
||||||
static CQuest_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
static CQuest_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||||
|
|||||||
+17
-11
@@ -11,12 +11,12 @@ NS_END
|
|||||||
|
|
||||||
NS_BEGIN(Client)
|
NS_BEGIN(Client)
|
||||||
|
|
||||||
class CQuest_List final : public CElementObject
|
class CQuest_Slot final : public CElementObject
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CQuest_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
CQuest_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
CQuest_List(const CQuest_List& rhs);
|
CQuest_Slot(const CQuest_Slot& rhs);
|
||||||
virtual ~CQuest_List() = default;
|
virtual ~CQuest_Slot() = default;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual void Priority_Update(_float fTimeDelta);
|
virtual void Priority_Update(_float fTimeDelta);
|
||||||
@@ -25,6 +25,10 @@ class CQuest_List final : public CElementObject
|
|||||||
virtual HRESULT Render() override;
|
virtual HRESULT Render() override;
|
||||||
virtual _vector Get_WorldPostion() 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:
|
private:
|
||||||
virtual HRESULT Bind_ShaderResources() override;
|
virtual HRESULT Bind_ShaderResources() override;
|
||||||
virtual HRESULT Ready_Components(void* pArg) override;
|
virtual HRESULT Ready_Components(void* pArg) override;
|
||||||
@@ -35,21 +39,23 @@ class CQuest_List final : public CElementObject
|
|||||||
void Hover();
|
void Hover();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void Set_Name(_wstring Name, _int ID);
|
void Set_QuestType(_int Index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||||
CShader* m_pShaderCom = { nullptr };
|
CShader* m_pShaderCom = { nullptr };
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
|
||||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||||
|
|
||||||
_int m_iColor = { false };
|
_float m_fOffSetX{};
|
||||||
_wstring m_pFontSize;
|
_float m_fOffSetY{};
|
||||||
_wstring m_pQuest_Name;
|
_uint m_iCols{};
|
||||||
_int m_pQuest_ID{};
|
_int m_iColor{};
|
||||||
|
|
||||||
|
_int m_iQuestIndex{};
|
||||||
|
_int m_iQuestCount{};
|
||||||
public:
|
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 CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||||
virtual void Free() override;
|
virtual void Free() override;
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
@@ -33,7 +33,7 @@ class CQuest_Status final : public CElementObject
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
void Compute_UI(_int Index);
|
void Compute_UI(_int Index);
|
||||||
void Set_Status(_int Index, _float m_PosY, _wstring Text);
|
void Set_Status(_int Index, _float PosX, _float m_PosY, _wstring Name);
|
||||||
|
|
||||||
void Set_Click(_bool bClick);
|
void Set_Click(_bool bClick);
|
||||||
|
|
||||||
|
|||||||
@@ -1,57 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "Client_Define.h"
|
|
||||||
#include "PanelObject.h"
|
|
||||||
|
|
||||||
NS_BEGIN(Engine)
|
|
||||||
class CTexture;
|
|
||||||
class CShader;
|
|
||||||
class CVIBuffer_Rect;
|
|
||||||
NS_END
|
|
||||||
|
|
||||||
NS_BEGIN(Client)
|
|
||||||
|
|
||||||
class CQuest_Status_Panel final : public CPanelObject
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
CQuest_Status_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
CQuest_Status_Panel(const CQuest_Status_Panel& rhs);
|
|
||||||
virtual ~CQuest_Status_Panel() = default;
|
|
||||||
|
|
||||||
public:
|
|
||||||
virtual void Priority_Update(_float fTimeDelta);
|
|
||||||
virtual void Update(_float fTimeDelta);
|
|
||||||
virtual void Late_Update(_float fTimeDelta);
|
|
||||||
virtual HRESULT Render() override;
|
|
||||||
virtual _vector Get_WorldPostion() override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
virtual HRESULT Bind_ShaderResources() override;
|
|
||||||
virtual HRESULT Ready_Components(void* pArg) override;
|
|
||||||
virtual HRESULT Ready_Element(void* pArg) override;
|
|
||||||
virtual HRESULT Initialize_Prototype() override;
|
|
||||||
virtual HRESULT Initialize(void* pArg) override;
|
|
||||||
|
|
||||||
private:
|
|
||||||
void Set_Status();
|
|
||||||
void Slot_Hover(_int Index);
|
|
||||||
|
|
||||||
private:
|
|
||||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
|
||||||
|
|
||||||
CGameObject* m_pQuest_Status1 = { nullptr };
|
|
||||||
CGameObject* m_pQuest_Status2 = { nullptr };
|
|
||||||
CGameObject* m_pQuest_Status3 = { nullptr };
|
|
||||||
|
|
||||||
_bool m_bClick[3] = { false };
|
|
||||||
|
|
||||||
public:
|
|
||||||
static CQuest_Status_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
|
||||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
|
||||||
virtual void Free() override;
|
|
||||||
#ifdef _DEBUG
|
|
||||||
void Describe_Entity() override;
|
|
||||||
#endif // _DEBUG
|
|
||||||
};
|
|
||||||
|
|
||||||
NS_END
|
|
||||||
@@ -1,8 +1,80 @@
|
|||||||
<QuestInfo>
|
<QuestInfo>
|
||||||
<QuestData>
|
<QuestData>
|
||||||
<Quest QuestID="1" QuestType="Main" QuestName="트롤을 잡아라!" QuestInfo="마을에서 난리를 피우는 트롤을 제압하기">
|
<Quest QuestID="0" QuestType="Main" QuestName="전사의 결투!" QuestInfo="고블린 전사와 힘겨루기를 해서 승리하기" AcceptState="0">
|
||||||
<Objectives>
|
<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>
|
</Objectives>
|
||||||
<Rewards>
|
<Rewards>
|
||||||
<Reward Type="1" Value="BOMBARDA"/>
|
<Reward Type="1" Value="BOMBARDA"/>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<StatInfo>
|
<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_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="고블린 전사" 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="고블린 마법사" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" 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="트롤" HP="400" MAXHP="400" TARGETHP="400" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
<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>
|
</StatInfo>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
#ifndef ENGINE_SHADER_BUFFERS_HLSLI
|
#ifndef ENGINE_SHADER_BUFFERS_HLSLI
|
||||||
#define ENGINE_SHADER_BUFFERS_HLSLI
|
#define ENGINE_SHADER_BUFFERS_HLSLI
|
||||||
|
|
||||||
cbuffer GLOBAL_SSAO_DATA : register(b10)
|
cbuffer ConstantsMotionMatrices : register(b0)
|
||||||
{
|
{
|
||||||
};
|
row_major matrix PrevViewMatrix;
|
||||||
|
row_major matrix PrevProjMatrix;
|
||||||
|
}
|
||||||
|
|
||||||
#endif // ENGINE_SHADER_BUFFERS_HLSLI
|
#endif // ENGINE_SHADER_BUFFERS_HLSLI
|
||||||
|
|||||||
@@ -228,6 +228,24 @@ float3 DecodeNormalFromRG(Texture2D NormalMap, SamplerState Samp, float2 uv)
|
|||||||
return normalize(n);
|
return normalize(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BackGround ForeGround 합은 1
|
||||||
|
float2 DepthCompare(float fCenterDepth, float fSampleDepth, float fDepthScale)
|
||||||
|
{
|
||||||
|
return saturate(0.5f + float2(fDepthScale, -fDepthScale) * (fSampleDepth - fCenterDepth));
|
||||||
|
}
|
||||||
|
|
||||||
|
float2 SpreadCompare(float fOffsetLength, float2 fSpreadLength, float fPixelToSampleUnitsScale)
|
||||||
|
{
|
||||||
|
return saturate(fPixelToSampleUnitsScale * fSpreadLength - fOffsetLength + 1.f);
|
||||||
|
}
|
||||||
|
|
||||||
|
float SampleWeight(float fCenterDepth, float fSampleDepth, float fOffsetLength, float fCenterSpreadLength, float fSampleSpreadLength, float fPixelToSampleUnitsScale, float fDepthScale)
|
||||||
|
{
|
||||||
|
float2 vDepthCompare = DepthCompare(fCenterDepth, fSampleDepth, fDepthScale);
|
||||||
|
float2 vSpreadCompare = SpreadCompare(fOffsetLength, float2(fCenterSpreadLength, fSampleSpreadLength), fPixelToSampleUnitsScale);
|
||||||
|
return dot(vDepthCompare, vSpreadCompare);
|
||||||
|
}
|
||||||
|
|
||||||
float4x4 RotateX(float fAngle)
|
float4x4 RotateX(float fAngle)
|
||||||
{
|
{
|
||||||
float fCos = cos(radians(fAngle));
|
float fCos = cos(radians(fAngle));
|
||||||
@@ -451,5 +469,43 @@ float4 BlendDiffuse(float4 vDiffuseA, Texture2D DiffuseBlendTexture, float2 vTex
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float2 CalcVelocityUV(float4 vCurrentProjPos, float4 vPreviousProjPos)
|
||||||
|
{
|
||||||
|
if (vCurrentProjPos.w <= FLT_EPSILON5 || vPreviousProjPos.w <= FLT_EPSILON5) {
|
||||||
|
return float2(0.0f, 0.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
float2 currentUV = (vCurrentProjPos.xy/vCurrentProjPos.w);
|
||||||
|
float2 previousUV = (vPreviousProjPos.xy / vCurrentProjPos.w);
|
||||||
|
|
||||||
|
currentUV.y *= -1.f;
|
||||||
|
previousUV.y *= -1.f;
|
||||||
|
|
||||||
|
return currentUV - previousUV;
|
||||||
|
}
|
||||||
|
|
||||||
|
float3 DownSampleFast(Texture2D SrcTexture2D, float2 vCenterTexcoord, float2 vSrcTexelSize, float2 vResolution)
|
||||||
|
{
|
||||||
|
float2 uv = float2(0.f, 0.f);
|
||||||
|
float3 vCenterColor = SrcTexture2D.SampleLevel(BorderZeroSampler, uv, 0);
|
||||||
|
uv = vCenterTexcoord + vSrcTexelSize * float2(-1.0, -1.0);
|
||||||
|
float3 fLTColor = BilinearFetches(vResolution, SrcTexture2D, uv, BorderZeroLinearSampler);
|
||||||
|
uv = vCenterTexcoord + vSrcTexelSize * float2(0.0, -1.0);
|
||||||
|
float3 fTColor = SrcTexture2D.SampleLevel(BorderZeroSampler, uv, 0);
|
||||||
|
uv = vCenterTexcoord + vSrcTexelSize * float2(+1.0, -1.0);
|
||||||
|
float3 fRTColor = BilinearFetches(vResolution, SrcTexture2D, uv, BorderZeroLinearSampler);
|
||||||
|
uv = vCenterTexcoord + vSrcTexelSize * float2(-1.0, 0.0);
|
||||||
|
float3 fLColor = SrcTexture2D.SampleLevel(BorderZeroSampler, uv, 0);
|
||||||
|
uv = vCenterTexcoord + vSrcTexelSize * float2(1.0, 0.0);
|
||||||
|
float3 fRColor = SrcTexture2D.SampleLevel(BorderZeroSampler, uv, 0);
|
||||||
|
uv = vCenterTexcoord + vSrcTexelSize * float2(-1.0, +1.0);
|
||||||
|
float3 fLBColor = BilinearFetches(vResolution, SrcTexture2D, uv, BorderZeroLinearSampler);
|
||||||
|
uv = vCenterTexcoord + vSrcTexelSize * float2(0.0, 1.0);
|
||||||
|
float3 fBColor = SrcTexture2D.SampleLevel(BorderZeroSampler, uv, 0);
|
||||||
|
uv = vCenterTexcoord + vSrcTexelSize * float2(+1.0, +1.0);
|
||||||
|
float3 fRBColor = BilinearFetches(vResolution, SrcTexture2D, uv, BorderZeroLinearSampler);
|
||||||
|
|
||||||
|
return vCenterColor * 0.25f + (fLTColor + fRTColor + fLBColor + fRBColor) * 0.0625f + (fTColor + fLColor + fRColor + fBColor) * 0.125f;
|
||||||
|
}
|
||||||
|
|
||||||
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
|
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ matrix g_LightViewMatrix_MIDDLE, g_LightProjMatrix_MIDDLE;
|
|||||||
matrix g_LightViewMatrix_FAR, g_LightProjMatrix_FAR;
|
matrix g_LightViewMatrix_FAR, g_LightProjMatrix_FAR;
|
||||||
matrix g_PreShadowLightViewMatrix, g_PreShadowLightProjMatrix;
|
matrix g_PreShadowLightViewMatrix, g_PreShadowLightProjMatrix;
|
||||||
|
|
||||||
|
|
||||||
float4 g_SamplePos[64];
|
float4 g_SamplePos[64];
|
||||||
float g_fFar;
|
float g_fFar;
|
||||||
float g_fShadowFar_NEAR;
|
float g_fShadowFar_NEAR;
|
||||||
@@ -70,6 +71,12 @@ Texture2D g_BlurWeightXTexture;
|
|||||||
Texture2D g_SurfaceTexture;
|
Texture2D g_SurfaceTexture;
|
||||||
Texture2D g_OriginalTexture;
|
Texture2D g_OriginalTexture;
|
||||||
|
|
||||||
|
Texture2D g_ColorTexture;
|
||||||
|
Texture2D g_VelocityTexture;
|
||||||
|
|
||||||
|
int g_iMBSampleCount;
|
||||||
|
int g_fMBBlurRadius;
|
||||||
|
float g_iMBType;
|
||||||
|
|
||||||
vector g_vLightDiffuse;
|
vector g_vLightDiffuse;
|
||||||
vector g_vLightAmbient;
|
vector g_vLightAmbient;
|
||||||
@@ -137,6 +144,10 @@ struct VS_OUT
|
|||||||
float4 vPosition : SV_POSITION;
|
float4 vPosition : SV_POSITION;
|
||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
};
|
};
|
||||||
|
struct PS_OUT_VELOCITYBLUR
|
||||||
|
{
|
||||||
|
float4 vColor : SV_TARGET0;
|
||||||
|
};
|
||||||
VS_OUT VS_MAIN(VS_IN In)
|
VS_OUT VS_MAIN(VS_IN In)
|
||||||
{
|
{
|
||||||
VS_OUT Out;
|
VS_OUT Out;
|
||||||
@@ -213,6 +224,30 @@ struct PS_OUT_SSAO_BLUR
|
|||||||
{
|
{
|
||||||
float fBlur : SV_TARGET0;
|
float fBlur : SV_TARGET0;
|
||||||
};
|
};
|
||||||
|
// g_ColorTexture;
|
||||||
|
// g_DepthTexture;
|
||||||
|
// g_VelocityTexture;
|
||||||
|
// g_fFar
|
||||||
|
// g_fMBBlurRadius
|
||||||
|
// g_iMBType
|
||||||
|
// g_iMBSampleCount
|
||||||
|
PS_OUT_VELOCITYBLUR PS_MOTIONBLUR_X(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT_VELOCITYBLUR Out = (PS_OUT_VELOCITYBLUR)0;
|
||||||
|
//float2 uv = In.vTexcoord;
|
||||||
|
//float2 vSrcTexelSize = float2(1.f / g_vResolution.x, 1.f / g_vResolution.y);
|
||||||
|
//float3 vColor = (0.f, 0.f, 0.f);
|
||||||
|
|
||||||
|
//for (int i = -g_iMBSampleCount; i < g_iMBSampleCount; ++i)
|
||||||
|
//{
|
||||||
|
// vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x;
|
||||||
|
// vTexcoord.y = In.vTexcoord.y;
|
||||||
|
|
||||||
|
// vColor += g_fWeights_32[i + 15] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
|
||||||
|
//}
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||||
{
|
{
|
||||||
PS_OUT_LIGHT Out;
|
PS_OUT_LIGHT Out;
|
||||||
@@ -759,48 +794,34 @@ PS_OUT_FLT4_SINGLE PS_MAIN_EMBOSS(PS_IN In)
|
|||||||
{
|
{
|
||||||
PS_OUT_FLT4_SINGLE Out;
|
PS_OUT_FLT4_SINGLE Out;
|
||||||
float2 uv = In.vTexcoord;
|
float2 uv = In.vTexcoord;
|
||||||
float fMask = g_DiffuseTexture.SampleLevel(BorderZeroSampler, uv, 0).a;
|
float fSrcAlpha = g_DiffuseTexture.Sample(PointSampler, uv).a;
|
||||||
float2 vSrcTexelSize = float2(1.f / g_vResolution.x, 1.f / g_vResolution.y);
|
float2 vSrcTexelSize = float2(1.f / g_vResolution.x, 1.f / g_vResolution.y);
|
||||||
float3 vColor = (0.f, 0.f, 0.f);
|
float3 vColor = (0.f, 0.f, 0.f);
|
||||||
|
|
||||||
uint iMask = (uint) round(fMask * 255.f); // int a = 1 -> // vBloom.a = (enum / 255);
|
vColor = DownSampleFast(g_DiffuseTexture, In.vTexcoord, vSrcTexelSize, g_vResolution);
|
||||||
//if (0 != iMask) {
|
|
||||||
// 주변 4개 셀(LT RT LB RB)및 중앙을 이중선형샘플링, 이후 자체적으로 이중선형샘플링
|
|
||||||
|
|
||||||
float3 vCenterColor = g_DiffuseTexture.SampleLevel(BorderZeroSampler, uv, 0);
|
|
||||||
uv = In.vTexcoord + vSrcTexelSize * float2(-1.0, -1.0);
|
|
||||||
float3 fLTColor = BilinearFetches(g_vResolution, g_DiffuseTexture, uv, BorderZeroLinearSampler);
|
|
||||||
uv = In.vTexcoord + vSrcTexelSize * float2(0.0, -1.0);
|
|
||||||
float3 fTColor = g_DiffuseTexture.SampleLevel(BorderZeroSampler, uv, 0);
|
|
||||||
uv = In.vTexcoord + vSrcTexelSize * float2(+1.0, -1.0);
|
|
||||||
float3 fRTColor = BilinearFetches(g_vResolution, g_DiffuseTexture, uv, BorderZeroLinearSampler);
|
|
||||||
uv = In.vTexcoord + vSrcTexelSize * float2(-1.0, 0.0);
|
|
||||||
float3 fLColor = g_DiffuseTexture.SampleLevel(BorderZeroSampler, uv, 0);
|
|
||||||
uv = In.vTexcoord + vSrcTexelSize * float2(1.0, 0.0);
|
|
||||||
float3 fRColor = g_DiffuseTexture.SampleLevel(BorderZeroSampler, uv, 0);
|
|
||||||
uv = In.vTexcoord + vSrcTexelSize * float2(-1.0, +1.0);
|
|
||||||
float3 fLBColor = BilinearFetches(g_vResolution, g_DiffuseTexture, uv, BorderZeroLinearSampler);
|
|
||||||
uv = In.vTexcoord + vSrcTexelSize * float2(0.0, 1.0);
|
|
||||||
float3 fBColor = g_DiffuseTexture.SampleLevel(BorderZeroSampler, uv, 0);
|
|
||||||
uv = In.vTexcoord + vSrcTexelSize * float2(+1.0, +1.0);
|
|
||||||
float3 fRBColor = BilinearFetches(g_vResolution, g_DiffuseTexture, uv, BorderZeroLinearSampler);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// vSample /= fWeight 이중선형샘플러가 자체적으로 웨이츠 계싼해주기 때문에 안해도 상관없을듯
|
|
||||||
vColor = vCenterColor * 0.25f + (fLTColor + fRTColor + fLBColor + fRBColor) * 0.0625f + (fTColor + fLColor + fRColor + fBColor) * 0.125f;
|
|
||||||
//if (iMask == 2)
|
|
||||||
//{
|
|
||||||
// vColor *= 3.f;
|
|
||||||
//}
|
|
||||||
//}
|
|
||||||
float fIntensity = dot(vColor, float3(0.2126f, 0.7152f, 0.0722f));
|
float fIntensity = dot(vColor, float3(0.2126f, 0.7152f, 0.0722f));
|
||||||
fIntensity = max(FLT_EPSILON3, fIntensity);
|
fIntensity = max(FLT_EPSILON3, fIntensity);
|
||||||
|
|
||||||
|
|
||||||
float fBloomIntensity = GetBloomCurve(fIntensity, g_fBloomThreshold, g_iBloomEmbossingPass);
|
float fBloomIntensity = GetBloomCurve(fIntensity, g_fBloomThreshold, g_iBloomEmbossingPass);
|
||||||
float3 bloomColor = (vColor * fBloomIntensity) / fIntensity;
|
float3 bloomColor = (vColor * fBloomIntensity) / fIntensity;
|
||||||
Out.vFirstTarget = float4(bloomColor, 1.f);
|
Out.vFirstTarget = float4(bloomColor, fSrcAlpha);
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT_FLT4_SINGLE PS_MAIN_DOWNSAMPLE(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT_FLT4_SINGLE Out;
|
||||||
|
float2 uv = In.vTexcoord;
|
||||||
|
float fMask = g_DiffuseTexture.SampleLevel(BorderZeroSampler, uv, 0).a;
|
||||||
|
float2 vSrcTexelSize = float2(1.f / g_vResolution.x, 1.f / g_vResolution.y);
|
||||||
|
float3 vColor = (0.f, 0.f, 0.f);
|
||||||
|
|
||||||
|
vColor = DownSampleFast(g_DiffuseTexture, In.vTexcoord, vSrcTexelSize, g_vResolution);
|
||||||
|
|
||||||
|
Out.vFirstTarget = float4(vColor, 1.f);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -809,10 +830,10 @@ PS_OUT_FLT4_SINGLE PS_MAIN_BLOOM_ACCUM(PS_IN In)
|
|||||||
{
|
{
|
||||||
PS_OUT_FLT4_SINGLE Out;
|
PS_OUT_FLT4_SINGLE Out;
|
||||||
|
|
||||||
float3 vColorSrcA = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord).xyz;
|
float4 vColorSrcA = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord);
|
||||||
float3 vColorSrcB = g_BlurTexture.Sample(BorderZeroSampler, In.vTexcoord).xyz;
|
float4 vColorSrcB = g_BlurTexture.Sample(BorderZeroSampler, In.vTexcoord);
|
||||||
|
|
||||||
Out.vFirstTarget = float4(saturate(vColorSrcA + vColorSrcB), 1.f);
|
Out.vFirstTarget = saturate(vColorSrcA + vColorSrcB);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -821,9 +842,9 @@ PS_OUT_FLT4_SINGLE PS_MAIN_BLOOM_FINISH(PS_IN In)
|
|||||||
PS_OUT_FLT4_SINGLE Out;
|
PS_OUT_FLT4_SINGLE Out;
|
||||||
|
|
||||||
vector vColor = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord);
|
vector vColor = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord);
|
||||||
float3 vBloom = g_BlurTexture.Sample(BorderZeroSampler, In.vTexcoord).xyz;
|
float4 vBloom = g_BlurTexture.Sample(BorderZeroSampler, In.vTexcoord);
|
||||||
Out.vFirstTarget = vColor;
|
Out.vFirstTarget = vColor;
|
||||||
Out.vFirstTarget += float4(vBloom, 1.f);
|
Out.vFirstTarget += vBloom;
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -1361,4 +1382,24 @@ technique11 DefaultTechnique
|
|||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_SSAO_BLUR();
|
PixelShader = compile ps_5_0 PS_SSAO_BLUR();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pass MotionBlurPass // 18
|
||||||
|
{
|
||||||
|
SetRasterizerState(RS_Default);
|
||||||
|
SetDepthStencilState(DSS_None, 0);
|
||||||
|
SetBlendState(BS_None, 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_MOTIONBLUR_X();
|
||||||
|
}
|
||||||
|
pass DownSamplePass // 19
|
||||||
|
{
|
||||||
|
SetRasterizerState(RS_Default);
|
||||||
|
SetDepthStencilState(DSS_None, 0);
|
||||||
|
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||||
|
VertexShader = compile vs_5_0 VS_CAPTURE();
|
||||||
|
GeometryShader = NULL;
|
||||||
|
PixelShader = compile ps_5_0 PS_MAIN_DOWNSAMPLE();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
float PI = 3.141592;
|
|
||||||
|
|
||||||
struct KeyFrame
|
struct KeyFrame
|
||||||
{
|
{
|
||||||
float3 vScale;
|
float3 vScale;
|
||||||
@@ -17,104 +15,402 @@ struct Channel
|
|||||||
|
|
||||||
struct LocalPos
|
struct LocalPos
|
||||||
{
|
{
|
||||||
float3 Scale;
|
row_major float4x4 Local;
|
||||||
float pad0;
|
row_major float4x4 Combined;
|
||||||
|
row_major float4x4 LocalCombined;
|
||||||
float4 Rotation;
|
|
||||||
|
|
||||||
float3 Translation;
|
|
||||||
float pad1;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct BoneLocal
|
||||||
|
{
|
||||||
|
row_major float4x4 BoneLocal;
|
||||||
|
};
|
||||||
|
|
||||||
StructuredBuffer<KeyFrame> g_KeyFrameBuffer : register(t0);
|
StructuredBuffer<KeyFrame> g_KeyFrameBuffer : register(t0);
|
||||||
StructuredBuffer<Channel> g_ChannelBuffer : register(t1);
|
StructuredBuffer<Channel> g_ChannelBuffer : register(t1);
|
||||||
|
StructuredBuffer<KeyFrame> g_PrevKeyFrameBuffer : register(t2);
|
||||||
|
StructuredBuffer<Channel> g_PrevChannelBuffer : register(t3);
|
||||||
|
StructuredBuffer<int> g_ParentBuffer : register(t4);
|
||||||
|
StructuredBuffer<BoneLocal> g_BoneLocalBuffer : register(t5);
|
||||||
|
StructuredBuffer<uint> g_BoneRemap : register(t6);
|
||||||
|
|
||||||
RWStructuredBuffer<LocalPos> g_LocalPosOutput : register(u0);
|
RWStructuredBuffer<LocalPos> g_LocalPosOutput : register(u0);
|
||||||
|
|
||||||
|
|
||||||
cbuffer AnimCB : register(b0)
|
cbuffer AnimCB : register(b0)
|
||||||
{
|
{
|
||||||
float CurrentTime;
|
float CurrentTime;
|
||||||
float Duration;
|
float Duration;
|
||||||
float Speed;
|
int MeshBoneCount;
|
||||||
int BoneCount;
|
int BoneCount;
|
||||||
|
|
||||||
|
int RootBoneIndex;
|
||||||
|
int padding1;
|
||||||
|
float PrevTime;
|
||||||
|
float BlendRatio;
|
||||||
|
|
||||||
row_major float4x4 PreTransformMatrix;
|
row_major float4x4 PreTransformMatrix;
|
||||||
|
float4 RootInitRot;
|
||||||
};
|
};
|
||||||
|
|
||||||
float4 quatSlerp(float4 q1, float4 q2, float t)
|
static const float EPS = 1e-6f;
|
||||||
|
|
||||||
|
float4 QuatNormalize(float4 q)
|
||||||
{
|
{
|
||||||
float cosTheta = dot(q1, q2);
|
return q * rsqrt(max(dot(q, q), EPS));
|
||||||
|
}
|
||||||
|
|
||||||
|
float4 QuatSlerp(float4 a, float4 b, float t)
|
||||||
|
{
|
||||||
|
a = QuatNormalize(a);
|
||||||
|
b = QuatNormalize(b);
|
||||||
|
|
||||||
|
float cosTheta = dot(a, b);
|
||||||
|
|
||||||
if (cosTheta < 0.0f)
|
if (cosTheta < 0.0f)
|
||||||
{
|
{
|
||||||
q2 = -q2;
|
b = -b;
|
||||||
cosTheta = -cosTheta;
|
cosTheta = -cosTheta;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cosTheta > 0.9995f)
|
if (cosTheta > 0.9995f)
|
||||||
return normalize(lerp(q1, q2, t));
|
return QuatNormalize(lerp(a, b, t));
|
||||||
|
|
||||||
float theta = acos(cosTheta);
|
float theta = acos(saturate(cosTheta));
|
||||||
float sinTheta = sin(theta);
|
float sinTheta = max(sin(theta), EPS);
|
||||||
|
|
||||||
float w1 = sin((1.0f - t) * theta) / sinTheta;
|
float w0 = sin((1.0f - t) * theta) / sinTheta;
|
||||||
float w2 = sin(t * theta) / sinTheta;
|
float w1 = sin(t * theta) / sinTheta;
|
||||||
|
|
||||||
return q1 * w1 + q2 * w2;
|
return a * w0 + b * w1;
|
||||||
|
}
|
||||||
|
|
||||||
|
float4x4 MakeAffine(float3 scale, float4 rot, float3 trans)
|
||||||
|
{
|
||||||
|
rot = QuatNormalize(rot);
|
||||||
|
|
||||||
|
float xx = rot.x * rot.x;
|
||||||
|
float yy = rot.y * rot.y;
|
||||||
|
float zz = rot.z * rot.z;
|
||||||
|
float xy = rot.x * rot.y;
|
||||||
|
float xz = rot.x * rot.z;
|
||||||
|
float yz = rot.y * rot.z;
|
||||||
|
float wx = rot.w * rot.x;
|
||||||
|
float wy = rot.w * rot.y;
|
||||||
|
float wz = rot.w * rot.z;
|
||||||
|
|
||||||
|
float4x4 M;
|
||||||
|
|
||||||
|
M._11 = (1 - 2 * (yy + zz)) * scale.x;
|
||||||
|
M._12 = (2 * (xy + wz)) * scale.x;
|
||||||
|
M._13 = (2 * (xz - wy)) * scale.x;
|
||||||
|
M._14 = 0;
|
||||||
|
|
||||||
|
M._21 = (2 * (xy - wz)) * scale.y;
|
||||||
|
M._22 = (1 - 2 * (xx + zz)) * scale.y;
|
||||||
|
M._23 = (2 * (yz + wx)) * scale.y;
|
||||||
|
M._24 = 0;
|
||||||
|
|
||||||
|
M._31 = (2 * (xz + wy)) * scale.z;
|
||||||
|
M._32 = (2 * (yz - wx)) * scale.z;
|
||||||
|
M._33 = (1 - 2 * (xx + yy)) * scale.z;
|
||||||
|
M._34 = 0;
|
||||||
|
|
||||||
|
M._41 = trans.x;
|
||||||
|
M._42 = trans.y;
|
||||||
|
M._43 = trans.z;
|
||||||
|
M._44 = 1;
|
||||||
|
|
||||||
|
return M;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint FindKeyIndexCur(uint start, uint count, float t)
|
||||||
|
{
|
||||||
|
uint lo = 0;
|
||||||
|
uint hi = count - 1;
|
||||||
|
|
||||||
|
float t0 = g_KeyFrameBuffer[start + 0].fTrackPosition;
|
||||||
|
if (t <= t0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
float tLast = g_KeyFrameBuffer[start + hi].fTrackPosition;
|
||||||
|
if (t >= tLast)
|
||||||
|
return hi - 1;
|
||||||
|
|
||||||
|
while (hi - lo > 1)
|
||||||
|
{
|
||||||
|
uint mid = (lo + hi) >> 1;
|
||||||
|
float tm = g_KeyFrameBuffer[start + mid].fTrackPosition;
|
||||||
|
if (t < tm)
|
||||||
|
hi = mid;
|
||||||
|
else
|
||||||
|
lo = mid;
|
||||||
|
}
|
||||||
|
return lo;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint FindKeyIndexPrev(uint start, uint count, float t)
|
||||||
|
{
|
||||||
|
uint lo = 0;
|
||||||
|
uint hi = count - 1;
|
||||||
|
|
||||||
|
float t0 = g_PrevKeyFrameBuffer[start + 0].fTrackPosition;
|
||||||
|
if (t <= t0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
float tLast = g_PrevKeyFrameBuffer[start + hi].fTrackPosition;
|
||||||
|
if (t >= tLast)
|
||||||
|
return hi - 1;
|
||||||
|
|
||||||
|
while (hi - lo > 1)
|
||||||
|
{
|
||||||
|
uint mid = (lo + hi) >> 1;
|
||||||
|
float tm = g_PrevKeyFrameBuffer[start + mid].fTrackPosition;
|
||||||
|
if (t < tm)
|
||||||
|
hi = mid;
|
||||||
|
else
|
||||||
|
lo = mid;
|
||||||
|
}
|
||||||
|
return lo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[numthreads(256, 1, 1)]
|
float3 GetRow3(float4 v)
|
||||||
void CS_LocalSRT(uint3 DTID : SV_DispatchThreadID)
|
|
||||||
{
|
{
|
||||||
uint boneIndex = DTID.x;
|
return v.xyz;
|
||||||
if (boneIndex >= (uint) BoneCount)
|
}
|
||||||
return;
|
|
||||||
|
|
||||||
float time = CurrentTime;
|
|
||||||
|
|
||||||
Channel channel = g_ChannelBuffer[boneIndex];
|
|
||||||
|
|
||||||
LocalPos result;
|
float4x4 SampleLocalPrev(uint bone, float t)
|
||||||
|
{
|
||||||
uint firstIndex = channel.StartIndex;
|
Channel ch = g_PrevChannelBuffer[bone];
|
||||||
uint keyCount = channel.KeyCount;
|
if (ch.KeyCount == 0)
|
||||||
uint lastIndex = firstIndex + keyCount - 1;
|
return g_BoneLocalBuffer[bone].BoneLocal;
|
||||||
|
|
||||||
KeyFrame keyLast = g_KeyFrameBuffer[lastIndex];
|
uint start = ch.StartIndex;
|
||||||
|
uint count = ch.KeyCount;
|
||||||
|
|
||||||
if (time >= keyLast.fTrackPosition)
|
if (count == 1)
|
||||||
{
|
{
|
||||||
result.Scale = keyLast.vScale;
|
KeyFrame k = g_PrevKeyFrameBuffer[start];
|
||||||
result.Rotation = keyLast.vRotation;
|
float3 trans = k.vTranslation;
|
||||||
result.Translation = keyLast.vTranslation;
|
float4 rot = k.vRotation;
|
||||||
result.pad0 = result.pad1 = 0.0f;
|
|
||||||
|
if (bone == RootBoneIndex)
|
||||||
|
{
|
||||||
|
trans = 0;
|
||||||
|
rot = RootInitRot;
|
||||||
|
}
|
||||||
|
return MakeAffine(k.vScale, rot, trans);
|
||||||
|
}
|
||||||
|
|
||||||
|
uint i0 = FindKeyIndexPrev(start, count, t);
|
||||||
|
uint i1 = i0 + 1;
|
||||||
|
|
||||||
|
KeyFrame k0 = g_PrevKeyFrameBuffer[start + i0];
|
||||||
|
KeyFrame k1 = g_PrevKeyFrameBuffer[start + i1];
|
||||||
|
|
||||||
|
float denom = max(EPS, (k1.fTrackPosition - k0.fTrackPosition));
|
||||||
|
float ratio = saturate((t - k0.fTrackPosition) / denom);
|
||||||
|
|
||||||
|
float3 scale = lerp(k0.vScale, k1.vScale, ratio);
|
||||||
|
float3 trans = lerp(k0.vTranslation, k1.vTranslation, ratio);
|
||||||
|
float4 rot = QuatSlerp(k0.vRotation, k1.vRotation, ratio);
|
||||||
|
|
||||||
|
if (bone == RootBoneIndex)
|
||||||
|
{
|
||||||
|
trans = 0;
|
||||||
|
rot = RootInitRot;
|
||||||
|
}
|
||||||
|
return MakeAffine(scale, rot, trans);
|
||||||
|
}
|
||||||
|
|
||||||
|
float4x4 SampleLocal(uint bone, float t)
|
||||||
|
{
|
||||||
|
Channel ch = g_ChannelBuffer[bone];
|
||||||
|
if (ch.KeyCount == 0)
|
||||||
|
return g_BoneLocalBuffer[bone].BoneLocal;
|
||||||
|
|
||||||
|
uint start = ch.StartIndex;
|
||||||
|
uint count = ch.KeyCount;
|
||||||
|
|
||||||
|
if (count == 1)
|
||||||
|
{
|
||||||
|
KeyFrame k = g_KeyFrameBuffer[start];
|
||||||
|
float3 trans = k.vTranslation;
|
||||||
|
float4 rot = k.vRotation;
|
||||||
|
|
||||||
|
if (bone == RootBoneIndex)
|
||||||
|
{
|
||||||
|
trans = 0;
|
||||||
|
rot = RootInitRot;
|
||||||
|
}
|
||||||
|
return MakeAffine(k.vScale, rot, trans);
|
||||||
|
}
|
||||||
|
|
||||||
|
uint i0 = FindKeyIndexCur(start, count, t);
|
||||||
|
uint i1 = i0 + 1;
|
||||||
|
|
||||||
|
KeyFrame k0 = g_KeyFrameBuffer[start + i0];
|
||||||
|
KeyFrame k1 = g_KeyFrameBuffer[start + i1];
|
||||||
|
|
||||||
|
float denom = max(EPS, (k1.fTrackPosition - k0.fTrackPosition));
|
||||||
|
float ratio = saturate((t - k0.fTrackPosition) / denom);
|
||||||
|
|
||||||
|
float3 scale = lerp(k0.vScale, k1.vScale, ratio);
|
||||||
|
float3 trans = lerp(k0.vTranslation, k1.vTranslation, ratio);
|
||||||
|
float4 rot = QuatSlerp(k0.vRotation, k1.vRotation, ratio);
|
||||||
|
|
||||||
|
if (bone == RootBoneIndex)
|
||||||
|
{
|
||||||
|
trans = 0;
|
||||||
|
rot = RootInitRot;
|
||||||
|
}
|
||||||
|
return MakeAffine(scale, rot, trans);
|
||||||
|
}
|
||||||
|
void SampleLocalTRS_Cur(uint bone, float t, out float3 S, out float4 R, out float3 T)
|
||||||
|
{
|
||||||
|
Channel ch = g_ChannelBuffer[bone];
|
||||||
|
|
||||||
|
if (ch.KeyCount == 0)
|
||||||
|
{
|
||||||
|
S = float3(1, 1, 1);
|
||||||
|
R = float4(0, 0, 0, 1);
|
||||||
|
T = float3(0, 0, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint start = ch.StartIndex;
|
||||||
|
uint count = ch.KeyCount;
|
||||||
|
|
||||||
|
if (count == 1)
|
||||||
|
{
|
||||||
|
KeyFrame k = g_KeyFrameBuffer[start];
|
||||||
|
S = k.vScale;
|
||||||
|
R = QuatNormalize(k.vRotation);
|
||||||
|
T = k.vTranslation;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (uint i = 0; i < keyCount - 1; ++i)
|
uint i0 = FindKeyIndexCur(start, count, t);
|
||||||
{
|
uint i1 = i0 + 1;
|
||||||
KeyFrame Sour = g_KeyFrameBuffer[firstIndex + i];
|
|
||||||
KeyFrame Dest = g_KeyFrameBuffer[firstIndex + i + 1];
|
|
||||||
|
|
||||||
if (time >= Sour.fTrackPosition && time <= Dest.fTrackPosition)
|
KeyFrame k0 = g_KeyFrameBuffer[start + i0];
|
||||||
{
|
KeyFrame k1 = g_KeyFrameBuffer[start + i1];
|
||||||
float ratio = (time - Sour.fTrackPosition) /
|
|
||||||
(Dest.fTrackPosition - Sour.fTrackPosition);
|
|
||||||
|
|
||||||
result.Scale = lerp(Sour.vScale, Dest.vScale, ratio);
|
float denom = max(EPS, (k1.fTrackPosition - k0.fTrackPosition));
|
||||||
result.Rotation = quatSlerp(Sour.vRotation, Dest.vRotation, ratio);
|
float ratio = saturate((t - k0.fTrackPosition) / denom);
|
||||||
result.Translation = lerp(Sour.vTranslation, Dest.vTranslation, ratio);
|
|
||||||
result.pad0 = result.pad1 = 0.0f;
|
S = lerp(k0.vScale, k1.vScale, ratio);
|
||||||
break;
|
T = lerp(k0.vTranslation, k1.vTranslation, ratio);
|
||||||
}
|
R = QuatSlerp(k0.vRotation, k1.vRotation, ratio);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_LocalPosOutput[channel.BoneIndex] = result;
|
if (bone == RootBoneIndex)
|
||||||
return;
|
{
|
||||||
|
T = 0;
|
||||||
|
R = RootInitRot;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SampleLocalTRS_Prev(uint bone, float t, out float3 S, out float4 R, out float3 T)
|
||||||
|
{
|
||||||
|
Channel ch = g_PrevChannelBuffer[bone];
|
||||||
|
|
||||||
|
if (ch.KeyCount == 0)
|
||||||
|
{
|
||||||
|
S = float3(1, 1, 1);
|
||||||
|
R = float4(0, 0, 0, 1);
|
||||||
|
T = float3(0, 0, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint start = ch.StartIndex;
|
||||||
|
uint count = ch.KeyCount;
|
||||||
|
|
||||||
|
if (count == 1)
|
||||||
|
{
|
||||||
|
KeyFrame k = g_PrevKeyFrameBuffer[start];
|
||||||
|
S = k.vScale;
|
||||||
|
R = QuatNormalize(k.vRotation);
|
||||||
|
T = k.vTranslation;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
uint i0 = FindKeyIndexPrev(start, count, t);
|
||||||
|
uint i1 = i0 + 1;
|
||||||
|
|
||||||
|
KeyFrame k0 = g_PrevKeyFrameBuffer[start + i0];
|
||||||
|
KeyFrame k1 = g_PrevKeyFrameBuffer[start + i1];
|
||||||
|
|
||||||
|
float denom = max(EPS, (k1.fTrackPosition - k0.fTrackPosition));
|
||||||
|
float ratio = saturate((t - k0.fTrackPosition) / denom);
|
||||||
|
|
||||||
|
S = lerp(k0.vScale, k1.vScale, ratio);
|
||||||
|
T = lerp(k0.vTranslation, k1.vTranslation, ratio);
|
||||||
|
R = QuatSlerp(k0.vRotation, k1.vRotation, ratio);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bone == RootBoneIndex)
|
||||||
|
{
|
||||||
|
T = 0;
|
||||||
|
R = RootInitRot;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
float4x4 SampleBlendedLocal(uint bone)
|
||||||
|
{
|
||||||
|
float br = saturate(BlendRatio);
|
||||||
|
|
||||||
|
if (br <= 0.0f)
|
||||||
|
return SampleLocalPrev(bone, PrevTime);
|
||||||
|
if (br >= 1.0f)
|
||||||
|
return SampleLocal(bone, CurrentTime);
|
||||||
|
|
||||||
|
float3 sA, sB, tA, tB;
|
||||||
|
float4 rA, rB;
|
||||||
|
|
||||||
|
SampleLocalTRS_Prev(bone, PrevTime, sA, rA, tA);
|
||||||
|
SampleLocalTRS_Cur(bone, CurrentTime, sB, rB, tB);
|
||||||
|
|
||||||
|
float3 s = lerp(sA, sB, br);
|
||||||
|
float3 t = lerp(tA, tB, br);
|
||||||
|
float4 r = QuatSlerp(rA, rB, br);
|
||||||
|
|
||||||
|
if (bone == RootBoneIndex)
|
||||||
|
{
|
||||||
|
t = 0;
|
||||||
|
r = RootInitRot;
|
||||||
|
}
|
||||||
|
|
||||||
|
return MakeAffine(s, r, t);
|
||||||
|
}
|
||||||
|
|
||||||
|
[numthreads(256, 1, 1)]
|
||||||
|
void CS_MAIN(uint3 DTid : SV_DispatchThreadID)
|
||||||
|
{
|
||||||
|
uint globalBone = DTid.x;
|
||||||
|
if (globalBone >= (uint) BoneCount)
|
||||||
|
return;
|
||||||
|
|
||||||
|
float4x4 localMat = SampleBlendedLocal(globalBone);
|
||||||
|
g_LocalPosOutput[globalBone].Local = localMat;
|
||||||
|
|
||||||
|
float4x4 combined = localMat;
|
||||||
|
int p = g_ParentBuffer[globalBone];
|
||||||
|
while (p != -1)
|
||||||
|
{
|
||||||
|
combined = mul(combined, SampleBlendedLocal((uint) p));
|
||||||
|
p = g_ParentBuffer[p];
|
||||||
|
}
|
||||||
|
|
||||||
|
combined = mul(combined, PreTransformMatrix);
|
||||||
|
g_LocalPosOutput[globalBone].Combined = combined;
|
||||||
|
|
||||||
|
for (uint local = 0; local < (uint) MeshBoneCount; ++local)
|
||||||
|
{
|
||||||
|
if (g_BoneRemap[local] == globalBone)
|
||||||
|
{
|
||||||
|
g_LocalPosOutput[local].LocalCombined = combined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,17 @@
|
|||||||
|
|
||||||
#include "Engine_Shader_Defines.hlsli"
|
#include "Engine_Shader_Defines.hlsli"
|
||||||
|
|
||||||
|
struct BoneOut
|
||||||
|
{
|
||||||
|
row_major float4x4 Local;
|
||||||
|
row_major float4x4 Combined;
|
||||||
|
row_major float4x4 LocalCombined;
|
||||||
|
|
||||||
|
};
|
||||||
float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||||
|
float4x4 g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
|
||||||
|
matrix g_OffsetMatrix[256];
|
||||||
|
|
||||||
|
|
||||||
int g_bRimLight;
|
int g_bRimLight;
|
||||||
int g_bUseNormalMap;
|
int g_bUseNormalMap;
|
||||||
@@ -44,6 +54,7 @@ Texture2D g_Maya_Specular_ColorTexture;
|
|||||||
Texture2D g_Maya_Specular_RoughnessTexture;
|
Texture2D g_Maya_Specular_RoughnessTexture;
|
||||||
Texture2D g_AnisotropyTexture;
|
Texture2D g_AnisotropyTexture;
|
||||||
|
|
||||||
|
StructuredBuffer<BoneOut> g_BoneBuffer : register(t26);
|
||||||
|
|
||||||
Texture2D g_SurfaceParamsTexture;
|
Texture2D g_SurfaceParamsTexture;
|
||||||
|
|
||||||
@@ -80,6 +91,7 @@ struct VS_OUT
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
VS_OUT VS_MAIN_MESH(VS_IN_MESH In)
|
VS_OUT VS_MAIN_MESH(VS_IN_MESH In)
|
||||||
{
|
{
|
||||||
@@ -89,6 +101,10 @@ VS_OUT VS_MAIN_MESH(VS_IN_MESH In)
|
|||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
|
matrix matPrevWV, matPrevWVP;
|
||||||
|
matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
|
||||||
|
matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
|
||||||
|
|
||||||
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
||||||
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)).xyz;
|
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)).xyz;
|
||||||
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz;
|
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz;
|
||||||
@@ -96,6 +112,7 @@ VS_OUT VS_MAIN_MESH(VS_IN_MESH In)
|
|||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
|
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
|
||||||
Out.vProjPos = Out.vPosition;
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(vector(In.vPosition, 1.f), matPrevWVP);
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,13 +120,19 @@ VS_OUT VS_MAIN(VS_IN In)
|
|||||||
{
|
{
|
||||||
VS_OUT Out;
|
VS_OUT Out;
|
||||||
|
|
||||||
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
|
float4 w = In.vBlendWeight;
|
||||||
|
float sumW = max(dot(w, 1.0f), 1e-6f);
|
||||||
|
w /= sumW;
|
||||||
|
|
||||||
matrix BoneMatrix =
|
matrix BoneMatrix =
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
|
mul(g_OffsetMatrix[In.vBlendIndex.x],
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
|
g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
|
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
|
g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
|
||||||
|
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
||||||
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
|
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
|
||||||
@@ -121,6 +144,10 @@ VS_OUT VS_MAIN(VS_IN In)
|
|||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
|
matrix matPrevWV, matPrevWVP;
|
||||||
|
matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
|
||||||
|
matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
Out.vPosition = mul(vPosition, matWVP);
|
||||||
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
||||||
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
|
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
|
||||||
@@ -128,6 +155,7 @@ VS_OUT VS_MAIN(VS_IN In)
|
|||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
||||||
Out.vProjPos = Out.vPosition;
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(vector(In.vPosition, 1.f), matPrevWVP);
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,13 +163,19 @@ VS_OUT VS_MAIN_OUTLINE_READ(VS_IN In)
|
|||||||
{
|
{
|
||||||
VS_OUT Out;
|
VS_OUT Out;
|
||||||
|
|
||||||
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
|
float4 w = In.vBlendWeight;
|
||||||
|
float sumW = max(dot(w, 1.0f), 1e-6f);
|
||||||
|
w /= sumW;
|
||||||
|
|
||||||
matrix BoneMatrix =
|
matrix BoneMatrix =
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
|
mul(g_OffsetMatrix[In.vBlendIndex.x],
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
|
g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
|
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
|
g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
|
||||||
|
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
||||||
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
|
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
|
||||||
@@ -154,6 +188,10 @@ VS_OUT VS_MAIN_OUTLINE_READ(VS_IN In)
|
|||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
|
matrix matPrevWV, matPrevWVP;
|
||||||
|
matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
|
||||||
|
matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
Out.vPosition = mul(vPosition, matWVP);
|
||||||
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
||||||
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
|
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
|
||||||
@@ -161,6 +199,8 @@ VS_OUT VS_MAIN_OUTLINE_READ(VS_IN In)
|
|||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
||||||
Out.vProjPos = Out.vPosition;
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(vPosition, matPrevWVP);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
struct VS_OUT_SHADOW
|
struct VS_OUT_SHADOW
|
||||||
@@ -173,12 +213,19 @@ VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
|
|||||||
{
|
{
|
||||||
VS_OUT_SHADOW Out;
|
VS_OUT_SHADOW Out;
|
||||||
|
|
||||||
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
|
float4 w = In.vBlendWeight;
|
||||||
|
float sumW = max(dot(w, 1.0f), 1e-6f);
|
||||||
matrix BoneMatrix = mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
|
w /= sumW;
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
|
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
|
matrix BoneMatrix =
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
|
mul(g_OffsetMatrix[In.vBlendIndex.x],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
|
||||||
|
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
||||||
|
|
||||||
@@ -201,6 +248,7 @@ struct PS_IN
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PS_OUT
|
struct PS_OUT
|
||||||
@@ -210,12 +258,14 @@ struct PS_OUT
|
|||||||
float4 vDepth : SV_TARGET2;
|
float4 vDepth : SV_TARGET2;
|
||||||
float4 vColor : SV_Target3;
|
float4 vColor : SV_Target3;
|
||||||
float4 vSurface : SV_Target4;
|
float4 vSurface : SV_Target4;
|
||||||
|
float2 vVelocityUV : SV_TARGET5;
|
||||||
};
|
};
|
||||||
struct PS_OUT_OUTLINE
|
struct PS_OUT_OUTLINE
|
||||||
{
|
{
|
||||||
float4 vOutLine : SV_TARGET0;
|
float4 vOutLine : SV_TARGET0;
|
||||||
float4 vNormal : SV_TARGET1;
|
float4 vNormal : SV_TARGET1;
|
||||||
float4 vDepth : SV_TARGET2;
|
float4 vDepth : SV_TARGET2;
|
||||||
|
float2 vVelocityUV : SV_TARGET3;
|
||||||
};
|
};
|
||||||
|
|
||||||
PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
|
PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
|
||||||
@@ -239,7 +289,8 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
|
|||||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||||
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
|
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
|
||||||
1.f);
|
1.f);
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ float g_fFar;
|
|||||||
float g_fTime;
|
float g_fTime;
|
||||||
|
|
||||||
float4 g_UV;
|
float4 g_UV;
|
||||||
|
float2 g_fOrigin_Size;
|
||||||
|
float2 g_fCurrent_Size;
|
||||||
|
float4 g_fNine_Slice;
|
||||||
struct VS_IN
|
struct VS_IN
|
||||||
{
|
{
|
||||||
float3 vPosition : POSITION;
|
float3 vPosition : POSITION;
|
||||||
@@ -435,6 +437,67 @@ PS_OUT PS_Spell_Lock(PS_IN In)
|
|||||||
return Out;
|
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
|
technique11 PosTexTechnique11
|
||||||
{
|
{
|
||||||
pass Default
|
pass Default
|
||||||
@@ -568,4 +631,15 @@ technique11 PosTexTechnique11
|
|||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_Spell_Lock();
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,16 @@
|
|||||||
|
|
||||||
#include "Engine_Shader_Defines.hlsli"
|
#include "Engine_Shader_Defines.hlsli"
|
||||||
|
|
||||||
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||||
|
float4x4 g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
|
||||||
|
struct BoneOut
|
||||||
|
{
|
||||||
|
row_major float4x4 Local;
|
||||||
|
row_major float4x4 Combined;
|
||||||
|
row_major float4x4 LocalCombined;
|
||||||
|
};
|
||||||
|
|
||||||
|
matrix g_OffsetMatrix[256];
|
||||||
|
|
||||||
int g_bRimLight;
|
int g_bRimLight;
|
||||||
int g_bUseNormalMap;
|
int g_bUseNormalMap;
|
||||||
@@ -24,41 +33,45 @@ float g_fDisolveEdgeWidth;
|
|||||||
float4 g_vDisolveEdgeColor;
|
float4 g_vDisolveEdgeColor;
|
||||||
float4 g_vCamPosition;
|
float4 g_vCamPosition;
|
||||||
|
|
||||||
Texture2D g_DAOTexture;
|
|
||||||
Texture2D g_THVTexture;
|
|
||||||
Texture2D g_SurfaceParamsTexture;
|
|
||||||
Texture2D g_DeadDisolveTexture;
|
|
||||||
Texture2D g_DeadDisolveBurnTexture;
|
|
||||||
|
|
||||||
float2 g_vSRVFlag;
|
float2 g_vSRVFlag;
|
||||||
float3 g_vPBR_Flag;
|
float3 g_vPBR_Flag;
|
||||||
|
|
||||||
Texture2D g_DiffuseTexture;
|
Texture2D g_DAOTexture : register(t0);
|
||||||
Texture2D g_SpecularTexture;
|
Texture2D g_THVTexture : register(t1);
|
||||||
Texture2D g_AmbientTexture;
|
Texture2D g_SurfaceParamsTexture : register(t2);
|
||||||
Texture2D g_EmissiveTexture;
|
Texture2D g_DeadDisolveTexture : register(t3);
|
||||||
Texture2D g_MossDiffuseTexture;
|
Texture2D g_DeadDisolveBurnTexture : register(t4);
|
||||||
Texture2D g_NormalTexture;
|
|
||||||
Texture2D g_MossNormalTexture;
|
Texture2D g_DiffuseTexture : register(t5);
|
||||||
Texture2D g_NormalBlendTexture;
|
Texture2D g_SpecularTexture : register(t6);
|
||||||
Texture2D g_SROBlendTexture;
|
Texture2D g_AmbientTexture : register(t7);
|
||||||
Texture2D g_MROBlendTexture;
|
Texture2D g_EmissiveTexture : register(t8);
|
||||||
Texture2D g_ReflectionTexture;
|
Texture2D g_MossDiffuseTexture : register(t9);
|
||||||
Texture2D g_DiffuseBlend;
|
Texture2D g_NormalTexture : register(t10);
|
||||||
Texture2D g_MossSROTexture;
|
Texture2D g_MossNormalTexture : register(t11);
|
||||||
Texture2D g_MossMROTexture;
|
Texture2D g_NormalBlendTexture : register(t12);
|
||||||
Texture2D g_MetalnessTexture;
|
Texture2D g_SROBlendTexture : register(t13);
|
||||||
Texture2D g_Diffuse_RoughnessTexture;
|
Texture2D g_MROBlendTexture : register(t14);
|
||||||
Texture2D g_AmbientOcclusionTexture;
|
Texture2D g_ReflectionTexture : register(t15);
|
||||||
Texture2D g_UnknownTexture;
|
Texture2D g_DiffuseBlend : register(t16);
|
||||||
Texture2D g_SheenTexture;
|
Texture2D g_MossSROTexture : register(t17);
|
||||||
Texture2D g_ClearcoadTexture;
|
Texture2D g_MossMROTexture : register(t18);
|
||||||
Texture2D g_TransmissionTexture;
|
Texture2D g_MetalnessTexture : register(t19);
|
||||||
Texture2D g_Maya_BaseTexture;
|
Texture2D g_Diffuse_RoughnessTexture : register(t20);
|
||||||
Texture2D g_Maya_SpecularTexture;
|
Texture2D g_AmbientOcclusionTexture : register(t21);
|
||||||
Texture2D g_Maya_Specular_ColorTexture;
|
Texture2D g_UnknownTexture : register(t22);
|
||||||
Texture2D g_Maya_Specular_RoughnessTexture;
|
Texture2D g_SheenTexture : register(t23);
|
||||||
Texture2D g_AnisotropyTexture;
|
Texture2D g_ClearcoadTexture : register(t24);
|
||||||
|
Texture2D g_TransmissionTexture : register(t25);
|
||||||
|
Texture2D g_Maya_BaseTexture : register(t26);
|
||||||
|
Texture2D g_Maya_SpecularTexture : register(t27);
|
||||||
|
Texture2D g_Maya_Specular_ColorTexture : register(t28);
|
||||||
|
Texture2D g_Maya_Specular_RoughnessTexture : register(t29);
|
||||||
|
Texture2D g_AnisotropyTexture : register(t30);
|
||||||
|
|
||||||
|
|
||||||
|
StructuredBuffer<BoneOut> g_BoneBuffer : register(t31);
|
||||||
|
|
||||||
int g_iBinded_Texture[27];
|
int g_iBinded_Texture[27];
|
||||||
|
|
||||||
@@ -74,6 +87,9 @@ float g_fUsingSurfaceParams;
|
|||||||
matrix g_BoneMatrices[512];
|
matrix g_BoneMatrices[512];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct VS_IN
|
struct VS_IN
|
||||||
{
|
{
|
||||||
float3 vPosition : POSITION;
|
float3 vPosition : POSITION;
|
||||||
@@ -95,40 +111,59 @@ struct VS_OUT
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
VS_OUT VS_MAIN(VS_IN In)
|
VS_OUT VS_MAIN(VS_IN In)
|
||||||
{
|
{
|
||||||
VS_OUT Out;
|
VS_OUT Out;
|
||||||
|
|
||||||
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
|
float4 w = In.vBlendWeight;
|
||||||
|
float sumW = max(dot(w, 1.0f), 1e-6f);
|
||||||
|
w /= sumW;
|
||||||
|
|
||||||
matrix BoneMatrix =
|
matrix BoneMatrix =
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
|
mul(g_OffsetMatrix[In.vBlendIndex.x],
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
|
g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
|
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
|
g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
|
||||||
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
|
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
|
||||||
vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix);
|
g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
|
||||||
vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
float4 skinnedPos = mul(float4(In.vPosition, 1.f), BoneMatrix);
|
||||||
|
float3 skinnedNormal = mul(float4(In.vNormal, 0.f), BoneMatrix).xyz;
|
||||||
|
float3 skinnedTangent = mul(float4(In.vTangent, 0.f), BoneMatrix).xyz;
|
||||||
|
float3 skinnedBinormal = mul(float4(In.vBinormal, 0.f), BoneMatrix).xyz;
|
||||||
|
|
||||||
matrix matWV, matWVP;
|
matrix matWV, matWVP;
|
||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
matrix matPrevWV, matPrevWVP;
|
||||||
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
|
||||||
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
|
matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
|
||||||
Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz;
|
|
||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vPosition = mul(skinnedPos, matWVP);
|
||||||
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
Out.vNormal = normalize(mul(float4(skinnedNormal, 0.f), g_WorldMatrix)).xyz;
|
||||||
Out.vProjPos = Out.vPosition;
|
Out.vBinormal = normalize(mul(float4(skinnedBinormal, 0.f), g_WorldMatrix)).xyz;
|
||||||
|
Out.vTangent = normalize(mul(float4(skinnedTangent, 0.f), g_WorldMatrix)).xyz;
|
||||||
|
Out.vTexcoord = In.vTexcoord;
|
||||||
|
Out.vWorldPos = mul(skinnedPos, g_WorldMatrix);
|
||||||
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(skinnedPos, matPrevWVP);
|
||||||
|
|
||||||
|
Out.vTexcoord = In.vTexcoord;
|
||||||
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(skinnedPos, matPrevWVP);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct VS_OUT_OUTLINE
|
struct VS_OUT_OUTLINE
|
||||||
{
|
{
|
||||||
float4 vPosition : SV_Position;
|
float4 vPosition : SV_Position;
|
||||||
@@ -138,19 +173,26 @@ struct VS_OUT_OUTLINE
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
|
VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
|
||||||
{
|
{
|
||||||
VS_OUT_OUTLINE Out;
|
VS_OUT_OUTLINE Out;
|
||||||
|
|
||||||
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
|
float4 w = In.vBlendWeight;
|
||||||
|
float sumW = max(dot(w, 1.0f), 1e-6f);
|
||||||
|
w /= sumW;
|
||||||
|
|
||||||
matrix BoneMatrix =
|
matrix BoneMatrix =
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
|
mul(g_OffsetMatrix[In.vBlendIndex.x],
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
|
g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
|
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
|
g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
|
||||||
|
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
||||||
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
|
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
|
||||||
@@ -163,6 +205,10 @@ VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
|
|||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
|
matrix matPrevWV, matPrevWVP;
|
||||||
|
matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
|
||||||
|
matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
Out.vPosition = mul(vPosition, matWVP);
|
||||||
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
||||||
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
|
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
|
||||||
@@ -170,6 +216,7 @@ VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
|
|||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
||||||
Out.vProjPos = Out.vPosition;
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(vPosition, matPrevWVP);
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
struct VS_OUT_CAPTUREDMODEL
|
struct VS_OUT_CAPTUREDMODEL
|
||||||
@@ -240,12 +287,26 @@ VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
|
|||||||
{
|
{
|
||||||
VS_OUT_SHADOW Out;
|
VS_OUT_SHADOW Out;
|
||||||
|
|
||||||
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
|
//float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
|
||||||
|
|
||||||
matrix BoneMatrix = mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
|
//matrix BoneMatrix = mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
|
// mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
|
// mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
|
||||||
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
|
// mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
|
||||||
|
|
||||||
|
float4 w = In.vBlendWeight;
|
||||||
|
float sumW = max(dot(w, 1.0f), 1e-6f);
|
||||||
|
w /= sumW;
|
||||||
|
|
||||||
|
matrix BoneMatrix =
|
||||||
|
mul(g_OffsetMatrix[In.vBlendIndex.x],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
|
||||||
|
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
|
||||||
|
g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
|
||||||
|
|
||||||
/* ?ㅽ궎??*/
|
/* ?ㅽ궎??*/
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
|
||||||
@@ -269,6 +330,7 @@ struct PS_IN
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PS_OUT
|
struct PS_OUT
|
||||||
@@ -278,6 +340,7 @@ struct PS_OUT
|
|||||||
float4 vDepth : SV_TARGET2;
|
float4 vDepth : SV_TARGET2;
|
||||||
float4 vColor : SV_Target3;
|
float4 vColor : SV_Target3;
|
||||||
float4 vSurface : SV_Target4;
|
float4 vSurface : SV_Target4;
|
||||||
|
float2 vVelocityUV : SV_TARGET5;
|
||||||
};
|
};
|
||||||
|
|
||||||
PS_OUT PS_MAIN(PS_IN In)
|
PS_OUT PS_MAIN(PS_IN In)
|
||||||
@@ -331,6 +394,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
|||||||
1.f);
|
1.f);
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -363,12 +427,14 @@ struct PS_IN_OUTLINE
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
struct PS_OUT_OUTLINE
|
struct PS_OUT_OUTLINE
|
||||||
{
|
{
|
||||||
float4 vOutLine : SV_TARGET0;
|
float4 vOutLine : SV_TARGET0;
|
||||||
float4 vNormal : SV_TARGET1;
|
float4 vNormal : SV_TARGET1;
|
||||||
float4 vDepth : SV_TARGET2;
|
float4 vDepth : SV_TARGET2;
|
||||||
|
float2 vVelocityUV : SV_TARGET3;
|
||||||
};
|
};
|
||||||
|
|
||||||
PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
|
PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
|
||||||
@@ -392,6 +458,7 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
|
|||||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||||
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
|
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
|
||||||
1.f);
|
1.f);
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
|
||||||
#include "Engine_Shader_Defines.hlsli"
|
#include "Engine_Shader_Defines.hlsli"
|
||||||
|
|
||||||
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||||
|
float4x4 g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
|
||||||
|
|
||||||
int g_bUVTargetDiffuse;
|
int g_bUVTargetDiffuse;
|
||||||
int g_bAdditiveDisolve;
|
int g_bAdditiveDisolve;
|
||||||
@@ -118,6 +119,7 @@ struct VS_OUT
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct VS_OUT_BLUR
|
struct VS_OUT_BLUR
|
||||||
@@ -168,6 +170,10 @@ VS_OUT VS_MAIN(VS_IN In)
|
|||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
|
matrix matPrevWV, matPrevWVP;
|
||||||
|
matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
|
||||||
|
matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
|
||||||
|
|
||||||
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
||||||
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)).xyz;
|
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)).xyz;
|
||||||
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz;
|
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz;
|
||||||
@@ -175,6 +181,7 @@ VS_OUT VS_MAIN(VS_IN In)
|
|||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
|
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
|
||||||
Out.vProjPos = Out.vPosition;
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(float4(In.vPosition, 1.f), matPrevWVP);
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,6 +208,7 @@ struct VS_OUT_OUTLINE
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
|
VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
|
||||||
@@ -216,6 +224,10 @@ VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
|
|||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
|
matrix matPrevWV, matPrevWVP;
|
||||||
|
matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
|
||||||
|
matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
Out.vPosition = mul(vPosition, matWVP);
|
||||||
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
|
||||||
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz;
|
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz;
|
||||||
@@ -223,6 +235,7 @@ VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
|
|||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
|
||||||
Out.vProjPos = Out.vPosition;
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(vPosition, matPrevWVP);
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -272,6 +285,7 @@ struct PS_IN
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PS_OUT
|
struct PS_OUT
|
||||||
@@ -281,6 +295,7 @@ struct PS_OUT
|
|||||||
float4 vDepth : SV_TARGET2;
|
float4 vDepth : SV_TARGET2;
|
||||||
float4 vColor : SV_Target3;
|
float4 vColor : SV_Target3;
|
||||||
float4 vSurface : SV_Target4;
|
float4 vSurface : SV_Target4;
|
||||||
|
float2 vVelocityUV : SV_TARGET5;
|
||||||
};
|
};
|
||||||
PS_OUT PS_MAIN(PS_IN In)
|
PS_OUT PS_MAIN(PS_IN In)
|
||||||
{
|
{
|
||||||
@@ -339,7 +354,6 @@ PS_OUT PS_MAIN(PS_IN In)
|
|||||||
|
|
||||||
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
|
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
|
||||||
|
|
||||||
|
|
||||||
Out.vAlbedo = vMtrlDiffuse;
|
Out.vAlbedo = vMtrlDiffuse;
|
||||||
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
|
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
|
||||||
float fSurfaceParam = g_fUsingSurfaceParams;
|
float fSurfaceParam = g_fUsingSurfaceParams;
|
||||||
@@ -353,6 +367,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
|||||||
1.f);
|
1.f);
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -391,6 +406,7 @@ PS_OUT PS_GLASS(PS_IN In)
|
|||||||
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
|
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
|
||||||
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
|
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -418,6 +434,7 @@ PS_OUT PS_GLASS_CUBE(PS_IN In)
|
|||||||
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
|
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
|
||||||
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
|
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -554,12 +571,14 @@ struct PS_IN_OUTLINE
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
struct PS_OUT_OUTLINE
|
struct PS_OUT_OUTLINE
|
||||||
{
|
{
|
||||||
float4 vOutLine : SV_TARGET0;
|
float4 vOutLine : SV_TARGET0;
|
||||||
float4 vNormal : SV_TARGET1;
|
float4 vNormal : SV_TARGET1;
|
||||||
float4 vDepth : SV_TARGET2;
|
float4 vDepth : SV_TARGET2;
|
||||||
|
float2 vVelocityUV : SV_TARGET3;
|
||||||
};
|
};
|
||||||
|
|
||||||
PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
|
PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
|
||||||
@@ -582,6 +601,7 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
|
|||||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||||
AI_TEXTURE_TYPE_METALNESS, // 서페이스 파라미터
|
AI_TEXTURE_TYPE_METALNESS, // 서페이스 파라미터
|
||||||
1.f);
|
1.f);
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -646,7 +666,8 @@ PS_OUT PS_LAKE(PS_IN In)
|
|||||||
1.f);
|
1.f);
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -681,7 +702,8 @@ PS_OUT PS_LAND(PS_IN In)
|
|||||||
1.f);
|
1.f);
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -708,7 +730,8 @@ PS_OUT PS_NONMRO(PS_IN In)
|
|||||||
1.f);
|
1.f);
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = g_vSurfaceColor;
|
Out.vSurface = g_vSurfaceColor;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -749,7 +772,8 @@ PS_OUT PS_SPECTOR_WEAPON_MAIN(PS_IN In)
|
|||||||
1.f);
|
1.f);
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
PS_OUT PS_LEVIOSO(PS_IN In)
|
PS_OUT PS_LEVIOSO(PS_IN In)
|
||||||
@@ -800,7 +824,8 @@ PS_OUT PS_LEVIOSO(PS_IN In)
|
|||||||
1.f);
|
1.f);
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
|
||||||
#include "Engine_Shader_Defines.hlsli"
|
#include "Engine_Shader_Defines.hlsli"
|
||||||
|
|
||||||
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||||
|
float4x4 g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
|
||||||
|
|
||||||
float g_fFar;
|
float g_fFar;
|
||||||
float g_fUsingSurfaceParams;
|
float g_fUsingSurfaceParams;
|
||||||
@@ -31,6 +32,7 @@ struct VS_OUT
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
VS_OUT VS_MAIN(VS_IN In)
|
VS_OUT VS_MAIN(VS_IN In)
|
||||||
@@ -42,11 +44,16 @@ VS_OUT VS_MAIN(VS_IN In)
|
|||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
|
matrix matPrevWV, matPrevWVP;
|
||||||
|
matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
|
||||||
|
matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
|
||||||
|
|
||||||
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix));
|
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix));
|
||||||
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
|
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
|
||||||
Out.vProjPos = Out.vPosition;
|
Out.vProjPos = Out.vPosition;
|
||||||
|
Out.vPrevProjPos = mul(vector(In.vPosition, 1.f), matPrevWVP);
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,15 +64,17 @@ struct PS_IN
|
|||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float4 vWorldPos : TEXCOORD1;
|
float4 vWorldPos : TEXCOORD1;
|
||||||
float4 vProjPos : TEXCOORD2;
|
float4 vProjPos : TEXCOORD2;
|
||||||
|
float4 vPrevProjPos : TEXCOORD3;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PS_OUT
|
struct PS_OUT
|
||||||
{
|
{
|
||||||
float4 vAlbedo : SV_TARGET0;
|
float4 vAlbedo : SV_TARGET0;
|
||||||
float4 vNormal : SV_TARGET1;
|
float4 vNormal : SV_TARGET1;
|
||||||
float4 vDepth : SV_TARGET2;
|
float4 vDepth : SV_TARGET2;
|
||||||
float4 vColor : SV_Target3;
|
float4 vColor : SV_Target3;
|
||||||
float4 vSurface : SV_Target4;
|
float4 vSurface : SV_Target4;
|
||||||
|
float2 vVelocityUV : SV_TARGET5;
|
||||||
};
|
};
|
||||||
|
|
||||||
PS_OUT PS_MAIN(PS_IN In)
|
PS_OUT PS_MAIN(PS_IN In)
|
||||||
@@ -122,6 +131,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
|||||||
1.f);
|
1.f);
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -180,6 +190,7 @@ PS_OUT PS_MAIN_TERRAIN_ANISO(PS_IN In)
|
|||||||
(1.f / 255.f)); // 지형은 1
|
(1.f / 255.f)); // 지형은 1
|
||||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||||
Out.vSurface = vSurface;
|
Out.vSurface = vSurface;
|
||||||
|
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -177,30 +177,25 @@ call Update_Shaders.bat
|
|||||||
<ClInclude Include="..\public\AlphaMap.h" />
|
<ClInclude Include="..\public\AlphaMap.h" />
|
||||||
<ClInclude Include="..\Public\Body.h" />
|
<ClInclude Include="..\Public\Body.h" />
|
||||||
<ClInclude Include="..\public\Boss_HpBer.h" />
|
<ClInclude Include="..\public\Boss_HpBer.h" />
|
||||||
<ClInclude Include="..\public\Completed_Panel.h" />
|
|
||||||
<ClInclude Include="..\public\Enemy_Detection.h" />
|
<ClInclude Include="..\public\Enemy_Detection.h" />
|
||||||
<ClInclude Include="..\Public\Goblin_BattleAxe.h" />
|
<ClInclude Include="..\Public\Goblin_BattleAxe.h" />
|
||||||
<ClInclude Include="..\Public\Goblin_Dagger.h" />
|
<ClInclude Include="..\Public\Goblin_Dagger.h" />
|
||||||
<ClInclude Include="..\Public\Goblin_Protego.h" />
|
<ClInclude Include="..\Public\Goblin_Protego.h" />
|
||||||
<ClInclude Include="..\Public\Goblin_Spector.h" />
|
<ClInclude Include="..\Public\Goblin_Spector.h" />
|
||||||
<ClInclude Include="..\public\InProgress_Panel.h" />
|
|
||||||
<ClInclude Include="..\public\Interaction_Panel.h" />
|
<ClInclude Include="..\public\Interaction_Panel.h" />
|
||||||
<ClInclude Include="..\public\MapElement_Chest.h" />
|
<ClInclude Include="..\public\MapElement_Chest.h" />
|
||||||
<ClInclude Include="..\public\MapElement_Door.h" />
|
<ClInclude Include="..\public\MapElement_Door.h" />
|
||||||
<ClInclude Include="..\public\MapElement_Chest_Lid.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_Canvas.h" />
|
||||||
<ClInclude Include="..\public\Quest_Data.h" />
|
<ClInclude Include="..\public\Quest_Data.h" />
|
||||||
<ClInclude Include="..\public\Quest_Entry_Line.h" />
|
<ClInclude Include="..\Public\Quest_Entry_Line.h" />
|
||||||
<ClInclude Include="..\public\Quest_Header.h" />
|
|
||||||
<ClInclude Include="..\public\Quest_HeaderLine.h" />
|
|
||||||
<ClInclude Include="..\public\Quest_Info.h" />
|
<ClInclude Include="..\public\Quest_Info.h" />
|
||||||
<ClInclude Include="..\public\Quest_Info_Header.h" />
|
<ClInclude Include="..\public\Quest_Info_Header.h" />
|
||||||
<ClInclude Include="..\public\Quest_Info_Line.h" />
|
<ClInclude Include="..\public\Quest_Info_Line.h" />
|
||||||
<ClInclude Include="..\public\Quest_List.h" />
|
|
||||||
<ClInclude Include="..\public\Quest_Panel.h" />
|
<ClInclude Include="..\public\Quest_Panel.h" />
|
||||||
|
<ClInclude Include="..\public\Quest_Slot.h" />
|
||||||
<ClInclude Include="..\public\Quest_Status.h" />
|
<ClInclude Include="..\public\Quest_Status.h" />
|
||||||
<ClInclude Include="..\public\Quest_Status_Panel.h" />
|
|
||||||
<ClInclude Include="..\Public\Skill_Data.h" />
|
<ClInclude Include="..\Public\Skill_Data.h" />
|
||||||
<ClInclude Include="..\Public\State_Blink.h" />
|
<ClInclude Include="..\Public\State_Blink.h" />
|
||||||
<ClInclude Include="..\Public\State_Dead.h" />
|
<ClInclude Include="..\Public\State_Dead.h" />
|
||||||
@@ -400,30 +395,25 @@ call Update_Shaders.bat
|
|||||||
<ClCompile Include="..\private\AlphaMap.cpp" />
|
<ClCompile Include="..\private\AlphaMap.cpp" />
|
||||||
<ClCompile Include="..\Private\Body.cpp" />
|
<ClCompile Include="..\Private\Body.cpp" />
|
||||||
<ClCompile Include="..\private\Boss_HpBer.cpp" />
|
<ClCompile Include="..\private\Boss_HpBer.cpp" />
|
||||||
<ClCompile Include="..\private\Completed_Panel.cpp" />
|
|
||||||
<ClCompile Include="..\Private\Enemy_Detection.cpp" />
|
<ClCompile Include="..\Private\Enemy_Detection.cpp" />
|
||||||
<ClCompile Include="..\Private\Goblin_BattleAxe.cpp" />
|
<ClCompile Include="..\Private\Goblin_BattleAxe.cpp" />
|
||||||
<ClCompile Include="..\Private\Goblin_Dagger.cpp" />
|
<ClCompile Include="..\Private\Goblin_Dagger.cpp" />
|
||||||
<ClCompile Include="..\Private\Goblin_Protego.cpp" />
|
<ClCompile Include="..\Private\Goblin_Protego.cpp" />
|
||||||
<ClCompile Include="..\Private\Goblin_Spector.cpp" />
|
<ClCompile Include="..\Private\Goblin_Spector.cpp" />
|
||||||
<ClCompile Include="..\private\InProgress_Panel.cpp" />
|
|
||||||
<ClCompile Include="..\private\Interaction_Panel.cpp" />
|
<ClCompile Include="..\private\Interaction_Panel.cpp" />
|
||||||
<ClCompile Include="..\private\MapElement_Chest.cpp" />
|
<ClCompile Include="..\private\MapElement_Chest.cpp" />
|
||||||
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
||||||
<ClCompile Include="..\private\MapElement_Chest_Lid.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_Canvas.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Data.cpp" />
|
<ClCompile Include="..\private\Quest_Data.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Entry_Line.cpp" />
|
<ClCompile Include="..\Private\Quest_Entry_Line.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Header.cpp" />
|
|
||||||
<ClCompile Include="..\private\Quest_HeaderLine.cpp" />
|
|
||||||
<ClCompile Include="..\private\Quest_Info.cpp" />
|
<ClCompile Include="..\private\Quest_Info.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Info_Header.cpp" />
|
<ClCompile Include="..\private\Quest_Info_Header.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Info_Line.cpp" />
|
<ClCompile Include="..\private\Quest_Info_Line.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_List.cpp" />
|
|
||||||
<ClCompile Include="..\private\Quest_Panel.cpp" />
|
<ClCompile Include="..\private\Quest_Panel.cpp" />
|
||||||
|
<ClCompile Include="..\private\Quest_Slot.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Status.cpp" />
|
<ClCompile Include="..\private\Quest_Status.cpp" />
|
||||||
<ClCompile Include="..\private\Quest_Status_Panel.cpp" />
|
|
||||||
<ClCompile Include="..\Private\Skill_Data.cpp" />
|
<ClCompile Include="..\Private\Skill_Data.cpp" />
|
||||||
<ClCompile Include="..\Private\State_Blink.cpp" />
|
<ClCompile Include="..\Private\State_Blink.cpp" />
|
||||||
<ClCompile Include="..\Private\State_Dead.cpp" />
|
<ClCompile Include="..\Private\State_Dead.cpp" />
|
||||||
|
|||||||
@@ -586,18 +586,6 @@
|
|||||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel">
|
<Filter Include="50.UI\Quest_Canvas\Quest_Panel">
|
||||||
<UniqueIdentifier>{cf0e6cef-f688-481a-8e7e-478038907ca8}</UniqueIdentifier>
|
<UniqueIdentifier>{cf0e6cef-f688-481a-8e7e-478038907ca8}</UniqueIdentifier>
|
||||||
</Filter>
|
</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">
|
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Info">
|
||||||
<UniqueIdentifier>{971fb38a-f92c-4eea-99d3-287704800ba5}</UniqueIdentifier>
|
<UniqueIdentifier>{971fb38a-f92c-4eea-99d3-287704800ba5}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
@@ -607,24 +595,21 @@
|
|||||||
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line">
|
<Filter Include="50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line">
|
||||||
<UniqueIdentifier>{a5e3c859-7e28-47b3-8b2e-3be3348bb7ee}</UniqueIdentifier>
|
<UniqueIdentifier>{a5e3c859-7e28-47b3-8b2e-3be3348bb7ee}</UniqueIdentifier>
|
||||||
</Filter>
|
</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">
|
<Filter Include="50.UI\GamePlay_Canvas\Interaction_Panel">
|
||||||
<UniqueIdentifier>{daeac33b-8465-457b-ba3f-18738f7a0d32}</UniqueIdentifier>
|
<UniqueIdentifier>{daeac33b-8465-457b-ba3f-18738f7a0d32}</UniqueIdentifier>
|
||||||
</Filter>
|
</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>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="Editor.h">
|
<ClInclude Include="Editor.h">
|
||||||
@@ -1209,18 +1194,6 @@
|
|||||||
<ClInclude Include="..\public\Quest_Panel.h">
|
<ClInclude Include="..\public\Quest_Panel.h">
|
||||||
<Filter>50.UI\Quest_Canvas\Quest_Panel</Filter>
|
<Filter>50.UI\Quest_Canvas\Quest_Panel</Filter>
|
||||||
</ClInclude>
|
</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">
|
<ClInclude Include="..\public\Quest_Info.h">
|
||||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
@@ -1230,24 +1203,21 @@
|
|||||||
<ClInclude Include="..\public\Quest_Info_Line.h">
|
<ClInclude Include="..\public\Quest_Info_Line.h">
|
||||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
||||||
</ClInclude>
|
</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">
|
<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>
|
||||||
<ClInclude Include="..\public\Interaction_Panel.h">
|
<ClInclude Include="..\public\Interaction_Panel.h">
|
||||||
<Filter>50.UI\GamePlay_Canvas\Interaction_Panel</Filter>
|
<Filter>50.UI\GamePlay_Canvas\Interaction_Panel</Filter>
|
||||||
</ClInclude>
|
</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>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Image Include="Editor.ico">
|
<Image Include="Editor.ico">
|
||||||
@@ -1834,18 +1804,6 @@
|
|||||||
<ClCompile Include="..\private\Quest_Panel.cpp">
|
<ClCompile Include="..\private\Quest_Panel.cpp">
|
||||||
<Filter>50.UI\Quest_Canvas\Quest_Panel</Filter>
|
<Filter>50.UI\Quest_Canvas\Quest_Panel</Filter>
|
||||||
</ClCompile>
|
</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">
|
<ClCompile Include="..\private\Quest_Info.cpp">
|
||||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@@ -1855,24 +1813,21 @@
|
|||||||
<ClCompile Include="..\private\Quest_Info_Line.cpp">
|
<ClCompile Include="..\private\Quest_Info_Line.cpp">
|
||||||
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
<Filter>50.UI\Quest_Canvas\Quest_Panel\Quest_Info_Line</Filter>
|
||||||
</ClCompile>
|
</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">
|
<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>
|
||||||
<ClCompile Include="..\private\Interaction_Panel.cpp">
|
<ClCompile Include="..\private\Interaction_Panel.cpp">
|
||||||
<Filter>50.UI\GamePlay_Canvas\Interaction_Panel</Filter>
|
<Filter>50.UI\GamePlay_Canvas\Interaction_Panel</Filter>
|
||||||
</ClCompile>
|
</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>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="Editor.rc">
|
<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()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -146,10 +146,14 @@ HRESULT CGoblin::Render()
|
|||||||
}
|
}
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -158,6 +162,8 @@ HRESULT CGoblin::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -198,13 +204,20 @@ HRESULT CGoblin::Render_Shadow(SHADOW eType)
|
|||||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,12 @@ HRESULT CGoblin_Spector::Render()
|
|||||||
_uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::SPECTOR);
|
_uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::SPECTOR);
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,6 +133,8 @@ HRESULT CGoblin_Spector::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -54,6 +54,15 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GUI::End();
|
GUI::End();
|
||||||
|
#ifdef gimch
|
||||||
|
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::MAP))))
|
||||||
|
return;
|
||||||
|
#endif // gimch
|
||||||
|
#ifdef 진우
|
||||||
|
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
|
||||||
|
return;
|
||||||
|
#endif // 진우
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CLevel_Logo::Render()
|
HRESULT CLevel_Logo::Render()
|
||||||
|
|||||||
@@ -102,20 +102,14 @@
|
|||||||
|
|
||||||
#include "Quest_Canvas.h"
|
#include "Quest_Canvas.h"
|
||||||
#include "Quest_Panel.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.h"
|
||||||
#include "Quest_Info_Header.h"
|
#include "Quest_Info_Header.h"
|
||||||
#include "Quest_Info_Line.h"
|
#include "Quest_Info_Line.h"
|
||||||
#include "Quest_Entry_Line.h"
|
#include "Quest_Entry_Line.h"
|
||||||
|
|
||||||
#include "Quest_Status_Panel.h"
|
|
||||||
#include "Quest_Status.h"
|
#include "Quest_Status.h"
|
||||||
|
#include "Quest_Slot.h"
|
||||||
|
|
||||||
#include "Completed_Panel.h"
|
#include "QuestInstance.h"
|
||||||
#include "InProgress_Panel.h"
|
|
||||||
|
|
||||||
#include "IMGUIUI.h"
|
#include "IMGUIUI.h"
|
||||||
|
|
||||||
@@ -919,6 +913,15 @@ HRESULT CLoader::Loading_For_UI()
|
|||||||
return E_FAIL;
|
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..");
|
m_strMessage = TEXT("Shader Loading..");
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
|
||||||
@@ -1147,22 +1150,6 @@ HRESULT CLoader::Loading_For_UI()
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
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))))
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Info>(g_iStaticLevel, CQuest_Info::Create(m_pDevice, m_pContext))))
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -1179,22 +1166,15 @@ HRESULT CLoader::Loading_For_UI()
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
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))))
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Status>(g_iStaticLevel, CQuest_Status::Create(m_pDevice, m_pContext))))
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuest_Slot>(g_iStaticLevel, CQuest_Slot::Create(m_pDevice, m_pContext))))
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CCompleted_Panel>(g_iStaticLevel, CCompleted_Panel::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
if (FAILED(m_pGameInstance->Add_Prototype<CQuestInstance>(g_iStaticLevel, CQuestInstance::Create(m_pDevice, m_pContext))))
|
||||||
if (FAILED(m_pGameInstance->Add_Prototype<CInProgress_Panel>(g_iStaticLevel, CInProgress_Panel::Create(m_pDevice, m_pContext))))
|
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -155,17 +155,25 @@ HRESULT CPlayer::Render()
|
|||||||
|
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
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 "Quest_Canvas.h"
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
#include "Quest_Panel.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)
|
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CCanvasObject(pDevice, pContext)
|
:CCanvasObject(pDevice, pContext)
|
||||||
@@ -27,8 +23,8 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
|||||||
{
|
{
|
||||||
CUIObject::UIOBJECT_DESC Desc{};
|
CUIObject::UIOBJECT_DESC Desc{};
|
||||||
|
|
||||||
Desc.fX = 960.f;
|
Desc.fX = 0.f;
|
||||||
Desc.fY = 540.f;
|
Desc.fY = 0.f;
|
||||||
Desc.fSizeX = g_iWinSizeX;
|
Desc.fSizeX = g_iWinSizeX;
|
||||||
Desc.fSizeY = g_iWinSizeY;
|
Desc.fSizeY = g_iWinSizeY;
|
||||||
|
|
||||||
@@ -44,14 +40,7 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
m_fAlpha = 1.f;
|
|
||||||
m_fOwnerAlpha = 1.f;
|
|
||||||
m_fCanvasAlpha = 1.f;
|
|
||||||
m_fSortZ = 0.05f;
|
|
||||||
Visible(false);
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,19 +65,6 @@ void CQuest_Canvas::Late_Update(_float fTimeDelta)
|
|||||||
|
|
||||||
HRESULT CQuest_Canvas::Render()
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,39 +75,6 @@ _vector CQuest_Canvas::Get_WorldPostion()
|
|||||||
|
|
||||||
HRESULT CQuest_Canvas::Bind_ShaderResources()
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,49 +84,18 @@ HRESULT CQuest_Canvas::Ready_Components(void* pArg)
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
|
HRESULT CQuest_Canvas::Ready_Panel(void* pArg)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Data>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Data**>(&m_pQuest_Data))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast <CQuest_Panel**>(&m_pQuest_Panel))))
|
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;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
Add_Panel(TEXT("Quest_Panel"), m_pQuest_Panel);
|
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;
|
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* CQuest_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
{
|
{
|
||||||
CQuest_Canvas* pInstance = new CQuest_Canvas(pDevice, pContext);
|
CQuest_Canvas* pInstance = new CQuest_Canvas(pDevice, pContext);
|
||||||
@@ -248,8 +133,6 @@ void CQuest_Canvas::Free()
|
|||||||
{
|
{
|
||||||
__super::Free();
|
__super::Free();
|
||||||
|
|
||||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
|
||||||
SAFE_RELEASE(m_pShaderCom);
|
|
||||||
SAFE_RELEASE(m_pVIBufferCom);
|
SAFE_RELEASE(m_pVIBufferCom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "GameObject.h"
|
#include "GameObject.h"
|
||||||
#include "UIObject.h"
|
#include "UIObject.h"
|
||||||
#include "tinyxml2.h"
|
#include "tinyxml2.h"
|
||||||
|
#include "QuestInstance.h"
|
||||||
|
|
||||||
CQuest_Data::CQuest_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Data::CQuest_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CGameObject(pDevice, pContext)
|
:CGameObject(pDevice, pContext)
|
||||||
@@ -53,8 +54,9 @@ HRESULT CQuest_Data::Initialize(void* pArg)
|
|||||||
while (pObjective)
|
while (pObjective)
|
||||||
{
|
{
|
||||||
OBJECTIVEINFO obj{};
|
OBJECTIVEINFO obj{};
|
||||||
|
_int Clear = 0;
|
||||||
pObjective->QueryIntAttribute("Objective", &obj.iObjectType);
|
pObjective->QueryIntAttribute("Objective", &Clear);
|
||||||
|
obj.bClear = Clear != 0;
|
||||||
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
|
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
|
||||||
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
|
||||||
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
|
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
|
||||||
@@ -87,6 +89,8 @@ HRESULT CQuest_Data::Initialize(void* pArg)
|
|||||||
pQuest = pQuest->NextSiblingElement("Quest");
|
pQuest = pQuest->NextSiblingElement("Quest");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Set_AcceptQuest(0);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,6 +100,8 @@ void CQuest_Data::Priority_Update(_float fTimeDelta)
|
|||||||
|
|
||||||
void CQuest_Data::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)
|
void CQuest_Data::Late_Update(_float fTimeDelta)
|
||||||
@@ -117,9 +123,83 @@ CQuest_Data::QUESTINFO CQuest_Data::Get_Quest(_int QuestID)
|
|||||||
return QuestInfos[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()
|
HRESULT CQuest_Data::Bind_ShaderResources()
|
||||||
|
|||||||
@@ -214,11 +214,9 @@ void CQuest_Entry_Line::Set_Hover(_int Index)
|
|||||||
if (m_iQuest_Index == -1)
|
if (m_iQuest_Index == -1)
|
||||||
{
|
{
|
||||||
Visible(false);
|
Visible(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
Visible(true);
|
||||||
{
|
|
||||||
Visible(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Entry_Line* CQuest_Entry_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
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 "pch.h"
|
||||||
#include "Quest_Info.h"
|
#include "Quest_Info.h"
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
|
#include "Quest_Panel.h"
|
||||||
|
|
||||||
CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info::CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CElementObject(pDevice, pContext)
|
:CElementObject(pDevice, pContext)
|
||||||
@@ -45,7 +46,7 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
|||||||
SizeUpX(960);
|
SizeUpX(960);
|
||||||
SizeUpY(m_fOriginPerviewSize);
|
SizeUpY(m_fOriginPerviewSize);
|
||||||
m_fSortZ = 0.02f;
|
m_fSortZ = 0.02f;
|
||||||
m_fFontX = 740.f;
|
m_fFontX = 530.f;
|
||||||
m_fFontY = 500.f;
|
m_fFontY = 500.f;
|
||||||
m_iPerQuestIndex = -1;
|
m_iPerQuestIndex = -1;
|
||||||
Visible(false);
|
Visible(false);
|
||||||
@@ -107,7 +108,7 @@ void CQuest_Info::Late_Update(_float fTimeDelta)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_bVisible) {
|
if (m_bVisible) {
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||||
__super::Late_Update(fTimeDelta);
|
__super::Late_Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -126,7 +127,7 @@ HRESULT CQuest_Info::Render()
|
|||||||
if (FAILED(m_pVIBufferCom->Render())) {
|
if (FAILED(m_pVIBufferCom->Render())) {
|
||||||
return E_FAIL;
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,18 +214,16 @@ HRESULT CQuest_Info::Ready_Components(void* pArg)
|
|||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_Info::Set_Hover(_int Index)
|
void CQuest_Info::Set_Hover(_int Index)
|
||||||
{
|
{
|
||||||
m_iQuest_Index = Index;
|
m_iQuest_Index = Index;
|
||||||
if (m_iQuest_Index == -1)
|
if (m_iQuest_Index == -1)
|
||||||
{
|
{
|
||||||
Visible(false);
|
Visible(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
Visible(true);
|
||||||
{
|
|
||||||
Visible(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Quest_Info_Header.h"
|
#include "Quest_Info_Header.h"
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
|
#include "Quest_Panel.h"
|
||||||
|
|
||||||
CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info_Header::CQuest_Info_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CElementObject(pDevice, pContext)
|
:CElementObject(pDevice, pContext)
|
||||||
@@ -41,7 +42,7 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
|
|||||||
m_fAlphaTime = 5.f;
|
m_fAlphaTime = 5.f;
|
||||||
m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
|
m_vNine_Slice = _float4(0.f, 128.f, 0.f, 32.f);
|
||||||
m_fSortZ = 0.02f;
|
m_fSortZ = 0.02f;
|
||||||
m_fFontX = 740.f;
|
m_fFontX = 925.f;
|
||||||
m_fFontY = 520.f;
|
m_fFontY = 520.f;
|
||||||
m_iColor = 2;
|
m_iColor = 2;
|
||||||
SizeUpX(1105.f);
|
SizeUpX(1105.f);
|
||||||
@@ -51,19 +52,6 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
|
|||||||
return S_OK;
|
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)
|
void CQuest_Info_Header::Priority_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
@@ -120,7 +108,7 @@ void CQuest_Info_Header::Late_Update(_float fTimeDelta)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_bVisible) {
|
if (m_bVisible) {
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||||
__super::Late_Update(fTimeDelta);
|
__super::Late_Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -139,9 +127,9 @@ HRESULT CQuest_Info_Header::Render()
|
|||||||
if (FAILED(m_pVIBufferCom->Render())) {
|
if (FAILED(m_pVIBufferCom->Render())) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_float OffSet = m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("마을의 평화를 위해서 노력하기") - 22) * 0.5f;
|
_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"), TEXT("마을의 평화를 위해서 노력하기"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
m_pGameInstance->Render_Text(TEXT("Font_size20"), 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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,6 +213,17 @@ HRESULT CQuest_Info_Header::Ready_Components(void* pArg)
|
|||||||
return S_OK;
|
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* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
{
|
{
|
||||||
CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext);
|
CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext);
|
||||||
|
|||||||
@@ -3,18 +3,18 @@
|
|||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
|
|
||||||
CQuest_Info_Line::CQuest_Info_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
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)
|
CQuest_Info_Line::CQuest_Info_Line(const CQuest_Info_Line& rhs)
|
||||||
:CElementObject(rhs)
|
:CElementObject(rhs)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Info_Line::Initialize_Prototype()
|
HRESULT CQuest_Info_Line::Initialize_Prototype()
|
||||||
{
|
{
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Info_Line::Initialize(void* pArg)
|
HRESULT CQuest_Info_Line::Initialize(void* pArg)
|
||||||
@@ -99,7 +99,7 @@ void CQuest_Info_Line::Late_Update(_float fTimeDelta)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_bVisible) {
|
if (m_bVisible) {
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||||
__super::Late_Update(fTimeDelta);
|
__super::Late_Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -208,11 +208,9 @@ void CQuest_Info_Line::Set_Hover(_int Index)
|
|||||||
if (m_iQuest_Index == -1)
|
if (m_iQuest_Index == -1)
|
||||||
{
|
{
|
||||||
Visible(false);
|
Visible(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
Visible(true);
|
||||||
{
|
|
||||||
Visible(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Quest_Panel.h"
|
#include "Quest_Panel.h"
|
||||||
#include "GameInstance.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.h"
|
||||||
#include "Quest_Info_Header.h"
|
#include "Quest_Info_Header.h"
|
||||||
#include "Quest_Info_Line.h"
|
#include "Quest_Info_Line.h"
|
||||||
#include "Quest_Entry_Line.h"
|
#include "Quest_Entry_Line.h"
|
||||||
#include "Quest_Data.h"
|
#include "Quest_Data.h"
|
||||||
|
#include "Quest_Slot.h"
|
||||||
|
#include "Quest_Status.h"
|
||||||
|
|
||||||
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
:CPanelObject(pDevice, pContext)
|
:CPanelObject(pDevice, pContext)
|
||||||
@@ -30,9 +28,9 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
|||||||
{
|
{
|
||||||
CUIObject::UIOBJECT_DESC Desc{};
|
CUIObject::UIOBJECT_DESC Desc{};
|
||||||
|
|
||||||
Desc.fX = 0.f;
|
Desc.fX = 960.f;
|
||||||
Desc.fY = 0.f;
|
Desc.fY = -540.f;
|
||||||
Desc.fSizeX = 1575.f;
|
Desc.fSizeX = g_iWinSizeX;
|
||||||
Desc.fSizeY = g_iWinSizeY;
|
Desc.fSizeY = g_iWinSizeY;
|
||||||
|
|
||||||
if (FAILED(__super::Initialize(&Desc)))
|
if (FAILED(__super::Initialize(&Desc)))
|
||||||
@@ -53,22 +51,11 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
|
|||||||
m_fDelayTime = 1.f;
|
m_fDelayTime = 1.f;
|
||||||
Visible(true);
|
Visible(true);
|
||||||
ElementAllVisible(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;
|
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)
|
void CQuest_Panel::Priority_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
@@ -102,6 +89,19 @@ void CQuest_Panel::Late_Update(_float fTimeDelta)
|
|||||||
|
|
||||||
HRESULT CQuest_Panel::Render()
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,39 +112,71 @@ _vector CQuest_Panel::Get_WorldPostion()
|
|||||||
|
|
||||||
HRESULT CQuest_Panel::Bind_ShaderResources()
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Panel::Ready_Components(void* pArg)
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_Panel::Ready_Element(void* pArg)
|
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;
|
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;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
Add_Element(TEXT("Quest_Header"), m_pQuest_Header);
|
Add_Element(TEXT("Quest_Slot"), m_pQuest_Slot);
|
||||||
|
|
||||||
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);
|
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CQuest_Info>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast<CQuest_Info**>(&m_pQuest_Info))))
|
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);
|
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;
|
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* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
{
|
{
|
||||||
CQuest_Panel* pInstance = new CQuest_Panel(pDevice, pContext);
|
CQuest_Panel* pInstance = new CQuest_Panel(pDevice, pContext);
|
||||||
@@ -203,6 +299,8 @@ void CQuest_Panel::Free()
|
|||||||
{
|
{
|
||||||
__super::Free();
|
__super::Free();
|
||||||
|
|
||||||
|
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||||
|
SAFE_RELEASE(m_pShaderCom);
|
||||||
SAFE_RELEASE(m_pVIBufferCom);
|
SAFE_RELEASE(m_pVIBufferCom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+112
-74
@@ -1,30 +1,32 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Quest_List.h"
|
#include "Quest_Slot.h"
|
||||||
#include "GameInstance.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)
|
:CElementObject(pDevice, pContext)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
CQuest_List::CQuest_List(const CQuest_List& rhs)
|
CQuest_Slot::CQuest_Slot(const CQuest_Slot& rhs)
|
||||||
:CElementObject(rhs)
|
:CElementObject(rhs)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_List::Initialize_Prototype()
|
HRESULT CQuest_Slot::Initialize_Prototype()
|
||||||
{
|
{
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CQuest_List::Initialize(void* pArg)
|
HRESULT CQuest_Slot::Initialize(void* pArg)
|
||||||
{
|
{
|
||||||
CUIObject::UIOBJECT_DESC Desc{};
|
CUIObject::UIOBJECT_DESC Desc{};
|
||||||
|
|
||||||
Desc.fX = -475.f;
|
Desc.fX = 0.f;
|
||||||
Desc.fY = -150.f;
|
Desc.fY = 0.f;
|
||||||
Desc.fSizeX = 256.f;
|
Desc.fSizeX = 256.f;
|
||||||
Desc.fSizeY = 64.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) };
|
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)))
|
if (FAILED(__super::Initialize(&Desc)))
|
||||||
@@ -36,19 +38,26 @@ HRESULT CQuest_List::Initialize(void* pArg)
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_fTimeMult = 3.f;
|
|
||||||
m_fAlpha = 1.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_vNine_Slice = _float4(70.f, 186.f, 0.f, 64.f);
|
||||||
m_fFontX = 770.f;
|
m_fAlphaTime = 1.f;
|
||||||
m_fFontY = 520.f;
|
m_fFontX = 300.f;
|
||||||
|
m_fFontY = 330.f;
|
||||||
|
m_fOffSetX = 0.f;
|
||||||
|
m_fOffSetY = 85;
|
||||||
|
m_iCols = 1;
|
||||||
SizeUpX(495.f);
|
SizeUpX(495.f);
|
||||||
SizeUpY(80.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);
|
Visible(true);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Priority_Update(_float fTimeDelta)
|
void CQuest_Slot::Priority_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
{
|
{
|
||||||
@@ -57,18 +66,17 @@ void CQuest_List::Priority_Update(_float fTimeDelta)
|
|||||||
__super::Priority_Update(fTimeDelta);
|
__super::Priority_Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Update(_float fTimeDelta)
|
void CQuest_Slot::Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_bFadeIn == true)
|
if (m_bFadeIn == true)
|
||||||
{
|
{
|
||||||
if (m_fAlpha <= 1.f)
|
if (m_fAlpha <= 1.f)
|
||||||
{
|
|
||||||
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
m_fAlpha += fTimeDelta * m_fAlphaTime;
|
||||||
}
|
|
||||||
|
|
||||||
if (m_fAlpha >= 1.f)
|
if (m_fAlpha >= 1.f)
|
||||||
{
|
{
|
||||||
@@ -80,7 +88,7 @@ void CQuest_List::Update(_float fTimeDelta)
|
|||||||
if (m_bFadeOut == true)
|
if (m_bFadeOut == true)
|
||||||
{
|
{
|
||||||
if (m_fAlpha >= 0.f)
|
if (m_fAlpha >= 0.f)
|
||||||
m_fAlpha -= fTimeDelta * m_fAlphaTime;;
|
m_fAlpha -= fTimeDelta;
|
||||||
|
|
||||||
if (m_fAlpha <= 0.f)
|
if (m_fAlpha <= 0.f)
|
||||||
{
|
{
|
||||||
@@ -88,71 +96,87 @@ void CQuest_List::Update(_float fTimeDelta)
|
|||||||
m_fAlpha = 0.f;
|
m_fAlpha = 0.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Hover();
|
Hover();
|
||||||
if (m_bHover == true)
|
|
||||||
{
|
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_iQuestIndex);
|
||||||
m_fSizeX = 505.f;
|
|
||||||
m_fSizeY = 90.f;
|
|
||||||
m_fFontX = 765.f;
|
|
||||||
m_fFontY = 520.f;
|
|
||||||
m_pFontSize = TEXT("Font_size21");
|
|
||||||
m_pQuest_ID = 0;
|
|
||||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_fSizeX = 495.f;
|
|
||||||
m_fSizeY = 80.f;
|
|
||||||
m_fFontX = 770.f;
|
|
||||||
m_fFontY = 520.f;
|
|
||||||
m_pFontSize = TEXT("Font_size20");
|
|
||||||
m_pQuest_ID = -1;
|
|
||||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_pQuest_ID);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_fTime += fTimeDelta * m_fTimeMult;
|
m_fTime += fTimeDelta * m_fTimeMult;
|
||||||
__super::Update(fTimeDelta);
|
__super::Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Late_Update(_float fTimeDelta)
|
void CQuest_Slot::Late_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
if (!__super::Chack_Visible())
|
if (!__super::Chack_Visible())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_bVisible) {
|
if (m_bVisible)
|
||||||
|
{
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
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;
|
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;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
|
if (FAILED(m_pVIBufferCom->Bind_Resources()))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pVIBufferCom->Render())) {
|
if (FAILED(m_pVIBufferCom->Render()))
|
||||||
|
{
|
||||||
return E_FAIL;
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
_vector CQuest_List::Get_WorldPostion()
|
_vector CQuest_Slot::Get_WorldPostion()
|
||||||
{
|
{
|
||||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
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")))
|
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))))
|
if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -202,16 +226,12 @@ HRESULT CQuest_List::Bind_ShaderResources()
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColor", &m_iColor, sizeof(_int))))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
return S_OK;
|
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;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -219,7 +239,7 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
|||||||
{
|
{
|
||||||
return E_FAIL;
|
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;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -227,19 +247,18 @@ HRESULT CQuest_List::Ready_Components(void* pArg)
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Hover()
|
void CQuest_Slot::Hover()
|
||||||
{
|
{
|
||||||
POINT ptMouse{};
|
POINT ptMouse{};
|
||||||
GetCursorPos(&ptMouse);
|
GetCursorPos(&ptMouse);
|
||||||
ScreenToClient(g_hWnd, &ptMouse);
|
ScreenToClient(g_hWnd, &ptMouse);
|
||||||
_float2 fMouse{};
|
_float2 fMouse;
|
||||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||||
fMouse.y = -(ptMouse.y - (g_iWinSizeY * 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;
|
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;
|
switch (Index)
|
||||||
m_pQuest_ID = ID;
|
{
|
||||||
|
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()))
|
if (FAILED(pInstance->Initialize_Prototype()))
|
||||||
{
|
{
|
||||||
MSG_BOX("Failed to Created : CQuest_List");
|
MSG_BOX("Failed to Created : CQuest_Slot");
|
||||||
SAFE_RELEASE(pInstance);
|
SAFE_RELEASE(pInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 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;
|
pInstance->m_pOwner = pOwner;
|
||||||
if (FAILED(pInstance->Initialize(pArg)))
|
if (FAILED(pInstance->Initialize(pArg)))
|
||||||
{
|
{
|
||||||
MSG_BOX("Failed to Cloned : CSpell_Header");
|
MSG_BOX("Failed to Cloned : CQuest_Slot");
|
||||||
SAFE_RELEASE(pInstance);
|
SAFE_RELEASE(pInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
return pInstance;
|
return pInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CQuest_List::Free()
|
void CQuest_Slot::Free()
|
||||||
{
|
{
|
||||||
__super::Free();
|
__super::Free();
|
||||||
|
|
||||||
@@ -290,6 +327,7 @@ void CQuest_List::Free()
|
|||||||
SAFE_RELEASE(m_pVIBufferCom);
|
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;
|
m_fAlphaTime = 1.f;
|
||||||
Compute_UI(0);
|
Compute_UI(0);
|
||||||
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
|
m_vImageposi = _float4{ 32.f, 32.f, 64.f, 64.f };
|
||||||
m_fFontX = 80.f;
|
m_fFontX = -780.f;
|
||||||
m_fFontY = 480.f;
|
m_fFontY = 610.f;
|
||||||
Visible(true);
|
Visible(true);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -274,11 +274,12 @@ void CQuest_Status::Compute_UI(_int Index)
|
|||||||
m_vUV = UV;
|
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;
|
m_iIndex = Index;
|
||||||
Compute_UI(Index);
|
Compute_UI(Index);
|
||||||
MoveY(m_fPosY);
|
MoveX(PosX);
|
||||||
|
MoveY(PosY);
|
||||||
m_pName = Name;
|
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()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -189,7 +189,12 @@ HRESULT CTroll::Render()
|
|||||||
}
|
}
|
||||||
for (_uint i = 0; i < iNumMeshes; i++)
|
for (_uint i = 0; i < iNumMeshes; i++)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||||
|
"g_OffsetMatrix",
|
||||||
|
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||||
|
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||||
|
)))
|
||||||
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,6 +206,8 @@ HRESULT CTroll::Render()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||||
|
|
||||||
if (FAILED(m_pModelCom->Render(i))) {
|
if (FAILED(m_pModelCom->Render(i))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,16 +43,7 @@ HRESULT CWand::Initialize(void* pArg)
|
|||||||
|
|
||||||
void CWand::Priority_Update(_float fTimeDelta)
|
void CWand::Priority_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
_matrix socketMatrix = {};
|
|
||||||
|
|
||||||
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
|
|
||||||
|
|
||||||
for (int i = 0; i < 3; ++i) {
|
|
||||||
socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
|
|
||||||
XMStoreFloat4x4(&m_pWandTipMatrix, XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Effect")) * m_pTransformCom->Get_XMWorldMatrix());
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
Describe_Entity();
|
Describe_Entity();
|
||||||
@@ -68,6 +59,17 @@ void CWand::Update(_float fTimeDelta)
|
|||||||
|
|
||||||
void CWand::Late_Update(_float fTimeDelta)
|
void CWand::Late_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
|
_matrix socketMatrix = {};
|
||||||
|
|
||||||
|
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
|
||||||
|
|
||||||
|
for (int i = 0; i < 3; ++i) {
|
||||||
|
socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
|
||||||
|
XMStoreFloat4x4(&m_pWandTipMatrix, XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Effect")) * m_pTransformCom->Get_XMWorldMatrix());
|
||||||
|
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
|
||||||
ENEMY_DETECTION, INTERACTION_OBJECT, END };
|
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 , DISTORTION ,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 , DISTORTION ,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 EFFECT_TYPE { EFFECT, TRAIL, END };
|
||||||
enum class SKILL_TYPE {
|
enum class SKILL_TYPE {
|
||||||
ARRESTO_MOMENTUM, GLACIUS, LEVIOSO, TRANSFORM, // 노란색
|
ARRESTO_MOMENTUM, GLACIUS, LEVIOSO, TRANSFORM, // 노란색
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user