MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / InitializeMenuBars

Method InitializeMenuBars

TombEngine/Renderer/RendererDrawMenu.cpp:95–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 TEN::Renderer::RendererHudBar* g_SFXVolumeBar = nullptr;
94
95 void Renderer::InitializeMenuBars(int y)
96 {
97 static const auto soundSettingColors = std::array<Vector4, RendererHudBar::COLOR_COUNT>
98 {
99 // Top
100 Vector4(0.18f, 0.3f, 0.72f, 1.0f),
101 Vector4(0.18f, 0.3f, 0.72f, 1.0f),
102
103 // Center
104 Vector4(0.18f, 0.3f, 0.72f, 1.0f),
105
106 // Bottom
107 Vector4(0.18f, 0.3f, 0.72f, 1.0f),
108 Vector4(0.18f, 0.3f, 0.72f, 1.0f)
109 };
110
111 int shift = MenuVerticalLineSpacing / 2;
112
113 g_MusicVolumeBar = new RendererHudBar(_device.Get(), Vector2(MenuRightSideEntry, y + shift), RendererHudBar::SIZE_DEFAULT, 1, soundSettingColors);
114 GetNextLinePosition(&y);
115 g_SFXVolumeBar = new RendererHudBar(_device.Get(), Vector2(MenuRightSideEntry, y + shift), RendererHudBar::SIZE_DEFAULT, 1, soundSettingColors);
116 }
117
118 void Renderer::RenderOptionsMenu(Menu menu, int initialY)
119 {

Callers

nothing calls this directly

Calls 4

GetNextLinePositionFunction · 0.85
Vector4Function · 0.50
Vector2Function · 0.50
GetMethod · 0.45

Tested by

no test coverage detected