Trabajando en el TITULO

This commit is contained in:
2022-09-28 14:03:45 +02:00
parent 1552f6385c
commit 2209ed5f97
7 changed files with 121 additions and 194 deletions

View File

@@ -9,8 +9,8 @@ Director::Director(std::string path)
{
// Inicializa variables
section.name = PROG_SECTION_INTRO;
section.subsection = 0;
section.name = PROG_SECTION_TITLE;
section.subsection = TITLE_SECTION_1;
// Crea el objeto que controla los ficheros de recursos
asset = new Asset(path.substr(0, path.find_last_of("\\/")) + "/../");
@@ -391,8 +391,8 @@ void Director::runIntro()
void Director::runTitle()
{
title = new Title(window, renderer, screen, input, asset, options, lang);
setSection(title->run(section.subsection));
title = new Title(renderer, screen, input, asset, options, lang, section);
setSection(title->run());
delete title;
}