Elaztek Developer Hub
Blamite Game Engine - blam!  00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
debug_menu.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 
6 #define DEBUG_MENU_FILE "debug_menu_init"
7 
8 #ifndef BLAM
9 #define BLAM
10 #endif
11 
16 {
17  Command,
18 
27  Global,
28  Submenu,
29  Unknown
30 };
31 
36 {
37 private:
39 
40 public:
41  std::string title = "";
42 
49 
56 
60  virtual void Activate() {};
61 
65  virtual void Decrement() {};
66 
70  virtual void Increment() {};
71 };
72 
79 {
80 public:
81  std::string command = "";
82 
84 
90  void Activate() override;
91 };
92 
101 {
102 public:
103  std::vector<std::string> commands = std::vector<std::string>();
105 
107 
114  void Activate() override;
115 };
116 
123 {
124 public:
125  std::string global_id = "";
126  bool use_bounds = false;
127  double inc = 1;
128  double min = 0;
129  double max = 0;
130 
132 
138  void Activate() override;
139 
145  void Decrement() override;
146 
152  void Increment() override;
153 };
154 
162 {
163 public:
164  std::vector<BlamDebugMenuItem*> items = std::vector<BlamDebugMenuItem*>();
165 
168 };
169 
174 {
175  std::string title = "";
176  std::vector<BlamDebugMenuItem*> items = std::vector<BlamDebugMenuItem*>();
177 };
178 
183 {
193  BLAM void InitializeDebugMenu();
194 
198  BLAM void ReleaseDebugMenu();
199 
203  BLAM void ReloadDebugMenu();
204 
211 }
BlamUIWidget_Group::RefreshRelativePosition
void RefreshRelativePosition() override
Updates the relative position of the widget, relative to its parent.
Definition: group.cpp:140
SDLK_BACKSPACE
@ SDLK_BACKSPACE
Definition: SdlEmulationLayer.h:387
BlamUIWidget::hidden
bool hidden
Whether or not the widget is hidden.
Definition: ui.h:109
BlamDebugMenuItem::title
std::string title
The title of the debug menu item as shown in the menu.
Definition: debug_menu.h:41
BlamDebugMenuItem::BlamDebugMenuItem
BlamDebugMenuItem(BlamDebugMenuItemType _type)
Creates a new debug menu item.
Definition: BlamDebugMenuItem.cpp:3
command_list
std::map< std::string, BlamConsoleCommand * > command_list
The list of all loaded console commands.
Definition: console.cpp:51
BlamWidgetType::DebugMenu
@ DebugMenu
Special widget. Used for the in-game debug menu.
Blam::Resources::Console::VersionCommand
Class for the version command.
Definition: version.hpp:18
Blam::Resources::Console::UnregisterCommand
BLAM void UnregisterCommand(std::string name)
Unregisters the console command with the specified name.
Definition: console.cpp:227
Blam::Resources::Console::RegisterBuiltinCommands
BLAM void RegisterBuiltinCommands()
Registers all hard-coded engine commands.
Definition: console.cpp:365
BlamDebugMenuItem_Global::inc
double inc
The amount to increase or decrease the global value by when incrementing or decrementing.
Definition: debug_menu.h:127
init_world_state.hpp
BlamUIWidget_DebugMenu::Draw
void Draw() override
Draws the widget on-screen.
Definition: debug_menu.cpp:111
Blam::Resources::Console::HistoryCommand
Class for the history command.
Definition: history.hpp:13
abort.hpp
BlamDebugMenuItem_Global::use_bounds
bool use_bounds
Whether or not the min/max bounds should be used.
Definition: debug_menu.h:126
BlamUIWidget_DebugMenu::OnKeyPressEvent
void OnKeyPressEvent(KeyPressEvent *event) override
Definition: debug_menu.cpp:282
BlamUIWidget_DebugMenu::menu_item_size
BlamVector2 menu_item_size
The size of each debug menu item widget.
Definition: debug_menu.h:197
BlamUIWidget::update
bool update
Whether or not the widget needs to be updated before the next draw call.
Definition: ui.h:108
Blam::Animation::ColorTransitionAnimation::GetColor
BlamColor GetColor()
Returns the evaluated color data.
Definition: ColorTransition.h:170
drop.hpp
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
BlamEngineDataFolder::DataRoot
@ DataRoot
The root of all game engine data. Defaults to ./
BlamUIWidget_VLayoutGroup::item_spacing
int item_spacing
The amount of space to display between items, in pixels.
Definition: ui.h:322
BlamDebugMenuItem_Global::BlamDebugMenuItem_Global
BlamDebugMenuItem_Global()
Definition: BlamDebugMenuItem_Global.cpp:6
BlamDebugMenuItem_Submenu
Class representing a submenu debug menu item.
Definition: debug_menu.h:161
Blam::Resources::Console::NoUCommand
Class for the nou command.
Definition: nou.hpp:13
script_doc.hpp
BlamDebugMenuItem_Global::global_id
std::string global_id
The ID of the engine global to update.
Definition: debug_menu.h:125
BlamUIWidget_Group
Class representing a Group widget.
Definition: ui.h:265
String
@ String
Represents a std::string.
Definition: globals.h:29
BlamUIWidget::position
BlamVector2 position
The position of the widget, relative to its parent.
Definition: ui.h:123
BlamDebugMenuItemType::Submenu
@ Submenu
Enters into a submenu/subscreen upon activation.
SDLK_HOME
@ SDLK_HOME
Definition: SdlEmulationLayer.h:477
Blam::Resources::DebugMenu::GetDebugMenu
BLAM BlamDebugMenu * GetDebugMenu()
Retrieves the debug menu data.
Definition: debug_menu.cpp:517
logger.h
BlamUIWidget::MarkForUpdate
void MarkForUpdate()
Marks the widget as needing to be updated on the next draw call.
Definition: BlamUIWidget.cpp:392
Blam::Resources::Console::ScreenshotCommand
Class for the screenshot command.
Definition: screenshot.hpp:13
BlamUIWidget_DebugMenu_Item::ConfigureHotkeyText
void ConfigureHotkeyText(int index)
Reconfigures the widget's hotkey text based on its index.
Definition: debug_menu_item.cpp:317
BlamDebugMenuItem_Command::BlamDebugMenuItem_Command
BlamDebugMenuItem_Command()
Definition: BlamDebugMenuItem_Command.cpp:6
Blam::Globals::UpdateGlobal
BLAM BlamGlobalUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: globals.cpp:574
Blam::Resources::Console::Win32DialogTestCommand
Class for the win32_dialog_test command.
Definition: win32_dialog_test.hpp:14
BlamDebugMenuItem_Command
Class representing a command debug menu item.
Definition: debug_menu.h:78
BlamDebugMenuItem_Global::min
double min
The minimum value of the global.
Definition: debug_menu.h:128
imgui.h
BlamUIWidget_DebugMenu::GetAnimatedActiveItemBackground
BlamColor GetAnimatedActiveItemBackground()
Retrieves the animating active item background color.
Definition: debug_menu.cpp:542
BlamUIWidget_2DPrimitive::color
BlamColor color
The color of the widget.
Definition: ui.h:373
BlamFontPackageType::Unknown
@ Unknown
Indicates the font package has an unknown type. Should generally be considered an error.
Blam::Animation::ColorTransitionAnimation::Initialize
void Initialize(BlamColor _c1, BlamColor _c2, float fade_duration, bool _loop)
Prepares data needed for the animation.
Definition: ColorTransition.h:132
parse_xml_contents
BlamResult parse_xml_contents(std::string file_contents, bool is_legacy_txt_menu)
Definition: debug_menu.cpp:211
BlamGlobalUpdateResult::InvalidArgs
@ InvalidArgs
The provided arguments were invalid.
BlamEngineGlobal::name
std::string name
The name of the global.
Definition: globals.h:47
BlamConsoleCommand
Class used to represent a console command.
Definition: console.h:33
BlamUIWidget_VLayoutGroup::padding
BlamVector4 padding
The padding around the layout group. Padding order is top, right, bottom, left.
Definition: ui.h:321
Blam::Resources::Console::ClearScreenCommand
Class for the cls command.
Definition: cls.hpp:16
BlamDebugMenuItem_Submenu::~BlamDebugMenuItem_Submenu
~BlamDebugMenuItem_Submenu()
Definition: BlamDebugMenuItem_Submenu.cpp:8
Blam::Globals::GetGlobalAsFloat
BLAM float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: globals.cpp:403
Blam::Resources::Console::ListenerBugCheckCommand
Class for the listener_bug_check command.
Definition: listener_bug_check.hpp:17
BlamUIWidget_DebugMenu::cached_scale_factor
float cached_scale_factor
The current cached UI scale factor. Used to automatically scale the UI when the scale factor is chang...
Definition: debug_menu.h:196
BlamUIWidget_Text::SetHidden
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: text.cpp:452
BlamDebugMenuItem_CommandSequence::BlamDebugMenuItem_CommandSequence
BlamDebugMenuItem_CommandSequence()
Definition: BlamDebugMenuItem_CommandSequence.cpp:6
SDLK_UP
@ SDLK_UP
Definition: SdlEmulationLayer.h:485
console.h
BlamUIWidget::GetType
BlamWidgetType GetType()
Retrieves the type of this widget.
Definition: BlamUIWidget.cpp:207
engine_text.h
Blam::Resources::Console::CrashCommand
Class for the crash command.
Definition: crash.hpp:14
version.hpp
BlamUIWidget_DebugMenu::RefreshRelativePosition
void RefreshRelativePosition() override
Updates the relative position of the widget, relative to its parent.
Definition: debug_menu.cpp:189
BlamGlobalUpdateResult::OutOfBounds
@ OutOfBounds
The provided value was too small or too large for the globals' data type.
USER_DATA_PATH
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:41
open_web_url.hpp
BlamUIWidget_Group::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: group.cpp:155
BlamUIWidget::size
BlamVector2 size
The size of the widget, relative to its parent.
Definition: ui.h:124
BlamUIWidget_DebugMenu_Item::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: debug_menu_item.cpp:167
BlamDebugMenuItem_Global::max
double max
The maximum value of the global.
Definition: debug_menu.h:129
screenshot.hpp
Blam::Resources::Console::Halo2PrintCommand
Class for the h2print command.
Definition: h2print.hpp:14
Blam::Resources::Console::ShowStatsCommand
Class for the show_stats command.
Definition: show_stats.hpp:16
BlamDebugMenuItem_Global::Decrement
void Decrement() override
Called when the menu item is active and the left arrow key is pressed.
Definition: BlamDebugMenuItem_Global.cpp:16
nou.hpp
BlamUIWidget_VLayoutGroup::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: vlayout.cpp:26
BlamGlobalUpdateResult::InvalidType
@ InvalidType
The provided value was of an invalid type.
Blam::Resources::Console::GetCommand
BLAM BlamConsoleCommand * GetCommand(std::string name)
Retrieves a command with the specified name.
Definition: console.cpp:237
Blam::Resources::DebugMenu::InitializeDebugMenu
BLAM void InitializeDebugMenu()
Initializes the debug menu.
Definition: debug_menu.cpp:406
BlamDebugMenuItem::Increment
virtual void Increment()
Called when the menu item is active and the right arrow key is pressed.
Definition: debug_menu.h:70
Blam::Resources::Console::ClassifyCommand
Class for the classify command.
Definition: classify.hpp:13
Blam::Resources::Console::DebugMenuHowToCommand
Class for the debug_menu_how_to command.
Definition: debug_menu_how_to.hpp:15
Blam::Resources::Console::Halo2HelpCommand
Class for the h2help command.
Definition: h2help.hpp:18
BlamUIWidget_DebugMenu_Item
Class used for a debug menu UI item.
Definition: debug_menu.h:16
parse_debug_menu_txt_contents
BlamResult parse_debug_menu_txt_contents(std::string file_path)
Reads the specified file as a text document and builds debug menu data from it.
Definition: debug_menu.cpp:342
BlamGlobalUpdateResult
BlamGlobalUpdateResult
Enumerator for the result of a global update attempt.
Definition: globals.h:9
Blam::Resources::Console::ToggleImguiWindowCommand
Class for the toggle_imgui_window command.
Definition: toggle_imgui_window.hpp:12
BlamConsoleCommand::Execute
virtual BlamResult Execute(std::vector< std::string > arguments)
Called upon command execution.
Definition: console.h:49
BlamUIWidget::SetPosition
virtual void SetPosition(BlamVector2 new_position)
Sets the position of the widget.
Definition: BlamUIWidget.cpp:368
SDLK_RETURN
@ SDLK_RETURN
Definition: SdlEmulationLayer.h:385
BlamDebugMenuItem_Global::Activate
void Activate() override
Called when the menu item is active and the enter key is pressed.
Definition: BlamDebugMenuItem_Global.cpp:11
errors.h
Blam::Resources::Console::QuitCommand
Class for the quit command.
Definition: quit.hpp:13
BLAM
#define BLAM
Definition: debug_menu.h:9
BlamEngineGlobal::type
BlamGlobalType type
The type of the global.
Definition: globals.h:46
classify.hpp
Blam::Resources::DebugMenu
Namespace containing data for the engine's debug menu.
Definition: debug_menu.h:182
BlamUIWidget_Group::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: group.cpp:98
ImGui::CollapsingHeader
IMGUI_API bool CollapsingHeader(const char *label, ImGuiTreeNodeFlags flags=0)
Definition: imgui_widgets.cpp:5422
Blam::Resources::Console::TagLoadForceCommand
Class for the tag_load_force command.
Definition: tag_load_force.hpp:17
Blam::Resources::Console::DropCommand
Class for the drop command.
Definition: drop.hpp:17
Blam::Resources::Console::RunInitCommands
BLAM void RunInitCommands()
Attempts to read init.txt and runs any commands added to it.
Definition: console.cpp:406
BlamUIWidget_Text::Draw
void Draw() override
Draws the widget on-screen.
Definition: text.cpp:52
BlamWidgetAnchor::TopLeft
@ TopLeft
The widget will be placed at the top-left of the screen.
BlamDebugMenuItem_CommandSequence::current_exec_index
int current_exec_index
The index of the next item to run within the command sequence.
Definition: debug_menu.h:104
listener_bug_check.hpp
BlamUIWidget_Group::children
std::vector< BlamUIWidget * > children
The list of child widgets within this group.
Definition: ui.h:272
h2print.hpp
debug_menu.h
BlamUIWidget::display_name
std::string display_name
The display name of the widget.
Definition: ui.h:120
BlamDebugMenuItem::Activate
virtual void Activate()
Called when the menu item is active and the enter key is pressed.
Definition: debug_menu.h:60
BlamUIWidget_DebugMenu::LoadMenuRootPage
void LoadMenuRootPage()
Loads the default menu root page.
Definition: debug_menu.cpp:391
BlamGlobalUpdateResult::GlobalIsProtected
@ GlobalIsProtected
The specified global is protected and cannot be modified during runtime.
ENGINE_CFG
#define ENGINE_CFG
Macro to allow quicker access to the main configuration file.
Definition: config.h:20
BlamUIWidget_Text::color
BlamColor color
The text foreground color.
Definition: ui.h:524
show_stats.hpp
BlamUIWidget_2DPrimitive::SetHidden
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: 2d_primitive.cpp:173
SDLK_PAGEUP
@ SDLK_PAGEUP
Definition: SdlEmulationLayer.h:478
BlamUIWidget::SetHidden
virtual void SetHidden(bool new_hidden)
Sets the hidden state of the widget.
Definition: BlamUIWidget.cpp:415
BlamUIWidget::SetSize
void SetSize(BlamVector2 new_size)
Sets the size of the widget.
Definition: BlamUIWidget.cpp:361
BlamUIWidget_2DPrimitive::Draw
void Draw() override
Draws the widget on-screen.
Definition: 2d_primitive.cpp:88
Blam::Resources::Console::LogCommand
Class for the log command.
Definition: log.hpp:13
BlamWidgetType::DebugMenuItem
@ DebugMenuItem
Special widget. Represents an item within the debug menu.
SDLK_RIGHT
@ SDLK_RIGHT
Definition: SdlEmulationLayer.h:482
BlamDebugMenuItem_CommandSequence::Activate
void Activate() override
Called when the menu item is active and the enter key is pressed.
Definition: BlamDebugMenuItem_CommandSequence.cpp:12
ENGINE_DATA_PATH
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:34
BlamDebugMenuItemType::CommandSequence
@ CommandSequence
Runs a sequence of console commands upon activation.
Blam::Resources::Console::ExploreCommand
Class for the explore command.
Definition: explore.hpp:18
parse_debug_menu_xml_contents
BlamResult parse_debug_menu_xml_contents(std::string file_path)
Reads the specified file as an XML document and builds debug menu data from it.
Definition: debug_menu.cpp:324
Blam::Resources::Console::AbortCommand
Class for the abort command.
Definition: abort.hpp:12
BlamUIWidget_DebugMenu::GetHotkeyCharacterFromIndex
char GetHotkeyCharacterFromIndex(int index)
Determines the hotkey character for an item at a given index.
Definition: debug_menu.cpp:558
Blam::Resources::Console::TagFieldSizesCommand
Class for the tag_field_sizes command.
Definition: tag_field_sizes.hpp:15
main_menu
BlamDebugMenu * main_menu
The current debug menu information.
Definition: debug_menu.cpp:15
Blam::Resources::Console::RegenDebugMenuCommand
Class for the debug_menu_rebuild command.
Definition: debug_menu_rebuild.hpp:16
generate_plugins.hpp
explore.hpp
BlamUIWidget_DebugMenu::OnTickEvent
void OnTickEvent(TickEvent *event) override
Definition: debug_menu.cpp:194
Blam::Resources::Console::GeneratePluginsCommand
Class for the generate_plugins command.
Definition: generate_plugins.hpp:14
console_update_global
void console_update_global(std::string global_name, std::vector< std::string > arguments)
Function to handle updating an engine global from the console.
Definition: console.cpp:179
BlamUIWidget_DebugMenu_Item::SetMenuItem
void SetMenuItem(BlamDebugMenuItem *_menu_item)
Sets the debug menu item information associated with this widget.
Definition: debug_menu_item.cpp:297
BlamEngineGlobal
Structure containing data for a game engine global.
Definition: globals.h:44
BlamDebugMenuItemType::Global
@ Global
Modifies an engine global upon activation.
globals.h
Blam::Settings::Paths::ParseFolderPlaceholders
BLAM std::string ParseFolderPlaceholders(std::string string)
Parses any engine/user data folder placeholders within a string.
Definition: paths.cpp:388
BlamUIWidget_VLayoutGroup::auto_height
bool auto_height
Whether or not to automatically adjust the layout height to match its children.
Definition: ui.h:323
BlamConsoleCommand::name
std::string name
The name of the console command.
Definition: console.h:35
map_name.hpp
BlamUIWidget_DebugMenu::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: debug_menu.cpp:161
BlamUIWidget_DebugMenu_Item::SetSize
void SetSize(float scale)
Sets the scale factor of the widget.
Definition: debug_menu_item.cpp:344
BlamDebugMenuItem_Global::Increment
void Increment() override
Called when the menu item is active and the right arrow key is pressed.
Definition: BlamDebugMenuItem_Global.cpp:138
BlamDebugMenuItemType::Unknown
@ Unknown
Fallback in the event that debug_menu_init contained an invalid option.
BlamUIWidget_VLayoutGroup::Draw
void Draw() override
Draws the widget on-screen.
Definition: vlayout.cpp:15
Blam::Resources::Console::MapNameCommand
Class for the map_name command.
Definition: map_name.hpp:18
BlamDebugMenuItem
Class representing a debug menu item.
Definition: debug_menu.h:35
BlamUIWidget_BasicRectangle
Class representing a basic rectangle widget.
Definition: ui.h:404
Blam::Resources::Console::ListColorsCommand
Class for the list_colors command.
Definition: list_colors.hpp:15
BlamUIWidget_VLayoutGroup::RefreshRelativePosition
void RefreshRelativePosition() override
Updates the relative position of the widget, relative to its parent.
Definition: vlayout.cpp:48
cls.hpp
BlamEngineDataFolder::DefaultConfigs
@ DefaultConfigs
Directory containing default configuration files. Defaults to ./content/blam/default_configs/
Blam::Resources::Console::GetCommandList
BLAM std::map< std::string, BlamConsoleCommand * > GetCommandList()
Retrieves the list of all loaded console commands.
Definition: console.cpp:232
Blam::Globals::GetGlobalTypeLabel
BLAM std::string GetGlobalTypeLabel(BlamGlobalType type)
Retrieves a string representation of a global's type, for use in UI.
Definition: globals.cpp:40
BlamUIWidget
Base class for a UI widget.
Definition: ui.h:89
Blam::Globals::GetGlobal
BLAM BlamEngineGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: globals.cpp:189
BlamDebugMenuItemType::Command
@ Command
Runs a console command upon activation.
SDLK_LEFT
@ SDLK_LEFT
Definition: SdlEmulationLayer.h:483
DEBUG_MENU_FILE
#define DEBUG_MENU_FILE
The file name to load the debug menu contents from - without the extension.
Definition: debug_menu.h:6
Blam::Resources::Console::RunCommandLine
BLAM BlamResult RunCommandLine(std::string command_line)
Executed the provided string as a console command.
Definition: console.cpp:264
BlamDebugMenuItem_CommandSequence
Class representing a command debug menu item.
Definition: debug_menu.h:100
SDLK_DOWN
@ SDLK_DOWN
Definition: SdlEmulationLayer.h:484
Blam::Resources::Console::ScriptDocCommand
Class for the script_doc command.
Definition: script_doc.hpp:14
BlamUIWidget_2DPrimitive::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: 2d_primitive.cpp:131
BlamDebugMenuItem_CommandSequence::commands
std::vector< std::string > commands
The command sequence to run upon activation.
Definition: debug_menu.h:103
Blam::Resources::DebugMenu::ReloadDebugMenu
BLAM void ReloadDebugMenu()
Clears all existing data for the debug menu and reloads it from the file.
Definition: debug_menu.cpp:511
BlamDebugMenuItem::GetType
BlamDebugMenuItemType GetType()
Retrieves the type of the debug menu item.
Definition: BlamDebugMenuItem.cpp:8
reload_material_datablocks.hpp
Blam::Resources::DebugMenu::ReleaseDebugMenu
BLAM void ReleaseDebugMenu()
Releases all debug menu contents.
Definition: debug_menu.cpp:499
toggle_imgui_window.hpp
Blam::Resources::Console::SentryTestCommand
A command to test Sentry functionality.
Definition: sentry_test.hpp:12
BlamDebugMenu::items
std::vector< BlamDebugMenuItem * > items
The list of items within the debug menu.
Definition: debug_menu.h:176
Blam::Resources::Console::ListLevelsCommand
Class for the list_levels command.
Definition: list_levels.hpp:17
Blam::Resources::Console::PrintCommand
Class for the print command.
Definition: print.hpp:18
BlamUIWidget_Text::text
std::string text
The text to display within this text widget.
Definition: ui.h:528
list_levels.hpp
BlamUIWidget_DebugMenu::BlamUIWidget_DebugMenu
BlamUIWidget_DebugMenu()
Definition: debug_menu.cpp:12
BlamGlobalUpdateResult::UnknownGlobal
@ UnknownGlobal
The specified global does not exist.
set_project_root.hpp
BlamUIWidget::RefreshRelativePosition
virtual void RefreshRelativePosition()
Updates the relative position of the widget, relative to its parent.
Definition: BlamUIWidget.cpp:212
SDLK_TAB
@ SDLK_TAB
Definition: SdlEmulationLayer.h:388
Blam::Animation::ColorTransitionAnimation::Start
void Start()
Instructs the listener to start animating.
Definition: ColorTransition.h:156
BlamUIWidget_VLayoutGroup
Class representing a Vertical Layout Group widget.
Definition: ui.h:315
BlamDebugMenu::title
std::string title
The title of the main page of the debug menu. Defaults to Main.
Definition: debug_menu.h:175
BlamUIWidget_DebugMenu::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: debug_menu.cpp:143
BlamUIWidget_Group::ClearChildren
void ClearChildren()
Clears and destroys all child widgets within the group.
Definition: group.cpp:193
ENGINE_TEXT
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
BlamUIWidget_DebugMenu_Item::SetActive
void SetActive(bool _active)
Definition: debug_menu_item.cpp:248
win32_dialog_test.hpp
load_menu_item
BlamResult load_menu_item(rapidxml::xml_node<> *entry_node, BlamDebugMenuItem **menu_item_ptr)
Loads data for a debug menu item from an XML node.
Definition: debug_menu.cpp:25
open_game_dir.hpp
list_colors.hpp
BlamDebugMenuItem_Submenu::BlamDebugMenuItem_Submenu
BlamDebugMenuItem_Submenu()
Definition: BlamDebugMenuItem_Submenu.cpp:3
resolution.hpp
log.hpp
help.hpp
BlamUIWidget::IsHidden
bool IsHidden()
Checks whether or not the widget is hidden.
Definition: BlamUIWidget.cpp:420
BlamDebugMenuItem_Command::command
std::string command
The command to run upon activation.
Definition: debug_menu.h:81
Blam::Logger::LogEventForce
BLAM void LogEventForce(std::string message)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:262
BlamGlobalUpdateResult::Ok
@ Ok
The global was updated successfully.
BlamUIWidget::z_index
int z_index
The Z index of the widget, where higher Z orders are drawn on top.
Definition: ui.h:127
Blam::Resources::Console::ResolutionCommand
Class for the screenres command.
Definition: resolution.hpp:15
BlamDebugMenuItemType
BlamDebugMenuItemType
Menu item type enumerator.
Definition: debug_menu.h:15
BlamUIWidget_DebugMenu_Item::IsHeader
bool IsHeader()
Checks whether or not the current item is a header or not.
Definition: debug_menu_item.cpp:292
history.hpp
quit.hpp
BlamWidgetType
BlamWidgetType
Enumerator listing possible UI widget types.
Definition: ui.h:60
BlamUIWidget_DebugMenu::OnCharacterInputEvent
void OnCharacterInputEvent(CharacterInputEvent *event) override
Definition: debug_menu.cpp:231
config.h
BlamDebugMenu
Structure containing data for the root of the debug menu.
Definition: debug_menu.h:173
BlamUIWidget_DebugMenu::SetHidden
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: debug_menu.cpp:534
BlamUserDataFolder::DataRoot
@ DataRoot
The root of all user data. Defaults to BlamStrings::Utils::IO::GetEngineDataRoot().
display_global_update_message
void display_global_update_message(BlamGlobalUpdateResult error_code, BlamEngineGlobal *global)
Displays an error message to inform the user why a global variable failed to update.
Definition: console.cpp:103
BlamConsoleCommand::aliases
std::vector< std::string > aliases
A list of aliases for the command. Executing any of these instead of the command name will behave the...
Definition: console.h:38
crash.hpp
Blam::Resources::Console::ReloadMaterialDatablocksCommand
Class for the cls command.
Definition: reload_material_datablocks.hpp:17
debug_menu_how_to.hpp
Blam::Resources::Console::InitWorldStateCommand
Class for the init_world_state command.
Definition: init_world_state.hpp:14
BlamUIWidget_BasicRectangle::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: rectangle.cpp:57
BlamDebugMenuItem_Global
Class representing a global debug menu item.
Definition: debug_menu.h:122
BlamUIWidget_DebugMenu::GetIndexFromHotkeyCharacter
int GetIndexFromHotkeyCharacter(char hotkey)
Determines the index of a debug menu item based on a pressed hotkey.
Definition: debug_menu.cpp:547
DisplayCommandError
void DisplayCommandError(BlamResult error_code, BlamConsoleCommand *command)
Displays an error message to inform the user why a command failed to run.
Definition: console.cpp:59
Blam::Globals::UpdateGlobalWrap
BLAM BlamGlobalUpdateResult UpdateGlobalWrap(std::string name, std::string new_value)
Updates a global's raw value.
Definition: globals.cpp:431
print.hpp
BlamUIWidget_DebugMenu::~BlamUIWidget_DebugMenu
~BlamUIWidget_DebugMenu()
Definition: debug_menu.cpp:106
BlamUIWidget::ignore_scale_factor
bool ignore_scale_factor
Whether or not this widget should ignore the UI scale factor settings.
Definition: ui.h:135
sentry_test.hpp
debug_menu_rebuild.hpp
Blam::Resources::Console::CreateCommandObjectCommand
Class for the create_cmd_obj command.
Definition: create_cmd_obj.hpp:17
h2help.hpp
tag_field_sizes.hpp
tag_load_force.hpp
create_cmd_obj.hpp
BlamUIWidget_Group::SetHidden
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: group.cpp:170
BlamDebugMenuItem_Submenu::items
std::vector< BlamDebugMenuItem * > items
The contents of the submenu to show upon activation.
Definition: debug_menu.h:164
Blam::Resources::Console::OpenWebURLCommand
Class for the open_web_url command.
Definition: open_web_url.hpp:15
Blam::Resources::Console
Namespace for things relating to the debug console.
Definition: abort.hpp:5
Blam::Resources::Console::Cleanup
BLAM void Cleanup()
Cleans up all console command data.
Definition: console.cpp:355
BlamEngineGlobal::value_raw
std::string value_raw
The raw value of the global as a string.
Definition: globals.h:49
Blam::Resources::Console::HelpCommand
Class for the help command.
Definition: help.hpp:16
BlamUIWidget_Text
Class representing a Text widget.
Definition: ui.h:485
Blam::Resources::Console::SetProjectRootCommand
Class for the set_project_root command.
Definition: set_project_root.hpp:17
BlamDebugMenuItem::Decrement
virtual void Decrement()
Called when the menu item is active and the left arrow key is pressed.
Definition: debug_menu.h:65
BlamUIWidget::SetAnchorPosition
void SetAnchorPosition(BlamWidgetAnchor new_anchor_position)
Sets the anchor position of the widget.
Definition: BlamUIWidget.cpp:381
BlamDebugMenuItem_Command::Activate
void Activate() override
Called when the menu item is active and the enter key is pressed.
Definition: BlamDebugMenuItem_Command.cpp:11
Blam::Resources::Console::OpenGameDirectoryCommand
Class for the open_game_dir command.
Definition: open_game_dir.hpp:13
Blam::Resources::Console::RegisterCommand
BLAM std::string RegisterCommand(BlamConsoleCommand *command)
Register a new command object.
Definition: console.cpp:220