 |
Blamite Game Engine - blam!
00367.02.08.23.1815.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*>();
142 Ogre::v1::TextAreaOverlayElement* text_element =
nullptr;
143 Ogre::v1::TextAreaOverlayElement* text_element_shadow =
nullptr;
144 Ogre::v1::Overlay* container =
nullptr;
145 Ogre::v1::PanelOverlayElement* panel =
nullptr;
147 std::string previous_text =
"";
148 bool last_hide_state =
false;
155 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:157
@ CenterRight
The widget will be placed at the center-right of the screen.
BLAM std::string GetWidgetAnchorLabel(BlamWidgetAnchor anchor_position)
Definition: ui.cpp:75
BLAM BlamUIWidget_Group * GetUIRoot()
Definition: ui.cpp:70
@ BottomFill
The widget will fill the bottom of the screen, while height is left unchanged.
void ShowImGuiPropertyEditor()
Definition: BlamUIWidget_Text.cpp:98
int character_height
Definition: ui.h:153
BlamVector2 shadow_offset
Definition: ui.h:154
@ 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:172
@ Fill
The widget will fill the entire screen.
~BlamUIWidget_Text()
Definition: BlamUIWidget_Text.cpp:51
void UpdateMetrics() override
Definition: BlamUIWidget_Text.cpp:124
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
bool auto_update
Definition: ui.h:151
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
@ CoordinatesDisplay
Special widget. Used for the coordinates display.
std::string text
Definition: ui.h:159
@ 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:156
@ FramerateDisplay
Special widget. Used for the framerate display.
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:152
@ 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...