示例#1
0
    public void UpdateMessageBar()
    {
        ROSConsole.Message msg = ROSConsole.GetLastMessage();
        messageBarText.text  = msg.GetTitle();
        messageBarText.color = msg.GetColor() * 2f;

        LogType logType = ROSConsole.GetHighestLogType();

        if (logType == LogType.Warning)
        {
            lockNotificationImage.enabled = true;
            lockNotificationImage.sprite  = warningIcon;
            lockNotificationImage.color   = warningColor;
        }
        else if (logType != LogType.Log)
        {
            lockNotificationImage.enabled = true;
            lockNotificationImage.sprite  = errorIcon;
            lockNotificationImage.color   = errorColor;
        }
    }
示例#2
0
 public void HandleLog(string message, string stack, LogType type)
 {
     ROSConsole.Print(message + "\n" + stack, type);
 }
示例#3
0
 public override void AppInit()
 {
     self = this;
 }