[Modify] 수

This commit is contained in:
qordlsgur
2026-01-30 12:15:26 +09:00
parent 6ca37c15cb
commit 0ecd6de2ae
9 changed files with 63 additions and 76 deletions
@@ -177,7 +177,6 @@ void CBroomRaceManager::Update(_float fTimeDelta)
}
}
m_bCurrentRace = true;
#ifdef _DEBUG
//Describe_Entity();
#endif // _DEBUG
@@ -521,6 +520,7 @@ void CBroomRaceManager::RaceReady()
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_RACE, SD_CHANNEL_GROUP::BGM, true, 0.8f);
m_bCurrentRace = true;
}
void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
@@ -132,15 +132,13 @@ void CDialogue_Font::Update(_float fTimeDelta)
}
}
if (m_fTime >= 0.f)
if (m_fTime > 0.f)
{
m_fTime -= fTimeDelta;
}
else
{
m_fTime = 0.f;
if (m_fTime <= 0.f)
{
m_fTime = 0.f;
}
}
}
@@ -193,8 +191,6 @@ HRESULT CDialogue_Font::Bind_ShaderResources()
HRESULT CDialogue_Font::Ready_Components(void* pArg)
{
return S_OK;
}
@@ -309,7 +305,6 @@ void CDialogue_Font::NpcNextText()
{
m_Info.pName = m_pName;
}
m_Info.pName = m_pName;
m_Info.pText = Info.pText;
m_Info.fTime = 99999.f;
Npc_Dialogue(m_Info);
@@ -317,6 +312,7 @@ void CDialogue_Font::NpcNextText()
void CDialogue_Font::CHoice()
{
m_NextLevel.clear();
m_bCurrentChoiceText = true;
size_t InfoCount = m_pInfoInstance->Get_Dialogue(m_pNpcName, m_iTextID).ChoiceInfo.size();
for (size_t i = 0; i < InfoCount; ++i)
@@ -350,7 +346,6 @@ void CDialogue_Font::Quest()
if (m_bChoiceText == true)
{
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
ENDText();
}
@@ -387,24 +382,21 @@ void CDialogue_Font::ENDText()
m_bBattle = false;
vector<_int> Dummy;
m_NextLevel.swap(Dummy);
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end(); ++it)
{
(*it)->Set_Hover(false);
(*it)->Visible(false);
m_DialoguInfo.push_back((*it));
it = m_pCurrentDialogue.erase(it);
(*it)->Set_Time(3.f);
}
}
void CDialogue_Font::ReSet()
{
NPCINTERACT Interact{};
Interact.bInteract = false;
Interact.fAlpha = 1.f;
Interact.fAlpha = 0.f;
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha);
m_pNpc->Set_NextID(m_iTextID);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteraction"), &Interact);
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
m_bChoiceText = false;
m_bCurrentChoiceText = false;
@@ -451,11 +443,22 @@ void CDialogue_Font::Quest_Complete()
}
void CDialogue_Font::NextText()
{
if (m_bChoiceText == true)
{
m_bChoiceText = false;
m_bCurrentChoiceText = false;
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
}
Skip();
NpcDialogue();
}
void CDialogue_Font::Skip()
{
m_pCurrentDialogue[0]->Visible(false);
m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
NpcDialogue();
}
void CDialogue_Font::NextLevel(CHOICEINFO Choice)
@@ -464,7 +467,9 @@ void CDialogue_Font::NextLevel(CHOICEINFO Choice)
m_iType = Choice.iType;
m_iQuestID = Choice.QuestID;
m_bChoiceText = true;
NpcNextText();
Skip();
if (m_iType != 0)
NpcNextText();
}
void CDialogue_Font::NextText(_int Index)
+8 -9
View File
@@ -71,15 +71,15 @@ void CElf::Update(_float fTimeDelta)
Set_Anim();
if (m_pGameInstance->Key_Down(DIK_U))
{
m_iCurrentFlow++;
}
//if (m_pGameInstance->Key_Down(DIK_U))
//{
// m_iCurrentFlow++;
//}
if (m_bFlow == true)
{
m_fFlowTime -= fTimeDelta;
}
//if (m_bFlow == true)
//{
// m_fFlowTime -= fTimeDelta;
//}
if (m_fFlowTime <= 0.f && m_bFlow == true)
{
@@ -247,7 +247,6 @@ _int CElf::Get_NpcID()
void CElf::Set_Flow(_int Index, _float fTime)
{
m_iFlowIndex = Index;
m_fFlowTime = fTime;
m_bFlow = true;
}
@@ -108,14 +108,20 @@ void CHuman_Duelist::Update(_float fTimeDelta)
pPlayer->ExitBattle();
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_HOGWART_0, SD_CHANNEL_GROUP::BGM, true, 0.8f);
m_bBattleEnd = false;
}
}
Play_Event();
if (m_fBattleEndTimer >= 2.f)
{
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
m_pGameInstance->Sound_StopChannel(SD_CHANNEL_GROUP::BGM);
m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_HOGWART_0, SD_CHANNEL_GROUP::BGM, true, 0.8f);
}
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
+1 -1
View File
@@ -2466,7 +2466,7 @@ HRESULT CLoader::Loading_For_GamePlay()
CVIBuffer_UI_Instance::UI_INSTANCE_DESC Quest_Slot_Desc{};
Quest_Slot_Desc.iNum = 10;
Quest_Slot_Desc.iNum = 6;
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)))) {
+15 -7
View File
@@ -268,9 +268,17 @@ void CUI_Manager::Update(_float fTimeDelta)
if (m_bCurrentNPCInteract == true && m_bNPCInteract == false)
{
m_fAlphaVelue = 1.f;
m_bCurrentNPCInteract = m_bNPCInteract;
if (m_bCurrentNPCInteract != m_bNPCInteract)
m_bCurrentNPCInteract = m_bNPCInteract;
if (m_bActive == false)
if (m_eType == UI_STATE::NPC_INTERACT)
{
Canvas_Change(UI_STATE::GAMEPLAYER);
}
/*if (m_bActive == false)
{
m_bActive = true;
m_bAlphaZero = true;
@@ -278,7 +286,7 @@ void CUI_Manager::Update(_float fTimeDelta)
{
m_eType = UI_STATE::GAMEPLAYER;
}
}
}*/
}
if (m_bActive == true && m_bHover == false)
@@ -629,11 +637,11 @@ void CUI_Manager::NpcInteract(void* pArg)
NPCINTERACT Interact = *reinterpret_cast<NPCINTERACT*>(pArg);
m_bNPCInteract = Interact.bInteract;
m_bHover = Interact.bInteract;
m_bActive = Interact.bInteract;
m_fAlpha= Interact.fAlpha;
m_bAlphaZero = true;
m_fAlphaVelue = 1.f;
//m_bHover = Interact.bInteract;
//m_bActive = Interact.bInteract;
//m_fAlpha= Interact.fAlpha;
//m_bAlphaZero = true;
//m_fAlphaVelue = 1.f;
}
void CUI_Manager::Chage()
@@ -44,6 +44,7 @@ class CDialogue_Font final : public CGameObject
void Npc_Dialogue(DIALOGUEINFO Info);
void NextText();
void Skip();
void NextLevel(CHOICEINFO Choice);
void ENDText();
void NextText(_int Index);
@@ -40,7 +40,7 @@
<Choice Type="4" Text="네. 이제 갑시다." NextID="4" QuestID="6"/>
<Choice Type="0" Text="조금만 더 생각할게요." NextID="3" QuestID="-1"/>
</Line>
<Line ID="20" Tag="1" Type="1" Text="…두려움을 느끼는 건 정상일세." NextID="21"/>
<Line ID="20" Tag="1" Type="1" Text="두려움을 느끼는 건 정상일세." NextID="21"/>
<Line ID="21" Tag="1" Type="1" Text="하지만 란록은 기다려주지 않아." NextID="22"/>
<Line ID="22" Tag="1" Type="1" Text="시간이 지날수록, 상황은 더 나빠질 걸세." NextID="23"/>
<Line ID="23" Tag="1" Type="2" Text="그래도 떠나기 전에 정비하겠나?" NextID="23">
@@ -42,15 +42,7 @@
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
<Quest QuestID="5" QuestType="Main" QuestName="어디갔어 내 노예!" QuestInfo="숨어있는 도비 찾기" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="2" QuestInfo="찾은 수" CurrentCount="0" RequiredCount="1"/>
</Objectives>
<Rewards>
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
<Quest QuestID="6" QuestType="Main" QuestName="드래곤 슬레이어!" QuestInfo="용으로 변신한 란록 처치하기" AcceptState="0">
<Quest QuestID="5" QuestType="Main" QuestName="드래곤 슬레이어!" QuestInfo="용으로 변신한 란록 처치하기" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="4" QuestInfo="란록" CurrentCount="0" RequiredCount="1"/>
</Objectives>
@@ -58,29 +50,5 @@
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
<Quest QuestID="7" QuestType="Main" QuestName="ghjk!" QuestInfo="ghjk" AcceptState="0">
<Objectives>
<Objective Type="0" TargetID="2" QuestInfo="결투 승리" CurrentCount="0" RequiredCount="1"/>
</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" QuestInfo="결투 승리" CurrentCount="0" RequiredCount="1"/>
</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" QuestInfo="결투 승리" CurrentCount="0" RequiredCount="1"/>
</Objectives>
<Rewards>
<Reward Type="1" Value="BOMBARDA"/>
</Rewards>
</Quest>
</QuestData>
</QuestInfo>
</QuestInfo>