 |
Blamite Game Engine - blam!
00263.10.17.20.0001.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../debug_ui.h"
51 if (ImGui::TreeNode(item->
title.c_str()))
53 for (
int i = 0; i < item->
items.size(); i++)
65 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
128 std::string text =
"UNSUPPORTED: " + item->
title +
" (" + global->
name +
")";
129 ImGui::TextColored(ImVec4(1, 0, 0, 1), text.c_str());
137 std::string text =
"UNDEFINED: " + item->
title +
" (" + item->
global_id +
")";
138 ImGui::TextColored(ImVec4(1, 0, 0, 1), text.c_str());
145 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
154 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1, 0, 0, 1));
156 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
161 ImGui::PopStyleColor();
179 if (ImGui::Begin(menu.
title.c_str(), &
show))
181 ImGui::TextColored(ImVec4(1, 0, 0, 1),
"this debug menu is not supported, please use PgUp and use the primary debug menu");
182 ImGui::TextColored(ImVec4(1, 0, 0, 1),
"only use this if you seriously can't stand that one");
184 for (
int i = 0; i < menu.
items.size(); i++)
188 if (ImGui::CollapsingHeader(menu.
items.at(i).title.c_str()))
190 for (
int x = 0; x < menu.
items.at(i).items.size();x++)
BLAM EngineGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: globals.cpp:193
@ Int
Represents an int.
Definition: globals.h:179
@ Long
Represents a long.
Definition: globals.h:176
Namespace containing things relating to game engine globals.
Definition: globals.h:153
#define MENU_ITEM_TYPE_CATEGORY
Macro for Submenu. See Blam::DebugMenu::Submenu for details.
Definition: blam_ui.h:8
std::string name
The name of the global.
Definition: globals.h:197
short short_value
The short value of the global.
Definition: globals.h:207
#define MENU_ITEM_TYPE_UNKNOWN
Macro for Unknown. See Blam::DebugMenu::Unknown for details.
Definition: blam_ui.h:6
Structure containing data for a game engine global.
Definition: globals.h:194
#define MENU_ITEM_TYPE_EXEC
Macro for Executor. See Blam::DebugMenu::Executor for details.
Definition: blam_ui.h:7
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:441
long long_value
The long value of the global.
Definition: globals.h:208
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:408
#define MENU_ITEM_TYPE_MULTIEXEC
Macro for ExecSequence. See Blam::DebugMenu::ExecSequence for details.
Definition: blam_ui.h:10
@ Short
Represents a short.
Definition: globals.h:175
int int_value
The int value of the global.
Definition: globals.h:209
@ Boolean
Represents a boolean. Can be true or false.
Definition: globals.h:173
#define MENU_ITEM_TYPE_GLOBAL
Macro for Global. See Blam::DebugMenu::Global for details.
Definition: blam_ui.h:9
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:493
GvarType type
The type of the global.
Definition: globals.h:196
bool boolean_value
The boolean value of the global.
Definition: globals.h:206