Blamite Game Engine - Blam (Core)
InternalUI::Colors Namespace Reference

Namespace containing things related colors used in various places in the engine. More...

Functions

BLAM BlamColorGetNamedColor (std::string id)
 Retrieves a color by its ID. More...
 
BLAM void RegisterNamedColor (std::string id, BlamColor color)
 Registers a new color. More...
 
BLAM void RegisterDefaultColors ()
 Registers all hard-coded color information. More...
 
BLAM ImVec4 MessageColorToImColor (std::string color_id)
 Retrieves a color by its ID, as an ImGUI-compatiable color. More...
 
BLAM std::map< std::string, BlamColor > * GetColorList ()
 Retrieves the list of colors known to the engine. More...
 
UI_API ImVec4 crash_col ()
 
UI_API ImVec4 crash_text_col ()
 
UI_API ImVec4 crash_text_shadow_col ()
 
UI_API ImVec4 clear_col ()
 The color to use for render target clearing. More...
 
UI_API ImVec4 console_color ()
 
UI_API ImVec4 console_msg_color ()
 
UI_API ImVec4 console_shadow ()
 
UI_API ImVec4 console_error ()
 
UI_API ImVec4 console_print ()
 
UI_API ImVec4 console_blue ()
 
UI_API ImVec4 console_internal_gold ()
 
UI_API ImVec4 console_yellow ()
 
UI_API ImVec4 transparent ()
 
UI_API ImVec4 mc_color_0 ()
 
UI_API ImVec4 mc_color_1 ()
 
UI_API ImVec4 mc_color_2 ()
 
UI_API ImVec4 mc_color_3 ()
 
UI_API ImVec4 mc_color_4 ()
 
UI_API ImVec4 mc_color_5 ()
 
UI_API ImVec4 mc_color_6 ()
 
UI_API ImVec4 mc_color_7 ()
 
UI_API ImVec4 mc_color_8 ()
 
UI_API ImVec4 mc_color_9 ()
 
UI_API ImVec4 mc_color_a ()
 
UI_API ImVec4 mc_color_b ()
 
UI_API ImVec4 mc_color_c ()
 
UI_API ImVec4 mc_color_d ()
 
UI_API ImVec4 mc_color_e ()
 
UI_API ImVec4 mc_color_f ()
 
UI_API ImVec4 mc_color_0_s ()
 
UI_API ImVec4 mc_color_1_s ()
 
UI_API ImVec4 mc_color_2_s ()
 
UI_API ImVec4 mc_color_3_s ()
 
UI_API ImVec4 mc_color_4_s ()
 
UI_API ImVec4 mc_color_5_s ()
 
UI_API ImVec4 mc_color_6_s ()
 
UI_API ImVec4 mc_color_7_s ()
 
UI_API ImVec4 mc_color_8_s ()
 
UI_API ImVec4 mc_color_9_s ()
 
UI_API ImVec4 mc_color_a_s ()
 
UI_API ImVec4 mc_color_b_s ()
 
UI_API ImVec4 mc_color_c_s ()
 
UI_API ImVec4 mc_color_d_s ()
 
UI_API ImVec4 mc_color_e_s ()
 
UI_API ImVec4 mc_color_f_s ()
 
UI_API ImVec4 d_blurple ()
 
UI_API ImVec4 d_white ()
 
UI_API ImVec4 d_greyple ()
 
UI_API ImVec4 d_dark ()
 
UI_API ImVec4 d_nqblack ()
 
UI_API ImVec4 d_text_dark ()
 
UI_API ImVec4 d_text_light ()
 

Detailed Description

Namespace containing things related colors used in various places in the engine.

Legacy namespace containing colors used in various places within the custom ImGUI windows.

Deprecated:
This whole thing is kind of clunky and unintuitive. Ideally, we would have colors stored in separate configuration settings, globals, or in tags. This should be replaced at some point in the future.
Todo:
Consolidate with the other color data types.

These are mostly used by the crash screen and legacy console.

Deprecated:
This should not be used for any newer code, and exists for backwards compatiability. Will be removed in the future.

Function Documentation

◆ clear_col()

ImVec4 InternalUI::Colors::clear_col ( )

The color to use for render target clearing.

◆ console_blue()

ImVec4 InternalUI::Colors::console_blue ( )

◆ console_color()

ImVec4 InternalUI::Colors::console_color ( )

◆ console_error()

ImVec4 InternalUI::Colors::console_error ( )

◆ console_internal_gold()

ImVec4 InternalUI::Colors::console_internal_gold ( )

◆ console_msg_color()

ImVec4 InternalUI::Colors::console_msg_color ( )

◆ console_print()

ImVec4 InternalUI::Colors::console_print ( )

◆ console_shadow()

ImVec4 InternalUI::Colors::console_shadow ( )

◆ console_yellow()

ImVec4 InternalUI::Colors::console_yellow ( )

◆ crash_col()

ImVec4 InternalUI::Colors::crash_col ( )

◆ crash_text_col()

ImVec4 InternalUI::Colors::crash_text_col ( )

◆ crash_text_shadow_col()

ImVec4 InternalUI::Colors::crash_text_shadow_col ( )

◆ d_blurple()

ImVec4 InternalUI::Colors::d_blurple ( )

◆ d_dark()

ImVec4 InternalUI::Colors::d_dark ( )

◆ d_greyple()

ImVec4 InternalUI::Colors::d_greyple ( )

◆ d_nqblack()

ImVec4 InternalUI::Colors::d_nqblack ( )

◆ d_text_dark()

ImVec4 InternalUI::Colors::d_text_dark ( )

◆ d_text_light()

ImVec4 InternalUI::Colors::d_text_light ( )

◆ d_white()

ImVec4 InternalUI::Colors::d_white ( )

◆ GetColorList()

std::map< std::string, BlamColor > * InternalUI::Colors::GetColorList ( )

Retrieves the list of colors known to the engine.

The key is the ID of the color. The value is the color data.

Returns
A pointer to the map containing registered color data.

◆ GetNamedColor()

BlamColor * InternalUI::Colors::GetNamedColor ( std::string  id)

Retrieves a color by its ID.

Parameters
id- The ID of the color to retrieve
Returns
A pointer to the message color information.

◆ mc_color_0()

ImVec4 InternalUI::Colors::mc_color_0 ( )

◆ mc_color_0_s()

ImVec4 InternalUI::Colors::mc_color_0_s ( )

◆ mc_color_1()

ImVec4 InternalUI::Colors::mc_color_1 ( )

◆ mc_color_1_s()

ImVec4 InternalUI::Colors::mc_color_1_s ( )

◆ mc_color_2()

ImVec4 InternalUI::Colors::mc_color_2 ( )

◆ mc_color_2_s()

ImVec4 InternalUI::Colors::mc_color_2_s ( )

◆ mc_color_3()

ImVec4 InternalUI::Colors::mc_color_3 ( )

◆ mc_color_3_s()

ImVec4 InternalUI::Colors::mc_color_3_s ( )

◆ mc_color_4()

ImVec4 InternalUI::Colors::mc_color_4 ( )

◆ mc_color_4_s()

ImVec4 InternalUI::Colors::mc_color_4_s ( )

◆ mc_color_5()

ImVec4 InternalUI::Colors::mc_color_5 ( )

◆ mc_color_5_s()

ImVec4 InternalUI::Colors::mc_color_5_s ( )

◆ mc_color_6()

ImVec4 InternalUI::Colors::mc_color_6 ( )

◆ mc_color_6_s()

ImVec4 InternalUI::Colors::mc_color_6_s ( )

◆ mc_color_7()

ImVec4 InternalUI::Colors::mc_color_7 ( )

◆ mc_color_7_s()

ImVec4 InternalUI::Colors::mc_color_7_s ( )

◆ mc_color_8()

ImVec4 InternalUI::Colors::mc_color_8 ( )

◆ mc_color_8_s()

ImVec4 InternalUI::Colors::mc_color_8_s ( )

◆ mc_color_9()

ImVec4 InternalUI::Colors::mc_color_9 ( )

◆ mc_color_9_s()

ImVec4 InternalUI::Colors::mc_color_9_s ( )

◆ mc_color_a()

ImVec4 InternalUI::Colors::mc_color_a ( )

◆ mc_color_a_s()

ImVec4 InternalUI::Colors::mc_color_a_s ( )

◆ mc_color_b()

ImVec4 InternalUI::Colors::mc_color_b ( )

◆ mc_color_b_s()

ImVec4 InternalUI::Colors::mc_color_b_s ( )

◆ mc_color_c()

ImVec4 InternalUI::Colors::mc_color_c ( )

◆ mc_color_c_s()

ImVec4 InternalUI::Colors::mc_color_c_s ( )

◆ mc_color_d()

ImVec4 InternalUI::Colors::mc_color_d ( )

◆ mc_color_d_s()

ImVec4 InternalUI::Colors::mc_color_d_s ( )

◆ mc_color_e()

ImVec4 InternalUI::Colors::mc_color_e ( )

◆ mc_color_e_s()

ImVec4 InternalUI::Colors::mc_color_e_s ( )

◆ mc_color_f()

ImVec4 InternalUI::Colors::mc_color_f ( )

◆ mc_color_f_s()

ImVec4 InternalUI::Colors::mc_color_f_s ( )

◆ MessageColorToImColor()

ImVec4 InternalUI::Colors::MessageColorToImColor ( std::string  color_id)

Retrieves a color by its ID, as an ImGUI-compatiable color.

Parameters
color_id- The ID of the color to retrieve.
Returns
An ImVec4 containing color information.

◆ RegisterDefaultColors()

void InternalUI::Colors::RegisterDefaultColors ( )

Registers all hard-coded color information.

◆ RegisterNamedColor()

void InternalUI::Colors::RegisterNamedColor ( std::string  id,
BlamColor  color 
)

Registers a new color.

Parameters
id- The ID of the color. This is used to retrieve it later.
color- The color data to add.

◆ transparent()

ImVec4 InternalUI::Colors::transparent ( )