Example #1
0
 public void AddOutputMessage(EditorPane caller, HelpMessage message)
 {
     if (ActiveTab != null && ActiveTab == caller)
     {
         //if (message.messageType == MessageType.Error)
         //{
         errorScrollPos = new Vector2(float.MaxValue, float.MaxValue);
         //}
     }
 }
Example #2
0
        protected HelpMessage OutputMessage(string message, MessageType typeOfMessage = MessageType.None)
        {
            if (outputMessages == null)
            {
                outputMessages = new List <HelpMessage>();
            }
            HelpMessage newMessage = new HelpMessage(message, typeOfMessage);

            outputMessages.Add(newMessage);

            if (HLEditor != null)
            {
                //Tell our window we had a message (which scrolls to the bottom if it was an error)
                HLEditor.AddOutputMessage(this, newMessage);
            }

            return(newMessage);
        }