Files
itgmania212121/stepmania/src/ScreenPrompt.h
T

54 lines
1.6 KiB
C++
Raw Normal View History

2002-05-20 08:59:37 +00:00
/*
-----------------------------------------------------------------------------
2002-07-27 19:29:51 +00:00
Class: ScreenPrompt
2002-05-20 08:59:37 +00:00
2002-07-27 19:29:51 +00:00
Desc: Displays a prompt over the top of another screen. Must use by calling
SCREENMAN->AddScreenToTop( new ScreenPrompt(...) );
2002-05-20 08:59:37 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2002-07-27 19:29:51 +00:00
Chris Danford
2002-05-20 08:59:37 +00:00
-----------------------------------------------------------------------------
*/
#include "Screen.h"
#include "BitmapText.h"
2003-04-13 01:09:19 +00:00
#include "Transition.h"
2002-05-20 08:59:37 +00:00
#include "Quad.h"
#include "RandomSample.h"
class ScreenPrompt : public Screen
{
public:
2003-09-27 22:30:51 +00:00
ScreenPrompt( CString sName );
2004-01-30 05:07:26 +00:00
ScreenPrompt( CString sText, bool bYesNoPrompt=false, bool bDefaultAnswer = false, void(*OnYes)(void*) = NULL, void(*OnNo)(void*) = NULL, void* pCallbackData = NULL );
2002-07-27 19:29:51 +00:00
2002-05-20 08:59:37 +00:00
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
virtual void HandleScreenMessage( const ScreenMessage SM );
2003-11-01 19:36:52 +00:00
static bool s_bLastAnswer;
2002-05-20 08:59:37 +00:00
protected:
void MenuLeft( PlayerNumber pn );
void MenuRight( PlayerNumber pn );
void MenuBack( PlayerNumber pn );
void MenuStart( PlayerNumber pn );
2002-05-20 08:59:37 +00:00
BGAnimation m_Background;
2002-07-27 19:29:51 +00:00
BitmapText m_textQuestion;
Quad m_rectAnswerBox;
2002-05-20 08:59:37 +00:00
BitmapText m_textAnswer[2]; // "YES" or "NO"
bool m_bYesNoPrompt; // false = OK prompt, true = YES/NO prompt
2002-07-27 19:29:51 +00:00
bool m_bAnswer; // true = "YES", false = "NO";
ScreenMessage m_SMSendWhenDone;
void(*m_pOnYes)(void*);
void(*m_pOnNo)(void*);
void* m_pCallbackData;
2003-04-13 01:09:19 +00:00
Transition m_In;
Transition m_Out;
2002-05-20 08:59:37 +00:00
};