mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Nodes - Ensure there always is an exit node
This commit is contained in:
1 parent
c4340c3c97
commit
3e201336f1
4 files changed
+16
-6
No files matched your search
@@ -28,8 +28,9 @@
|
||||
<materialDesign:PackIcon Kind="FreehandLine" Width="20" Height="28" />
|
||||
</mde:AppBar.AppIcon>
|
||||
</mde:AppBar>
|
||||
<controls:VisualScriptEditor Script="{Binding NodeScript}" AvailableNodes="{Binding AvailableNodes}" />
|
||||
|
||||
<controls:VisualScriptEditor Script="{Binding NodeScript}"
|
||||
AvailableNodes="{Binding AvailableNodes}"
|
||||
AlwaysShowValues="{Binding AlwaysShowValues.Value}" />
|
||||
</DockPanel>
|
||||
</materialDesign:DialogHost>
|
||||
</mde:MaterialWindow>
|
||||
@@ -6,13 +6,15 @@ namespace Artemis.UI.Screens.ProfileEditor.Windows
|
||||
{
|
||||
public class NodeScriptWindowViewModel : Screen
|
||||
{
|
||||
public NodeScriptWindowViewModel(NodeScript nodeScript, INodeService nodeService)
|
||||
public NodeScriptWindowViewModel(NodeScript nodeScript, INodeService nodeService, ISettingsService settingsService)
|
||||
{
|
||||
NodeScript = nodeScript;
|
||||
AvailableNodes = new BindableCollection<NodeData>(nodeService.AvailableNodes);
|
||||
AlwaysShowValues = settingsService.GetSetting("ProfileEditor.AlwaysShowValues", true);
|
||||
}
|
||||
|
||||
public NodeScript NodeScript { get; }
|
||||
public BindableCollection<NodeData> AvailableNodes { get; }
|
||||
public PluginSetting<bool> AlwaysShowValues { get; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user