20#ifndef HEADER_TRACK_INFO_SCREEN_HPP
21#define HEADER_TRACK_INFO_SCREEN_HPP
23#include "guiengine/screen.hpp"
24#include "guiengine/widgets.hpp"
29 class IconButtonWidget;
43 static const int HIGHSCORE_COUNT = 5;
48 bool m_record_this_race;
54 bool m_show_ffa_spinner;
101 irr::gui::STKModifiedSpriteBank* m_icon_bank;
103 int m_icon_unknown_kart;
105 void updateHighScores();
106 void setSoccerWidgets(
bool has_AI);
107 void setSoccerTarget(
bool time_limit);
108 void soccerSpinnerUpdate(
bool blue_spinner);
114 virtual void init() OVERRIDE;
120 const
int player_id) OVERRIDE;
122 void onEnterPressedInternal();
123 void setTrack(
Track *track);
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:97
Dialog that shows the information about a given track.
Definition: track_info_screen.hpp:42
TrackInfoScreen()
Constructor, which loads the corresponding track_info.stkgui file.
Definition: track_info_screen.cpp:58
virtual void init() OVERRIDE
Initialised the display.
Definition: track_info_screen.cpp:136
GUIEngine::LabelWidget * m_highscore_label
The label of the highscore list.
Definition: track_info_screen.hpp:96
GUIEngine::CheckBoxWidget * m_record_race
Check box for record race.
Definition: track_info_screen.hpp:93
GUIEngine::ListWidget * m_highscore_entries
The actual highscore text values shown.
Definition: track_info_screen.hpp:99
virtual void beforeAddingWidget() OVERRIDE
Optional callback invoked very early, before widgets have been added (contrast with init(),...
Definition: track_info_screen.cpp:113
GUIEngine::CheckBoxWidget * m_option
Check box for reverse mode or random item in arena.
Definition: track_info_screen.hpp:90
virtual void eventCallback(GUIEngine::Widget *, const std::string &name, const int player_id) OVERRIDE
will be called everytime something happens.
Definition: track_info_screen.cpp:637
GUIEngine::LabelWidget * m_ai_blue_label
The label besides the blue AI karts spinner.
Definition: track_info_screen.hpp:69
GUIEngine::LabelWidget * m_target_value_label
The label besides the target value spinner.
Definition: track_info_screen.hpp:81
GUIEngine::SpinnerWidget * m_ai_kart_spinner
Spinner for number of AI karts.
Definition: track_info_screen.hpp:84
virtual void loadedFromFile() OVERRIDE
Callback invoked when loading this menu.
Definition: track_info_screen.cpp:65
GUIEngine::LabelWidget * m_ai_kart_label
The label besides the AI karts spinner.
Definition: track_info_screen.hpp:87
GUIEngine::SpinnerWidget * m_target_type_spinner
Spinner for target types.
Definition: track_info_screen.hpp:60
virtual void unloaded() OVERRIDE
Callback invoked when this screen is being unloaded.
Definition: track_info_screen.cpp:475
virtual void tearDown() OVERRIDE
Callback invoked before leaving this menu.
Definition: track_info_screen.cpp:467
GUIEngine::SpinnerWidget * m_target_value_spinner
Spinner for target value e.g.
Definition: track_info_screen.hpp:78
GUIEngine::SpinnerWidget * m_ai_blue_spinner
Spinner for number of blue AI karts.
Definition: track_info_screen.hpp:66
Track * m_track
A pointer to the track of which the info is shown.
Definition: track_info_screen.hpp:46
GUIEngine::LabelWidget * m_target_type_label
The label besides the target types spinner.
Definition: track_info_screen.hpp:63
Definition: track.hpp:114
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33