mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 05:28:43 -04:00
8a9116501d
This utilizes new functionality in encounter/aurora#73.
53 lines
1.4 KiB
C++
53 lines
1.4 KiB
C++
#ifndef DUSK_IMGUI_MENUGAME_HPP
|
|
#define DUSK_IMGUI_MENUGAME_HPP
|
|
|
|
#include <aurora/aurora.h>
|
|
#include <pad.h>
|
|
#include <string>
|
|
|
|
#include "imgui.h"
|
|
|
|
namespace dusk {
|
|
class ImGuiMenuGame {
|
|
public:
|
|
ImGuiMenuGame();
|
|
void draw();
|
|
bool isBloomEnabled() { return m_graphicsSettings.m_enableBloom; }
|
|
bool isWaterProjectionOffsetEnabled() { return m_graphicsSettings.m_waterProjectionOffset; }
|
|
|
|
void windowInputViewer();
|
|
void windowControllerConfig();
|
|
|
|
private:
|
|
struct {
|
|
float m_masterVolume = 1.0f;
|
|
float m_mainMusicVolume = 1.0f;
|
|
float m_subMusicVolume = 1.0f;
|
|
float m_soundEffectsVolume = 1.0f;
|
|
float m_fanfareVolume = 1.0f;
|
|
} m_audioSettings;
|
|
|
|
struct {
|
|
int m_selectedPort = 0;
|
|
bool m_isReading = false;
|
|
PADButtonMapping* m_pendingButtonMapping = nullptr;
|
|
PADAxisMapping* m_pendingAxisMapping = nullptr;
|
|
int m_pendingPort = -1;
|
|
} m_controllerConfig;
|
|
|
|
struct {
|
|
bool m_enableBloom = 1;
|
|
bool m_waterProjectionOffset = false;
|
|
bool m_fullscreen = false;
|
|
} m_graphicsSettings;
|
|
|
|
bool m_showControllerConfig = false;
|
|
|
|
bool m_showInputViewer = false;
|
|
int m_inputOverlayCorner = 3;
|
|
std::string m_controllerName;
|
|
};
|
|
}
|
|
|
|
#endif // DUSK_IMGUI_MENUGAME_HPP
|