mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-30 14:25:36 +08:00
Add close button for overlay
This commit is contained in:
parent
5ad434e190
commit
8abb0c8bc2
@ -478,7 +478,9 @@ void Steam_Overlay::OverlayProc()
|
|||||||
|
|
||||||
ImGui::PushFont(font_default);
|
ImGui::PushFont(font_default);
|
||||||
|
|
||||||
if (ImGui::Begin("SteamOverlay", nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoBringToFrontOnFocus))
|
bool show;
|
||||||
|
|
||||||
|
if (ImGui::Begin("SteamOverlay", &show, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoBringToFrontOnFocus))
|
||||||
{
|
{
|
||||||
ImGui::LabelText("##label", "Username: %s(%llu) playing %u",
|
ImGui::LabelText("##label", "Username: %s(%llu) playing %u",
|
||||||
settings->get_local_name(),
|
settings->get_local_name(),
|
||||||
@ -514,6 +516,9 @@ void Steam_Overlay::OverlayProc()
|
|||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
|
|
||||||
|
if (!show)
|
||||||
|
ShowOverlay(false);
|
||||||
}// if(show_overlay)
|
}// if(show_overlay)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user