This commit is contained in:
2025-12-06 14:08:24 +01:00
parent cb8293175b
commit b531bbc798
2 changed files with 219 additions and 35 deletions

View File

@ -53,4 +53,25 @@ private:
double levelHighlightGlowAlpha = 0.70; // 0..1 base glow alpha
int levelHighlightThickness = 3; // inner outline thickness (px)
SDL_Color levelHighlightColor = SDL_Color{80, 200, 255, 200};
// Button group pulsing/fade parameters (applies to all four main buttons)
double buttonGroupAlpha = 1.0; // current computed alpha (0..1)
double buttonPulseTime = 0.0; // accumulator in ms
bool buttonPulseEnabled = true; // enable/disable pulsing
double buttonPulseSpeed = 1.0; // multiplier for pulse frequency
double buttonPulseMinAlpha = 0.60; // minimum alpha during pulse
double buttonPulseMaxAlpha = 1.00; // maximum alpha during pulse
// Pulse easing mode: 0=sin,1=triangle,2=exponential
int buttonPulseEasing = 1;
// Short bright flash when navigating buttons
double buttonFlash = 0.0; // transient flash amount (0..1)
double buttonFlashAmount = 0.45; // how much flash adds to group alpha
double buttonFlashDecay = 0.0025; // linear decay per ms
// Exit confirmation HUD state (inline HUD like Options/Level)
bool exitPanelVisible = false;
bool exitPanelAnimating = false;
double exitTransition = 0.0; // 0..1
double exitTransitionDurationMs = 360.0;
int exitDirection = 1; // 1 show, -1 hide
int exitSelectedButton = 0; // 0 = YES (quit), 1 = NO (cancel)
double exitScroll = 0.0; // vertical scroll offset for content
};