 |
Blamite Game Engine - blam!
00272.10.26.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())))
141 std::string text =
"UNSUPPORTED: " + item->
title +
" (" + global->
name +
")";
142 ImGui::TextColored(ImVec4(1, 0, 0, 1), text.c_str());
150 std::string text =
"UNDEFINED: " + item->
title +
" (" + item->
global_id +
")";
151 ImGui::TextColored(ImVec4(1, 0, 0, 1), text.c_str());
158 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
167 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1, 0, 0, 1));
169 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
174 ImGui::PopStyleColor();
192 if (ImGui::Begin(menu.
title.c_str(), &
show))
194 ImGui::TextColored(ImVec4(1, 0, 0, 1),
"this debug menu is not supported, please use PgUp and use the primary debug menu");
195 ImGui::TextColored(ImVec4(1, 0, 0, 1),
"only use this if you seriously can't stand that one");
197 for (
int i = 0; i < menu.
items.size(); i++)
201 if (ImGui::CollapsingHeader(menu.
items.at(i).title.c_str()))
203 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
float float_value
The float value of the global.
Definition: globals.h:250
@ Int
Represents an int.
Definition: globals.h:219
@ Long
Represents a long.
Definition: globals.h:216
Namespace containing things relating to game engine globals.
Definition: globals.h:193
#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:237
short short_value
The short value of the global.
Definition: globals.h:247
#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:234
#define MENU_ITEM_TYPE_EXEC
Macro for Executor. See Blam::DebugMenu::Executor for details.
Definition: blam_ui.h:7
@ Float
Represents a float.
Definition: globals.h:220
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:442
long long_value
The long value of the global.
Definition: globals.h:248
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:409
#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:215
int int_value
The int value of the global.
Definition: globals.h:249
@ Boolean
Represents a boolean. Can be true or false.
Definition: globals.h:213
#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:494
GvarType type
The type of the global.
Definition: globals.h:236
bool boolean_value
The boolean value of the global.
Definition: globals.h:246