 |
Blamite Game Engine - Blam (Core)
|
Go to the documentation of this file.
3 #include "../debug_ui.h"
5 #include "../imgui_windows\builtin\dx11_window.hpp"
27 bool old_devtools_bar =
false;
28 bool show_menubar =
true;
30 int commit_hash_label = 0;
62 if (ImGui::BeginMainMenuBar())
66 if (ImGui::BeginMenu(
"File"))
68 ImGui::MenuItem(
"Open .map file", NULL,
false,
false);
ShowNYITooltip();
69 ImGui::MenuItem(
"Return to mainmenu", NULL,
false,
false);
ShowNYITooltip();
77 if (ImGui::BeginMenu(
"Tools"))
81 if (ImGui::BeginMenu(
"Network"))
88 if (ImGui::BeginMenu(
"Rendering"))
96 if (ImGui::BeginMenu(
"Test"))
98 if (ImGui::BeginMenu(
"Deprecated"))
100 ImGui::TextColored(ImVec4(255, 0, 0, 1),
"These items will be replaced/removed in the future.");
104 ImGui::MenuItem(
"Old Menu", NULL, &old_devtools_bar);
109 if (ImGui::BeginMenu(
"Rendering"))
132 if (ImGui::BeginMenu(
"Network Tools"))
134 ImGui::MenuItem(
"this menu is a placeholder, come back later", NULL,
false,
false);
ShowNYITooltip();
137 if (ImGui::BeginMenu(
"Debug"))
139 if (ImGui::MenuItem(
"Debug Menu",
"PgUp"))
143 if (debug_menu_stack_item)
155 if (ImGui::BeginMenu(
"Settings"))
157 ImGui::MenuItem(
"Configuration Editor", NULL,
false,
false);
ShowNYITooltip();
161 if (ImGui::BeginMenu(
"Monitoring"))
163 ImGui::MenuItem(
"Show FPS", NULL,
false,
false);
ShowNYITooltip();
165 ImGui::MenuItem(
"Show Usage Info", NULL,
false,
false);
ShowNYITooltip();
168 if (ImGui::BeginMenu(
"Help"))
178 ImGui::SameLine(ImGui::GetWindowWidth() - (commit_hash_label + 15));
180 if (ImGui::IsItemHovered())
182 ImGui::BeginTooltip();
183 ImGui::PushTextWrapPos(450.0f);
184 ImGui::TextUnformatted(
"Current git commit of this build");
188 ImGui::TextUnformatted(
"If this build was created locally, this number will be inaccurate. Only builds acquired from Jenkins or BuildMaster will be accurate.");
191 ImGui::PopTextWrapPos();
195 ImVec2 commit_label_size = ImGui::GetItemRectSize();
197 commit_hash_label = commit_label_size.x;
199 ImGui::EndMainMenuBar();
203 if (old_devtools_bar)
205 ImGui::Begin(
"Old Menu", &old_devtools_bar, ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoResize);
209 ImGui::Text(
"can't imagine why you'd need it, but here it is");
@ d2d_test
Definition: debug_ui.h:382
@ tag_editor
Definition: debug_ui.h:389
@ discord_rpc_ui
Definition: debug_ui.h:383
@ dx11_window
Definition: debug_ui.h:367
@ render_stack_editor
Definition: debug_ui.h:386
BLAM void OpenGameDirectory()
Opens the engine's game directory in Windows Explorer.
Definition: io.cpp:114
Class for the default ImGUI DX11 sample window.
Definition: dx11_window.hpp:13
@ engine_info_new
Definition: debug_ui.h:392
BLAM void OpenLocalWebURL(std::string local_path)
Opens the specified relative path in the user's default web browser.
Definition: web.cpp:9
@ imgui_info
Definition: debug_ui.h:393
@ imgui_user_guide
Definition: debug_ui.h:397
#define WSV_ERROR
Macro for 'Error' log seveirty. Original pre-enum value was 2.
Definition: logger.h:17
@ debug_menu
Definition: debug_ui.h:394
BLAM void TakeScreenshot()
Captures the current frame and saves it to a file.
Definition: screenshot.cpp:100
@ font_editor
Definition: debug_ui.h:384
@ theme_selector
Definition: debug_ui.h:398
@ license_startup_prompt
Definition: debug_ui.h:375
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:408
#define CURRENT_COMMIT
Definition: version_data.h:14
BLAM ImGUIDrawingGroup * GetDrawListItem(DrawListItem key)
Retrieves a drawing group with the specified ID.
Definition: drawing_list.cpp:21
@ crash_test_ui
Definition: debug_ui.h:381
BLAM void LogEventForce(std::string message, LogSeverity severity)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:137
@ exit_via_menu
Definition: debug_ui.h:396
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:493
@ Text
Master text object that wraps around both BitmapText and DWText.
Definition: render_stack.h:73
BLAM bool * RenderTargetClearing()
Retrieves whether or not to enable render target clearing.
Definition: render_manage.cpp:597
#define duigvs(x)
Macro for Blam::DebugUI::GetVisibility().
Definition: debug_ui.h:20
BLAM StackObjectBase * GetStackItem(std::string id)
Retrieves an item from the render stack.
Definition: render_stack.cpp:75
@ network_stats
Definition: debug_ui.h:385