mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +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();
|
||||
|
||||
@@ -124,7 +124,11 @@
|
||||
IsChecked="{Binding ShowDataModelValues.Value}"/>
|
||||
<MenuItem Header="Display Full Condition Paths"
|
||||
IsCheckable="True"
|
||||
IsChecked="{Binding ShowFullPaths.Value}"/>
|
||||
IsChecked="{Binding ShowFullPaths.Value}"/>
|
||||
<MenuItem Header="Always Display Cable Values"
|
||||
ToolTip="If enabled, cable values are always shown instead of only on hover"
|
||||
IsCheckable="True"
|
||||
IsChecked="{Binding AlwaysShowValues.Value}"/>
|
||||
<MenuItem Header="Apply All Data Bindings During Edit"
|
||||
ToolTip="If enabled, updates all data bindings instead of only the one you are editing"
|
||||
IsCheckable="True"
|
||||
|
||||
@@ -119,6 +119,7 @@ namespace Artemis.UI.Screens.ProfileEditor
|
||||
public PluginSetting<bool> StopOnFocusLoss => _settingsService.GetSetting("ProfileEditor.StopOnFocusLoss", true);
|
||||
public PluginSetting<bool> ShowDataModelValues => _settingsService.GetSetting("ProfileEditor.ShowDataModelValues", false);
|
||||
public PluginSetting<bool> ShowFullPaths => _settingsService.GetSetting("ProfileEditor.ShowFullPaths", true);
|
||||
public PluginSetting<bool> AlwaysShowValues => _settingsService.GetSetting("ProfileEditor.AlwaysShowValues", true);
|
||||
public PluginSetting<bool> FocusSelectedLayer => _settingsService.GetSetting("ProfileEditor.FocusSelectedLayer", true);
|
||||
public PluginSetting<bool> AlwaysApplyDataBindings => _settingsService.GetSetting("ProfileEditor.AlwaysApplyDataBindings", true);
|
||||
|
||||
@@ -194,6 +195,7 @@ namespace Artemis.UI.Screens.ProfileEditor
|
||||
StopOnFocusLoss.AutoSave = true;
|
||||
ShowDataModelValues.AutoSave = true;
|
||||
ShowFullPaths.AutoSave = true;
|
||||
AlwaysShowValues.AutoSave = true;
|
||||
FocusSelectedLayer.AutoSave = true;
|
||||
AlwaysApplyDataBindings.AutoSave = true;
|
||||
|
||||
@@ -208,6 +210,7 @@ namespace Artemis.UI.Screens.ProfileEditor
|
||||
StopOnFocusLoss.AutoSave = false;
|
||||
ShowDataModelValues.AutoSave = false;
|
||||
ShowFullPaths.AutoSave = false;
|
||||
AlwaysShowValues.AutoSave = false;
|
||||
FocusSelectedLayer.AutoSave = false;
|
||||
AlwaysApplyDataBindings.AutoSave = false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user