 |
Blamite Game Engine - blam!
00357.06.18.22.0809.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../../debug_ui.h"
5 #include <Strings/components/utils/converters/converters.h>
18 int active_listener_index = -1;
41 for (
int i = 0; i <
listeners.size(); i++)
45 bool is_active_item =
false;
47 if (i == active_listener_index)
49 is_active_item =
true;
54 active_listener_index = i;
64 std::string listener_name =
"name: " + listener->
name;
65 std::string listener_address =
"address: 0x" + BlamStrings::Converters::BytesToString(&listener,
sizeof(&listener));
66 std::string listener_priority =
"priority: " + std::to_string(listener->
GetPriority());
67 std::string listener_sub_count =
"subscribed event count: " + std::to_string(listener->
GetSubscribedEvents().size());
84 if (active_listener_index < 0)
86 ImGui::Text(
"select a listener to view information");
88 else if (active_listener_index >
listeners.size())
90 std::string message =
"selected index " + std::to_string(active_listener_index) +
91 " was too high (max is " + std::to_string(
listeners.size()) +
")";
99 std::string listener_name =
"name: " + listener->
name;
100 std::string listener_address =
"address: 0x" + BlamStrings::Converters::BytesToString(&listener,
sizeof(&listener));
101 std::string listener_priority =
"priority: " + std::to_string(listener->
GetPriority());
102 std::string listener_sub_count =
"subscribed event count: " + std::to_string(listener->
GetSubscribedEvents().size());
IMGUI_API void BeginTooltip()
Definition: imgui.cpp:7362
IMGUI_API void ListBoxFooter()
Definition: imgui_widgets.cpp:5668
void Draw()
Draws the tag editor window.
Definition: listeners.hpp:24
IMGUI_API void NextColumn()
Definition: imgui_widgets.cpp:7445
BLAM float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: globals.cpp:407
IMGUI_API void End()
Definition: imgui.cpp:6016
IMGUI_API void SetColumnWidth(int column_index, float width)
Definition: imgui_widgets.cpp:7297
IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags=0)
Definition: imgui.cpp:3061
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
std::vector< BlamEventType > GetSubscribedEvents()
Retrieves the list of subscribed event types.
Definition: BlamEventListener.cpp:13
IMGUI_API float GetColumnWidth(int column_index=-1)
Definition: imgui_widgets.cpp:7262
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
IMGUI_API void PopTextWrapPos()
Definition: imgui.cpp:6313
IMGUI_API void EndTooltip()
Definition: imgui.cpp:7402
IMGUI_API bool Selectable(const char *label, bool selected=false, ImGuiSelectableFlags flags=0, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:5469
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:362
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
IMGUI_API void Columns(int count=1, const char *id=NULL, bool border=true)
Definition: imgui_widgets.cpp:7572
std::string name
The name of the listener. Used for debugging purposes.
Definition: events.h:36
Class for the event listener viewer.
Definition: listeners.hpp:15
BLAM std::vector< BlamEventListener * > GetListeners()
Retrieves a list of currently registered listeners.
Definition: events.cpp:133
std::vector< BlamEventListener * > listeners
List of registered event listeners.
Definition: events.cpp:8
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
Legacy namespace to contain data for the legacy ImGUI console.
Definition: ui.h:19
Class representing an Event Listener.
Definition: events.h:29
IMGUI_API void PushTextWrapPos(float wrap_local_pos_x=0.0f)
Definition: imgui.cpp:6306
int GetPriority()
Retrieves the priority of the listener.
Definition: BlamEventListener.cpp:38
IMGUI_API bool ListBoxHeader(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:5614