Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
BlamUIWidget_CrashScreen.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #define CWT_CRASH_SCREEN "CRASH_SCREEN_DEFAULT"
6 
17 {
18 private:
19  BlamUIWidget_Text* text = nullptr;
20  BlamUIWidget_BasicRectangle* background = nullptr;
21 
22 public:
24 
30  void SetBasicMessage(std::string additional_info = "");
31 
43  void SetDetailedMessage(std::string expression, std::string file, int line, std::string details);
44 
45  void SetHidden(bool new_hidden) override;
46 };
ui.h
BlamUIWidget_Group
Class representing a Group widget.
Definition: ui.h:287
BlamUIWidget::MarkForUpdate
void MarkForUpdate()
Marks the widget as needing to be updated on the next draw call.
Definition: BlamUIWidget.cpp:436
BlamUIWidget_2DPrimitive::color
BlamColor color
The color of the widget.
Definition: ui.h:438
Blam::RenderingBGFX::GetRenderHeight
BLAM int GetRenderHeight()
Retrieves the current height of the viewport.
Definition: bgfx.cpp:428
UsingBgfx
bool UsingBgfx()
Definition: bgfx.cpp:63
BlamUIWidget_BasicRectangle::solid
bool solid
Whether or not this primitive is solid, or an outline.
Definition: ui.h:472
rendering.h
Blam::Globals::GetGlobalAsColor
BLAM BlamColor * GetGlobalAsColor(std::string name)
Retrieves a global's value as a BlamColor.
Definition: globals.cpp:415
BlamUIWidget::SetPosition
virtual void SetPosition(BlamVector2 new_position)
Sets the position of the widget.
Definition: BlamUIWidget.cpp:412
BlamWidgetAnchor::TopLeft
@ TopLeft
The widget will be placed at the top-left of the screen.
BlamUIWidget_Group::children
std::vector< BlamUIWidget * > children
The list of child widgets within this group.
Definition: ui.h:294
BlamUIWidget_Text::color
BlamColor color
The text foreground color.
Definition: ui.h:618
BlamUIWidget::SetSize
void SetSize(BlamVector2 new_size)
Sets the size of the widget.
Definition: BlamUIWidget.cpp:405
globals.h
BlamUIWidget_BasicRectangle
Class representing a basic rectangle widget.
Definition: ui.h:469
CWT_CRASH_SCREEN
#define CWT_CRASH_SCREEN
Definition: BlamUIWidget_CrashScreen.h:5
Blam::Rendering::GetRenderHeight
BLAM int GetRenderHeight()
Retrieves the current height of the OGRE viewport.
Definition: ogre.cpp:685
file
sock planetquake com All rights reserved Quake III Arena is a registered trademark of id Inc This level may be electronically distributed only at NO CHARGE to the recipient in its current MUST include this txt file
Definition: chiropteraDM.txt:95
BlamUIWidget_CrashScreen::BlamUIWidget_CrashScreen
BlamUIWidget_CrashScreen(BlamUIWidget_Group *_parent)
Definition: BlamUIWidget_CrashScreen.cpp:6
BlamUIWidget_Text::text
std::string text
The text to display within this text widget.
Definition: ui.h:622
BlamUIWidget_Text::shadow_color
BlamColor shadow_color
The text shadow color.
Definition: ui.h:619
BlamUIWidget_CrashScreen
Class used for the crash screen UI.
Definition: BlamUIWidget_CrashScreen.h:16
BlamUIWidget_CrashScreen::SetDetailedMessage
void SetDetailedMessage(std::string expression, std::string file, int line, std::string details)
Reconfigures the crash screen text to display a detailed message.
Definition: BlamUIWidget_CrashScreen.cpp:57
BlamUIWidget::z_index
int z_index
The Z index of the widget, where higher Z orders are drawn on top.
Definition: ui.h:120
BlamUIWidget_CrashScreen::SetHidden
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: BlamUIWidget_CrashScreen.cpp:65
BlamUIWidget_CrashScreen::SetBasicMessage
void SetBasicMessage(std::string additional_info="")
Reconfigures the crash screen text to display a basic message.
Definition: BlamUIWidget_CrashScreen.cpp:47
BlamUIWidget_CrashScreen.h
Blam::RenderingBGFX::GetRenderWidth
BLAM int GetRenderWidth()
Retrieves the current width of the viewport.
Definition: bgfx.cpp:423
BlamUIWidget_Text
Class representing a Text widget.
Definition: ui.h:550
BlamUIWidget::SetAnchorPosition
void SetAnchorPosition(BlamWidgetAnchor new_anchor_position)
Sets the anchor position of the widget.
Definition: BlamUIWidget.cpp:425
Blam::Rendering::GetRenderWidth
BLAM int GetRenderWidth()
Retrieves the current width of the OGRE viewport.
Definition: ogre.cpp:680