derive from SMWE
This commit is contained in:
@@ -86,7 +86,7 @@ ScreenTextEntry::ScreenTextEntry(
|
||||
void(*OnOK)(const CString &sAnswer),
|
||||
void(*OnCancel)(),
|
||||
bool bPassword ) :
|
||||
Screen( sClassName )
|
||||
ScreenWithMenuElements( sClassName )
|
||||
{
|
||||
m_bIsTransparent = true; // draw screens below us
|
||||
|
||||
@@ -102,10 +102,7 @@ ScreenTextEntry::ScreenTextEntry(
|
||||
|
||||
void ScreenTextEntry::Init()
|
||||
{
|
||||
m_Background.Load( THEME->GetPathB(m_sName,"background") );
|
||||
m_Background->SetDrawOrder( DRAW_ORDER_BEFORE_EVERYTHING );
|
||||
this->AddChild( m_Background );
|
||||
m_Background->PlayCommand( "On" );
|
||||
ScreenWithMenuElements::Init();
|
||||
|
||||
m_textQuestion.LoadFromFont( THEME->GetPathF(m_sName,"question") );
|
||||
m_textQuestion.SetName( "Question" );
|
||||
@@ -150,17 +147,6 @@ void ScreenTextEntry::Init()
|
||||
|
||||
PositionCursor();
|
||||
|
||||
m_In.Load( THEME->GetPathB(m_sName,"in") );
|
||||
m_In.StartTransitioning();
|
||||
this->AddChild( &m_In );
|
||||
|
||||
m_Out.Load( THEME->GetPathB(m_sName,"out") );
|
||||
this->AddChild( &m_Out );
|
||||
|
||||
m_Cancel.Load( THEME->GetPathB(m_sName,"cancel") );
|
||||
this->AddChild( &m_Cancel );
|
||||
|
||||
|
||||
m_sndType.Load( THEME->GetPathS(m_sName,"type"), true );
|
||||
m_sndBackspace.Load( THEME->GetPathS(m_sName,"backspace"), true );
|
||||
m_sndChange.Load( THEME->GetPathS(m_sName,"change"), true );
|
||||
@@ -264,7 +250,7 @@ void ScreenTextEntry::Input( const DeviceInput& DeviceI, const InputEventType ty
|
||||
}
|
||||
}
|
||||
|
||||
Screen::Input( DeviceI, type, GameI, MenuI, StyleI );
|
||||
ScreenWithMenuElements::Input( DeviceI, type, GameI, MenuI, StyleI );
|
||||
}
|
||||
|
||||
void ScreenTextEntry::HandleScreenMessage( const ScreenMessage SM )
|
||||
@@ -420,8 +406,6 @@ void ScreenTextEntry::End( bool bCancelled )
|
||||
SCREENMAN->PlayStartSound();
|
||||
}
|
||||
|
||||
m_Background->PlayCommand("Off");
|
||||
|
||||
OFF_COMMAND( m_textQuestion );
|
||||
OFF_COMMAND( m_sprAnswerBox );
|
||||
OFF_COMMAND( m_textAnswer );
|
||||
|
||||
Reference in New Issue
Block a user