MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / enqueueChapterIntroduction

Method enqueueChapterIntroduction

src/ui/IntroduceChapterView.cpp:100–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void UI::IntroduceChapterView::enqueueChapterIntroduction(std::string title, std::string subtitle, std::string texture_name, std::string sound_name, double wait_time)
101{
102 m_Title = title;
103 m_Subtitle = subtitle;
104
105 Textures::TextureAllocator& alloc = m_Engine.getEngineTextureAlloc();
106 m_Texture = alloc.loadTextureVDF(texture_name);
107
108 m_Sound = m_Engine.getMainWorld().get().getAudioWorld().loadAudioVDF(sound_name);
109
110 m_WaitTime = wait_time/1000;
111
112 if ( m_Texture.isValid() && m_Sound.isValid() && m_WaitTime>0 )
113 m_QueueStatus = QueueStatus::InQueue;
114}
115
116void UI::IntroduceChapterView::close()
117{

Callers 1

Calls 5

loadAudioVDFMethod · 0.80
getMethod · 0.80
loadTextureVDFMethod · 0.45
getMainWorldMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected