private void OnNodePropertyValueChanged(NodePropertyValueChanged msg) { if (msg.PropertyType == PropertyType.Visibility && _index.ContainsLeftKey(msg.NodeId)) { _index[msg.NodeId].IsNodeVisible = _editor.GetNodePropertyAsBool(msg.NodeId, PropertyType.Visibility); } }
private void OnNodePropertyValueChanged(NodePropertyValueChanged msg) { if (msg.IsBulkUpdate) { return; } if (msg.PropertyType == PropertyType.Visibility) { var item = _items[msg.NodeId]; var isVisible = Editor.GetNodePropertyAsBool(msg.NodeId, PropertyType.Visibility); item.SetIsVisible(isVisible); if (isVisible) { ReloadDrawOrder(); } if (isVisible && Editor.NodeSelection.Contains(item.NodeId)) { item.ShowAsSelected(); } } else { var item = _items[msg.NodeId]; item.UpdateVisuals(); } }
private void OnNodePropertyValueChanged(NodePropertyValueChanged msg) { if (msg.NodeId == _entityId) { foreach (var panel in TopSubPanels.OfType <NodeSubPanelViewModel>()) { panel.RefreshPropertyAndKeyButton(_editor, msg.PropertyType); } } }
private void OnNodePropertyValueChanged(NodePropertyValueChanged msg) { if (msg.PropertyType == PropertyType.Visibility) { if (!GetNodePropertyAsBool(msg.NodeId, PropertyType.Visibility) && NodeSelection.Contains(msg.NodeId)) { NodeSelection.Remove(msg.NodeId); } } }
private void OnNodePropertyValueChanged(NodePropertyValueChanged msg) { if (msg.PropertyType != PropertyType.Visibility) { return; } if (_index.TryGet(msg.NodeId, out var viewModel)) { viewModel.UpdateNodeVisibilityButton(); } }