浏览代码

Refactored slots container creation into own function because it was messy to look at

/main
Peter Bay Bastian 8 年前
当前提交
81fc3b44
共有 1 个文件被更改,包括 18 次插入12 次删除
  1. 30
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/NodeDrawer.cs

30
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/NodeDrawer.cs


private void AddContainers()
{
AddSlotsContainer();
m_currentAnchors = new List<NodeAnchorData>();
// Add controls container
m_ControlsContainer = new VisualContainer
{
name = "controls", // for USS&Flexbox
pickingMode = PickingMode.Ignore,
};
AddChild(m_ControlsContainer);
m_currentControlDrawData = new List<ControlDrawData>();
}
private void AddSlotsContainer()
{
// Add slots (with input & output sub-containers) container
m_SlotContainer = new VisualContainer
{

AddChild(m_SlotContainer);
var inputs = new VisualContainer
{

};
m_SlotContainer.AddChild(outputs);
m_currentAnchors = new List<NodeAnchorData>();
// Add controls container
m_ControlsContainer = new VisualContainer
{
name = "controls", // for USS&Flexbox
pickingMode = PickingMode.Ignore,
};
AddChild(m_ControlsContainer);
m_currentControlDrawData = new List<ControlDrawData>();
AddChild(m_SlotContainer);
}
private void AddSlots(NodeDrawData nodeData)

正在加载...
取消
保存