MCPcopy Create free account
hub / github.com/ddnet/ddnet / CMenus

Method CMenus

src/game/client/components/menus.cpp:60–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58float CMenus::ms_ListheaderHeight = 17.0f;
59
60CMenus::CMenus()
61{
62 m_Popup = POPUP_NONE;
63 m_MenuPage = 0;
64 m_GamePage = PAGE_GAME;
65
66 m_NeedRestartGraphics = false;
67 m_NeedRestartSound = false;
68 m_NeedSendinfo = false;
69 m_NeedSendDummyinfo = false;
70 m_MenuActive = true;
71 m_ShowStart = true;
72
73 str_copy(m_aCurrentDemoFolder, "demos");
74 m_DemolistStorageType = IStorage::TYPE_ALL;
75
76 m_DemoPlayerState = DEMOPLAYER_NONE;
77 m_Dummy = false;
78
79 for(SUIAnimator &Animator : m_aAnimatorsSettingsTab)
80 {
81 Animator.m_YOffset = -2.5f;
82 Animator.m_HOffset = 5.0f;
83 Animator.m_WOffset = 5.0f;
84 Animator.m_RepositionLabel = true;
85 }
86
87 for(SUIAnimator &Animator : m_aAnimatorsBigPage)
88 {
89 Animator.m_YOffset = -5.0f;
90 Animator.m_HOffset = 5.0f;
91 }
92
93 for(SUIAnimator &Animator : m_aAnimatorsSmallPage)
94 {
95 Animator.m_YOffset = -2.5f;
96 Animator.m_HOffset = 2.5f;
97 }
98
99 m_PasswordInput.SetBuffer(g_Config.m_Password, sizeof(g_Config.m_Password));
100 m_PasswordInput.SetHidden(true);
101}
102
103int CMenus::DoButton_Toggle(const void *pId, int Checked, const CUIRect *pRect, bool Active, const unsigned Flags)
104{

Callers

nothing calls this directly

Calls 3

SetHiddenMethod · 0.80
str_copyFunction · 0.50
SetBufferMethod · 0.45

Tested by

no test coverage detected