Add overlays for inputs, settings, and performance in FSUI

This commit is contained in:
moonpower
2026-04-03 16:39:33 +02:00
parent f2bc79352f
commit 18cca24bef
6 changed files with 84 additions and 1 deletions

View File

@@ -120,6 +120,9 @@ struct EmulatorConfig {
std::string fsuiTheme = "Dark";
std::string fsuiPromptIconPack = "Auto";
std::filesystem::path fsuiBackgroundImagePath = "";
bool fsuiShowInputsOverlay = false;
bool fsuiShowSettingsOverlay = false;
bool fsuiShowPerformanceOverlay = false;
// Frontend window settings
struct WindowSettings {

View File

@@ -71,6 +71,9 @@ class PandaFsuiAdapter {
std::string formatPercent(float value) const;
std::string formatInteger(int value) const;
std::string formatTitleId(std::uint64_t program_id) const;
std::vector<fsui::OverlayTextLine> buildPerformanceOverlayLines() const;
std::vector<fsui::OverlayTextLine> buildSettingsOverlayLines() const;
std::vector<fsui::InputOverlayDeviceState> buildInputOverlayDevices() const;
void openFileAndLaunch();
void requestLaunchPath(const std::filesystem::path& path);
void requestClassicUi(bool open_settings);