simplify
This commit is contained in:
@@ -52,7 +52,6 @@ void ScreenTextEntry::TextEntry(
|
||||
// add the new state onto the back of the array
|
||||
ScreenTextEntry *pNewScreen = new ScreenTextEntry(
|
||||
"ScreenTextEntry",
|
||||
smSendOnPop,
|
||||
sQuestion,
|
||||
sInitialAnswer,
|
||||
iMaxInputLength,
|
||||
@@ -62,7 +61,7 @@ void ScreenTextEntry::TextEntry(
|
||||
bPassword );
|
||||
pNewScreen->Init();
|
||||
SCREENMAN->ZeroNextUpdate();
|
||||
SCREENMAN->PushScreen( pNewScreen, true );
|
||||
SCREENMAN->PushScreen( pNewScreen, true, smSendOnPop );
|
||||
}
|
||||
|
||||
bool ScreenTextEntry::s_bCancelledLast = false;
|
||||
@@ -78,7 +77,6 @@ bool ScreenTextEntry::s_bCancelledLast = false;
|
||||
|
||||
ScreenTextEntry::ScreenTextEntry(
|
||||
CString sClassName,
|
||||
ScreenMessage smSendOnPop,
|
||||
CString sQuestion,
|
||||
CString sInitialAnswer,
|
||||
int iMaxInputLength,
|
||||
@@ -90,7 +88,6 @@ ScreenTextEntry::ScreenTextEntry(
|
||||
{
|
||||
m_bIsTransparent = true; // draw screens below us
|
||||
|
||||
m_smSendOnPop = smSendOnPop;
|
||||
m_sQuestion = sQuestion;
|
||||
m_sAnswer = CStringToWstring( sInitialAnswer );
|
||||
m_iMaxInputLength = iMaxInputLength;
|
||||
@@ -253,21 +250,6 @@ void ScreenTextEntry::Input( const DeviceInput& DeviceI, const InputEventType ty
|
||||
ScreenWithMenuElements::Input( DeviceI, type, GameI, MenuI, StyleI );
|
||||
}
|
||||
|
||||
void ScreenTextEntry::HandleScreenMessage( const ScreenMessage SM )
|
||||
{
|
||||
switch( SM )
|
||||
{
|
||||
case SM_GoToNextScreen:
|
||||
if( SCREENMAN->IsStackedScreen(this) )
|
||||
{
|
||||
SCREENMAN->PopTopScreen( m_smSendOnPop );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Screen::HandleScreenMessage( SM );
|
||||
}
|
||||
|
||||
void ScreenTextEntry::MoveX( int iDir )
|
||||
{
|
||||
CString sKey;
|
||||
|
||||
@@ -47,7 +47,6 @@ public:
|
||||
|
||||
ScreenTextEntry(
|
||||
CString sName,
|
||||
ScreenMessage smSendOnPop,
|
||||
CString sQuestion,
|
||||
CString sInitialAnswer,
|
||||
int iMaxInputLength,
|
||||
@@ -59,7 +58,6 @@ public:
|
||||
virtual void Init();
|
||||
|
||||
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
|
||||
virtual void HandleScreenMessage( const ScreenMessage SM );
|
||||
|
||||
static CString s_sLastAnswer;
|
||||
static bool s_bCancelledLast;
|
||||
@@ -83,7 +81,6 @@ protected:
|
||||
void UpdateKeyboardText();
|
||||
void UpdateAnswerText();
|
||||
|
||||
ScreenMessage m_smSendOnPop;
|
||||
CString m_sQuestion;
|
||||
int m_iMaxInputLength;
|
||||
bool m_bPassword;
|
||||
|
||||
Reference in New Issue
Block a user