Contains static variables and functions for use with UI manager.
More...
#include <UIManager.h>
Contains static variables and functions for use with UI manager.
◆ deleteAllButtons()
void UIManager::deleteAllButtons |
( |
| ) |
|
|
static |
A static function to delete all the buttons.
◆ deleteAllUI()
void UIManager::deleteAllUI |
( |
| ) |
|
|
static |
A static function to delete all the UI.
◆ deleteButton()
static void UIManager::deleteButton |
( |
std::string |
id | ) |
|
|
inlinestatic |
A static function to delete the button.
- Parameters
-
◆ getButton()
static Button* UIManager::getButton |
( |
std::string |
id | ) |
|
|
inlinestatic |
A static function to get a button.
- Parameters
-
◆ initialiseButton() [1/2]
std::string UIManager::initialiseButton |
( |
std::string |
buttonImage, |
|
|
std::string |
buttonHeldSprite, |
|
|
Vec2 |
inPos, |
|
|
Vec2 |
inDim |
|
) |
| |
|
static |
A static function to initialise a button and scale it.
- Parameters
-
buttonImage | A path to the image of the button. |
buttonHeldSprite | A path to the held image of the button. |
pos | The position. |
dim | The dimensions. |
- Returns
- The ID of the loaded file.
◆ initialiseButton() [2/2]
std::string UIManager::initialiseButton |
( |
std::string |
buttonImage, |
|
|
std::string |
buttonHeldSprite, |
|
|
Vec2 |
inPos |
|
) |
| |
|
static |
A static function to initialise a button.
- Parameters
-
buttonHeldSprite | A path to the held image of the button. |
pos | The position. |
- Returns
- The ID of the loaded file.
◆ buttons
std::unordered_map< std::string, Button * > UIManager::buttons |
|
staticprivate |
The documentation for this class was generated from the following files: