3 #include <unordered_map> 4 #include "../ResourceManagement/ResourceManager.h" 46 static std::string
initialiseButton(std::string buttonImage, std::string buttonHeldSprite,
Vec2 inPos);
56 static std::unordered_map<std::string, Button*>
buttons;
static void deleteButton(std::string id)
A static function to delete the button.
Definition: UIManager.h:28
Contains static variables and functions for use with UI manager.
Definition: UIManager.h:10
static Button * getButton(std::string id)
A static function to get a button.
Definition: UIManager.h:52
Contains the Vec2 structure with functions and overloaded operators.
Definition: Vec2.h:8
static std::unordered_map< std::string, Button * > buttons
The loaded buttons.
Definition: UIManager.h:56
static void deleteAllUI()
A static function to delete all the UI.
Definition: UIManager.cpp:9
static std::string initialiseButton(std::string buttonImage, std::string buttonHeldSprite, Vec2 inPos, Vec2 inDim)
A static function to initialise a button and scale it.
Definition: UIManager.cpp:23
static void deleteAllButtons()
A static function to delete all the buttons.
Definition: UIManager.cpp:14