added BackgroundChange editing and DWI saving to editor
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
-----------------------------------------------------------------------------
|
||||
Class: ScreenTextEntry
|
||||
|
||||
Desc: Displays a text entry box over the top of another screen. Must use by calling
|
||||
SCREENMAN->AddScreenToTop( new ScreenTextEntry(...) );
|
||||
|
||||
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
||||
Chris Danford
|
||||
-----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "Screen.h"
|
||||
#include "BitmapText.h"
|
||||
#include "TransitionFade.h"
|
||||
#include "Quad.h"
|
||||
#include "RandomSample.h"
|
||||
|
||||
|
||||
|
||||
|
||||
class ScreenTextEntry : public Screen
|
||||
{
|
||||
public:
|
||||
ScreenTextEntry();
|
||||
ScreenTextEntry( ScreenMessage SM_SendWhenDone, CString sQuestion, CString sInitialAnswer, void(*OnOK)(CString sAnswer) = NULL, void(*OnCanel)() = NULL );
|
||||
|
||||
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 );
|
||||
|
||||
protected:
|
||||
virtual void MenuLeft( const PlayerNumber p );
|
||||
virtual void MenuRight( const PlayerNumber p );
|
||||
virtual void MenuStart( const PlayerNumber p );
|
||||
virtual void MenuBack( const PlayerNumber p );
|
||||
|
||||
TransitionFade m_Fade;
|
||||
BitmapText m_textQuestion;
|
||||
Quad m_rectAnswerBox;
|
||||
CString m_sAnswer;
|
||||
BitmapText m_textAnswer;
|
||||
ScreenMessage m_SMSendWhenDone;
|
||||
void(*m_pOnOK)( CString sAnswer );
|
||||
void(*m_pOnCancel)();
|
||||
bool m_bCancelled;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user