mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Nodes - Added option to hide cable values until mouseover
Nodes - Only show cable value on first connection
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user