 |
Blamite Game Engine - blam!
00357.06.18.22.0809.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>
73 void ShowAnchorChangeButton(
BlamWidgetAnchor new_anchor,
int height_mul,
int width_mul,
bool text_multiline);
84 BlamVector2
size = { 100, 100 };
103 void SetSize(BlamVector2 new_size);
117 std::vector<BlamUIWidget*>
children = std::vector<BlamUIWidget*>();
140 Ogre::v1::TextAreaOverlayElement* text_element =
nullptr;
141 Ogre::v1::TextAreaOverlayElement* text_element_shadow =
nullptr;
142 Ogre::v1::Overlay* container =
nullptr;
143 Ogre::v1::PanelOverlayElement* panel =
nullptr;
150 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.
std::string font_name
Definition: ui.h:152
@ CenterRight
The widget will be placed at the center-right of the screen.
BLAM std::string GetWidgetAnchorLabel(BlamWidgetAnchor anchor_position)
Definition: ui.cpp:57
BLAM BlamUIWidget_Group * GetUIRoot()
Definition: ui.cpp:52
@ BottomFill
The widget will fill the bottom of the screen, while height is left unchanged.
void ShowImGuiPropertyEditor()
Definition: BlamUIWidget_Text.cpp:86
int character_height
Definition: ui.h:148
BlamVector2 shadow_offset
Definition: ui.h:149
@ Text
A text object, used to show text on-screen.
@ Basic_Rectangle
A basic filled rectangle.
@ Basic_Ellipse
A basic filled ellipse.
@ 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.
@ TopCenter
The widget will be placed at the top-center of the screen.
@ UIDCypher
Special widget. Used for the user ID cypher.
void Draw()
Definition: BlamUIWidget_Text.cpp:66
Namespace containing functions relating to the Blamite UI system.
Definition: ui.h:167
@ Fill
The widget will fill the entire screen.
~BlamUIWidget_Text()
Definition: BlamUIWidget_Text.cpp:51
void UpdateMetrics() override
Definition: BlamUIWidget_Text.cpp:112
BlamColor color
Definition: ui.h:150
BLAM void Render()
Definition: ui.cpp:29
@ TopLeft
The widget will be placed at the top-left of the screen.
BLAM void Shutdown()
Definition: ui.cpp:43
bool auto_update
Definition: ui.h:146
BlamWidgetAnchor
Enumerator listing possible widget anchor positions.
Definition: ui.h:29
@ 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:18
#define BLAM
Definition: ui.h:14
std::string text
Definition: ui.h:154
@ 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.
BlamColor shadow_color
Definition: ui.h:151
BlamWidgetType
Enumerator listing possible UI widget types.
Definition: ui.h:53
BLAM bool Initialize()
Definition: ui.cpp:11
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:147
@ 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...