mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-04 22:58:45 +00:00
CogImgui: Remove debug draw
This commit is contained in:
@@ -251,12 +251,18 @@ void FCogImguiContext::BeginFrame(float InDeltaTime)
|
|||||||
//-------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------
|
||||||
if (bRefreshDPIScale)
|
if (bRefreshDPIScale)
|
||||||
{
|
{
|
||||||
RefreshDPIScale();
|
bRefreshDPIScale = false;
|
||||||
|
|
||||||
|
BuildFont();
|
||||||
|
|
||||||
|
ImGuiStyle NewStyle = ImGuiStyle();
|
||||||
|
ImGui::GetStyle() = MoveTemp(NewStyle);
|
||||||
|
NewStyle.ScaleAllSizes(DpiScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::NewFrame();
|
ImGui::NewFrame();
|
||||||
|
|
||||||
DrawDebug();
|
//DrawDebug();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
@@ -624,18 +630,6 @@ void FCogImguiContext::SetDPIScale(float Value)
|
|||||||
bRefreshDPIScale = true;
|
bRefreshDPIScale = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
|
||||||
void FCogImguiContext::RefreshDPIScale()
|
|
||||||
{
|
|
||||||
bRefreshDPIScale = false;
|
|
||||||
|
|
||||||
BuildFont();
|
|
||||||
|
|
||||||
ImGuiStyle NewStyle = ImGuiStyle();
|
|
||||||
ImGui::GetStyle() = MoveTemp(NewStyle);
|
|
||||||
NewStyle.ScaleAllSizes(DpiScale);
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
void FCogImguiContext::BuildFont()
|
void FCogImguiContext::BuildFont()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -57,8 +57,6 @@ private:
|
|||||||
|
|
||||||
void TryReleaseGameMouseCapture();
|
void TryReleaseGameMouseCapture();
|
||||||
|
|
||||||
void RefreshDPIScale();
|
|
||||||
|
|
||||||
void BuildFont();
|
void BuildFont();
|
||||||
|
|
||||||
ULocalPlayer* GetLocalPlayer() const;
|
ULocalPlayer* GetLocalPlayer() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user