Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
BlamColorScheme Class Reference

Class representing a Blam Color Scheme. More...

#include <themes.h>

Public Member Functions

 BlamColorScheme ()
 Creates a new Blam UI theme object. More...
 
void ApplyTheme ()
 Applies the theme to the engine UI. More...
 
void AddCustomColor (ImGuiCol_, ImVec4)
 

Public Attributes

std::string name
 The name of the theme. More...
 
std::string id
 The ID of the theme. More...
 
std::string metrics_id = "default"
 The default metrics to apply with this theme. More...
 
std::string font_id = "auto"
 The ID of the font to apply with this theme. More...
 
std::map< ImGuiCol_, ImVec4 > imgui_colors
 List of all customized ImGUI colors. More...
 
ImGuiThemeColors base_colors = ImGuiThemeColors::Classic
 The default ImGUI color scheme to use as a base. More...
 

Detailed Description

Class representing a Blam Color Scheme.

Blam Color Schemes can be used to change the colors of both ImGUI and Blamite's custom UI tools.

Constructor & Destructor Documentation

◆ BlamColorScheme()

BlamColorScheme::BlamColorScheme ( )

Creates a new Blam UI theme object.

Member Function Documentation

◆ AddCustomColor()

void BlamColorScheme::AddCustomColor ( ImGuiCol_  color_name,
ImVec4  color 
)

◆ ApplyTheme()

void BlamColorScheme::ApplyTheme ( )

Applies the theme to the engine UI.

When the theme is being applied, it will first reset ImGUI colors to the theme specified by base_colors, and will then apply any modified colors.

Member Data Documentation

◆ base_colors

ImGuiThemeColors BlamColorScheme::base_colors = ImGuiThemeColors::Classic

The default ImGUI color scheme to use as a base.

Defaults to Classic.

See ImGuiThemeColors for details.

◆ font_id

std::string BlamColorScheme::font_id = "auto"

The ID of the font to apply with this theme.

◆ id

std::string BlamColorScheme::id

The ID of the theme.

◆ imgui_colors

std::map<ImGuiCol_, ImVec4> BlamColorScheme::imgui_colors

List of all customized ImGUI colors.

The key is the ImGUI color name, the value is the color information.

◆ metrics_id

std::string BlamColorScheme::metrics_id = "default"

The default metrics to apply with this theme.

◆ name

std::string BlamColorScheme::name

The name of the theme.


The documentation for this class was generated from the following files: