2022-08-12 21:50:48 -04:00
|
|
|
#include "gui/game_over/GameOverScreen.h"
|
|
|
|
#include <Node.hpp>
|
2022-08-26 13:51:19 -04:00
|
|
|
#include <SceneTree.hpp>
|
|
|
|
|
2022-08-12 21:50:48 -04:00
|
|
|
using namespace godot;
|
|
|
|
|
|
|
|
void GameOverScreen::_register_methods()
|
|
|
|
{
|
2022-08-26 13:51:19 -04:00
|
|
|
register_method("_on_restart_button_pressed", &GameOverScreen::_on_restart_button_pressed);
|
2022-08-12 21:50:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
GameOverScreen::GameOverScreen()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
GameOverScreen::~GameOverScreen()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void GameOverScreen::_init()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2022-08-26 13:51:19 -04:00
|
|
|
void GameOverScreen::_on_restart_button_pressed()
|
2022-08-12 21:50:48 -04:00
|
|
|
{
|
2022-08-26 13:51:19 -04:00
|
|
|
get_tree()->change_scene("res://monitor/GUI.tscn");
|
|
|
|
}
|