Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
debug_ui.h File Reference
#include <string>
#include <map>
#include "components/3rdparty/imgui/imgui.h"

Go to the source code of this file.

Classes

class  Blam::DebugUI::ImGUIDrawingGroup
 Class representing an ImGUI drawing group/draw list item. More...
 

Namespaces

 InternalUI
 Namespace containing things for the engine's "internal UI", which is powered through ImGUI.
 
 InternalUI::Colors
 Namespace containing things related colors used in various places in the engine.
 
 Blam
 Namespace surrounding all major engine components.
 
 Blam::DebugUI
 Namespace containing things relating to ImGUI, and the ImGUI draw list.
 
 Blam::DebugUI::Windows
 Legacy namespace to contain data for the legacy ImGUI console.
 

Macros

#define duigvs(x)   Blam::DebugUI::GetVisibility(x)
 Macro for Blam::DebugUI::GetVisibility(). More...
 
#define BLAM
 
#define UI_API
 

Functions

UI_API void InternalUI::Initialize ()
 Initializes the ImGUI draw list. More...
 
UI_API void InternalUI::Render ()
 Renders all ImGUI data. More...
 
UI_API void InternalUI::Shutdown ()
 Cleans up any data used by the ImGUI draw list. More...
 
UI_API void InternalUI::LoadConfig ()
 Loads UI configuration file. More...
 
UI_API void InternalUI::CheckForUpdates ()
 Legacy function that would have checked for game engine updates. More...
 
UI_API void InternalUI::ShowCrashScreen (std::string crash_message)
 Show the engine's crash screen. More...
 
UI_API void InternalUI::ShowHaloConsole (bool *p_open)
 Legacy function that was used to open the ImGUI-based console. More...
 
UI_API void InternalUI::load_blamite_pink_styles ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::load_xenia_styles ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::load_elaztek_styles ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::load_default_styles ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::load_elaztek_styles_classic ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::load_cex_styles ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::load_win9x_styles ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::load_hl2_styles ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::load_osx_styles ()
 Legacy function to apply a modified ImGUI color scheme. More...
 
UI_API void InternalUI::SetFont (int id)
 Legacy function to change the font used by ImGUI. More...
 
UI_API ImFont * InternalUI::font_fixedsys ()
 Legacy function to set the ImGUI font to fixedsys. More...
 
UI_API ImFont * InternalUI::font_proggytiny ()
 Legacy function to set the ImGUI font to Proggy Tiny - used by Xenia and some elements of Reach. More...
 
UI_API ImVec4 InternalUI::Colors::crash_col ()
 
UI_API ImVec4 InternalUI::Colors::crash_text_col ()
 
UI_API ImVec4 InternalUI::Colors::crash_text_shadow_col ()
 
UI_API ImVec4 InternalUI::Colors::clear_col ()
 The color to use for render target clearing. More...
 
UI_API ImVec4 InternalUI::Colors::console_color ()
 
UI_API ImVec4 InternalUI::Colors::console_msg_color ()
 
UI_API ImVec4 InternalUI::Colors::console_shadow ()
 
UI_API ImVec4 InternalUI::Colors::console_error ()
 
UI_API ImVec4 InternalUI::Colors::console_print ()
 
UI_API ImVec4 InternalUI::Colors::console_blue ()
 
UI_API ImVec4 InternalUI::Colors::console_internal_gold ()
 
UI_API ImVec4 InternalUI::Colors::console_yellow ()
 
UI_API ImVec4 InternalUI::Colors::transparent ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_0 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_1 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_2 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_3 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_4 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_5 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_6 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_7 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_8 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_9 ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_a ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_b ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_c ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_d ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_e ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_f ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_0_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_1_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_2_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_3_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_4_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_5_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_6_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_7_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_8_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_9_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_a_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_b_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_c_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_d_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_e_s ()
 
UI_API ImVec4 InternalUI::Colors::mc_color_f_s ()
 
UI_API ImVec4 InternalUI::Colors::d_blurple ()
 
UI_API ImVec4 InternalUI::Colors::d_white ()
 
UI_API ImVec4 InternalUI::Colors::d_greyple ()
 
UI_API ImVec4 InternalUI::Colors::d_dark ()
 
UI_API ImVec4 InternalUI::Colors::d_nqblack ()
 
UI_API ImVec4 InternalUI::Colors::d_text_dark ()
 
UI_API ImVec4 InternalUI::Colors::d_text_light ()
 
BLAM void Blam::LogEventLegacy (const char *message)
 Legacy function to add a message to console. More...
 
BLAM void Blam::SetConsoleState (bool state)
 Legacy function to control legacy ImGUI console visibility. More...
 
BLAM bool Blam::GetConsoleState ()
 Legacy function to retrieve legacy ImGUI console visibility. More...
 
BLAM void Blam::SetConsoleState2 (bool state)
 i have no idea why this exists More...
 
BLAM bool Blam::GetConsoleState2 ()
 i have no idea why this exists More...
 
BLAM void Blam::SetConsoleCommand2 (std::string command)
 i have no idea why this exists More...
 
BLAM std::string Blam::GetConsoleCommand2 ()
 i have no idea why this exists More...
 
BLAM bool * Blam::DebugUI::GetVisibility (std::string key)
 Retrieves the visibility of the specified draw list item. More...
 
BLAM void Blam::DebugUI::AddToDrawList (std::string key, ImGUIDrawingGroup *group)
 Adds a new item to the ImGUI draw list. More...
 
BLAM ImGUIDrawingGroup * Blam::DebugUI::GetDrawListItem (std::string key)
 Retrieves a drawing group with the specified ID. More...
 
BLAM void Blam::DebugUI::ShowErrorDialog (const char *title, const char *message)
 Shows a simple error dialog created using ImGUI. More...
 
BLAM std::map< std::string, Blam::DebugUI::ImGUIDrawingGroup * > * Blam::DebugUI::GetDrawList ()
 Retrieves the current ImGUI drawing list. More...
 
BLAM void Blam::DebugUI::Windows::HackConsole (bool *show_console)
 
BLAM void Blam::DebugUI::Windows::HackConsoleNew (bool *show_testing_newconsole)
 

Macro Definition Documentation

◆ BLAM

#define BLAM

◆ duigvs

#define duigvs (   x)    Blam::DebugUI::GetVisibility(x)

Macro for Blam::DebugUI::GetVisibility().

See Blam::DebugUI::GetVisibility for details.

Note
Ideally, we would keep these heavily abbreviated macros to a minimum. This (and a few others) are made as short as possible due to their frequent use, as having the full names would cause a lot of ugly-looking code.
See also
Blam::DebugUI::GetVisibility()

◆ UI_API

#define UI_API