24 const float buttonWidth = 400.0f;
25 const float buttonHeight = 50.0f;
26 const float spacing = 18.0f;
29 const int buttonCount = showMainMenuButton ? 4 : 3;
32 const float totalHeight = (buttonHeight *
static_cast<float>(buttonCount)) +
33 (spacing *
static_cast<float>(buttonCount - 1));
35 auto offsetForIndex = [&](
int idx) {
36 const float start = -(totalHeight / 2.0f) + (buttonHeight / 2.0f);
37 return start + (buttonHeight + spacing) *
static_cast<float>(idx);
42 "COLORBLIND: NONE", offsetForIndex(0), buttonWidth, buttonHeight, 0xFF424242, 0xFF616161,
47 buttonHeight, 0xFF5E35B1, 0xFF7E57C2,
52 0xFF1976D2, 0xFF1E88E5, [
this]() {
61 if (showMainMenuButton) {
63 0xFF5D4037, 0xFF6D4C41, [
this]() {