|
| RaceResultGUI () |
| Constructor, initialises internal data structures.
|
|
virtual void | renderGlobal (float dt) OVERRIDE |
| Render all global parts of the race gui, i.e. More...
|
|
virtual void | loadedFromFile () OVERRIDE |
| Implement callback from parent class GUIEngine::Screen.
|
|
virtual void | init () OVERRIDE |
| Besides calling init in the base class this makes all buttons of this screen invisible. More...
|
|
virtual void | tearDown () OVERRIDE |
| Callback invoked before leaving this menu. More...
|
|
virtual bool | onEscapePressed () OVERRIDE |
| If escape is pressed, don't do the default option (close the screen), but advance to the next animation phase.
|
|
virtual void | unload () OVERRIDE |
| Next time this menu needs to be shown, don't use cached values, re-calculate everything. More...
|
|
virtual GUIEngine::EventPropagation | filterActions (PlayerAction action, int deviceID, const unsigned int value, Input::InputType type, int playerId) OVERRIDE |
| This is called before an event is sent to a widget. More...
|
|
void | eventCallback (GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE |
| will be called everytime something happens. More...
|
|
const core::dimension2du | getMiniMapSize () const OVERRIDE |
| Should not be called anymore. More...
|
|
virtual void | renderPlayerView (const Camera *camera, float dt) OVERRIDE |
| No kart specific view needs to be rendered in the result gui. More...
|
|
virtual void | onUpdate (float dt) OVERRIDE |
| Called once a frame.
|
|
virtual void | onDraw (float dt) OVERRIDE |
| Called once a frame, this now triggers the rendering of the actual race result gui.
|
|
virtual void | addMessage (const irr::core::stringw &m, const AbstractKart *kart, float time, const video::SColor &color=video::SColor(255, 255, 0, 255), bool important=true, bool big_font=false, bool outline=false) OVERRIDE |
| No more messages need to be displayed, but the function might still be called (e.g. More...
|
|
void | nextPhase () |
| This function is called when one of the player presses 'fire'. More...
|
|
void | clearHighscores () |
| Show no highscore.
|
|
void | setHighscore (int rank) |
| To call if the user got a new highscore. More...
|
|
virtual void | onConfirm () OVERRIDE |
| Implement to be notified of dialog confirmed. More...
|
|
void | cleanupGPProgress () |
|
virtual | ~RaceGUIBase () |
| The destructor removes the marker texture and the referee scene node.
|
|
virtual void | reset () |
| This is called when restarting a race. More...
|
|
virtual void | update (float dt) |
| Update, called once per frame. More...
|
|
virtual void | preRenderCallback (const Camera *camera) |
| This function is called just before rendering the view for each kart. More...
|
|
virtual void | calculateMinimapSize () |
|
virtual void | clearAllMessages () |
|
void | drawGlobalPlayerIcons (int bottom_margin) |
| Draw players icons and, depending on the current mode, their time or their score (battle lives, egg collected, etc.).
|
|
void | drawPlayerIcon (AbstractKart *kart, int x, int y, int w, bool is_local) |
| Draw one player icon Takes care of icon looking different due to plumber, squashing, ...
|
|
virtual void | drawEnergyMeter (int x, int y, const AbstractKart *kart, const core::recti &viewport, const core::vector2df &scaling) |
|
void | cleanupMessages (const float dt) |
| Removes messages which have been displayed long enough. More...
|
|
void | removeReferee () |
|
RaceGUIMultitouch * | getMultitouchGUI () |
|
void | recreateGUI () |
|
virtual void | initSize () |
| Called when loading the race gui or screen resized. More...
|
|
std::function< Screen *()> | getNewScreenPointer () const |
| Save the function before GUIEngine::clearScreenCache, call it after to get the new screen instance pointer.
|
|
void | setScreenPointerFunction (const std::function< Screen *()> &f) |
|
| Screen (bool pause_race=true) |
| Creates a dummy incomplete object; only use to override behaviour in sub-class.
|
|
| Screen (const char *filename, bool pause_race=true) |
| Creates a screen populated by the widgets described in a STK GUI file. More...
|
|
bool | operator== (const char *filename) const |
|
void | loadFromFile () |
| loads this Screen from the file passed to the constructor
|
|
bool | isLoaded () const |
|
void | addWidgets () |
| Adds the IrrLicht widgets corresponding to this screen to the IGUIEnvironment.
|
|
void | calculateLayout () |
| Called after all widgets have been added. More...
|
|
void | manualAddWidget (Widget *w) |
| Can be used for custom purposes for which the load-screen-from-XML code won't make it.
|
|
void | manualRemoveWidget (Widget *w) |
| Can be used for custom purposes for which the load-screen-from-XML code won't make it. More...
|
|
void | setUpdateInBackground (bool value) |
| When set to true it updates the screen even if modal dialog is opened.
|
|
bool | getUpdateInBackground () |
|
const std::string & | getName () const |
|
bool | needs3D () |
| Will be called to determine if the 3D scene must be rendered when at this screen.
|
|
void | setNeeds3D (bool needs3D) |
| Invoke this method for screens that use a 3D scene as background. More...
|
|
virtual void | unloaded () |
| Callback invoked when this screen is being unloaded. More...
|
|
virtual void | beforeAddingWidget () |
| Optional callback invoked very early, before widgets have been added (contrast with init(), which is invoked afer widgets were added)
|
|
void | push () |
| Displays this screen bu pushing it onto the stack of screen in the state manager. More...
|
|
virtual MusicInformation * | getMusic () const |
|
virtual MusicInformation * | getInGameMenuMusic () const |
|
virtual int | getWidth () |
|
virtual int | getHeight () |
|
virtual bool | isResizable () const |
|
virtual void | onDisabledItemClicked (const std::string &item) |
| Callback you can use if you want to know when the user pressed on a disabled ribbon item. More...
|
|
virtual void | filterInput (Input::InputType type, int deviceID, int btnID, int axisDir, int value) |
| Override this if you need to be notified of raw input in subclasses.
|
|
virtual void | onDialogClose () |
| Callback that gets called when a dialog is closed. More...
|
|
virtual void | onFocusChanged (Widget *previous, Widget *focus, int playerID) |
| Callback called when focus changes.
|
|
Widget * | getWidget (const char *name) |
| This function returns a widget by name if that widget is found. More...
|
|
Widget * | getWidget (const int id) |
| This function returns a widget by irrlicht ID if that widget is found. More...
|
|
template<typename T > |
T * | getWidget (const char *name) |
| This function searches and returns a widget by name, cast as specified type, if that widget is found and the type is correct. More...
|
|
Widget * | getFirstWidget (PtrVector< Widget > *within_vector=NULL) |
| This function returns the first widget found in within_vector. More...
|
|
Widget * | getLastWidget (PtrVector< Widget > *within_vector=NULL) |
| This function returns the last widget found in within_vector. More...
|
|
void | elementsWereDeleted (PtrVector< Widget > *within_vector=NULL) |
| This function is called when screen is removed. More...
|
|
bool | isMyChild (Widget *widget) const |
| This function checks if a widget is a child of the container. More...
|
|
virtual bool | enableScreenPadding () const |
|
virtual void | onCancel () |
| Implement to be notified of dialog cancelled. More...
|
|
virtual void | onDialogUpdate (float dt) |
| Optional callback.
|
|
|
static void | parseScreenFileDiv (irr::io::IXMLReader *xml, PtrVector< Widget > &append_to, irr::gui::IGUIElement *parent=NULL) |
| Loads a GUI screen from its XML file. More...
|
|
static Widget * | getWidget (const char *name, PtrVector< Widget > *within_vector) |
| This function returns a widget by name if that widget is found in within_vector. More...
|
|
static Widget * | getWidget (const int id, PtrVector< Widget > *within_vector) |
| This function returns a widget by irrlicht ID if that widget is found. More...
|
|
static RaceResultGUI * | getInstance () |
|
bool | m_enabled |
|
enum | PlungerState { PLUNGER_STATE_INIT,
PLUNGER_STATE_SLOW_1,
PLUNGER_STATE_SLOW_2,
PLUNGER_STATE_FAST
} |
| State of the plunger: From the 'init' states the plunger switches between two slow moving states ('shakily moving') till the end of the plunger time is nearly reached, then it goes to a very fast moving state ('plunger blown off'). More...
|
|
void | createRegularPolygon (unsigned int n, float radius, const core::vector2df ¢er, const video::SColor &color, video::S3DVertex *v, unsigned short int *index) |
| Creates the 2D vertices for a regular polygon. More...
|
|
void | drawAllMessages (const AbstractKart *kart, const core::recti &viewport, const core::vector2df &scaling) |
| Displays all messages in the message queue.
|
|
void | drawPowerupIcons (const AbstractKart *kart, const core::recti &viewport, const core::vector2df &scaling) |
| Draws the powerup icons on the screen (called once for each player). More...
|
|
void | drawGlobalMusicDescription () |
| Displays the description given for the music currently being played. More...
|
|
void | drawGlobalReadySetGo () |
| Draws the ready-set-go message on the screen.
|
|
void | drawGlobalGoal () |
|
void | drawPlungerInFace (const Camera *camera, float dt) |
| Draws the plunger-in-face if necessary. More...
|
|
void | ignoreUnimportantMessages () |
| Instructs the base gui to ignore unimportant messages (like item messages).
|
|
void | addWidgetsRecursively (PtrVector< Widget > &widgets, Widget *parent=NULL) |
| This function adds a list of widgets recursively, effectively creating the hierarchy of widgets. More...
|
|
enum RaceGUIBase::PlungerState | m_plunger_state |
|
float | m_plunger_move_time |
| How long the plunger should stay in the current state. More...
|
|
core::vector2di | m_plunger_offset |
| Offset of the plunger. More...
|
|
core::vector2df | m_plunger_speed |
|
video::ITexture * | m_gauge_empty |
| The size of a single marker in pixels, must be a power of 2. More...
|
|
video::ITexture * | m_gauge_full |
| Default texture for nitro gauge. More...
|
|
video::ITexture * | m_gauge_full_bright |
| Highlight gauge, used when a kart uses nitro. More...
|
|
video::ITexture * | m_gauge_goal |
|
video::ITexture * | m_icons_frame |
| The frame around player karts in the mini map. More...
|
|
video::ITexture * | m_icons_kart_list |
| The frame around player karts in the kart list. More...
|
|
video::ITexture * | m_lap_flag |
| Texture for the lap icon.
|
|
RaceGUIMultitouch * | m_multitouch_gui |
|
float | m_dist_show_overlap |
| Distance on track to begin showing overlap in drawGlobalPlayerIcons.
|
|
float | m_icons_inertia |
| can be zero
|
|
std::vector< core::vector2d< s32 > > | m_previous_icons_position |
| can be zero More...
|
|
std::vector< KartIconDisplayInfo > | m_kart_display_infos |
| This vector is passed to world to be filled with the current race data information. More...
|
|
bool | m_resizable |
| True if this screen is resizable.
|
|
PtrVector< Widget, HOLD > | m_widgets |
| the widgets in this screen
|
|
Widget * | m_first_widget |
| AbstractTopLevelContainer is generally able to determine its first widget just fine, but in highly complex screens (e.g. More...
|
|
Widget * | m_last_widget |
| AbstractTopLevelContainer is generally able to determine its last widget just fine, but in highly complex screens (e.g. More...
|
|
static RaceResultGUI * | singleton |
|
Displays the results (while the end animation is shown).