fixed cooperate play
This commit is contained in:
@ -19,6 +19,9 @@ public:
|
||||
void showHelpPanel(bool show);
|
||||
// Show or hide the inline ABOUT panel (menu-style)
|
||||
void showAboutPanel(bool show);
|
||||
|
||||
// Show or hide the inline COOPERATE setup panel (2P vs AI).
|
||||
void showCoopSetupPanel(bool show);
|
||||
|
||||
private:
|
||||
int selectedButton = 0; // 0=PLAY,1=COOPERATE,2=CHALLENGE,3=LEVEL,4=OPTIONS,5=HELP,6=ABOUT,7=EXIT
|
||||
@ -94,4 +97,14 @@ private:
|
||||
double aboutTransition = 0.0; // 0..1
|
||||
double aboutTransitionDurationMs = 360.0;
|
||||
int aboutDirection = 1; // 1 show, -1 hide
|
||||
|
||||
// Coop setup panel (inline HUD like Exit/Help)
|
||||
bool coopSetupVisible = false;
|
||||
bool coopSetupAnimating = false;
|
||||
double coopSetupTransition = 0.0; // 0..1
|
||||
double coopSetupTransitionDurationMs = 320.0;
|
||||
int coopSetupDirection = 1; // 1 show, -1 hide
|
||||
int coopSetupSelected = 0; // 0 = 2 players, 1 = AI
|
||||
SDL_FRect coopSetupBtnRects[2]{};
|
||||
bool coopSetupRectsValid = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user