123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef PAUSEWINDOW_H
- #define PAUSEWINDOW_H
- /*************************************************************************************************\
- PauseWindow.h : Interface for the PauseWindow component.
- //---------------------------------------------------------------------------//
- // Copyright (C) Microsoft Corporation. All rights reserved. //
- //===========================================================================//
- \*************************************************************************************************/
- //*************************************************************************************************
- class ControlButton;
- struct ButtonData;
- class StaticInfo;
- class FitIniFile;
- #include "utilities.h"
- #ifndef AFONT_H
- #include "aFont.h"
- #endif
- /**************************************************************************************************
- CLASS DESCRIPTION
- PauseWindow:
- **************************************************************************************************/
- struct MoveInfo
- {
- float time; // in seconds
- float position; // x pixels
- };
- class PauseWindow
- {
- public:
-
- PauseWindow();
- ~PauseWindow();
- void update();
- void render();
- void init( FitIniFile& file );
- void handleClick( int ID );
- bool inRect( int mouseX, int mouseY );
- void begin(){ currentTime = 0.f; }
- void end();
- void begin(bool objectivesOn);
- enum PAUSEBUTTONS
- {
- OBJECTIVES = 0,
- SAVE = 1,
- LOAD = 2,
- OPTIONS = 3,
- RESTART = 4,
- EXIT = 5,
- RETURN = 6
- };
- private:
- ControlButton* buttons;
- ButtonData* buttonData;
- long buttonCount;
- StaticInfo* statics;
- long staticCount;
- GUI_RECT backgrounds[2];
- float finalReference;
- float currentPos;
- float currentTime;
- aFont font;
- aFont headerFont;
- bool wasDragging;
- bool objectivesAlreadyOn;
- static MoveInfo moveInfo[8];
- bool bPromptToQuit;
- bool bPromptToAbort;
- };
- //*************************************************************************************************
- #endif // end of file ( PauseWindow.h )
|