예제 #1
0
        // Will show a warning icon in hierarchy when a generator has a problem (do not make this method slow, it is called a lot!)
        public override void GetWarningMessages(IChiselMessageHandler messages)
        {
            if (!PassThrough && !Node.Valid)
            {
                messages.Warning(kFailedToGenerateNodeMessage);
            }

            if (PassThrough)
            {
                return;
            }

            // A composite makes no sense without any children
            if (hierarchyItem != null)
            {
                if (hierarchyItem.Children.Count == 0)
                {
                    messages.Warning(kModelHasNoChildrenMessage);
                }
            }
            else
            if (transform.childCount == 0)
            {
                messages.Warning(kModelHasNoChildrenMessage);
            }
        }
예제 #2
0
 public void GetWarningMessages(IChiselMessageHandler messages)
 {
     if (!IsValid)
     {
         // TODO: show message that internal brush is invalid
     }
     if (ValidState)
     {
         // TODO: show message that brush is not in valid state
     }
 }
예제 #3
0
 public void GetWarningMessages(IChiselMessageHandler messages)
 {
 }
예제 #4
0
 protected virtual void ShowWarningMessages(IChiselMessageHandler warnings)
 {
 }
 public virtual void GetWarningMessages(IChiselMessageHandler messages)
 {
     settings.GetWarningMessages(messages);
 }
예제 #6
0
 public abstract void GetWarningMessages(IChiselMessageHandler messages);