![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
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... | |
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.
BlamColorScheme::BlamColorScheme | ( | ) |
Creates a new Blam UI theme object.
void BlamColorScheme::AddCustomColor | ( | ImGuiCol_ | color_name, |
ImVec4 | color | ||
) |
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.
ImGuiThemeColors BlamColorScheme::base_colors = ImGuiThemeColors::Classic |
The default ImGUI color scheme to use as a base.
Defaults to Classic.
See ImGuiThemeColors for details.
std::string BlamColorScheme::font_id = "auto" |
The ID of the font to apply with this theme.
std::string BlamColorScheme::id |
The ID of the theme.
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.
std::string BlamColorScheme::metrics_id = "default" |
The default metrics to apply with this theme.
std::string BlamColorScheme::name |
The name of the theme.