Nodes - Added option to hide cable values until mouseover

Nodes - Only show cable value on first connection
This commit is contained in:
Robert committed 2021-08-26 00:20:57 +02:00
1 parent 4fbd229846
commit 73794591bc
11 files changed
+81 -12

No files matched your search

@@ -11,12 +11,10 @@ namespace Artemis.VisualScripting.Nodes.CustomViewModels
private readonly DataModelNode _node;
private BindableCollection<Module> _modules;
public DataModelNodeCustomViewModel(DataModelNode node, ISettingsService settingsService, IPluginManagementService test) : base(node)
public DataModelNodeCustomViewModel(DataModelNode node, ISettingsService settingsService) : base(node)
{
_node = node;
var tessst = test.GetFeaturesOfType<Module>();
ShowFullPaths = settingsService.GetSetting("ProfileEditor.ShowFullPaths", true);
ShowDataModelValues = settingsService.GetSetting("ProfileEditor.ShowDataModelValues", false);
}
@@ -38,7 +36,7 @@ namespace Artemis.VisualScripting.Nodes.CustomViewModels
if (ReferenceEquals(_node.DataModelPath, value))
return;
_node.DataModelPath.Dispose();
_node.DataModelPath?.Dispose();
_node.DataModelPath = value;
_node.DataModelPath.Save();
@@ -45,7 +45,9 @@ namespace Artemis.VisualScripting.Nodes
if (Output == null)
UpdateOutputPin(false);
Output.Value = DataModelPath.GetValue() ?? Output.Type.GetDefault();
object pathValue = DataModelPath.GetValue();
if (pathValue != null)
Output.Value = pathValue;
}
}