El juego ya no se cierra al terminar de definir los botones
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <SDL2/SDL.h>
|
||||
#include "common/input.h"
|
||||
#include "common/text.h"
|
||||
#include "const.h"
|
||||
|
||||
#ifndef DEFINE_BUTTONS_H
|
||||
#define DEFINE_BUTTONS_H
|
||||
@@ -26,6 +27,7 @@ private:
|
||||
// Variables
|
||||
options_t *options; // Variable con todas las variables de las opciones del programa
|
||||
param_t *param; // Puntero con todos los parametros del programa
|
||||
section_t *section; // Indicador para el bucle del titulo
|
||||
bool enabled; // Indica si el objeto está habilitado
|
||||
int x; // Posición donde dibujar el texto
|
||||
int y; // Posición donde dibujar el texto
|
||||
@@ -48,7 +50,7 @@ private:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
DefineButtons(SDL_Renderer *renderer, Input *input, Text *text, param_t *param, options_t *options);
|
||||
DefineButtons(SDL_Renderer *renderer, Input *input, Text *text, param_t *param, options_t *options, section_t *section);
|
||||
|
||||
// Destructor
|
||||
~DefineButtons();
|
||||
|
||||
Reference in New Issue
Block a user