Start Using InitAfterDrawingTheHeader

This commit is contained in:
konstin 2014-05-14 21:13:08 +02:00
parent 556e537ce5
commit 3f5c2138c3
2 changed files with 10 additions and 2 deletions

View File

@ -28,6 +28,7 @@
#include "guiengine/widgets/label_widget.hpp"
#include "io/file_manager.hpp"
#include "race/grand_prix_manager.hpp"
#include "race/grand_prix_data.hpp"
#include "race/race_manager.hpp"
#include "states_screens/state_manager.hpp"
#include "states_screens/tracks_screen.hpp"
@ -67,6 +68,8 @@ GPInfoDialog::GPInfoDialog(const std::string& gp_ident) :
m_irrlicht_window);
title->setTabStop(false);
title->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER);
InitAfterDrawingTheHeader(gp, y1, y2, gp_ident);
}
// ----------------------------------------------------------------------------
@ -85,8 +88,9 @@ GPInfoDialog::~GPInfoDialog()
// ----------------------------------------------------------------------------
void GPInfoDialog::InitAfterDrawingTheHeader(GrandPrixData gp, const float y1,
const float y2,
void GPInfoDialog::InitAfterDrawingTheHeader(const GrandPrixData* gp,
const int y1,
const int y2,
const std::string& gp_ident)
{
// ---- Track listings

View File

@ -20,6 +20,7 @@
#define HEADER_GP_INFO_DIALOG_HPP
#include "guiengine/modaldialog.hpp"
#include "race/grand_prix_data.hpp"
namespace GUIEngine
{
@ -47,6 +48,9 @@ public:
GPInfoDialog(const std::string& gpIdent);
virtual ~GPInfoDialog();
void InitAfterDrawingTheHeader(const GrandPrixData* gp, const int y1,
const int y2, const std::string& gp_ident);
void onEnterPressedInternal();
GUIEngine::EventPropagation processEvent(const std::string& eventSource);