mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-05 19:43:41 -04:00
70 lines
1.5 KiB
C++
70 lines
1.5 KiB
C++
#ifndef DUSK_IMGUI_MENUTOOLS_HPP
|
|
#define DUSK_IMGUI_MENUTOOLS_HPP
|
|
|
|
#include <aurora/aurora.h>
|
|
#include <string>
|
|
|
|
#include "imgui.h"
|
|
|
|
namespace dusk {
|
|
class ImGuiMenuTools {
|
|
public:
|
|
struct CollisionViewSettings {
|
|
bool m_enableTerrainView = false;
|
|
bool m_enableWireframe = false;
|
|
bool m_enableAtView = false;
|
|
bool m_enableTgView = false;
|
|
bool m_enableCoView = false;
|
|
float m_terrainViewOpacity = 50.0f;
|
|
float m_colliderViewOpacity = 50.0f;
|
|
float m_drawRange = 100.0f;
|
|
};
|
|
|
|
ImGuiMenuTools();
|
|
void draw();
|
|
|
|
void ShowDebugOverlay();
|
|
void ShowCameraOverlay();
|
|
void ShowProcessManager();
|
|
void ShowHeapOverlay();
|
|
void ShowStubLog();
|
|
void ShowMapLoader();
|
|
void ShowPlayerInfo();
|
|
|
|
CollisionViewSettings& getCollisionViewSettings() { return m_collisionViewSettings; }
|
|
|
|
private:
|
|
bool m_showDebugOverlay = false;
|
|
int m_debugOverlayCorner = 0; // top-left
|
|
|
|
bool m_showCameraOverlay = false;
|
|
int m_cameraOverlayCorner = 3;
|
|
|
|
bool m_showProcessManagement = false;
|
|
|
|
bool m_showHeapOverlay = false;
|
|
|
|
bool m_showStubLog = false;
|
|
|
|
bool m_showMapLoader = false;
|
|
struct {
|
|
int mapIdx = -1;
|
|
int regionIdx = -1;
|
|
int roomNoIdx = 0;
|
|
int pointNoIdx = 0;
|
|
int roomNo = -1;
|
|
int pointNo = -1;
|
|
int spawnId = 0;
|
|
int layer = -1;
|
|
bool showInternalNames = false;
|
|
} m_mapLoaderInfo;
|
|
|
|
bool m_isDevelopmentMode = false;
|
|
bool m_showPlayerInfo = false;
|
|
|
|
CollisionViewSettings m_collisionViewSettings;
|
|
};
|
|
}
|
|
|
|
#endif // DUSK_IMGUI_MENUTOOLS_HPP
|