Files
hyblocker--OpenVR-SpaceCali…/src/overlay/user_interface.h
T

33 lines
1.0 KiB
C++

#pragma once
#include <imgui.h>
#include <implot.h>
#include <IconsMaterialSymbols.h>
namespace spacecal {
// state for the UI
struct UserInterfaceState_t {
bool bIsRunningInOverlay = false;
bool bIsSettingsAdvanced = false;
bool bCursorOverriddenThisFrame = false;
bool bBaseStationPowerManagementEnabled = false;
bool bBaseStationPowerManagementOnStartup = false;
bool bBaseStationPowerManagementOnShutdown = false;
bool bBaseStationPowerManagementOffModeIsSleep = true;
size_t dwSelectedCalibrationIndex = 0; // selected calibration in the ui
size_t dwSelectedUiPage = 0; // selected vertical tab
// @TODO: remove
char fooText[512] = {};
};
struct SpaceCalibratorVerticalTab_t {
const char* szLocaleKey = nullptr;
const char* szIcon = nullptr;
void (*fnDrawTab)(double currentTime) = nullptr;
};
// Draws the user interface with ImGUI
void drawInterface(bool isOverlay, double currentTime);
}