コード例 #1
0
 public void Repaint()
 {
     if (HLEditor != null)
     {
         //Debug.Log("Repaint\n");
         HLEditor.Repaint();
     }
 }
コード例 #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);
        }