示例#1
0
        // AddMessage
        public void AddMessage( int type, int data )
        {
            if ( MessageCount == _UI.Settings.Screen_MessageCount )
            return;

            MessagePool[ MessageCount++ ] = new ScreenMessage( type, data );
        }
示例#2
0
        // OnProcessMessage
        protected override void OnProcessMessage(ref ScreenMessage message)
        {
            E_UiMessageType type = (E_UiMessageType)message.Type;

            if (type == E_UiMessageType.PopupConfirm) {
                switch ((E_PopupType)message.Data) {
                    case E_PopupType.NewGame:  break;
                    case E_PopupType.Quit: _UI.Game.Exit(); break;
                }
            }
        }
示例#3
0
 // ProcessMessage
 public void ProcessMessage( ref ScreenMessage message )
 {
     OnProcessMessage( ref message );
 }
示例#4
0
 // OnProcessMessage
 protected virtual void OnProcessMessage( ref ScreenMessage message )
 {
     //
 }
示例#5
0
        // ProcessMessage
        public void ProcessMessage( ref ScreenMessage message )
        {
            if ( State != E_ScreenState.Update )
            return;

            CurrentScreen.ProcessMessage( ref message );
        }
示例#6
0
 // OnProcessMessage
 protected virtual void OnProcessMessage(ref ScreenMessage message)
 {
     //
 }
示例#7
0
 // ProcessMessage
 public void ProcessMessage(ref ScreenMessage message)
 {
     OnProcessMessage(ref message);
 }