|
Potato Engine
|
Public Member Functions | |
| DebugInfo (std::string UID) | |
| Public Member Functions inherited from Widget | |
| Widget (std::string UID) | |
| Constructs widget. | |
| std::string | GetUID () const |
| Gets unique ID of widget. | |
| template<typename ElemType> | |
| ElemType * | AddElement (std::string name) |
| Creates and adds WidgetElement to widget screen. | |
| const std::unordered_map< std::string, WidgetElement * > & | GetAllElements () const |
| Gets map of all elements. | |
| WidgetElement * | GetElement (std::string name) |
| Gets specific element by name. | |
| Public Member Functions inherited from Tickable | |
| bool | isTicking () const |
| Checks if object is ticking. | |
| void | SetTicking (bool isEnabled) |
| Sets tick state for object. | |
| Public Member Functions inherited from UIElement | |
| Vector2 | GetScreenSize () const |
| Gets size of UI. | |
| void | SetScreenSize (const Vector2 &size) |
| Sets size of UI. | |
| Vector2 | GetScreenPosition () const |
| Gets screen position of UI. | |
| void | SetScreenPosition (const Vector2 &ScreenPosition) |
| Sets screen position of UI. | |
| void | AddScreenOffset (const Vector2 &offset) |
| Adds offset to UI position. | |
| bool | isVisible () const |
| Checks if UI is visible. | |
| void | SetVisibility (bool visibility) |
| Sets visibility of UI. | |
Protected Member Functions | |
| virtual void | Tick (float dt) override |
| Update tick event. | |
Definition at line 12 of file DebugInfo.hpp.
| DebugInfo::DebugInfo | ( | std::string | UID | ) |
Definition at line 8 of file DebugInfo.cpp.
| DebugInfo::~DebugInfo | ( | ) |
Definition at line 41 of file DebugInfo.cpp.
|
overrideprotectedvirtual |
Update tick event.
This function is called every tick on the update step. Put all gameplay functionality that should run every update here (custom movement logic, etc.)
| dt | Deltatime; time elapsed since last frame in ms |
Reimplemented from Tickable.
Definition at line 29 of file DebugInfo.cpp.