コード例 #1
0
 private void OnNodePropertyValueChanged(NodePropertyValueChanged msg)
 {
     if (msg.PropertyType == PropertyType.Visibility && _index.ContainsLeftKey(msg.NodeId))
     {
         _index[msg.NodeId].IsNodeVisible = _editor.GetNodePropertyAsBool(msg.NodeId, PropertyType.Visibility);
     }
 }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 private void OnNodePropertyValueChanged(NodePropertyValueChanged msg)
 {
     if (msg.NodeId == _entityId)
     {
         foreach (var panel in TopSubPanels.OfType <NodeSubPanelViewModel>())
         {
             panel.RefreshPropertyAndKeyButton(_editor, msg.PropertyType);
         }
     }
 }
コード例 #4
0
ファイル: Editor.cs プロジェクト: thomasvt/pose
 private void OnNodePropertyValueChanged(NodePropertyValueChanged msg)
 {
     if (msg.PropertyType == PropertyType.Visibility)
     {
         if (!GetNodePropertyAsBool(msg.NodeId, PropertyType.Visibility) && NodeSelection.Contains(msg.NodeId))
         {
             NodeSelection.Remove(msg.NodeId);
         }
     }
 }
コード例 #5
0
        private void OnNodePropertyValueChanged(NodePropertyValueChanged msg)
        {
            if (msg.PropertyType != PropertyType.Visibility)
            {
                return;
            }

            if (_index.TryGet(msg.NodeId, out var viewModel))
            {
                viewModel.UpdateNodeVisibilityButton();
            }
        }