Properly handle input while menu is visible.
* INSERT toggles the menu. Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
14
src/GUI/Components.cpp
Normal file
14
src/GUI/Components.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "GUI.h"
|
||||
|
||||
void GUI::DrawFramerateCounter() {
|
||||
ImGui::SetNextWindowPos(ImVec2(10, 10));
|
||||
ImGui::Begin("FPS", nullptr, ImVec2(0, 0), 0.3f, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize);
|
||||
ImGui::Text("FPS: %.2f", ImGui::GetIO().Framerate);
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void GUI::DrawConfigurationWindow() {
|
||||
ImGui::Begin("cstrike-basehook-linux", nullptr);
|
||||
ImGui::Text("Hello, world!");
|
||||
ImGui::End();
|
||||
}
|
||||
Reference in New Issue
Block a user