make STextEntry work more like other screens: single parameter ctor, move

the special load stuff into a separate function (called any time before
BeginScreen)
This commit is contained in:
Glenn Maynard
2005-08-12 22:46:32 +00:00
parent f264975834
commit 450cbfa66b
2 changed files with 61 additions and 41 deletions
+6 -4
View File
@@ -44,8 +44,12 @@ public:
TextEntry( smSendOnPop, sQuestion, "", 255, NULL, OnOK, OnCanel, true );
}
ScreenTextEntry(
CString sName,
ScreenTextEntry( CString sName );
~ScreenTextEntry();
virtual void Init();
virtual void BeginScreen();
void LoadMenu(
CString sQuestion,
CString sInitialAnswer,
int iMaxInputLength,
@@ -53,8 +57,6 @@ public:
void(*OnOK)(const CString &sAnswer) = NULL,
void(*OnCanel)() = NULL,
bool bPassword = false );
~ScreenTextEntry();
virtual void Init();
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );