Elaztek Developer Hub
Blamite Game Engine - blam!  00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
devtools_bar.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <Strings/components/utils/io/io.h>
6 
9 
17 {
18 private:
19  bool devtools_bar = true;
20  bool main_menu = true;
21 
22  bool window_wrap = false;
23 
24 public:
25  BlamImGuiWindow_DevToolsBar(bool show_in_window)
26  {
27  window_wrap = show_in_window;
28 
29  if (window_wrap)
30  {
31  main_menu = false;
32  }
33  }
34 
39  {
40  main_menu = false;
41  }
42 
46  void Draw()
47  {
48  devtools_bar = show;
49 
50  // Main Menu (titlebar)
51  if (devtools_bar)
52  {
53  if (main_menu)
54  {
56  }
57  else
58  {
59  if (window_wrap)
60  {
62  }
63 
65  }
66 
67  if (ImGui::BeginMenu("File"))
68  {
69  ImGui::MenuItem("Open .map file", NULL);
70  ImGui::MenuItem("Return to mainmenu", NULL);
71  if (ImGui::MenuItem("Open game dir", NULL)) BlamStrings::Utils::IO::OpenGameDirectory();
73  ImGui::MenuItem("Exit", NULL, duigvs("exit_via_menu"));
75  }
76  if (ImGui::BeginMenu("Tools"))
77  {
78  ImGui::MenuItem("Memory Editor", NULL);
79  ImGui::MenuItem("Object Info", NULL);
80  ImGui::MenuItem("Cheats", NULL);
81  ImGui::MenuItem("Logger", NULL, duigvs("logger"));
83  ImGui::MenuItem("Render Stack Editor", NULL, duigvs("render_stack_editor"));
85  if (ImGui::MenuItem("Take Screenshot", "F2"))
86  {
88  }
90  }
91  if (ImGui::BeginMenu("Network Tools"))
92  {
93  ImGui::MenuItem("Chat", NULL, duigvs("chat_window"));
94  ImGui::MenuItem("Network Poker", NULL);
95  ImGui::MenuItem("Test Master Server Connection", NULL, duigvs("ip_test"));
96  ImGui::MenuItem("Advanced", NULL);
98  }
99  if (ImGui::BeginMenu("Config"))
100  {
101  ImGui::MenuItem("Engine Configuration (Raw)", NULL, duigvs("config_editor"));
102  ImGui::MenuItem("Engine Configuration", NULL, duigvs("config_editor_new"));
103  ImGui::MenuItem("Theme Selector", NULL, duigvs("theme_selector"));
104  ImGui::EndMenu();
105  }
106  if (ImGui::BeginMenu("Test"))
107  {
108  ImGui::MenuItem("Crash Test", NULL, duigvs("crash_test_ui"));
109  ImGui::MenuItem("Access Key Dialog", NULL, duigvs("license_startup_prompt"));
110  ImGui::MenuItem("Win32 Dialog", NULL);
111  ImGui::MenuItem("Forceload .map", NULL);
113  ImGui::MenuItem("ImGui Test Window", NULL, ((BlamImGuiWindow_DirectX11Window*)Blam::UI::ImGUI::GetImGuiWindow("dx11_window"))->show_test_window);
114  ImGui::MenuItem("DX11 Example Window", NULL, duigvs("dx11_window"));
116  ImGui::MenuItem("Discord Rich Presence", NULL, duigvs("discord_rpc_ui"));
118  ImGui::MenuItem("Direct2D Test Window", NULL, duigvs("d2d_test"));
119  ImGui::EndMenu();
120  }
121  if (ImGui::BeginMenu("Debug"))
122  {
123  ImGui::MenuItem("Show Coordinates", NULL);
124  ImGui::MenuItem("Show Runtime Counter", NULL);
125  ImGui::MenuItem("Show FPS", NULL, ((BlamImGuiWindow_Stats*)Blam::UI::ImGUI::GetImGuiWindow("stats"))->ShowFPS());
126  ImGui::MenuItem("Show Network Info", NULL, duigvs("network_stats"));
127  ImGui::MenuItem("Show Usage Info", NULL);
128  ImGui::MenuItem("Show Stats", NULL, duigvs("stats"));
129  ImGui::MenuItem("Toggle Render Target Clearing", "F3 + R", nullptr);
130  //ImGui::MenuItem("Console (v2 demo)", NULL, &show_testing_newconsole);
131  ImGui::EndMenu();
132  }
133  if (ImGui::BeginMenu("Help"))
134  {
135  ImGui::MenuItem("ImGui User Guide", NULL, duigvs("imgui_user_guide"));
137  ImGui::MenuItem("About ImGui", NULL, duigvs("imgui_info"));
138  ImGui::MenuItem("About Blamite", NULL, duigvs("engine_info"));
139  ImGui::EndMenu();
140  }
141 
142  if (main_menu)
143  {
145  }
146  else
147  {
149 
150  if (window_wrap)
151  {
152  ImGui::Text("can't imagine why you'd need it, but here it is");
153 
154  ImGui::End();
155  }
156  }
157  }
158  }
159 };
BlamUIWidget_Group::RefreshRelativePosition
void RefreshRelativePosition() override
Updates the relative position of the widget, relative to its parent.
Definition: group.cpp:140
BlamUIWidget_BasicLine::thickness
int thickness
The thickness of the line.
Definition: ui.h:443
BlamImGuiWindow_GameEngineTextViewer
Class for the engine Globals editor.
Definition: engine_text_viewer.hpp:13
BlamUIWidget::hidden
bool hidden
Whether or not the widget is hidden.
Definition: ui.h:109
Blam::UI::ImGUI::CleanupWindows
BLAM void CleanupWindows()
Cleans up any data used by the ImGUI draw list.
Definition: debug_ui.cpp:143
ui.h
BlamImGuiWindow_GlobalsEditor
Class for the engine Globals editor.
Definition: globals_editor.hpp:14
BlamUIWidget_BasicLine::end
BlamVector2 end
The ending point of the line.
Definition: ui.h:445
listeners.hpp
imgui_style_picker.hpp
Blam::Rendering::Materials::CreateDefaultUnlitDatablockForPrimitives
BLAM Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablockForPrimitives(std::string id)
Creates a default Unlit datablock for use with 2D and 3D primitives.
Definition: materials.cpp:997
BlamImGuiWindow::Draw
virtual void Draw()
Draws the contents of the group.
Definition: imgui.h:43
BlamUIWidget_BasicEllipse::thickness
int thickness
The thickness of the primitive. Only used when solid is set to false.
Definition: ui.h:425
config_editor.hpp
license_prompt.hpp
BlamImGuiWindow_MenuBar
Class for the main ImGUI menu bar.
Definition: menubar.hpp:23
BlamImGuiWindow_OgreHlmsDebug
Class for the Ogre HLMS Debug utility.
Definition: ogre_hlms_debug.hpp:18
BlamImGuiWindow_ImGuiDemoWindow
Wrapper for ImGui's demo window.
Definition: imgui_demo.hpp:8
duigvs
#define duigvs(x)
Macro for Blam::DebugUI::GetVisibility().
Definition: imgui.h:18
resolve_font_uv
BlamVector4 resolve_font_uv(int coord_x, int coord_y, int tex_width, int tex_height, int slots_x, int slots_y)
Definition: text.cpp:17
BlamImGuiWindow_ThemePicker
Class for the old and awful theme picker dialog.
Definition: theme_picker.hpp:17
BlamUIWidget::update
bool update
Whether or not the widget needs to be updated before the next draw call.
Definition: ui.h:108
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
BlamUIWidget_VLayoutGroup::item_spacing
int item_spacing
The amount of space to display between items, in pixels.
Definition: ui.h:322
BlamUIWidget::hide_in_layout
bool hide_in_layout
Whether or not this widget should be hidden within its layout.
Definition: ui.h:134
imgui_user_guide.hpp
BlamUIWidget_Text::font_name
std::string font_name
The name of the font package to use for this text widget.
Definition: ui.h:526
BlamImGuiWindow_DirectorTool
Class for the Director debug utility.
Definition: director.hpp:13
BlamUIWidget_Group
Class representing a Group widget.
Definition: ui.h:265
ImGui::EndMenu
IMGUI_API void EndMenu()
Definition: imgui_widgets.cpp:6224
BlamUIWidget::position
BlamVector2 position
The position of the widget, relative to its parent.
Definition: ui.h:123
menubar.hpp
ImGui::EndMainMenuBar
IMGUI_API void EndMainMenuBar()
Definition: imgui_widgets.cpp:5995
color
BlamColor color
Typedef for a color field, used in tag definitions.
Definition: tags.h:428
BlamFontPackageType::TrueType
@ TrueType
Indicates that the font package stores a TrueType (or similar) font directly.
ImGui::Checkbox
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
blam_ui_editor.hpp
BlamUIWidget_VLayoutGroup::~BlamUIWidget_VLayoutGroup
~BlamUIWidget_VLayoutGroup()
Definition: vlayout.cpp:10
BlamImGuiWindow_BlamUIEditor::Draw
void Draw()
Draws the contents of the group.
Definition: blam_ui_editor.hpp:165
BlamImGuiWindow::show
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
BlamUIWidget::MarkForUpdate
void MarkForUpdate()
Marks the widget as needing to be updated on the next draw call.
Definition: BlamUIWidget.cpp:392
BlamImGuiWindow_DiscordRPCTester
Class for the Discord Rich Presence test dialog.
Definition: discord_rpc_tester.hpp:21
BlamImGuiWindow_FontEditor
Class for the Font Editor.
Definition: font_editor.hpp:13
BlamUIWidget::parent
BlamUIWidget_Group * parent
The parent group of this widget, if applicable.
Definition: ui.h:132
theme_picker.hpp
BlamUIWidget_BasicTriangle::point_x
BlamVector2 point_x
The first point of the triangle. Only used when use_custom_points is set to true.
Definition: ui.h:469
BlamUIWidget::rotation
float rotation
The rotation of the widget, in degrees.
Definition: ui.h:125
BlamUIWidget_2DPrimitive::datablock
Ogre::HlmsUnlitDatablock * datablock
The datablock associated with this widget.
Definition: ui.h:367
BlamUIWidget_Text::font_package
BlamFontPackage * font_package
The font package being used for this text widget.
Definition: ui.h:527
BlamUIWidget_Group::show_bounds
bool show_bounds
Whether or not to display the debug bounding box around this widget.
Definition: ui.h:273
BlamUIWidget_Text::character_height
int character_height
The line height of this text widget, in pixels.
Definition: ui.h:522
BlamUIWidget_Text::shadow_offset
BlamVector2 shadow_offset
The offset of the text shadow, in pixels.
Definition: ui.h:523
imgui.h
BlamUIWidget_BasicEllipse::resolution
int resolution
The number of faces that the ellipse should have. Higher numbers result in a smoother edge.
Definition: ui.h:426
BlamUIWidget_BasicTriangle::point_z
BlamVector2 point_z
The third point of the triangle. Only used when use_custom_points is set to true.
Definition: ui.h:471
BlamWidgetType::Basic_Rectangle
@ Basic_Rectangle
A basic filled or outline rectangle.
BlamUIWidget_2DPrimitive::color
BlamColor color
The color of the widget.
Definition: ui.h:373
ImVec4
Definition: imgui.h:192
BlamWidgetType::Basic_Ellipse
@ Basic_Ellipse
A basic filled or outline ellipse.
console.hpp
ImGui::InputText
IMGUI_API bool InputText(const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3068
engine_text_viewer.hpp
BlamImGuiWindow_DevToolsBar::BlamImGuiWindow_DevToolsBar
BlamImGuiWindow_DevToolsBar(bool show_in_window)
Definition: devtools_bar.hpp:25
BlamUIWidget_VLayoutGroup::padding
BlamVector4 padding
The padding around the layout group. Padding order is top, right, bottom, left.
Definition: ui.h:321
imgui_impl_dx11.h
BlamUIWidget_Group::ShowImGuiEditorWindow
void ShowImGuiEditorWindow()
Displays the separate ImGUI editor window for this group.
Definition: group.cpp:185
BlamWidgetType::Group_VLayout
@ Group_VLayout
A group widget which displays all items in a vertical list.
BlamUIWidget::z_size
float z_size
The Z size of the widget. Mostly unused.
Definition: ui.h:128
Blam::Globals::GetGlobalAsFloat
BLAM float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: globals.cpp:403
BlamImGuiWindow_AboutImGUI
Class for the ImGUI about dialog.
Definition: about_imgui.hpp:10
ImGui::End
IMGUI_API void End()
Definition: imgui.cpp:6016
BlamImGuiWindow_ErrorDialog::message
const char * message
The contents of the error dialog.
Definition: error_dialog.hpp:17
BlamUIWidget_2DPrimitive::manual_object
Ogre::ManualObject * manual_object
The manual object associated with this widget.
Definition: ui.h:366
BlamUIWidget_Text::SetHidden
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: text.cpp:452
BlamImGuiWindow_UpdateChecker
A class containing a theoretical update check dialog.
Definition: update_checker.hpp:21
BlamUIWidget_BasicRectangle::solid
bool solid
Whether or not this primitive is solid, or an outline.
Definition: ui.h:407
BlamUIWidget_BasicRectangle::thickness
int thickness
The thickness of the primitive. Only used when solid is set to false.
Definition: ui.h:408
BlamUIWidget::GetAdjustedZIndex
int GetAdjustedZIndex()
Retrieves the adjusted Z-index of the widget.
Definition: BlamUIWidget.cpp:397
Blam::Rendering::TakeScreenshot
BLAM void TakeScreenshot()
Instructs OGRE to save a screenshot on the next frame.
Definition: ogre.cpp:547
BlamUIWidget_2DPrimitive
Base class for 2D primitive widgets.
Definition: ui.h:339
ImGui::BeginMainMenuBar
IMGUI_API bool BeginMainMenuBar()
Definition: imgui_widgets.cpp:5975
imgui_stdlib.h
BlamImGuiWindow_ErrorDialog::title
const char * title
The title of the error dialog.
Definition: error_dialog.hpp:16
BlamUIWidget_Group::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: group.cpp:155
BlamImGuiWindow_DynamicMenuBar
Class for the main ImGUI menu bar.
Definition: dynamic_menubar.hpp:19
BlamUIWidget::size
BlamVector2 size
The size of the widget, relative to its parent.
Definition: ui.h:124
BlamFontPackage::glyphs
BlamMap< char, BlamFontGlyph * > glyphs
Map containing all glyphs within the font package.
Definition: fonts.h:92
imgui_font_selector.hpp
Blam::Content::Fonts::GetFont
BLAM BlamFontPackage * GetFont(std::string id)
Retrieves a font package from its name.
Definition: fonts.cpp:744
rendering.h
ImGui::DragInt
IMGUI_API bool DragInt(const char *label, int *v, float v_speed=1.0f, int v_min=0, int v_max=0, const char *format="%d")
Definition: imgui_widgets.cpp:2209
BlamImGuiWindow_DevToolsBar::Draw
void Draw()
Draws the menu bar contents.
Definition: devtools_bar.hpp:46
BlamUIWidget_Group::Draw
void Draw() override
Draws the widget on-screen.
Definition: group.cpp:51
BlamUIWidget_Text::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: text.cpp:71
ImGui::SameLine
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
BlamImGuiWindow_ErrorDialog::show_error_dialog
bool show_error_dialog
Whether or not to show the error dialog.
Definition: error_dialog.hpp:15
about_blamite.hpp
BlamUIWidget::GetAnchorPosition
BlamWidgetAnchor GetAnchorPosition()
Retrieves the anchor position of the widget.
Definition: BlamUIWidget.cpp:410
BlamImGuiWindow
Class representing an ImGUI window.
Definition: imgui.h:31
dx11_window.hpp
BlamUIWidget_VLayoutGroup::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: vlayout.cpp:26
BlamFontGlyph::height
uint32_t height
The height of the glyph texture.
Definition: fonts.h:56
BlamUIWidget_2DPrimitive::GenerateManualObject
virtual void GenerateManualObject()
Virtual method used to generate the manual object.
Definition: ui.h:395
ImGui::MenuItem
IMGUI_API bool MenuItem(const char *label, const char *shortcut=NULL, bool selected=false, bool enabled=true)
Definition: imgui_widgets.cpp:6240
BlamImGuiWindow_ModernConfigEditor
Class for the modern Config Editor.
Definition: config_editor.hpp:14
BlamFontPackage::monospace_width
int monospace_width
The monospaced width of each character. Only used when monospace is set to true.
Definition: fonts.h:95
BlamFontGlyph::width
uint32_t width
The width of the glyph texture.
Definition: fonts.h:55
BlamUIWidget_Group::~BlamUIWidget_Group
~BlamUIWidget_Group()
Definition: group.cpp:34
BlamImGuiWindow_WorldEditor
Class for the World Editor utility.
Definition: world_editor.hpp:13
BlamImGuiWindow_LicensePrompt
Dialog to prompt for developer key authentication.
Definition: license_prompt.hpp:16
BlamFontPackage::CreateCopiedDatablock
Ogre::HlmsDatablock * CreateCopiedDatablock()
Creates a copy of this glyph's datablock, intended to allow for it to be recolored on a per-instance ...
Definition: BlamFontPackage.cpp:33
BlamUIWidget_Text::~BlamUIWidget_Text
~BlamUIWidget_Text()
Definition: text.cpp:35
BlamUIWidget::SetPosition
virtual void SetPosition(BlamVector2 new_position)
Sets the position of the widget.
Definition: BlamUIWidget.cpp:368
BlamUIWidget::ShowImGuiPropertyEditor
virtual void ShowImGuiPropertyEditor()
Displays an ImGUI-based property editor.
Definition: BlamUIWidget.cpp:57
BlamImGuiWindow_Stats
This is the ImGUI-based implementation of the stats widget.
Definition: stats.hpp:21
Blam::UI::ImGUI::Widgets::ShowHelpMarker
BLAM void ShowHelpMarker(const char *desc)
Shows a help indicator.
Definition: widgets.cpp:7
BlamFontGlyph
Class representing a font glyph.
Definition: fonts.h:43
ImGui::Begin
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
BlamUIWidget_Group::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: group.cpp:98
BlamUIWidget::ignore_layout
bool ignore_layout
Whether or not this widget should ignore any layout positioning.
Definition: ui.h:133
BlamUIWidget_Text::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: text.cpp:97
ImGui::DragFloat2
IMGUI_API bool DragFloat2(const char *label, float v[2], float v_speed=1.0f, float v_min=0.0f, float v_max=0.0f, const char *format="%.3f", float power=1.0f)
Definition: imgui_widgets.cpp:2169
ImGui::CollapsingHeader
IMGUI_API bool CollapsingHeader(const char *label, ImGuiTreeNodeFlags flags=0)
Definition: imgui_widgets.cpp:5422
BlamImGuiWindow_DevToolsBar
Class for the original menu bar shown with ImGUI.
Definition: devtools_bar.hpp:16
BlamImGuiWindow_ImGuiMetricsWindow
Wrapper for ImGui's built-in metrics window.
Definition: imgui_metrics.hpp:8
config_editor_new.hpp
BlamImGuiWindow_BlamUIEditor
Class for the Blam UI Editor debug utility.
Definition: blam_ui_editor.hpp:11
BlamUIWidget_Text::Draw
void Draw() override
Draws the widget on-screen.
Definition: text.cpp:52
BlamWidgetAnchor::TopLeft
@ TopLeft
The widget will be placed at the top-left of the screen.
Blam::UI::ImGUI::AddToWindowList
BLAM void AddToWindowList(std::string key, BlamImGuiWindow *group)
Adds a new item to the ImGUI draw list.
Definition: debug_ui.cpp:176
BlamUIWidget_Group::children
std::vector< BlamUIWidget * > children
The list of child widgets within this group.
Definition: ui.h:272
BlamUIWidget::display_name
std::string display_name
The display name of the widget.
Definition: ui.h:120
ImGui::BeginMenuBar
IMGUI_API bool BeginMenuBar()
Definition: imgui_widgets.cpp:6012
BlamUIWidget_BasicTriangle::thickness
int thickness
The thickness of the primitive. Only used when solid is set to false.
Definition: ui.h:466
BlamUIWidget_Text::color
BlamColor color
The text foreground color.
Definition: ui.h:524
BlamUIWidget_2DPrimitive::SetHidden
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: 2d_primitive.cpp:173
imgui_metrics.hpp
BlamUIWidget::SetHidden
virtual void SetHidden(bool new_hidden)
Sets the hidden state of the widget.
Definition: BlamUIWidget.cpp:415
NULL
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
BlamUIWidget::SetSize
void SetSize(BlamVector2 new_size)
Sets the size of the widget.
Definition: BlamUIWidget.cpp:361
BlamUIWidget_2DPrimitive::Draw
void Draw() override
Draws the widget on-screen.
Definition: 2d_primitive.cpp:88
update_checker.hpp
BlamImGuiWindow_Exit
Class for the exit confirmation dialog.
Definition: exit.hpp:11
BlamUIWidget_BasicLine::GenerateManualObject
void GenerateManualObject() override
Virtual method used to generate the manual object.
Definition: line.cpp:15
widgets.h
BlamFontPackageType::XMLBitmapAtlas
@ XMLBitmapAtlas
Identical to #BitmapAtlas, but indicates that the font package is unpacked.
ImGui::Text
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
BlamFontPackage::type
BlamFontPackageType type
The format of the font pacakge. See BlamFontPackageType for details.
Definition: fonts.h:91
BlamImGuiWindow_DebugMenu
Class for the ImGUI-based debug menu implementation.
Definition: debug_menu.hpp:18
jtchat.hpp
font_editor.hpp
BlamFontPackage::line_height
int line_height
The height of each line of text, in pixels.
Definition: fonts.h:97
dynamic_menubar.hpp
BlamImGuiWindow_AboutBlamite
Class for the legacy ImGUI-based About box.
Definition: about_blamite.hpp:37
main_menu
BlamDebugMenu * main_menu
The current debug menu information.
Definition: debug_menu.cpp:15
ip_test.hpp
resource.h
BlamUIWidget::UpdateMetrics
virtual void UpdateMetrics()
Updates metrics for the widget.
Definition: ui.h:170
globals.h
BlamImGuiWindow_WeirdLogger
A class for...
Definition: weird_logger.hpp:13
Blam::UI::ImGUI::ShowErrorDialog
BLAM void ShowErrorDialog(const char *title, const char *message)
Shows a simple error dialog created using ImGUI.
Definition: debug_ui.cpp:167
BlamImGuiWindow_ConfigEditorNew
Class for a GUI config editor.
Definition: config_editor_new.hpp:22
BlamUIWidget_VLayoutGroup::auto_height
bool auto_height
Whether or not to automatically adjust the layout height to match its children.
Definition: ui.h:323
ImGui::BeginMenu
IMGUI_API bool BeginMenu(const char *label, bool enabled=true)
Definition: imgui_widgets.cpp:6081
BlamFontPackageType::XMLBitmap
@ XMLBitmap
Identical to #Bitmap, but indicates that the font package is unpacked.
BlamUIWidget_BasicTriangle::use_custom_points
bool use_custom_points
Whether or not to use custom points for each end of the triangle.
Definition: ui.h:468
BlamImGuiWindow_ImGUIUserGuide
Class for the ImGUI user guide.
Definition: imgui_user_guide.hpp:11
BlamImGuiWindow_JTChat
This was planned to be a chat client that would connect to some sort of java-based chat server.
Definition: jtchat.hpp:15
material
Definition: material.h:52
BlamUIWidget_BasicTriangle::BlamUIWidget_BasicTriangle
BlamUIWidget_BasicTriangle(BlamUIWidget_Group *_parent)
Definition: triangle.cpp:10
BlamImGuiWindow_ImGuiStyleSelectorWindow
Wrapper for ImGui's built-in style selector.
Definition: imgui_style_picker.hpp:8
ogre_scene_editor.hpp
imgui_window_list
std::map< std::string, BlamImGuiWindow * > imgui_window_list
The list of all available ImGUI windows.
Definition: debug_ui.cpp:83
BlamUIWidget_2DPrimitive::node
Ogre::SceneNode * node
The scene node associated with this widget.
Definition: ui.h:368
BlamUIWidget_VLayoutGroup::Draw
void Draw() override
Draws the widget on-screen.
Definition: vlayout.cpp:15
BlamUIWidget_BasicTriangle::solid
bool solid
Whether or not this primitive is solid, or an outline.
Definition: ui.h:465
globals_editor.hpp
BlamFontPackage::monospace
bool monospace
Whether or not the font is monospaced.
Definition: fonts.h:94
director.hpp
BlamWidgetType::Basic_Triangle
@ Basic_Triangle
A basic filled or outline triangle.
BlamImGuiWindow_ErrorDialog
Class used for the ImGUI-based error dialog.
Definition: error_dialog.hpp:12
BlamImGuiWindow_CrashTest
Class for the crash test dialog.
Definition: crash_test.hpp:12
BlamUIWidget_BasicRectangle
Class representing a basic rectangle widget.
Definition: ui.h:404
BlamImGuiWindow_ImGuiConsole
Class for the ImGUI console implementation.
Definition: console.hpp:19
about_blamite_new.hpp
tag_editor.hpp
BlamUIWidget_VLayoutGroup::RefreshRelativePosition
void RefreshRelativePosition() override
Updates the relative position of the widget, relative to its parent.
Definition: vlayout.cpp:48
BlamUIWidget_BasicTriangle::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: triangle.cpp:61
BlamFontGlyph::uv
BlamVector4 uv
The UV coordinates of the font glyph.
Definition: fonts.h:61
BlamUIWidget_Text::BlamUIWidget_Text
BlamUIWidget_Text(BlamUIWidget_Group *_parent)
Definition: text.cpp:30
Blam::UI::ImGUI::GetWindowList
BLAM std::map< std::string, BlamImGuiWindow * > * GetWindowList()
Retrieves the current ImGUI drawing list.
Definition: debug_ui.cpp:188
BlamUIWidget
Base class for a UI widget.
Definition: ui.h:89
Blam::UI::ImGUI::RenderWindows
BLAM void RenderWindows()
Renders all ImGUI data.
Definition: debug_ui.cpp:155
Blam::UI::ImGUI::BuildWindows
BLAM void BuildWindows()
Initializes the ImGUI draw list.
Definition: debug_ui.cpp:85
Blam::Rendering::GetRenderHeight
BLAM int GetRenderHeight()
Retrieves the current height of the OGRE viewport.
Definition: ogre.cpp:532
BlamUIWidget_2DPrimitive::needs_regen
bool needs_regen
Whether or not the manual object needs to be regenerated.
Definition: ui.h:370
BlamUIWidget_BasicLine::BlamUIWidget_BasicLine
BlamUIWidget_BasicLine(BlamUIWidget_Group *_parent)
Definition: line.cpp:10
ImGui::EndMenuBar
IMGUI_API void EndMenuBar()
Definition: imgui_widgets.cpp:6040
BlamUIWidget_2DPrimitive::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: 2d_primitive.cpp:131
GUI_RENDER_QUEUE_GROUP_ID
#define GUI_RENDER_QUEUE_GROUP_ID
The ID of the render queue group used for 2D rendering.
Definition: rendering.h:25
BlamUIWidget_BasicEllipse::solid
bool solid
Whether or not this primitive is solid, or an outline.
Definition: ui.h:424
crash.h
error_dialog.hpp
BlamUIWidget_BasicEllipse::GenerateManualObject
void GenerateManualObject() override
Virtual method used to generate the manual object.
Definition: ellipse.cpp:15
BlamFontGlyph::CreateCopiedDatablock
Ogre::HlmsDatablock * CreateCopiedDatablock()
Creates a copy of this glyph's datablock, intended to allow for it to be recolored on a per-instance ...
Definition: BlamFontGlyph.cpp:7
BlamUIWidget_Text::text
std::string text
The text to display within this text widget.
Definition: ui.h:528
BlamImGuiWindow_AboutBlamiteNew
Class for Blamite's ImGUI-based About box.
Definition: about_blamite_new.hpp:12
imgui_impl_win32.h
BlamImGuiWindow_ConfigEditor
An incomplete configuration editor, using raw text.
Definition: config_editor.hpp:22
BlamUIWidget::RefreshRelativePosition
virtual void RefreshRelativePosition()
Updates the relative position of the widget, relative to its parent.
Definition: BlamUIWidget.cpp:212
ImGui::ColorEdit4
IMGUI_API bool ColorEdit4(const char *label, float col[4], ImGuiColorEditFlags flags=0)
Definition: imgui_widgets.cpp:4154
ImGuiWindowFlags_AlwaysAutoResize
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
crash_test.hpp
BlamUIWidget_BasicTriangle::point_y
BlamVector2 point_y
The second point of the triangle. Only used when use_custom_points is set to true.
Definition: ui.h:470
BlamUIWidget_Text::shadow_color
BlamColor shadow_color
The text shadow color.
Definition: ui.h:525
Blam::Rendering::Get2DSceneManager
BLAM Ogre::SceneManager * Get2DSceneManager()
Retrieves the scene manager used to handle 2D rendering.
Definition: ogre.cpp:552
BlamImGuiWindow_TagEditor
Class for the realtime tag editor.
Definition: tag_editor.hpp:14
BlamUIWidget_2DPrimitive::BlamUIWidget_2DPrimitive
BlamUIWidget_2DPrimitive(BlamWidgetType _type, BlamUIWidget_Group *_parent)
Constructs a new 2D Primitive widget.
Definition: 2d_primitive.cpp:10
BlamUIWidget_Group::ClearChildren
void ClearChildren()
Clears and destroys all child widgets within the group.
Definition: group.cpp:193
BlamUIWidget_2DPrimitive::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: 2d_primitive.cpp:113
BlamImGuiWindow_NetworkStats
Class for the Network Stats dialog.
Definition: network_stats.hpp:16
BlamFontPackageType::XMLTruetype
@ XMLTruetype
Identical to #Truetype, but indicates that the font package is unpacked.
ImGuiWindowFlags_MenuBar
@ ImGuiWindowFlags_MenuBar
Definition: imgui.h:724
imgui.h
weird_logger.hpp
BlamUIWidget_BasicLine::start
BlamVector2 start
The starting point of the line.
Definition: ui.h:444
world_editor.hpp
BlamUIWidget::IsHidden
bool IsHidden()
Checks whether or not the widget is hidden.
Definition: BlamUIWidget.cpp:420
BlamImGuiWindow_IPTest
Legacy IP test dialog.
Definition: ip_test.hpp:15
BlamUIWidget_2DPrimitive::last_hide_state
bool last_hide_state
The last known hidden state. Used to automatically update the widget visibility.
Definition: ui.h:369
Blam::UI::ImGUI::GetImGuiWindow
BLAM BlamImGuiWindow * GetImGuiWindow(std::string key)
Retrieves a drawing group with the specified ID.
Definition: debug_ui.cpp:193
ImGui::Separator
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
BlamFontPackageType::Bitmap
@ Bitmap
Indicates that the font package stores glyphs in separate bitmaps.
BlamWidgetType
BlamWidgetType
Enumerator listing possible UI widget types.
Definition: ui.h:60
BlamImGuiWindow_ImGuiFontSelectorWindow
Wrapper for ImGui's built-in font selector.
Definition: imgui_font_selector.hpp:8
ImGui::DragFloat4
IMGUI_API bool DragFloat4(const char *label, float v[4], float v_speed=1.0f, float v_min=0.0f, float v_max=0.0f, const char *format="%.3f", float power=1.0f)
Definition: imgui_widgets.cpp:2179
BlamImGuiWindow_DevToolsBar::SetDrawModeNotMainMenu
void SetDrawModeNotMainMenu()
Instructs the menu to draw as a menu bar within a window, rather than as part of the main menu bar.
Definition: devtools_bar.hpp:38
BlamFontPackage::ttf_font
Ogre::FontPtr ttf_font
Unused.
Definition: fonts.h:106
ImGuiWindowFlags_NoResize
@ ImGuiWindowFlags_NoResize
Definition: imgui.h:715
config_editor.hpp
BlamUIWidget::auto_update
bool auto_update
Whether or not the widget should always update every frame.
Definition: ui.h:129
imgui_demo.hpp
BlamUIWidget_Group::BlamUIWidget_Group
BlamUIWidget_Group(BlamUIWidget_Group *_parent)
Constructs a new group widget.
Definition: group.cpp:8
BlamUIWidget::position_absolute
BlamVector2 position_absolute
The absolute position of the widget on-screen.
Definition: ui.h:106
BlamUIWidget_BasicRectangle::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: rectangle.cpp:57
debug_menu.hpp
ogre_hlms_debug.hpp
BlamWorldObjectType::Group
@ Group
BlamUIWidget_BasicEllipse::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: ellipse.cpp:115
BlamUIWidget_Text::RebuildTextObject
void RebuildTextObject()
Regenerates the text object.
Definition: text.cpp:180
BlamImGuiWindow_DirectX11Window
Class for the default ImGUI DX11 sample window.
Definition: dx11_window.hpp:11
imgui_style_editor.hpp
BlamUIWidget_BasicEllipse::BlamUIWidget_BasicEllipse
BlamUIWidget_BasicEllipse(BlamUIWidget_Group *_parent)
Definition: ellipse.cpp:10
BlamUIWidget::size_absolute
BlamVector2 size_absolute
The absolute size of the widget on-screen.
Definition: ui.h:107
discord_rpc_tester.hpp
BlamUIWidget_BasicEllipse::radius
BlamVector2 radius
The radius of the ellipse.
Definition: ui.h:427
BlamFontPackage::charspacing
int charspacing
The amount of spacing between each character, in pixels.
Definition: fonts.h:96
about_imgui.hpp
ImGui::TextColored
IMGUI_API void TextColored(const ImVec4 &col, const char *fmt,...) IM_FMTARGS(2)
Definition: imgui_widgets.cpp:257
BlamUIWidget_VLayoutGroup::BlamUIWidget_VLayoutGroup
BlamUIWidget_VLayoutGroup(BlamUIWidget_Group *_parent)
Definition: vlayout.cpp:5
BlamUIWidget_Group::SetHidden
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: group.cpp:170
BlamUIWidget_BasicRectangle::BlamUIWidget_BasicRectangle
BlamUIWidget_BasicRectangle(BlamUIWidget_Group *_parent)
Definition: rectangle.cpp:14
BlamImGuiWindow_ImGuiStyleEditorWindow
Wrapper for ImGui's built-in style editor.
Definition: imgui_style_editor.hpp:8
stats.hpp
BlamImGuiWindow_EventListenerViewer
Class for the event listener viewer.
Definition: listeners.hpp:13
exit.hpp
Blam::UI::ImGUI::GetVisibility
BLAM bool * GetVisibility(std::string key)
Retrieves the visibility of the specified draw list item.
Definition: debug_ui.cpp:205
devtools_bar.hpp
ImGui::Button
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644
BlamFontPackage::space_width
int space_width
The width of the space character, in pixels. Only used when monospace is false.
Definition: fonts.h:98
BlamImGuiWindow_OgreSceneEditor
Class for the Ogre Scene Editor utility.
Definition: ogre_scene_editor.hpp:14
BlamUIWidget_BasicLine::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: line.cpp:26
BlamUIWidget_BasicRectangle::GenerateManualObject
void GenerateManualObject() override
Virtual method used to generate the manual object.
Definition: rectangle.cpp:19
network_stats.hpp
BlamFontPackageType::BitmapAtlas
@ BitmapAtlas
Indicates that the font package stores glyphs in a texture atlas bitmap.
theme_editor.hpp
BlamUIWidget::SetAnchorPosition
void SetAnchorPosition(BlamWidgetAnchor new_anchor_position)
Sets the anchor position of the widget.
Definition: BlamUIWidget.cpp:381
BlamUIWidget_2DPrimitive::~BlamUIWidget_2DPrimitive
~BlamUIWidget_2DPrimitive()
Definition: 2d_primitive.cpp:16
Blam::Rendering::GetRenderWidth
BLAM int GetRenderWidth()
Retrieves the current width of the OGRE viewport.
Definition: ogre.cpp:527
BlamImGuiWindow_ModernThemeEditor
Class for the modern Theme Editor.
Definition: theme_editor.hpp:12