Merge pull request #496 from SpicyGangjeong/UI

[Add] 스펠 배우는거 추가
This commit is contained in:
qordlsgur
2025-12-19 18:04:56 +09:00
committed by GitHub
10 changed files with 26 additions and 20 deletions
@@ -86,7 +86,9 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
void CCamera_Debug::Update(_float fTimeDelta)
{
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
}
void CCamera_Debug::Late_Update(_float fTimeDelta)
@@ -207,7 +207,7 @@ void CInfoInstance::Key_Input(_uint Input)
Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
}
break;
case ENUM_CLASS(KEYINPUT::INPUT_N):
case ENUM_CLASS(KEYINPUT::INPUT_ESPACE):
if (m_eUI_State == UI_STATE::GAMEPLAYER)
{
m_eUI_State = UI_STATE::SPELLNEARN;
@@ -74,6 +74,7 @@ HRESULT CPlayer::InputAction()
|| m_pGameInstance->Key_Down(DIK_B)
|| m_pGameInstance->Key_Down(DIK_T)
|| m_pGameInstance->Key_Down(DIK_TAB)
|| m_pGameInstance->Key_Down(DIK_ESCAPE)
)
{
if (m_pGameInstance->Key_Down(DIK_T)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_T));
@@ -81,7 +82,7 @@ HRESULT CPlayer::InputAction()
if (m_pGameInstance->Key_Down(DIK_X)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_X));
if (m_pGameInstance->Key_Down(DIK_G)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_G));
if (m_pGameInstance->Key_Down(DIK_Z)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_Z));
if (m_pGameInstance->Key_Down(DIK_N)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_N));
if (m_pGameInstance->Key_Down(DIK_ESCAPE)) m_pInfoInstance->Key_Input(ENUM_CLASS(KEYINPUT::INPUT_ESPACE));
return S_OK;
}
}
@@ -129,7 +129,11 @@ HRESULT CQuest_Info::Render()
return E_FAIL;
}
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest ,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));
if (m_iQuest_Index != 0)
{
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, 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;
}
@@ -129,8 +129,11 @@ HRESULT CQuest_Info_Header::Render()
return E_FAIL;
}
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, 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));
if (m_iQuest_Index != 0)
{
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, 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;
}
+1 -1
View File
@@ -77,7 +77,7 @@ namespace Client
enum class KEYINPUT
{
INPUT_1 = 1, INPUT_2, INPUT_3, INPUT_4,
INPUT_T, INPUT_G, INPUT_X, INPUT_Z, INPUT_N,
INPUT_T, INPUT_G, INPUT_X, INPUT_Z, INPUT_ESPACE,
INPUT_TAB,
DIM_RBUTTON_UP, DIM_RBUTTON_DOWN,
END
@@ -629,12 +629,18 @@ call Update_Lib.bat
<None Include="..\Public\fMod\fmod_errors.cs" />
</ItemGroup>
<ItemGroup>
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Distortion.hlsl" />
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Distortion.hlsl">
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
</FxCompile>
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Instance_Compute.hlsl">
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
</FxCompile>
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Local_Compute.hlsl" />
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Local_Compute.hlsl">
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
</FxCompile>
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Mesh_Compute.hlsl">
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
+2 -2
View File
@@ -1821,7 +1821,7 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
#ifndef _DEBUG
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix)
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix, _uint iLevel)
{
m_eType = eType;
@@ -1839,7 +1839,7 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
return E_FAIL;
}
if (FAILED(Ready_Materials(pModelFilePath))) {
if (FAILED(Ready_Materials(pModelFilePath, iLevel))) {
return E_FAIL;
}
if (MODEL::PBR_ANIM == m_eType || MODEL::PBR_NONANIM == m_eType) {
@@ -496,15 +496,6 @@ HRESULT CRenderTarget_Manager::Finish_RenderTarget(CVIBuffer_Rect* pVIBuffer, CS
return S_OK;
}
_float2 CRenderTarget_Manager::Get_RenderTargetSize(const _wstring& wstrTargetKey)
{
CRenderTarget* pRenderTarget = Find_RenderTarget(wstrTargetKey);
if (nullptr == pRenderTarget) {
return _float2();
}
return pRenderTarget->Get_TargetSize();
}
HRESULT CRenderTarget_Manager::End_MRT()
{
@@ -22,7 +22,6 @@ class CRenderTarget final : public CBase
void Copy_ResourceFrom(ID3D11Texture2D* pTexture2D);
void Copy_ResourceFrom(const CRenderTarget& Target);
void Get_TextureDesc(D3D11_TEXTURE2D_DESC& Desc);
_float2 Get_TargetSize() { return m_vTargetSize; };
#ifdef _DEBUG
public: