 |
Blamite Game Engine - blam!
00285.12.18.20.1411.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../debug_ui.h"
23 int commit_hash_label = 0;
34 if (ImGui::BeginMenu(item.
name.c_str()))
36 for (
int i = 0; i < item.
items.size(); i++)
38 create_menu_item(item.
items.at(i));
60 case Blam::Globals::GvarType::Boolean:
85 ImGui::TextColored(im_color, item.
variable.c_str());
122 if (ImGui::BeginMainMenuBar())
126 for (
int i = 0; i < menu.
items.size(); i++)
128 create_menu_item(menu.
items.at(i));
131 ImGui::SameLine(ImGui::GetWindowWidth() - (commit_hash_label + 15));
133 if (ImGui::IsItemHovered())
135 ImGui::BeginTooltip();
136 ImGui::PushTextWrapPos(450.0f);
137 ImGui::TextUnformatted(
ENGINE_TEXT(
"imgui_menu_commit_tooltip_title").c_str());
141 ImGui::TextUnformatted(
ENGINE_TEXT(
"imgui_menu_commit_tooltip_text").c_str());
144 ImGui::PopTextWrapPos();
148 ImVec2 commit_label_size = ImGui::GetItemRectSize();
150 commit_hash_label = commit_label_size.x;
152 ImGui::EndMainMenuBar();
BLAM HRESULT RunCommandLine(std::string command_line)
Executed the provided string as a console command.
Definition: console.cpp:204
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:101
BLAM EngineGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: globals.cpp:193
Structure containing data for a game engine global.
Definition: globals.h:256
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:362
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
#define CURRENT_COMMIT
Definition: version_data.h:14
float GetBlueAsFloat()
Gets the color's red value as a float, between 0 and 1.
Definition: globals.h:87
float GetRedAsFloat()
Gets the color's red value as a float, between 0 and 1.
Definition: globals.h:67
float GetGreenAsFloat()
Gets the color's red value as a float, between 0 and 1.
Definition: globals.h:77
float GetAlphaAsFloat()
Gets the color's red value as a float, between 0 and 1.
Definition: globals.h:97
@ Text
Master text object that wraps around both BitmapText and DWText.
Definition: render_stack.h:73
GvarType type
The type of the global.
Definition: globals.h:258
#define ENGINE_TEXT(x)
Definition: engine_text.h:6
bool boolean_value
The boolean value of the global.
Definition: globals.h:268
BLAM GvarUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: globals.cpp:571