mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-12 19:24:55 -04:00
42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
#ifndef DUSK_IMGUI_HPP
|
|
#define DUSK_IMGUI_HPP
|
|
|
|
#include <aurora/aurora.h>
|
|
#include <string>
|
|
|
|
#include "imgui.h"
|
|
#include "ImGuiMenuGame.hpp"
|
|
#include "ImGuiMenuTools.hpp"
|
|
|
|
namespace dusk {
|
|
class ImGuiConsole {
|
|
public:
|
|
ImGuiConsole();
|
|
void draw();
|
|
|
|
bool isBloomEnabled() { return m_menuGame.isBloomEnabled(); }
|
|
bool isWaterProjectionOffsetEnabled() { return m_menuGame.isWaterProjectionOffsetEnabled(); }
|
|
ImGuiMenuTools::CollisionViewSettings& getCollisionViewSettings() { return m_menuTools.getCollisionViewSettings(); }
|
|
|
|
static bool CheckMenuViewToggle(ImGuiKey key, bool& active);
|
|
|
|
private:
|
|
bool m_isHidden = false;
|
|
|
|
ImGuiMenuGame m_menuGame;
|
|
ImGuiMenuTools m_menuTools;
|
|
};
|
|
|
|
extern ImGuiConsole g_imguiConsole;
|
|
|
|
std::string_view backend_name(AuroraBackend backend);
|
|
std::string BytesToString(size_t bytes);
|
|
void SetOverlayWindowLocation(int corner);
|
|
bool ShowCornerContextMenu(int& corner, int avoidCorner);
|
|
void ImGuiStringViewText(std::string_view text);
|
|
}
|
|
|
|
void DuskDebugPad();
|
|
|
|
#endif // DUSK_IMGUI_HPP
|