feat: keyboard shortcut for log window
All checks were successful
CI / build-and-test (push) Successful in 2m16s
All checks were successful
CI / build-and-test (push) Successful in 2m16s
This commit is contained in:
@@ -10,7 +10,7 @@ Collapsed=0
|
||||
|
||||
[Window][Game Window]
|
||||
Pos=8,27
|
||||
Size=1264,579
|
||||
Size=1264,685
|
||||
Collapsed=0
|
||||
DockId=0x00000001,0
|
||||
|
||||
|
||||
@@ -70,11 +70,16 @@ void GuiManager::SetupDockspace(RenderTexture2D &renderTexture)
|
||||
{
|
||||
if (ImGui::BeginMenu("View"))
|
||||
{
|
||||
ImGui::MenuItem("Log Viewer", nullptr, &showLogWindow);
|
||||
ImGui::MenuItem("Log Viewer", "Ctrl + L", &showLogWindow);
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::EndMenuBar();
|
||||
}
|
||||
|
||||
if (ImGui::GetIO().KeyCtrl && ImGui::IsKeyPressed(ImGuiKey_L))
|
||||
{
|
||||
showLogWindow = !showLogWindow;
|
||||
}
|
||||
ImGuiID dockspace_id = ImGui::GetID("MyDockSpace");
|
||||
ImGui::DockSpace(dockspace_id, ImVec2(0.0f, 0.0f), dockspace_flags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user