 |
Blamite Game Engine - Blam (Core)
|
Go to the documentation of this file.
3 #include "../debug_ui.h"
50 if (ImGui::TreeNode(item->
title.c_str()))
52 for (
int i = 0; i < item->
items.size(); i++)
64 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
127 std::string text =
"UNSUPPORTED: " + item->
title +
" (" + global->
name +
")";
128 ImGui::TextColored(ImVec4(1, 0, 0, 1), text.c_str());
136 std::string text =
"UNDEFINED: " + item->
title +
" (" + item->
global_id +
")";
137 ImGui::TextColored(ImVec4(1, 0, 0, 1), text.c_str());
144 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
153 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1, 0, 0, 1));
155 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
160 ImGui::PopStyleColor();
178 if (ImGui::Begin(menu.
title.c_str(), &
show))
180 ImGui::TextColored(ImVec4(1, 0, 0, 1),
"this debug menu is not supported, please use PgUp and use the primary debug menu");
181 ImGui::TextColored(ImVec4(1, 0, 0, 1),
"only use this if you seriously can't stand that one");
183 for (
int i = 0; i < menu.
items.size(); i++)
187 if (ImGui::CollapsingHeader(menu.
items.at(i).title.c_str()))
189 for (
int x = 0; x < menu.
items.at(i).items.size();x++)
Namespace containing things relating to game engine globals.
Definition: haloscript.h:61
long long_value
The long value of the global.
Definition: haloscript.h:116
bool boolean_value
The boolean value of the global.
Definition: haloscript.h:114
GvarType type
The type of the global.
Definition: haloscript.h:104
#define MENU_ITEM_TYPE_CATEGORY
Macro for Submenu. See Blam::DebugMenu::Submenu for details.
Definition: blam_ui.h:8
@ Int
Represents an int.
Definition: haloscript.h:87
#define MENU_ITEM_TYPE_UNKNOWN
Macro for Unknown. See Blam::DebugMenu::Unknown for details.
Definition: blam_ui.h:6
std::string name
The name of the global.
Definition: haloscript.h:105
@ Boolean
Represents a boolean. Can be true or false.
Definition: haloscript.h:81
#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
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
@ Long
Represents a long.
Definition: haloscript.h:84
HSC ScriptGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: script_globals.cpp:193
Structure containing data for a game engine global.
Definition: haloscript.h:102
#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
int int_value
The int value of the global.
Definition: haloscript.h:117
short short_value
The short value of the global.
Definition: haloscript.h:115
@ Short
Represents a short.
Definition: haloscript.h:83