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
+4
-1
@@ -31,7 +31,10 @@
|
||||
</CheckBox>
|
||||
</Grid>
|
||||
|
||||
<controls:VisualScriptPresenter Grid.Row="1" AvailableNodes="{Binding AvailableNodes}" Script="{Binding DataBinding.Script}" />
|
||||
<controls:VisualScriptPresenter Grid.Row="1"
|
||||
AvailableNodes="{Binding AvailableNodes}"
|
||||
Script="{Binding DataBinding.Script}"
|
||||
AlwaysShowValues="{Binding AlwaysShowValues.Value}"/>
|
||||
<Border Grid.Row="1" Background="{StaticResource MaterialDesignToolBarBackground}"
|
||||
Visibility="{Binding DataBindingEnabled, Converter={x:Static s:BoolToVisibilityConverter.InverseInstance}, Mode=OneWay}">
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="16">
|
||||
|
||||
+4
-1
@@ -13,13 +13,15 @@ namespace Artemis.UI.Screens.ProfileEditor.LayerProperties.DataBindings
|
||||
private readonly IProfileEditorService _profileEditorService;
|
||||
private IDataBinding _dataBinding;
|
||||
|
||||
public DataBindingsViewModel(IProfileEditorService profileEditorService, INodeService nodeService)
|
||||
public DataBindingsViewModel(IProfileEditorService profileEditorService, INodeService nodeService, ISettingsService settingsService)
|
||||
{
|
||||
_profileEditorService = profileEditorService;
|
||||
AvailableNodes = nodeService.AvailableNodes.ToList();
|
||||
AlwaysShowValues = settingsService.GetSetting("ProfileEditor.AlwaysShowValues", true);
|
||||
}
|
||||
|
||||
public List<NodeData> AvailableNodes { get; }
|
||||
public PluginSetting<bool> AlwaysShowValues { get; }
|
||||
|
||||
public IDataBinding DataBinding
|
||||
{
|
||||
@@ -37,6 +39,7 @@ namespace Artemis.UI.Screens.ProfileEditor.LayerProperties.DataBindings
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void ProfileEditorServiceOnSelectedDataBindingChanged(object sender, EventArgs e)
|
||||
{
|
||||
SubscribeToSelectedDataBinding();
|
||||
|
||||
Reference in new issue
Block a user