| 98 | } |
| 99 | |
| 100 | void 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 | |
| 116 | void UI::IntroduceChapterView::close() |
| 117 | { |
no test coverage detected