![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.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_ color_name, ImVec4 color) |
| Registers a custom color to this color scheme. More... | |
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.
Registers a custom color to this color scheme.
| color_name | - The ImGUI color to assign. |
| color | - The color to assign to the specified ImGUI color. |
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
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.