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"
51 PAUSE_BETWEEN_SECTIONS = 3
57 int m_x, m_y, m_w, m_h;
58 core::rect< s32 > m_section_rect;
63 CreditStage m_current_stage;
65 float m_time_til_next_step;
69 bool getLineAsWide(std::ifstream& file, core::stringw* out);
70 float displayTimeForElement(
int element_id);
73 bool m_is_victory_music;
74 void updateAreaSize();
78 void setArea(
const int x,
const int y,
const int w,
const int h);
84 virtual void loadedFromFile() OVERRIDE;
88 void onDraw(
float dt) OVERRIDE;
94 void eventCallback(
GUIEngine::Widget* widget, const std::
string& name,
95 const
int playerID) OVERRIDE;
97 void setVictoryMusic(
bool isVictory) { m_is_victory_music = isVictory; }
101 if (m_is_victory_music)
Screen where STK credits are shown.
Definition: credits.hpp:43
virtual void onResize() OVERRIDE
optional callback you can override to be notified at every resize.
Definition: credits.hpp:107
virtual MusicInformation * getMusic() const OVERRIDE
Definition: credits.hpp:99
CreditStage
Used to track the current stage of credit display.
Definition: credits.hpp:47
Definition: credits.cpp:62
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:94
virtual void onResize()
optional callback you can override to be notified at every resize.
Definition: screen.cpp:233
MusicInformation * getMusicInformation(const std::string &filename)
Definition: music_manager.cpp:284
MusicInformation * m_title_music
Filename of the title music to play.
Definition: stk_config.hpp:170
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33