Ejemplo n.º 1
0
 protected override void ConfigureView()
 {
     base.ConfigureView();
     base.View.Name      = TileDisplay.GetFriendlyName(base.Node.ShortName);
     base.View.TileColor = Color.white;
     if (base.Node == grid.CurrentDisplayNode)
     {
         base.View.TileColor      = GroupRootTileColor;
         base.View.NameText.color = GroupRootNameTextColor;
     }
 }
Ejemplo n.º 2
0
        protected override void ConfigureView()
        {
            base.ConfigureView();
            base.View.Name      = TileDisplay.GetFriendlyName(tweakable.ShortName);
            base.View.TileColor = Color.cyan;
            object value = tweakable.GetValue();

            if (value != null)
            {
                base.View.Value = value.ToString();
            }
            else
            {
                base.View.Value = "null";
            }
            base.Node.Tweakable.ValueChanged += ValueChanged;
        }
 protected override void ConfigureView()
 {
     base.ConfigureView();
     if (invokable == null)
     {
         base.View.Name = "Invoke";
     }
     else
     {
         base.View.Name = TileDisplay.GetFriendlyName(invokable.ShortName);
     }
     if (grid.CurrentDisplayNode == base.Node)
     {
         base.View.TileColor      = GroupTileController.GroupRootTileColor;
         base.View.NameText.color = GroupTileController.GroupRootNameTextColor;
     }
     else
     {
         base.View.TileColor      = Color.blue;
         base.View.NameText.color = Color.white;
     }
 }
 protected override void ConfigureView()
 {
     base.ConfigureView();
     base.View.Name      = TileDisplay.GetFriendlyName(watchable.ShortName);
     base.View.TileColor = Color.magenta;
 }