19#ifndef HEADER_CREDITS_HPP
20#define HEADER_CREDITS_HPP
25 namespace video {
class IVideoDriver; }
30#include "audio/music_manager.hpp"
31#include "guiengine/screen.hpp"
32#include "utils/ptr_vector.hpp"
49 int m_x, m_y, m_w, m_h;
50 core::rect< s32 > m_section_rect;
55 float time_before_next_step;
59 bool getLineAsWide(std::ifstream& file, core::stringw* out);
61 bool m_is_victory_music;
66 void setArea(
const int x,
const int y,
const int w,
const int h);
76 void onDraw(
float dt) OVERRIDE;
83 const int playerID) OVERRIDE;
85 void setVictoryMusic(
bool isVictory) { m_is_victory_music = isVictory; }
89 if (m_is_victory_music)
Screen where STK credits are shown.
Definition: credits.hpp:43
virtual MusicInformation * getMusic() const OVERRIDE
Definition: credits.hpp:87
void onDraw(float dt) OVERRIDE
implement optional callback from parent class GUIEngine::Screen
Definition: credits.cpp:253
void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: credits.cpp:215
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: credits.cpp:118
void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: credits.cpp:395
Definition: credits.cpp:60
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:97
MusicInformation * getMusicInformation(const std::string &filename)
Definition: music_manager.cpp:284
Definition: ptr_vector.hpp:44
MusicInformation * m_title_music
Filename of the title music to play.
Definition: stk_config.hpp:170