MCPcopy Create free account
hub / github.com/crossuo/crossuo / Init

Method Init

src/ScreenStages/MainScreen.cpp:39–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void CMainScreen::Init()
40{
41 CBaseScreen::Init();
42 g_ConfigLoaded = false;
43 g_GlobalScale = 1.0;
44 Load();
45 Reset();
46 g_GameWindow.SetTitle(CLIENT_TITLE);
47#ifndef NEW_RENDERER_ENABLED
48 g_GL.UpdateRect();
49#else
50 g_GumpManager.RedrawAll();
51#endif
52 g_EntryPointer = m_MainGump.m_PasswordFake;
53 g_AnimationManager.ClearUnusedAnimations();
54 g_QuestArrow.Enabled = false;
55 g_TotalSendSize = 0;
56 g_TotalRecvSize = 0;
57 g_LightLevel = 0;
58 g_PersonalLightLevel = 0;
59 g_ScreenEffectManager.UseSunrise();
60 SmoothScreenAction = 0;
61 m_Gump.PrepareTextures();
62}
63
64void CMainScreen::Reset() const
65{

Callers

nothing calls this directly

Calls 7

InitFunction · 0.85
SetTitleMethod · 0.80
UpdateRectMethod · 0.80
RedrawAllMethod · 0.80
ClearUnusedAnimationsMethod · 0.80
UseSunriseMethod · 0.80
PrepareTexturesMethod · 0.45

Tested by

no test coverage detected