MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Start

Method Start

ogsr_engine/xrGame/ui/UIGameTutorialVideoItem.cpp:171–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void CUISequenceVideoItem::Start()
172{
173 inherited::Start();
174 m_flags.set(etiStoredPauseState, Device.Paused());
175
176 if (m_flags.test(etiNeedPauseOn) && !m_flags.test(etiStoredPauseState))
177 {
178 Device.Pause(TRUE, TRUE, TRUE, "videoitem_start");
179 bShowPauseString = FALSE;
180 }
181
182 if (m_flags.test(etiNeedPauseOff) && m_flags.test(etiStoredPauseState))
183 Device.Pause(FALSE, TRUE, TRUE, "videoitem_start");
184
185 if (m_flags.test(etiNeedPauseSound))
186 Device.Pause(TRUE, FALSE, TRUE, "videoitem_start");
187
188 m_flags.set(etiPlaying, TRUE);
189 m_flags.set(etiNeedStart, TRUE);
190
191 m_sync_time = 0;
192 m_time_start = Device.dwTimeContinual + iFloor(m_delay * 1000.f);
193 m_flags.set(etiDelayed, TRUE);
194
195 if (m_flags.test(etiBackVisible))
196 {
197 CUIWindow* w = m_owner->MainWnd()->FindChild("back");
198 if (w)
199 w->Show(true);
200 }
201}
202
203bool CUISequenceVideoItem::Stop(bool bForce)
204{

Callers

nothing calls this directly

Calls 8

StartFunction · 0.85
PausedMethod · 0.80
FindChildMethod · 0.80
MainWndMethod · 0.80
setMethod · 0.45
testMethod · 0.45
PauseMethod · 0.45
ShowMethod · 0.45

Tested by

no test coverage detected