 |
Blamite Game Engine - blam!
00388.06.24.23.2301.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #include <Strings/components/resources/color/BlamColor.h>
6 #include <OGRE/Overlay/OgreTextAreaOverlayElement.h>
7 #include <OGRE/Overlay/OgreOverlayContainer.h>
8 #include <OGRE/Overlay/OgrePanelOverlayElement.h>
9 #include <OGRE/Overlay/OgreOverlay.h>
75 void ShowAnchorChangeButton(
BlamWidgetAnchor new_anchor,
int height_mul,
int width_mul,
bool text_multiline);
86 BlamVector2
size = { 100, 100 };
105 void SetSize(BlamVector2 new_size);
119 std::vector<BlamUIWidget*>
children = std::vector<BlamUIWidget*>();
134 Ogre::v1::Overlay* container =
nullptr;
135 Ogre::v1::PanelOverlayElement* panel =
nullptr;
136 bool last_hide_state =
false;
140 BlamColor
color = BlamColor(255, 255, 255);
153 Ogre::v1::TextAreaOverlayElement* text_element =
nullptr;
154 Ogre::v1::TextAreaOverlayElement* text_element_shadow =
nullptr;
155 Ogre::v1::Overlay* container =
nullptr;
156 Ogre::v1::PanelOverlayElement* panel =
nullptr;
158 std::string previous_text =
"";
159 bool last_hide_state =
false;
166 BlamColor
color = BlamColor(255, 255, 255);
@ LeftFill
The widget will fill the left of the screen, while width is left unchanged.
@ BottomRight
The widget will be placed at the bottom-right of the screen.
@ CenterLeft
The widget will be placed at the center-left of the screen.
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
std::string font_name
Definition: ui.h:168
@ CenterRight
The widget will be placed at the center-right of the screen.
BLAM std::string GetWidgetAnchorLabel(BlamWidgetAnchor anchor_position)
Definition: ui.cpp:75
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
BLAM BlamUIWidget_Group * GetUIRoot()
Definition: ui.cpp:70
BLAM BlamRenderingEngine GetCurrentRenderingEngine()
Retrieves the current rendering engine being used.
Definition: rendering_abstraction.cpp:104
@ BottomFill
The widget will fill the bottom of the screen, while height is left unchanged.
void ShowImGuiPropertyEditor()
Definition: BlamUIWidget_Text.cpp:91
int character_height
Definition: ui.h:164
BlamVector2 shadow_offset
Definition: ui.h:165
@ Text
A text object, used to show text on-screen.
@ Basic_Rectangle
A basic filled rectangle.
@ OGRE
Definition: rendering.h:35
@ Basic_Ellipse
A basic filled 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
@ Console
Indicates the build string should be formatted for the in-game console.
@ Center
The widget will be placed at the center of the screen.
BLAM float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: globals.cpp:407
@ TopCenter
The widget will be placed at the top-center of the screen.
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
BLAM int GetRenderHeight()
Definition: bgfx.cpp:190
@ UIDCypher
Special widget. Used for the user ID cypher.
void Draw()
Definition: BlamUIWidget_Text.cpp:59
Namespace containing functions relating to the Blamite UI system.
Definition: ui.h:183
@ Fill
The widget will fill the entire screen.
~BlamUIWidget_Text()
Definition: BlamUIWidget_Text.cpp:44
IMGUI_API bool DragFloat(const char *label, float *v, 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:2164
void UpdateMetrics() override
Definition: BlamUIWidget_Text.cpp:117
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
BlamColor color
Definition: ui.h:166
BLAM void Render()
Definition: ui.cpp:47
@ TopLeft
The widget will be placed at the top-left of the screen.
BLAM void Shutdown()
Definition: ui.cpp:61
IMGUI_API bool BeginCombo(const char *label, const char *preview_value, ImGuiComboFlags flags=0)
Definition: imgui_widgets.cpp:1416
bool auto_update
Definition: ui.h:162
BlamWidgetAnchor
Enumerator listing possible widget anchor positions.
Definition: ui.h:29
BLAM int GetRenderHeight()
Definition: ogre.cpp:312
@ BottomLeft
The widget will be placed at the bottom-left of the screen.
Class for the Blam UI Editor debug utility.
Definition: blam_ui_editor.hpp:13
BlamUIWidget_Text(BlamUIWidget_Group *_parent)
Definition: BlamUIWidget_Text.cpp:15
#define BLAM
Definition: ui.h:14
IMGUI_API bool InputTextMultiline(const char *label, char *buf, size_t buf_size, const ImVec2 &size=ImVec2(0, 0), ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3074
IMGUI_API void EndCombo()
Definition: imgui_widgets.cpp:1522
BlamUIWidget_Group * ui_root
The UI root widget.
Definition: ui.cpp:10
@ CoordinatesDisplay
Special widget. Used for the coordinates display.
std::string text
Definition: ui.h:170
BLAM int GetRenderWidth()
Definition: bgfx.cpp:185
@ Group
A group widget, which can be used to contain any number of other widgets.
@ TopFill
The widget will fill the top of the screen, while height is left unchanged.
bool draw_fail_message_shown
Whether or not the "draw failure" message has been displayed. Used to prevent spamming the log if the...
Definition: ui.cpp:11
BlamColor shadow_color
Definition: ui.h:167
BLAM int GetRenderWidth()
Definition: ogre.cpp:307
@ FramerateDisplay
Special widget. Used for the framerate display.
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
BlamWidgetType
Enumerator listing possible UI widget types.
Definition: ui.h:53
BLAM bool Initialize()
Definition: ui.cpp:13
Legacy namespace to contain data for the legacy ImGUI console.
Definition: ui.h:19
@ RightFill
The widget will fill the right of the screen, while width is left unchanged.
bool auto_scale_shadow
Definition: ui.h:163
@ BGFX
Definition: rendering.h:34
@ BottomCenter
The widget will be placed at the bottom-center of the screen.
@ TopRight
The widget will be placed at the top-right of the screen.
@ Unspecified
Indicates the widget is of an unspecified type. Will only appear when a widget is improperly construc...
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644