![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Class representing a console history entry. More...
#include <console.h>
Public Member Functions | |
BlamConsoleHistoryEntry () | |
~BlamConsoleHistoryEntry () | |
void | Reconfigure (BlamLogMessage _message) |
Reconfigures this console history entry. More... | |
void | Deconfigure () |
Deconfigures this console history entry. More... | |
Public Attributes | |
uint64_t | creation_tick = 0 |
The tick when this entry was created. More... | |
BlamUIWidget_Text * | text_element = nullptr |
The UI widget used for displaying the message. More... | |
byte | opacity = 255 |
The opacity of the message text. More... | |
BlamLogMessage | message |
The message that this entry is displaying. More... | |
int | visible_ticks = 0 |
The amount of ticks that the message has been visible. More... | |
Class representing a console history entry.
BlamConsoleHistoryEntry::BlamConsoleHistoryEntry | ( | ) |
BlamConsoleHistoryEntry::~BlamConsoleHistoryEntry | ( | ) |
void BlamConsoleHistoryEntry::Deconfigure | ( | ) |
Deconfigures this console history entry.
This will effectively clear all data from the entry. This is usually done when the item is hidden and should no longer be displayed.
void BlamConsoleHistoryEntry::Reconfigure | ( | BlamLogMessage | _message | ) |
Reconfigures this console history entry.
This will update all properties of the entry to essentially reconstruct it as a new entry. This is used to avoid deleting/re-creating a large amount of entries.
_message | - The log message to reconfigure this entry as. |
uint64_t BlamConsoleHistoryEntry::creation_tick = 0 |
The tick when this entry was created.
BlamLogMessage BlamConsoleHistoryEntry::message |
The message that this entry is displaying.
byte BlamConsoleHistoryEntry::opacity = 255 |
The opacity of the message text.
BlamUIWidget_Text* BlamConsoleHistoryEntry::text_element = nullptr |
The UI widget used for displaying the message.
int BlamConsoleHistoryEntry::visible_ticks = 0 |
The amount of ticks that the message has been visible.