Пример #1
0
 public void Draw(Vector2 position)
 {
     UpdateIsSelected(position);
     UpdateDimensions();
     GUI.Box(_rect.WithOffset(position), "", _isSelected ? _selectedStyle : _defaultStyle);
     _nodeNameLabel.Draw(new Vector2(EditorConstants.NodePadding, EditorConstants.NodePadding) + position);
     _removeNodeButton.Draw(new Vector2(_rect.width - _removeNodeButton.Width - EditorConstants.NodePadding, EditorConstants.NodePadding) + position);
     _content.Draw(new Vector2(EditorConstants.NodePadding, EditorConstants.NodePadding * 2 + _nodeNameLabel.Height) + position);
 }
Пример #2
0
 public void Draw(Vector2 position)
 {
     UpdateIsSelected(position);
     GUI.Box(_rect.WithOffset(position), "", _isSelected ? _selectedStyle : _defaultStyle);
     _nodeNameLabel.Draw(new Vector2(EditorConstants.NodePadding, EditorConstants.NodePadding) + position);
 }