 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #include <Strings/components/utils/io/io.h>
19 bool devtools_bar =
true;
20 bool main_menu =
true;
22 bool window_wrap =
false;
27 window_wrap = show_in_window;
152 ImGui::Text(
"can't imagine why you'd need it, but here it is");
Class for the engine Globals editor.
Definition: engine_text_viewer.hpp:13
BLAM void CleanupWindows()
Cleans up any data used by the ImGUI draw list.
Definition: debug_ui.cpp:143
Class for the engine Globals editor.
Definition: globals_editor.hpp:14
BLAM Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablockForPrimitives(std::string id)
Creates a default Unlit datablock for use with 2D and 3D primitives.
Definition: materials.cpp:997
virtual void Draw()
Draws the contents of the group.
Definition: imgui.h:43
Class for the Ogre HLMS Debug utility.
Definition: ogre_hlms_debug.hpp:18
Wrapper for ImGui's demo window.
Definition: imgui_demo.hpp:8
#define duigvs(x)
Macro for Blam::DebugUI::GetVisibility().
Definition: imgui.h:18
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
Class for the old and awful theme picker dialog.
Definition: theme_picker.hpp:17
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
std::string font_name
The name of the font package to use for this text widget.
Definition: ui.h:526
IMGUI_API void EndMenu()
Definition: imgui_widgets.cpp:6224
IMGUI_API void EndMainMenuBar()
Definition: imgui_widgets.cpp:5995
@ TrueType
Indicates that the font package stores a TrueType (or similar) font directly.
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
void Draw()
Draws the contents of the group.
Definition: blam_ui_editor.hpp:165
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: imgui.h:34
Class for the Discord Rich Presence test dialog.
Definition: discord_rpc_tester.hpp:21
Class for the Font Editor.
Definition: font_editor.hpp:13
BlamFontPackage * font_package
The font package being used for this text widget.
Definition: ui.h:527
int character_height
The line height of this text widget, in pixels.
Definition: ui.h:522
BlamVector2 shadow_offset
The offset of the text shadow, in pixels.
Definition: ui.h:523
@ Basic_Rectangle
A basic filled or outline rectangle.
@ Basic_Ellipse
A basic filled or outline ellipse.
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
@ Group_VLayout
A group widget which displays all items in a vertical list.
BLAM float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: globals.cpp:403
Class for the ImGUI about dialog.
Definition: about_imgui.hpp:10
IMGUI_API void End()
Definition: imgui.cpp:6016
const char * message
The contents of the error dialog.
Definition: error_dialog.hpp:17
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: text.cpp:452
A class containing a theoretical update check dialog.
Definition: update_checker.hpp:21
BLAM void TakeScreenshot()
Instructs OGRE to save a screenshot on the next frame.
Definition: ogre.cpp:547
IMGUI_API bool BeginMainMenuBar()
Definition: imgui_widgets.cpp:5975
const char * title
The title of the error dialog.
Definition: error_dialog.hpp:16
BlamMap< char, BlamFontGlyph * > glyphs
Map containing all glyphs within the font package.
Definition: fonts.h:92
BLAM BlamFontPackage * GetFont(std::string id)
Retrieves a font package from its name.
Definition: fonts.cpp:744
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
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: text.cpp:71
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
bool show_error_dialog
Whether or not to show the error dialog.
Definition: error_dialog.hpp:15
Class representing an ImGUI window.
Definition: imgui.h:31
uint32_t height
The height of the glyph texture.
Definition: fonts.h:56
IMGUI_API bool MenuItem(const char *label, const char *shortcut=NULL, bool selected=false, bool enabled=true)
Definition: imgui_widgets.cpp:6240
Class for the modern Config Editor.
Definition: config_editor.hpp:14
int monospace_width
The monospaced width of each character. Only used when monospace is set to true.
Definition: fonts.h:95
uint32_t width
The width of the glyph texture.
Definition: fonts.h:55
Class for the World Editor utility.
Definition: world_editor.hpp:13
Dialog to prompt for developer key authentication.
Definition: license_prompt.hpp:16
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()
Definition: text.cpp:35
This is the ImGUI-based implementation of the stats widget.
Definition: stats.hpp:21
Class representing a font glyph.
Definition: fonts.h:43
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
void UpdateMetrics() override
Updates metrics for the widget.
Definition: text.cpp:97
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_API bool CollapsingHeader(const char *label, ImGuiTreeNodeFlags flags=0)
Definition: imgui_widgets.cpp:5422
Wrapper for ImGui's built-in metrics window.
Definition: imgui_metrics.hpp:8
Class for the Blam UI Editor debug utility.
Definition: blam_ui_editor.hpp:11
void Draw() override
Draws the widget on-screen.
Definition: text.cpp:52
@ TopLeft
The widget will be placed at the top-left of the screen.
BLAM void AddToWindowList(std::string key, BlamImGuiWindow *group)
Adds a new item to the ImGUI draw list.
Definition: debug_ui.cpp:176
IMGUI_API bool BeginMenuBar()
Definition: imgui_widgets.cpp:6012
BlamColor color
The text foreground color.
Definition: ui.h:524
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
Class for the exit confirmation dialog.
Definition: exit.hpp:11
@ XMLBitmapAtlas
Identical to #BitmapAtlas, but indicates that the font package is unpacked.
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
BlamFontPackageType type
The format of the font pacakge. See BlamFontPackageType for details.
Definition: fonts.h:91
int line_height
The height of each line of text, in pixels.
Definition: fonts.h:97
Class for the legacy ImGUI-based About box.
Definition: about_blamite.hpp:37
A class for...
Definition: weird_logger.hpp:13
BLAM void ShowErrorDialog(const char *title, const char *message)
Shows a simple error dialog created using ImGUI.
Definition: debug_ui.cpp:167
Class for a GUI config editor.
Definition: config_editor_new.hpp:22
IMGUI_API bool BeginMenu(const char *label, bool enabled=true)
Definition: imgui_widgets.cpp:6081
@ XMLBitmap
Identical to #Bitmap, but indicates that the font package is unpacked.
Class for the ImGUI user guide.
Definition: imgui_user_guide.hpp:11
This was planned to be a chat client that would connect to some sort of java-based chat server.
Definition: jtchat.hpp:15
Definition: material.h:52
Wrapper for ImGui's built-in style selector.
Definition: imgui_style_picker.hpp:8
std::map< std::string, BlamImGuiWindow * > imgui_window_list
The list of all available ImGUI windows.
Definition: debug_ui.cpp:83
bool monospace
Whether or not the font is monospaced.
Definition: fonts.h:94
@ Basic_Triangle
A basic filled or outline triangle.
Class used for the ImGUI-based error dialog.
Definition: error_dialog.hpp:12
Class for the crash test dialog.
Definition: crash_test.hpp:12
Class for the ImGUI console implementation.
Definition: console.hpp:19
BlamVector4 uv
The UV coordinates of the font glyph.
Definition: fonts.h:61
BlamUIWidget_Text(BlamUIWidget_Group *_parent)
Definition: text.cpp:30
BLAM std::map< std::string, BlamImGuiWindow * > * GetWindowList()
Retrieves the current ImGUI drawing list.
Definition: debug_ui.cpp:188
BLAM void RenderWindows()
Renders all ImGUI data.
Definition: debug_ui.cpp:155
BLAM void BuildWindows()
Initializes the ImGUI draw list.
Definition: debug_ui.cpp:85
BLAM int GetRenderHeight()
Retrieves the current height of the OGRE viewport.
Definition: ogre.cpp:532
IMGUI_API void EndMenuBar()
Definition: imgui_widgets.cpp:6040
#define GUI_RENDER_QUEUE_GROUP_ID
The ID of the render queue group used for 2D rendering.
Definition: rendering.h:25
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
std::string text
The text to display within this text widget.
Definition: ui.h:528
Class for Blamite's ImGUI-based About box.
Definition: about_blamite_new.hpp:12
An incomplete configuration editor, using raw text.
Definition: config_editor.hpp:22
IMGUI_API bool ColorEdit4(const char *label, float col[4], ImGuiColorEditFlags flags=0)
Definition: imgui_widgets.cpp:4154
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
BlamColor shadow_color
The text shadow color.
Definition: ui.h:525
BLAM Ogre::SceneManager * Get2DSceneManager()
Retrieves the scene manager used to handle 2D rendering.
Definition: ogre.cpp:552
Class for the realtime tag editor.
Definition: tag_editor.hpp:14
Class for the Network Stats dialog.
Definition: network_stats.hpp:16
@ XMLTruetype
Identical to #Truetype, but indicates that the font package is unpacked.
@ ImGuiWindowFlags_MenuBar
Definition: imgui.h:724
Legacy IP test dialog.
Definition: ip_test.hpp:15
BLAM BlamImGuiWindow * GetImGuiWindow(std::string key)
Retrieves a drawing group with the specified ID.
Definition: debug_ui.cpp:193
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
@ Bitmap
Indicates that the font package stores glyphs in separate bitmaps.
BlamWidgetType
Enumerator listing possible UI widget types.
Definition: ui.h:60
Wrapper for ImGui's built-in font selector.
Definition: imgui_font_selector.hpp:8
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
Ogre::FontPtr ttf_font
Unused.
Definition: fonts.h:106
@ ImGuiWindowFlags_NoResize
Definition: imgui.h:715
void RebuildTextObject()
Regenerates the text object.
Definition: text.cpp:180
Class for the default ImGUI DX11 sample window.
Definition: dx11_window.hpp:11
int charspacing
The amount of spacing between each character, in pixels.
Definition: fonts.h:96
IMGUI_API void TextColored(const ImVec4 &col, const char *fmt,...) IM_FMTARGS(2)
Definition: imgui_widgets.cpp:257
Wrapper for ImGui's built-in style editor.
Definition: imgui_style_editor.hpp:8
Class for the event listener viewer.
Definition: listeners.hpp:13
BLAM bool * GetVisibility(std::string key)
Retrieves the visibility of the specified draw list item.
Definition: debug_ui.cpp:205
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644
int space_width
The width of the space character, in pixels. Only used when monospace is false.
Definition: fonts.h:98
Class for the Ogre Scene Editor utility.
Definition: ogre_scene_editor.hpp:14
@ BitmapAtlas
Indicates that the font package stores glyphs in a texture atlas bitmap.
BLAM int GetRenderWidth()
Retrieves the current width of the OGRE viewport.
Definition: ogre.cpp:527
Class for the modern Theme Editor.
Definition: theme_editor.hpp:12