Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
uid_cypher.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <thread>
4 
5 #include <Strings/components/classes/events/game_engine_events/NewFrame/NewFrameEvent.h>
6 #include <Strings/components/classes/events/events.h>
8 
21 class BlamUIWidget_UserIDCypher : public BlamUIWidget, public BlamEventListener
22 {
23 private:
24  BlamUIWidget_Text* text = nullptr;
25 
26 public:
33 
38 
39  void Draw() override;
40  void ShowImGuiPropertyEditor() override;
41  void UpdateMetrics() override;
42  void RefreshRelativePosition() override;
43 
44  void OnTickEvent(TickEvent* event) override;
45 };
BlamUIWidget_UserIDCypher::~BlamUIWidget_UserIDCypher
~BlamUIWidget_UserIDCypher()
Destroys the user ID cypher widget.
Definition: BlamUIWidget_UserIDCypher.cpp:26
ui.h
uid_cypher.h
BlamUIWidget_Group
Class representing a Group widget.
Definition: ui.h:287
Blam::User::GetUserID
BLAM uint32_t GetUserID()
Definition: user.cpp:3
BlamUIWidget::parent
BlamUIWidget_Group * parent
The parent group of this widget, if applicable.
Definition: ui.h:125
imgui.h
BlamUIWidget_Text::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: text.cpp:119
BlamUIWidget::SetPosition
virtual void SetPosition(BlamVector2 new_position)
Sets the position of the widget.
Definition: BlamUIWidget.cpp:412
BlamUIWidget_UserIDCypher::OnTickEvent
void OnTickEvent(TickEvent *event) override
Definition: BlamUIWidget_UserIDCypher.cpp:53
BlamUIWidget_Text::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: text.cpp:147
BlamUIWidget_Text::Draw
void Draw() override
Draws the widget on-screen.
Definition: text.cpp:67
BlamUIWidget::display_name
std::string display_name
The display name of the widget.
Definition: ui.h:113
BlamUIWidget_UserIDCypher::RefreshRelativePosition
void RefreshRelativePosition() override
Updates the relative position of the widget, relative to its parent.
Definition: BlamUIWidget_UserIDCypher.cpp:48
uint32_t
unsigned int uint32_t
Definition: stdint.h:17
BlamUIWidget_UserIDCypher::UpdateMetrics
void UpdateMetrics() override
Updates metrics for the widget.
Definition: BlamUIWidget_UserIDCypher.cpp:43
BlamUIWidget_UserIDCypher::BlamUIWidget_UserIDCypher
BlamUIWidget_UserIDCypher(BlamUIWidget_Group *_parent)
Constructs a new user ID cypher widget.
Definition: BlamUIWidget_UserIDCypher.cpp:10
BlamUIWidget
Base class for a UI widget.
Definition: ui.h:81
BlamUIWidget_UserIDCypher
UI widget for the user ID cypher display.
Definition: uid_cypher.h:21
BlamUIWidget_Text::text
std::string text
The text to display within this text widget.
Definition: ui.h:622
BlamUIWidget::RefreshRelativePosition
virtual void RefreshRelativePosition()
Updates the relative position of the widget, relative to its parent.
Definition: BlamUIWidget.cpp:249
BlamUIWidget::description
std::string description
An optional description of the widget.
Definition: ui.h:114
user.h
BlamUIWidget::IsHidden
bool IsHidden()
Checks whether or not the widget is hidden.
Definition: BlamUIWidget.cpp:475
BlamUIWidget_UserIDCypher::ShowImGuiPropertyEditor
void ShowImGuiPropertyEditor() override
Displays an ImGUI-based property editor.
Definition: BlamUIWidget_UserIDCypher.cpp:38
BlamUIWidget_UserIDCypher::Draw
void Draw() override
Draws the widget on-screen.
Definition: BlamUIWidget_UserIDCypher.cpp:32
BlamWidgetAnchor::TopRight
@ TopRight
The widget will be placed at the top-right of the screen.
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