Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
HaloConsole Struct Reference

This is the legacy ImGUI-based console implementation. More...

Public Member Functions

void AlignTextToBottomHack ()
 
 HaloConsole ()
 
 ~HaloConsole ()
 
void ClearLog ()
 
void AddLog (const char *fmt,...) IM_FMTARGS(2)
 
void Draw (const char *title, bool *p_open)
 
void ExecCommand (const char *command_line)
 
int TextEditCallback (ImGuiTextEditCallbackData *data)
 

Static Public Member Functions

static int Stricmp (const char *str1, const char *str2)
 
static int Strnicmp (const char *str1, const char *str2, int n)
 
static char * Strdup (const char *str)
 
static int TextEditCallbackStub (ImGuiTextEditCallbackData *data)
 

Public Attributes

char InputBuf [256]
 
ImVector< char * > Items
 
bool ScrollToBottom
 
ImVector< char * > History
 
int HistoryPos
 
ImVector< const char * > Commands
 
ImVector< const char * > csc_cmds_char
 
vector< string > csc_cmds = BlamScript::get_csc_data()
 
vector< BlamScript::cmd_script_objecthsc_cmds = BlamScript::get_hsc_data()
 
vector< string > hsc_cmd_names
 

Detailed Description

This is the legacy ImGUI-based console implementation.

It is only remaining in the codebase as a reference until all features are migrated to the new console. Once all features have been moved over, this and anything referencing it will be removed from the codebase.

Note
This file should not be used as a guide on how to structure or format your code. Much of the code here is ugly, messy, overly complex and just generally difficult to read.
Deprecated:
Remove this as soon as possible.

Constructor & Destructor Documentation

◆ HaloConsole()

HaloConsole::HaloConsole ( )
inline

◆ ~HaloConsole()

HaloConsole::~HaloConsole ( )
inline

Member Function Documentation

◆ AddLog()

void HaloConsole::AddLog ( const char *  fmt,
  ... 
)
inline

◆ AlignTextToBottomHack()

void HaloConsole::AlignTextToBottomHack ( )
inline

◆ ClearLog()

void HaloConsole::ClearLog ( )
inline

◆ Draw()

void HaloConsole::Draw ( const char *  title,
bool *  p_open 
)
inline

◆ ExecCommand()

void HaloConsole::ExecCommand ( const char *  command_line)
inline

◆ Strdup()

static char* HaloConsole::Strdup ( const char *  str)
inlinestatic

◆ Stricmp()

static int HaloConsole::Stricmp ( const char *  str1,
const char *  str2 
)
inlinestatic

◆ Strnicmp()

static int HaloConsole::Strnicmp ( const char *  str1,
const char *  str2,
int  n 
)
inlinestatic

◆ TextEditCallback()

int HaloConsole::TextEditCallback ( ImGuiTextEditCallbackData *  data)
inline

◆ TextEditCallbackStub()

static int HaloConsole::TextEditCallbackStub ( ImGuiTextEditCallbackData *  data)
inlinestatic

Member Data Documentation

◆ Commands

ImVector<const char*> HaloConsole::Commands

◆ csc_cmds

vector<string> HaloConsole::csc_cmds = BlamScript::get_csc_data()

◆ csc_cmds_char

ImVector<const char*> HaloConsole::csc_cmds_char

◆ History

ImVector<char*> HaloConsole::History

◆ HistoryPos

int HaloConsole::HistoryPos

◆ hsc_cmd_names

vector<string> HaloConsole::hsc_cmd_names

◆ hsc_cmds

vector<BlamScript::cmd_script_object> HaloConsole::hsc_cmds = BlamScript::get_hsc_data()

◆ InputBuf

char HaloConsole::InputBuf[256]

◆ Items

ImVector<char*> HaloConsole::Items

◆ ScrollToBottom

bool HaloConsole::ScrollToBottom

The documentation for this struct was generated from the following file: