commit de anar a dormir
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
#include <string> // for string, basic_string
|
||||
#include <vector> // for vector
|
||||
#include "input.h" // for inputs_e
|
||||
class Text;
|
||||
#include "text.h"
|
||||
#include <memory>
|
||||
|
||||
struct db_button_t
|
||||
{
|
||||
@@ -20,7 +21,7 @@ class DefineButtons
|
||||
private:
|
||||
// Objetos
|
||||
Input *input; // Objeto pata gestionar la entrada
|
||||
Text *text; // Objeto para escribir texto
|
||||
std::shared_ptr<Text> text; // Objeto para escribir texto
|
||||
|
||||
// Variables
|
||||
bool enabled; // Indica si el objeto está habilitado
|
||||
@@ -45,14 +46,11 @@ private:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
DefineButtons(Text *text);
|
||||
DefineButtons(std::unique_ptr<Text> text);
|
||||
|
||||
// Destructor
|
||||
~DefineButtons() = default;
|
||||
|
||||
// Actualiza las variables del objeto
|
||||
void update();
|
||||
|
||||
// Dibuja el objeto en pantalla
|
||||
void render();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user