Els objectes de Text es precarreguen al inici
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
#include "define_buttons.h"
|
||||
#include <utility> // Para move
|
||||
#include "input.h" // Para Input, InputType
|
||||
#include "lang.h" // Para getText
|
||||
#include "options.h" // Para OptionsController, Options, options
|
||||
#include "param.h" // Para Param, param, ParamGame, ParamTitle
|
||||
#include "section.h" // Para Name, Options, name, options
|
||||
#include "text.h" // Para Text
|
||||
#include <utility> // Para move
|
||||
#include "input.h" // Para Input, InputType
|
||||
#include "lang.h" // Para getText
|
||||
#include "options.h" // Para OptionsController, Options, options
|
||||
#include "param.h" // Para Param, param, ParamGame, ParamTitle
|
||||
#include "resource.h" // Para Resource
|
||||
#include "section.h" // Para Name, Options, name, options
|
||||
#include "text.h" // Para Text
|
||||
|
||||
// Constructor
|
||||
DefineButtons::DefineButtons(std::unique_ptr<Text> text_)
|
||||
DefineButtons::DefineButtons()
|
||||
: input_(Input::get()),
|
||||
text_(std::move(text_))
|
||||
text_(Resource::get()->getText("8bithud"))
|
||||
{
|
||||
// Inicializa variables
|
||||
x_ = param.game.width / 2;
|
||||
|
||||
Reference in New Issue
Block a user