IMGUI 수정중
This commit is contained in:
@@ -170,14 +170,12 @@
|
||||
<ClInclude Include="..\Public\Editor_Macro.h" />
|
||||
<ClInclude Include="..\Public\Editor_Struct.h" />
|
||||
<ClInclude Include="..\Public\Level_EffectViewer.h" />
|
||||
<ClInclude Include="..\public\LodingWidget1.h" />
|
||||
<ClInclude Include="..\public\IMGUIUI.h" />
|
||||
<ClInclude Include="..\public\LoadingWidget.h" />
|
||||
<ClInclude Include="..\public\LoadingWidget_Flame.h" />
|
||||
<ClInclude Include="..\public\Loading_Panel.h" />
|
||||
<ClInclude Include="..\public\MiniMap_Panel.h" />
|
||||
<ClInclude Include="..\public\MiniMap_TrimBorder.h" />
|
||||
<ClInclude Include="..\public\Mission.h" />
|
||||
<ClInclude Include="..\Public\Head.h" />
|
||||
<ClInclude Include="..\public\Mission_Panel.h" />
|
||||
<ClInclude Include="..\Public\Level_Loading.h" />
|
||||
@@ -217,14 +215,12 @@
|
||||
<ClCompile Include="..\Private\Dummy_Goblin.cpp" />
|
||||
<ClCompile Include="..\Private\Loader.cpp" />
|
||||
<ClCompile Include="..\Private\Level_EffectViewer.cpp" />
|
||||
<ClCompile Include="..\private\LodingWidget1.cpp" />
|
||||
<ClCompile Include="..\private\IMGUIUI.cpp" />
|
||||
<ClCompile Include="..\private\LoadingWidget.cpp" />
|
||||
<ClCompile Include="..\private\LoadingWidget_Flame.cpp" />
|
||||
<ClCompile Include="..\private\Loading_Panel.cpp" />
|
||||
<ClCompile Include="..\private\MiniMap_Panel.cpp" />
|
||||
<ClCompile Include="..\private\MiniMap_TrimBorder.cpp" />
|
||||
<ClCompile Include="..\private\Mission.cpp" />
|
||||
<ClCompile Include="..\Private\Dummy_Goblin_Head.cpp" />
|
||||
<ClCompile Include="..\Private\Head.cpp" />
|
||||
<ClCompile Include="..\private\Mission_Panel.cpp" />
|
||||
|
||||
@@ -103,9 +103,6 @@
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor">
|
||||
<UniqueIdentifier>{5b31b993-b137-42d2-b737-000aeb27a675}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\LodingWidget1">
|
||||
<UniqueIdentifier>{167182ec-ed5f-46fc-9c27-a82e327fa1ac}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\IMGUIUI">
|
||||
<UniqueIdentifier>{f60f1948-8c11-4796-843a-8c38f10043e3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -243,9 +240,6 @@
|
||||
<ClInclude Include="..\Public\Effect_Editor.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\LodingWidget1.h">
|
||||
<Filter>50.UI\LodingWidget1</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\LoadingWidget.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget</Filter>
|
||||
</ClInclude>
|
||||
@@ -379,9 +373,6 @@
|
||||
<ClCompile Include="..\Private\Effect_Editor.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\LodingWidget1.cpp">
|
||||
<Filter>50.UI\LodingWidget1</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\LoadingWidget.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Loding_Panel\LoadingWidget</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -92,10 +92,7 @@ HRESULT CGamePlay_Canvas::Ready_Components(void* pArg)
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMiniMap_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &Minimap_Panel)))
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
|
||||
CGameObject* asdf = this;
|
||||
@@ -108,10 +105,17 @@ HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
|
||||
{
|
||||
CGameObject* asdf = this;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLoading_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &Loading_Panel)))
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLoading_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pLoading_Panel)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("LoadingPanel"), m_pLoading_Panel);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMiniMap_Panel>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pMinimap_Panel)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
Add_Panel(TEXT("Minimap"), m_pMinimap_Panel);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
#include "IMGUIUI.h"
|
||||
#include "UIObject.h"
|
||||
#include "GamePlay_Canvas.h"
|
||||
#include "PanelObject.h"
|
||||
#include "ElementObject.h"
|
||||
#include "Mouse_Cursor.h"
|
||||
|
||||
CIMGUIUI::CIMGUIUI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -25,6 +28,36 @@ HRESULT CIMGUIUI::Initialize(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CIMGUIUI::wstringTostring(vector<std::wstring>& panelNames)
|
||||
{
|
||||
m_pNamestring.clear();
|
||||
m_pName.clear();
|
||||
m_pNamewstring.clear();
|
||||
|
||||
m_pNamewstring = panelNames;
|
||||
|
||||
for (auto& wname : panelNames)
|
||||
{
|
||||
// wstring -> UTF-8 string 변환
|
||||
int size = WideCharToMultiByte(CP_UTF8, 0,
|
||||
wname.c_str(), (int)wname.size(),
|
||||
nullptr, 0, nullptr, nullptr);
|
||||
|
||||
std::string result(size, 0);
|
||||
|
||||
WideCharToMultiByte(CP_UTF8, 0,
|
||||
wname.c_str(), (int)wname.size(),
|
||||
&result[0], size, nullptr, nullptr);
|
||||
|
||||
// 변환된 string 저장
|
||||
m_pNamestring.push_back(std::move(result));
|
||||
}
|
||||
|
||||
// vector<const char*> 업데이트
|
||||
for (auto& str : m_pNamestring)
|
||||
m_pName.push_back(str.c_str());
|
||||
}
|
||||
|
||||
void CIMGUIUI::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
@@ -43,8 +76,38 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
|
||||
m_fTimeMult = static_cast<CUIObject*>(m_pElementObject)->Get_TimeMult();
|
||||
}
|
||||
GUI::Begin("Current_UIObject_Info");
|
||||
GUI::Begin("Current_PanelObject_Info");
|
||||
if(m_pGamePlay_Canvas != nullptr)
|
||||
{
|
||||
if (m_pGamePlay_Canvas != nullptr)
|
||||
{
|
||||
auto panelNames = static_cast<CCanvasObject*>(m_pGamePlay_Canvas)->Panel_Name();
|
||||
wstringTostring(panelNames);
|
||||
if (GUI::Combo("Panels", &m_iPanelCount, m_pName.data(), static_cast<_int>(m_pName.size())))
|
||||
{
|
||||
m_pPanelObject = static_cast<CCanvasObject*>(m_pGamePlay_Canvas)->Get_Panel(m_pNamewstring[m_iPanelCount]);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pPanelObject != nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
|
||||
GUI::Begin("Current_ElementObject_Info");
|
||||
if (m_pPanelObject != nullptr)
|
||||
{
|
||||
auto ElementNames = static_cast<CPanelObject*>(m_pPanelObject)->Element_Name();
|
||||
wstringTostring(ElementNames);
|
||||
if (GUI::Combo("Panels", &m_iElementCount, m_pName.data(), static_cast<_int>(m_pName.size())))
|
||||
{
|
||||
m_pElementObject = static_cast<CPanelObject*>(m_pPanelObject)->Get_Element(m_pNamewstring[m_iElementCount]);
|
||||
}
|
||||
}
|
||||
if (m_pElementObject != nullptr)
|
||||
{
|
||||
GUI::Text("Origin Position : %.1f, %.1f", static_cast<CUIObject*>(m_pElementObject)->Get_Origin_Position().x, static_cast<CUIObject*>(m_pElementObject)->Get_Origin_Position().y);
|
||||
@@ -86,8 +149,6 @@ void CIMGUIUI::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CIMGUIUI::Late_Update(_float fTimeDelta)
|
||||
@@ -110,6 +171,7 @@ HRESULT CIMGUIUI::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,17 +22,13 @@
|
||||
#include "Mouse_Cursor.h"
|
||||
#include "Head.h"
|
||||
#include "Body.h"
|
||||
#include "Dummy_Goblin.h"
|
||||
#include "Dummy_Cube.h"
|
||||
#include "LodingWidget1.h"
|
||||
#include "LoadingWidget.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
#include "Active_Icon.h"
|
||||
|
||||
#include "MiniMap_Panel.h"
|
||||
#include "MiniMap_TrimBorder.h"
|
||||
|
||||
#include "Loading_Panel.h"
|
||||
#include "LoadingWidget.h"
|
||||
#include "LoadingWidget_Flame.h"
|
||||
|
||||
#include "IMGUIUI.h"
|
||||
@@ -235,7 +231,7 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LodingWidget1"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LoadingWidget"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Loading/LoadingWidget.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -255,43 +251,21 @@ HRESULT CLoader::Loading_For_UI()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Mission_Main"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Mission/Mission_Main.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("ActiveMission_Icon"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/ActiveMission_Icon_%d.png"), TEXT("ActiveMission_Icon"), 2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("HUD_MiniMap_TrimBorder"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/MiniMap/HUD_MiniMap_TrimBorder.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Mission_Icon"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/Mission_Icon_%d.png"), TEXT("Mission_Icon"), 2)))) {
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/Mission_Icon_%d.png"), 2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("ActiveMission_Icon"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/MiniMap/ActiveMission_Icon_%d.png"), 2)))) {
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/ActiveMission_Icon_%d.png"), 2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Mission_Icon_"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/MiniMap/Mission_Icon_%d.png"), 2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("HUD_MiniMap_TrimBorder"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/MiniMap/HUD_MiniMap_TrimBorder.png"), TEXT("HUD_MiniMap_TrimBorder"), 0)))) {
|
||||
return E_FAIL;
|
||||
|
||||
}
|
||||
|
||||
|
||||
m_strMessage = TEXT("Model Loading..");
|
||||
|
||||
m_strMessage = TEXT("Shader Loading..");
|
||||
@@ -326,10 +300,6 @@ HRESULT CLoader::Loading_For_UI()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLodingWidget1>(g_iStaticLevel, CLodingWidget1::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMission_Panel>(g_iStaticLevel, CMission_Panel::Create(m_pDevice, m_pContext))))
|
||||
{
|
||||
|
||||
@@ -129,7 +129,7 @@ HRESULT CLoadingWidget::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("LodingWidget1"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("LoadingWidget"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ HRESULT CLoadingWidget_Flame::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("LodingWidget1"), reinterpret_cast<CComponent**>(&m_pTextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("LoadingWidget"), reinterpret_cast<CComponent**>(&m_pTextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ HRESULT CLoading_Panel::Initialize(void* pArg)
|
||||
{
|
||||
CUIObject::UIOBJECT_DESC Desc{};
|
||||
|
||||
Desc.fX = 1920.f;
|
||||
Desc.fY = 1080.f;
|
||||
Desc.fX = 500.f;
|
||||
Desc.fY = 500.f;
|
||||
Desc.fSizeX = 100.f;
|
||||
Desc.fSizeY = 100.f;
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ HRESULT CMiniMap_Panel::Bind_ShaderResources()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pTextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -105,6 +105,19 @@ HRESULT CMiniMap_Panel::Bind_ShaderResources()
|
||||
|
||||
HRESULT CMiniMap_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("Keyboard"), 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;
|
||||
}
|
||||
|
||||
@@ -138,7 +151,7 @@ void CMiniMap_Panel::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pTextureCom);
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ void CMouse_Cursor::Priority_Update(_float fTimeDelta)
|
||||
void CMouse_Cursor::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTime += fTimeDelta;
|
||||
//ShowCursor(false);
|
||||
/*ShowCursor(false);*/
|
||||
}
|
||||
|
||||
void CMouse_Cursor::Late_Update(_float fTimeDelta)
|
||||
@@ -57,7 +57,7 @@ void CMouse_Cursor::Late_Update(_float fTimeDelta)
|
||||
POINT m_pPt{};
|
||||
GetCursorPos(&m_pPt);
|
||||
ScreenToClient(g_hWnd, &m_pPt);
|
||||
_vector MousePos = XMVectorSet(static_cast<_float>(m_pPt.x - m_fWinSizeX * 0.5), static_cast<_float>(-m_pPt.y + m_fWinSizeY * 0.5), 0.f, 1.f);
|
||||
_vector MousePos = XMVectorSet(static_cast<_float>(m_pPt.x - m_fWinSizeX * 0.5), static_cast<_float>(-m_pPt.y + m_fWinSizeY * 0.5) - 10.f, 0.f, 1.f);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, MousePos);
|
||||
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
|
||||
@@ -35,9 +35,9 @@ class CGamePlay_Canvas final : public CCanvasObject
|
||||
|
||||
private:
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
//CGameObject* Mission_Panel = { nullptr };
|
||||
//CGameObject* Minimap_Panel = { nullptr };
|
||||
CGameObject* Loading_Panel = { nullptr };
|
||||
//CGameObject* m_pMission_Panel = { nullptr };
|
||||
CGameObject* m_pMinimap_Panel = { nullptr };
|
||||
CGameObject* m_pLoading_Panel = { nullptr };
|
||||
|
||||
public:
|
||||
static CGamePlay_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -30,13 +30,22 @@ class CIMGUIUI final : public CGameObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CGameObject* m_pGamePlay_Canvas = { nullptr };
|
||||
CGameObject* m_pPanelObject = { nullptr };
|
||||
CGameObject* m_pElementObject = { nullptr };
|
||||
_float2 m_fPos{};
|
||||
_float2 m_fSize{};
|
||||
_float3 m_fSizeXY{};
|
||||
_float m_fTimeMult{};
|
||||
void wstringTostring(vector<wstring>& panelNames);
|
||||
|
||||
private:
|
||||
CGameObject* m_pGamePlay_Canvas = { nullptr };
|
||||
CGameObject* m_pPanelObject = { nullptr };
|
||||
CGameObject* m_pElementObject = { nullptr };
|
||||
_float2 m_fPos{};
|
||||
_float2 m_fSize{};
|
||||
_float3 m_fSizeXY{};
|
||||
_float m_fTimeMult{};
|
||||
|
||||
_int m_iPanelCount{};
|
||||
_int m_iElementCount{};
|
||||
vector<wstring> m_pNamewstring;
|
||||
vector<string> m_pNamestring;
|
||||
vector<const _char*> m_pName;
|
||||
|
||||
public:
|
||||
static CIMGUIUI* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -30,7 +30,7 @@ class CLoading_Panel final : public CPanelObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
private:
|
||||
CTexture* m_pTextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CGameObject* m_pMission_KeyHold = { nullptr };
|
||||
|
||||
@@ -82,6 +82,16 @@ CGameObject* CCanvasObject::Get_Panel(const wstring& Name)
|
||||
return Find_Panel(Name);
|
||||
}
|
||||
|
||||
_int CCanvasObject::Panels_Count()
|
||||
{
|
||||
return m_iPanel_Count;
|
||||
}
|
||||
|
||||
const vector<wstring> CCanvasObject::Panel_Name()
|
||||
{
|
||||
return m_PanelNames;
|
||||
}
|
||||
|
||||
void CCanvasObject::Add_Panel(wstring Name, CGameObject* pPanel)
|
||||
{
|
||||
if (pPanel == nullptr)
|
||||
@@ -95,7 +105,9 @@ void CCanvasObject::Add_Panel(wstring Name, CGameObject* pPanel)
|
||||
}
|
||||
|
||||
m_Panels.push_back(pPanel);
|
||||
m_PanelNames.push_back(Name);
|
||||
m_Panels_map.emplace(Name, pPanel);
|
||||
m_iPanel_Count++;
|
||||
}
|
||||
|
||||
CGameObject* CCanvasObject::Find_Panel(const wstring& Name)
|
||||
|
||||
@@ -39,7 +39,10 @@ void CElementObject::Update(_float fTimeDelta)
|
||||
m_vScale = _float3(m_fSizeX, m_fSizeY, 1.f);
|
||||
m_pTransformCom->Set_Scale(m_vScale);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(m_fX - m_fWinSizeX * 0.5f, -m_fY + m_fWinSizeY * 0.5f, 0.f, 1.f) * m_pOwner->Get_WorldPostion());
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(
|
||||
m_fX + m_pOwner->Get_WorldPostion().m128_f32[0],
|
||||
-m_fY + m_pOwner->Get_WorldPostion().m128_f32[1],
|
||||
0.f, 1.f));
|
||||
|
||||
m_fCurrent_Posigion = XMVectorSet(m_fX, m_fY, 0.f, 1.f);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ HRESULT CPanelObject::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPanelObject::Ready_Panel(void* pArg)
|
||||
HRESULT CPanelObject::Ready_Element(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
@@ -102,6 +102,16 @@ CGameObject* CPanelObject::Get_Element(const wstring& Name)
|
||||
return Find_Element(Name);
|
||||
}
|
||||
|
||||
_int CPanelObject::Element_Count()
|
||||
{
|
||||
return m_iElements_Count;
|
||||
}
|
||||
|
||||
const vector<wstring> CPanelObject::Element_Name()
|
||||
{
|
||||
return m_ElementName;
|
||||
}
|
||||
|
||||
void CPanelObject::Move_Panel(_float fX, _float fY)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -27,13 +27,17 @@ class ENGINE_DLL CCanvasObject abstract : public CUIObject
|
||||
public:
|
||||
virtual void Visible(_bool bVisible) override;
|
||||
virtual class CGameObject* Get_Panel(const wstring& Name);
|
||||
virtual _int Panels_Count();
|
||||
virtual const vector<wstring> Panel_Name();
|
||||
|
||||
protected:
|
||||
virtual void Add_Panel(wstring Name, class CGameObject* pPanel);
|
||||
|
||||
protected:
|
||||
vector<class CGameObject*> m_Panels; // 캔버스가 패널들을 관리 하기 위해서 필요함
|
||||
map<wstring ,class CGameObject*> m_Panels_map; // 캔버스에서 내가 원하는 패널을 찾기 위해서
|
||||
vector<class CGameObject*> m_Panels; // 캔버스가 패널들을 관리 하기 위해서 필요함
|
||||
vector<wstring> m_PanelNames; // 패널들의 이름을 전해주기 위해서
|
||||
map<wstring ,class CGameObject*> m_Panels_map; // 캔버스에서 내가 원하는 패널을 찾기 위해서
|
||||
_int m_iPanel_Count{}; // 전체 패널의 갯수
|
||||
|
||||
private:
|
||||
virtual class CGameObject* Find_Panel(const wstring& Name);
|
||||
|
||||
@@ -22,21 +22,26 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject
|
||||
virtual HRESULT Initialize_Prototype();
|
||||
virtual HRESULT Initialize(void* pArg);
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Ready_Panel(void* pArg);
|
||||
virtual HRESULT Ready_Element(void* pArg);
|
||||
|
||||
public:
|
||||
virtual void MoveX(_float fX) override;
|
||||
virtual void MoveY(_float fY) override;
|
||||
virtual void Move_Panel(_float fX, _float fY);
|
||||
virtual void Visible(_bool bVisible) override;
|
||||
virtual class CGameObject* Get_Element(const wstring& Name);
|
||||
virtual void Move_Panel(_float fX, _float fY);
|
||||
virtual _int Element_Count();
|
||||
virtual const vector<wstring> Element_Name();
|
||||
|
||||
|
||||
protected:
|
||||
virtual void Add_Element(wstring Name, class CGameObject* pPanel);
|
||||
|
||||
protected:
|
||||
vector<class CGameObject*> m_Elements;
|
||||
map<wstring, class CGameObject*> m_Elements_map; // 캔버스에서 내가 원하는 패널을 찾기 위해서
|
||||
vector<class CGameObject*> m_Elements; // 패널이 엘리먼츠를 관리하기 위해 만듬
|
||||
vector<wstring> m_ElementName; // 엘리멘트들의 이름을 전해주기 위해서
|
||||
map<wstring, class CGameObject*> m_Elements_map; // 캔버스에서 내가 원하는 패널을 찾기 위해서
|
||||
_int m_iElements_Count{}; // 전체 엘리멘트의 갯수
|
||||
|
||||
private:
|
||||
virtual class CGameObject* Find_Element(const wstring& Name);
|
||||
|
||||
Reference in New Issue
Block a user