Copy more imgui stuff from Metaforce

This commit is contained in:
Luke Street
2026-04-03 17:04:22 -06:00
parent a3d661cf95
commit 4216165dfb
15 changed files with 362 additions and 49 deletions
+1 -3
View File
@@ -13,8 +13,6 @@ namespace dusk {
ImGui::TextUnformatted(text.c_str());
}
static inline float GetScale() { return ImGui::GetCurrentContext()->CurrentDpiScale; }
void ImGuiMenuGame::windowInputViewer() {
if (!m_showInputViewer) {
return;
@@ -35,7 +33,7 @@ namespace dusk {
ImGui::SetNextWindowBgAlpha(0.65f);
if (ImGui::Begin("Input Viewer", nullptr, windowFlags)) {
float scale = GetScale();
float scale = ImGuiScale();
if (!m_controllerName.empty()) {
TextCenter(m_controllerName);
ImGui::Separator();