diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index ce14fe11d..4bf4d03e7 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -1892,13 +1892,13 @@ PS_OUT PS_SpellLearnBooster(PS_IN In)
float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
Color = lerp(Color, tex3, tex3.a);
- }
+ }
else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
{
float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
tex2.rgb *= float3(1.f, 0.f, 0.f);
- Color = tex;
+ Color = tex;
Color = lerp(Color, tex2, tex2.a);
}
@@ -2259,23 +2259,21 @@ PS_OUT PS_Interaction_Npc(PS_IN In)
float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
Color = tex1;
-
- if (g_iHover != 0)
- {
- float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
- bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
- if (inside1)
- {
- float2 startUV = g_fImageUV.xy;
- float2 endUV = g_fImageUV.zw;
- float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
- Color = lerp(Color, tex2, tex2.a);
- }
+ float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
+ bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
+ if (inside1)
+ {
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+ float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
+ Color = lerp(Color, tex2, tex2.a);
+
}
+
Color.a *= Alpha;
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index e153fc08a..84e2df0f2 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -170,6 +170,7 @@ call Update_Resources.bat
+
@@ -412,6 +413,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 941f1382a..42bd5e443 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -745,6 +745,9 @@
02.GameObjects\Cameras\CameraPosition\AI
+
+
+ 04.Mechanic\Dialogue\Dialogue_Data
@@ -1550,6 +1553,9 @@
{a24f4687-f540-44e5-ae47-fe176c4c9042}
+
+
+ {b03591a7-a14e-425a-8a3f-2a6a054c884a}
@@ -2243,6 +2249,9 @@
02.GameObjects\Cameras\CameraPosition\AI
+
+
+ 04.Mechanic\Dialogue\Dialogue_Data
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
new file mode 100644
index 000000000..e32387fbb
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
@@ -0,0 +1,102 @@
+#include "pch.h"
+#include "Dialogue_Data.h"
+#include "GameObject.h"
+#include "tinyxml2.h"
+#include "InfoInstance.h"
+
+CDialogue_Data::CDialogue_Data()
+ :m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CDialogue_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
+{
+ Load_SpellInfo("../Bin/Resources/Data/UI/Dialogue/Dialogue.xml");
+
+ return S_OK;
+}
+
+void CDialogue_Data::Update(_float fTimeDelta)
+{
+}
+
+HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
+{
+ tinyxml2::XMLDocument doc;
+ if (doc.LoadFile(pFilePath) != tinyxml2::XML_SUCCESS)
+ return E_FAIL;
+
+ tinyxml2::XMLElement* pDialogueInfo = doc.FirstChildElement("DialogueInfo");
+ if (!pDialogueInfo) return E_FAIL;
+
+ tinyxml2::XMLElement* pDialogue = pDialogueInfo->FirstChildElement("Dialogue");
+ while (pDialogue)
+ {
+ NpcDialogue npc{};
+ pDialogue->QueryIntAttribute("NpcID", &npc.iNpcID);
+
+ tinyxml2::XMLElement* pLine = pDialogue->FirstChildElement("Line");
+ while (pLine)
+ {
+ DialogueInfo line{};
+ pLine->QueryIntAttribute("ID", &line.iLineID);
+
+ int type = 0;
+ pLine->QueryIntAttribute("Type", &type);
+ line.bType = (type == 1);
+
+ const char* text = pLine->Attribute("Text");
+ if (text) line.pText = CMyTools::ToWstring(text);
+
+ pLine->QueryIntAttribute("NextText", &line.NextTextID);
+
+ // 선택지 처리
+ tinyxml2::XMLElement* pChoice = pLine->FirstChildElement("Choice");
+ while (pChoice)
+ {
+ DialogueChoice choice{};
+ int choiceType = 0;
+ pChoice->QueryIntAttribute("Type", &choiceType);
+ choice.eType = choiceType;
+
+ const char* choiceText = pChoice->Attribute("Text");
+ if (choiceText) choice.pText = CMyTools::ToWstring(choiceText);
+
+ pChoice->QueryIntAttribute("NextText", &choice.NextTypeID);
+
+ line.ChoiceInfo.push_back(choice);
+ pChoice = pChoice->NextSiblingElement("Choice");
+ }
+
+ npc.Info.push_back(line);
+ pLine = pLine->NextSiblingElement("Line");
+ }
+
+ m_DialogueInfo.push_back(npc);
+ pDialogue = pDialogue->NextSiblingElement("Dialogue");
+ }
+ return S_OK;
+}
+
+const NPCDIALOGUEINFO& CDialogue_Data::Get_Info(_uint DialogueID) const
+{
+ return m_DialogueInfo[DialogueID];
+}
+
+CDialogue_Data* CDialogue_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CDialogue_Data* pInstance = new CDialogue_Data();
+
+ if (FAILED(pInstance->Initialize(pDevice, pContext)))
+ {
+ MSG_BOX("Failed to Created : CDialogue_Data");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CDialogue_Data::Free()
+{
+ __super::Free();
+}
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index 9ab778ef6..70e96f3aa 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -368,7 +368,7 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
if (FAILED(Stat_FileLoad("../Bin/Resources/Data/Stat/Stat.xml"))) {
return E_FAIL;
}
- if (FAILED(Stat_FileLoad("../Bin/Resources/Data/Stat/NpcStat.xml"))) {
+ if (FAILED(NPC_FileLoad("../Bin/Resources/Data/Stat/NpcStat.xml"))) {
return E_FAIL;
}
#pragma endregion
diff --git a/Jusin154_Team3D/Client/Private/Loding_Panel.cpp b/Jusin154_Team3D/Client/Private/Loding_Panel.cpp
index af019652a..38efcfd65 100644
--- a/Jusin154_Team3D/Client/Private/Loding_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Loding_Panel.cpp
@@ -101,9 +101,9 @@ HRESULT CLoding_Panel::Render()
if (FAILED(m_pVIBufferCom->Render())) {
return E_FAIL;
}
- m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("<- N M ->."), _float2(100.f, 750.f));
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("<- N M ->."), _float2(50.f, 850.f));
- m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip[m_iToolTip_Count].c_str(), _float2(100.f, 800.f));
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip[m_iToolTip_Count].c_str(), _float2(50.f, 900.f));
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
index d2fd97c23..020a65e67 100644
--- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
+++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
@@ -82,11 +82,6 @@ void CNPCInteraction::NpcInfo(_wstring Name)
m_NpcName = Name;
}
-void CNPCInteraction::Interaction(_bool bInteraction)
-{
- m_bInteraction = bInteraction;
-}
-
void CNPCInteraction::Priority_Update(_float fTimeDelta)
{
@@ -169,15 +164,12 @@ HRESULT CNPCInteraction::Render()
m_NpcName.c_str(),
m_vFontPosition);
- if (m_bInteraction == true)
- {
- m_pGameInstance->Perspective_Render_Text(
- m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
- m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
- TEXT("Font_size15"),
- TEXT("대화하기"),
- m_vPosition);
- }
+ m_pGameInstance->Perspective_Render_Text(
+ m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
+ m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
+ TEXT("Font_size15"),
+ TEXT("대화하기"),
+ m_vPosition);
return S_OK;
@@ -243,10 +235,6 @@ HRESULT CNPCInteraction::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bInteraction, sizeof(_bool))))
- {
- return E_FAIL;
- }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
index 57f672cc2..8a9aff9a6 100644
--- a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
+++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
@@ -33,20 +33,6 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
-
- if (false == m_bHasInteracted)
- {
- if (true == InteractWithPlayer()) {
- m_vEnteringTimer.x += fTimeDelta;
- if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
- m_vEnteringTimer.x -= m_vEnteringTimer.y;
- m_bHasInteracted = true;
- // Active();
- }
- }
- }
-
-
if (false == m_bEntered)
{
if (true == CastToPlayer()) {
@@ -54,7 +40,6 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
m_vEnteringTimer.x -= m_vEnteringTimer.y;
m_bEntered = true;
- m_bHasInteracted = false;
// Active();
}
#ifdef _DEBUG
@@ -73,7 +58,6 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
m_vEnteringTimer.x -= m_vEnteringTimer.y;
m_bEntered = false;
- m_bHasInteracted = false;
// DeActive(), Ready To Enter;
}
#ifdef _DEBUG
@@ -116,9 +100,8 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
}
m_pNPCInteraction->Set_Visible(m_bEntered);
- m_pNPCInteraction->Interaction(m_bHasInteracted);
- if (m_bHasInteracted == true)
+ if (m_bEntered == true)
{
if (m_pGameInstance->Key_Down(DIK_F))
{
@@ -253,19 +236,6 @@ _bool CNPC_Ollivander::CastToPlayer()
return false;
}
-_bool CNPC_Ollivander::InteractWithPlayer()
-{
- _vector vCurrentPos = m_pTransformCom->Get_State(STATE::POSITION);
- _vector vTargetPos = {};
- pair pairAllyInfo = m_pInfoInstance->Get_NearestPlayerAlly(m_pTransformCom->Get_State(STATE::POSITION));
- vTargetPos = pairAllyInfo.second->Get_State(STATE::POSITION);
- _float fLength = XMVectorGetX(XMVector4Length(vTargetPos - vCurrentPos));
- if (fLength < m_fInteractionDistance) {
- return true;
- }
- return false;
-}
-
HRESULT CNPC_Ollivander::Initialize_Prototype()
{
return S_OK;
@@ -337,7 +307,7 @@ HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
m_pCharacter_Controller->SetGravity(true);
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("OLLIVENDER"), (CComponent**)&m_pStat))) {
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("OLLIVENDER"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
@@ -345,7 +315,7 @@ HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
return E_FAIL;
}
- m_pNPCInteraction->NpcInfo(m_pStat->Get_Stat().pNpc_Name);
+ m_pNPCInteraction->NpcInfo(m_pNpcStat->Get_Stat().pNpc_Name);
return S_OK;
}
@@ -379,7 +349,7 @@ void CNPC_Ollivander::Free()
__super::Free();
SAFE_RELEASE(m_pCharacter_Controller);
- SAFE_RELEASE(m_pStat);
+ SAFE_RELEASE(m_pNpcStat);
if (nullptr != m_pInfoInstance) {
CInfoInstance* pInfo = m_pInfoInstance;
m_pInfoInstance = nullptr;
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index 36a92c40e..e2bc1b266 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -2706,7 +2706,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION_SIDE, Get_PartObject()); },
0.f);
- Info.pText = TEXT("봄바르다");
+ Info.pText = TEXT("베라베르토!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
break;
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index 8a0ec6a09..7a17c270d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -37,6 +37,28 @@ namespace Client
_float fVidio{};
}SPELL_INFO;
+ typedef struct DialogueChoice
+ {
+ _int eType = {false};
+ _wstring pText;
+ _int NextTypeID{};
+ }DIALOGUECHOICEINFO;
+
+ typedef struct DialogueInfo
+ {
+ _int iLineID{};
+ _bool bType = {false};
+ _wstring pText;
+ _int NextTextID{};
+ vector ChoiceInfo;
+ }CURRENTDIALOGUEINFO;
+
+ typedef struct NpcDialogue
+ {
+ _int iNpcID{};
+ vector Info;
+ }NPCDIALOGUEINFO;
+
typedef struct tagLockOnInfo {
CUnit* pUnit = { nullptr };
class CMapElement_Interactable* pInteractive = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Data.h b/Jusin154_Team3D/Client/Public/Dialogue_Data.h
new file mode 100644
index 000000000..a9abb91a3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Dialogue_Data.h
@@ -0,0 +1,45 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Base.h"
+
+NS_BEGIN(Engine)
+class CGameInstance;
+class CUIObject;
+NS_END
+
+NS_BEGIN(Client)
+
+class CDialogue_Data final : public CBase
+{
+public:
+
+private:
+ CDialogue_Data();
+ ~CDialogue_Data() = default;
+
+public:
+ void Update(_float fTimeDelta);
+
+public:
+ HRESULT Load_SpellInfo(const _char* pFilePath);
+
+public:
+ const NPCDIALOGUEINFO& Get_Info(_uint DialogueID) const;
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+
+ _int m_iDialogue_Count{};
+ vector m_DialogueInfo;
+
+private:
+ HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
+
+
+public:
+ static CDialogue_Data* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/NPCInteraction.h b/Jusin154_Team3D/Client/Public/NPCInteraction.h
index 65dc9d7c8..6a2955456 100644
--- a/Jusin154_Team3D/Client/Public/NPCInteraction.h
+++ b/Jusin154_Team3D/Client/Public/NPCInteraction.h
@@ -32,7 +32,6 @@ class CNPCInteraction final : public CGameObject
public:
void NpcInfo(_wstring Name);
- void Interaction(_bool bInteraction);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
@@ -41,8 +40,6 @@ class CNPCInteraction final : public CGameObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
- _bool m_bInteraction = {false};
-
_vector m_vFontPosition{};
_vector m_vFontPosition1{};
diff --git a/Jusin154_Team3D/Client/Public/NPC_Ollivander.h b/Jusin154_Team3D/Client/Public/NPC_Ollivander.h
index 7b98e877a..f78ef2a6a 100644
--- a/Jusin154_Team3D/Client/Public/NPC_Ollivander.h
+++ b/Jusin154_Team3D/Client/Public/NPC_Ollivander.h
@@ -32,21 +32,18 @@ class CNPC_Ollivander final : public CUnit
CUnit* m_pPlayerAllyUnit = { nullptr };
CNPC_Ollivander* m_pNPC_Ollivander = { nullptr };
- class CNPCInteraction* m_pNPCInteraction = { nullptr };
+ class CNPCInteraction* m_pNPCInteraction = { nullptr };
- CNPCStat* m_pStat = { nullptr };
- _bool m_bEntered = { false };
- _bool m_bHasInteracted = { false };
- _float2 m_vEnteringTimer = { 0.f, 1.f };
- _float m_fEncounterDistance = { 10.f };
- _float m_fInteractionDistance = { 3.f };
+ CNPCStat* m_pNpcStat = { nullptr };
+ _bool m_bEntered = { false };
+ _float2 m_vEnteringTimer = { 0.f, 1.f };
+ _float m_fEncounterDistance = { 3.f };
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
_bool CastToPlayer();
- _bool InteractWithPlayer();
public:
static CNPC_Ollivander* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
index 90814474e..d49d0319b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
@@ -1,6 +1,11 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml
index c1a89d003..194e17680 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index ce14fe11d..4bf4d03e7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -1892,13 +1892,13 @@ PS_OUT PS_SpellLearnBooster(PS_IN In)
float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
Color = lerp(Color, tex3, tex3.a);
- }
+ }
else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
{
float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
tex2.rgb *= float3(1.f, 0.f, 0.f);
- Color = tex;
+ Color = tex;
Color = lerp(Color, tex2, tex2.a);
}
@@ -2259,23 +2259,21 @@ PS_OUT PS_Interaction_Npc(PS_IN In)
float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
Color = tex1;
-
- if (g_iHover != 0)
- {
- float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
- float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
- float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
- bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
- if (inside1)
- {
- float2 startUV = g_fImageUV.xy;
- float2 endUV = g_fImageUV.zw;
- float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
- float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
- Color = lerp(Color, tex2, tex2.a);
- }
+ float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
+ bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
+ if (inside1)
+ {
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+ float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
+ Color = lerp(Color, tex2, tex2.a);
+
}
+
Color.a *= Alpha;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_AccioBallFrame_4K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_AccioBallFrame_4K.png
new file mode 100644
index 000000000..ac6a0b938
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_AccioBallFrame_4K.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right.png
new file mode 100644
index 000000000..70e003d31
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right_Mask.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right_Mask.png
new file mode 100644
index 000000000..711702470
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BRFlag_Right_Mask.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BR_BestTime_Trophy.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BR_BestTime_Trophy.png
new file mode 100644
index 000000000..ed6cef853
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_BR_BestTime_Trophy.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Collections_Brooms.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Collections_Brooms.png
new file mode 100644
index 000000000..d14316d67
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Collections_Brooms.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_CountdownDisolveGlow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_CountdownDisolveGlow.png
new file mode 100644
index 000000000..304438d0e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_CountdownDisolveGlow.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_MainDivider_Horz_4K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_MainDivider_Horz_4K.png
new file mode 100644
index 000000000..7edde549e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_MainDivider_Horz_4K.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Map_RaceGate.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Map_RaceGate.png
new file mode 100644
index 000000000..6521aa397
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_Map_RaceGate.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_SilverNotificationBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_SilverNotificationBack.png
new file mode 100644
index 000000000..84d975c3e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/BroomFlight/UI_T_SilverNotificationBack.png differ
diff --git a/Jusin154_Team3D/Engine/Private/NPCStat.cpp b/Jusin154_Team3D/Engine/Private/NPCStat.cpp
index a1e98016c..fcb9499a4 100644
--- a/Jusin154_Team3D/Engine/Private/NPCStat.cpp
+++ b/Jusin154_Team3D/Engine/Private/NPCStat.cpp
@@ -16,9 +16,10 @@ CNPCStat::CNPCStat(const CNPCStat& rhs)
HRESULT CNPCStat::Initialize_Prototype(tinyxml2::XMLNode* pChild)
{
auto pElement = pChild->ToElement();
+ pElement->QueryIntAttribute("ID", &m_NpcInfo.iID);
m_NpcInfo.pNpc_Name = CMyTools::ToWstring(pElement->Attribute("Name"));
- pElement->QueryIntAttribute("OBJECTID", &m_NpcInfo.iNpcType);
- pElement->QueryFloatAttribute("HP", &m_NpcInfo.fFontPos);
+ pElement->QueryIntAttribute("TAG", &m_NpcInfo.iNpcType);
+ pElement->QueryFloatAttribute("SizeX", &m_NpcInfo.fFontPos);
return S_OK;
}
diff --git a/Jusin154_Team3D/Engine/Public/NPCStat.h b/Jusin154_Team3D/Engine/Public/NPCStat.h
index 2789745eb..97ab4669c 100644
--- a/Jusin154_Team3D/Engine/Public/NPCStat.h
+++ b/Jusin154_Team3D/Engine/Public/NPCStat.h
@@ -8,6 +8,7 @@ class ENGINE_DLL CNPCStat final : public CComponent
{
typedef struct tagNpcInfo
{
+ _int iID{};
_wstring pNpc_Name;
_int iNpcType{};
_float fFontPos{};