libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
EventDebuggerWindow.h
Go to the documentation of this file.
1#pragma once
2
4#include <imgui.h>
5
6namespace Ship {
7
8class Events;
9
17class EventDebuggerWindow final : public GuiWindow {
18 public:
27 EventDebuggerWindow(std::shared_ptr<ConsoleVariable> consoleVariable, std::shared_ptr<Window> window,
28 std::shared_ptr<Events> events, const std::string& visibilityCvar, const std::string& name);
30
32 void OnInit(const nlohmann::json& initArgs = nlohmann::json::object()) override;
33
35 void DrawElement() override;
36
38 void UpdateElement() override{};
39
40 private:
41 std::shared_ptr<Events> mEvents;
42};
43
44} // namespace Ship
An ImGui window for inspecting and debugging engine events at runtime.
Definition EventDebuggerWindow.h:17
EventDebuggerWindow(std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< Window > window, std::shared_ptr< Events > events, const std::string &visibilityCvar, const std::string &name)
Constructs an EventDebuggerWindow with constructor-injected dependencies.
void DrawElement() override
Renders the event debugger panel contents via ImGui.
void UpdateElement() override
No-op update; event data is read directly during draw.
Definition EventDebuggerWindow.h:38
void OnInit(const nlohmann::json &initArgs=nlohmann::json::object()) override
Performs one-time initialization of the event debugger window.
A floating ImGui window managed by the Ship Gui layer.
Definition GuiWindow.h:39
GuiWindow(std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< Window > window, const std::string &visibilityCvar, bool isVisible, const std::string &name, ImVec2 originalSize, uint32_t windowFlags)
Full constructor with constructor-injected dependencies, explicit size and window flags.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14