Modify AutoScreenMessage to keep map of all non-standard ScreenMessages.
This has a lot of advantages over the old ways. Some of the initial ones are that you can log a list of all screenmessages and their respective number and another is that it would be fairly easy to add a reverse lookup, so you could get the name of a ScreenMessage for log use by getting the ScreenMessage number.
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
#define USERS_Y THEME->GetMetricF(m_sName,"UsersY")
|
||||
#define USERS_X THEME->GetMetricF(m_sName,"UsersX")
|
||||
|
||||
const AutoScreenMessage SM_AddToChat;
|
||||
const AutoScreenMessage SM_UsersUpdate;
|
||||
const AutoScreenMessage SM_SMOnlinePack; //Unused, but should be known
|
||||
AutoScreenMessage( SM_AddToChat )
|
||||
AutoScreenMessage( SM_UsersUpdate )
|
||||
AutoScreenMessage( SM_SMOnlinePack )
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenNetSelectBase );
|
||||
ScreenNetSelectBase::ScreenNetSelectBase( const CString& sName ) : ScreenWithMenuElements( sName )
|
||||
|
||||
Reference in New Issue
Block a user