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

Method start_logo_intro

ogsr_engine/xrGame/GamePersistent.cpp:456–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454#include "UI/UIGameTutorial.h"
455
456void CGamePersistent::start_logo_intro()
457{
458 if (!strstr(Core.Params, "-intro"))
459 {
460 m_intro_event = 0;
461 Console->Show();
462 Console->Execute("main_menu on");
463 return;
464 }
465
466 if (Device.dwPrecacheFrame == 0)
467 {
468 m_intro_event.bind(this, &CGamePersistent::update_logo_intro);
469 if (0 == xr_strlen(m_game_params.m_game_or_spawn) && NULL == g_pGameLevel)
470 {
471 VERIFY(NULL == m_intro);
472 m_intro = xr_new<CUISequencer>();
473 m_intro->Start("intro_logo");
474 Console->Hide();
475 }
476 }
477}
478void CGamePersistent::update_logo_intro()
479{
480 if (m_intro && (false == m_intro->IsActive()))

Callers

nothing calls this directly

Calls 6

xr_strlenFunction · 0.50
ShowMethod · 0.45
ExecuteMethod · 0.45
bindMethod · 0.45
StartMethod · 0.45
HideMethod · 0.45

Tested by

no test coverage detected