 |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #include <Strings/components/utils/io/io.h>
6 #include <Strings/components/utils/web/web.h>
28 bool old_devtools_bar =
false;
29 bool show_menubar =
true;
31 int commit_hash_label = 0;
33 bool show_imgui_font_picker =
false;
34 bool show_imgui_metrics =
false;
35 bool show_imgui_style_picker =
false;
36 bool show_imgui_style_editor =
false;
38 bool main_menu =
true;
106 std::string report_viewer_page = *
ENGINE_CFG->GetString(
"paths",
"game_data_root") +
"./"
107 + *
ENGINE_CFG->GetString(
"paths",
"reports_dir") +
"./index.html";
109 BlamStrings::Utils::Web::OpenLocalWebURL(report_viewer_page);
201 bool found_debug_menu =
false;
213 found_debug_menu =
true;
219 if (found_debug_menu)
277 commit_hash_label = commit_label_size.
x;
287 ImGui::Text(
"this is the final iteration of the hardcoded menu bar");
288 ImGui::Text(
"all newer menu bar changes are controlled by menu_bar_init.xml");
295 if (old_devtools_bar)
301 ImGui::Text(
"can't imagine why you'd need it, but here it is");
306 if (show_imgui_font_picker)
311 if (show_imgui_metrics)
316 if (show_imgui_style_picker)
321 if (show_imgui_style_editor)
323 if (
ImGui::Begin(
"ImGui Style Editor", &show_imgui_style_editor))
@ DebugMenu
Special widget. Used for the in-game debug menu.
#define duigvs(x)
Macro for Blam::DebugUI::GetVisibility().
Definition: imgui.h:18
IMGUI_API void ShowMetricsWindow(bool *p_open=NULL)
Definition: imgui.cpp:9780
IMGUI_API void EndMenu()
Definition: imgui_widgets.cpp:6224
IMGUI_API void BeginTooltip()
Definition: imgui.cpp:7362
IMGUI_API void EndMainMenuBar()
Definition: imgui_widgets.cpp:5995
BLAM BlamUIWidget_Group * GetUIRoot()
Retrieves the root UI group widget.
Definition: ui.cpp:64
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
IMGUI_API void End()
Definition: imgui.cpp:6016
BLAM void TakeScreenshot()
Instructs OGRE to save a screenshot on the next frame.
Definition: ogre.cpp:383
IMGUI_API bool BeginMainMenuBar()
Definition: imgui_widgets.cpp:5975
float x
Definition: imgui.h:181
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
Class representing an ImGUI window.
Definition: imgui.h:31
IMGUI_API bool MenuItem(const char *label, const char *shortcut=NULL, bool selected=false, bool enabled=true)
Definition: imgui_widgets.cpp:6240
IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags=0)
Definition: imgui.cpp:3061
IMGUI_API bool ShowStyleSelector(const char *label)
Definition: imgui_demo.cpp:3123
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
#define ENGINE_CFG
Macro to allow quicker access to the main configuration file.
Definition: config.h:20
IMGUI_API bool BeginMenuBar()
Definition: imgui_widgets.cpp:6012
IMGUI_API ImVec2 GetItemRectSize()
Definition: imgui.cpp:4689
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
IMGUI_API void PopTextWrapPos()
Definition: imgui.cpp:6313
IMGUI_API void EndTooltip()
Definition: imgui.cpp:7402
IMGUI_API bool BeginMenu(const char *label, bool enabled=true)
Definition: imgui_widgets.cpp:6081
#define CURRENT_COMMIT
Definition: version_data.h:14
IMGUI_API void EndMenuBar()
Definition: imgui_widgets.cpp:6040
BlamUIWidget_Group * ui_root
The UI root widget.
Definition: ui.cpp:13
IMGUI_API void ShowStyleEditor(ImGuiStyle *ref=NULL)
Definition: imgui_demo.cpp:3165
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
@ ImGuiWindowFlags_MenuBar
Definition: imgui.h:724
BLAM void LogEventForce(std::string message)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:262
BLAM BlamImGuiWindow * GetImGuiWindow(std::string key)
Retrieves a drawing group with the specified ID.
Definition: debug_ui.cpp:194
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
@ ImGuiWindowFlags_NoResize
Definition: imgui.h:715
IMGUI_API void ShowFontSelector(const char *label)
Definition: imgui_demo.cpp:3141
IMGUI_API void TextUnformatted(const char *text, const char *text_end=NULL)
Definition: imgui_widgets.cpp:233
Class for the default ImGUI DX11 sample window.
Definition: dx11_window.hpp:11
IMGUI_API void PushTextWrapPos(float wrap_local_pos_x=0.0f)
Definition: imgui.cpp:6306
IMGUI_API float GetWindowWidth()
Definition: imgui.cpp:6580
IMGUI_API void TextColored(const ImVec4 &col, const char *fmt,...) IM_FMTARGS(2)
Definition: imgui_widgets.cpp:257
IMGUI_API void TextDisabled(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:272