浏览代码

Replaced accidental tabs with spaces

/main
Peter Bay Bastian 8 年前
当前提交
7ef50ef7
共有 3 个文件被更改,包括 24 次插入24 次删除
  1. 16
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/AbstractGraphDataSource.cs
  2. 4
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/AbstractGraphEditWindow.cs
  3. 28
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/SerializableGraph.uss

16
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/AbstractGraphDataSource.cs


[SerializeField]
private List<GraphElementData> m_TempElements = new List<GraphElementData>();
[SerializeField]
private TitleBarDrawData m_TitleBar;
[SerializeField]
private TitleBarDrawData m_TitleBar;
public TitleBarDrawData titleBar
{
get { return m_TitleBar; }
}
public TitleBarDrawData titleBar
{
get { return m_TitleBar; }
}
void OnNodeChanged(INode inNode, ModificationScope scope)
{

this.graphAsset = graphAsset;
m_TitleBar = CreateInstance<TitleBarDrawData>();
m_TitleBar.Initialize(graphAsset);
m_TitleBar = CreateInstance<TitleBarDrawData>();
m_TitleBar.Initialize(graphAsset);
if (graphAsset == null)
return;

4
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/AbstractGraphEditWindow.cs


var source = CreateDataSource();
source.Initialize(m_LastSelection);
m_TitleBarDrawer = new TitleBarDrawer(source.titleBar);
m_TitleBarDrawer = new TitleBarDrawer(source.titleBar);
m_GraphView.dataSource = source;
rootVisualContainer.AddChild(m_TitleBarDrawer);

var source = CreateDataSource();
source.Initialize(m_LastSelection);
m_GraphView.dataSource = source;
m_TitleBarDrawer.dataProvider = source.titleBar;
m_TitleBarDrawer.dataProvider = source.titleBar;
m_GraphView.StretchToParentSize();
Repaint();

28
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/SerializableGraph.uss


NodeDrawer {
flex-direction: column;
flex-direction: column;
flex-direction: row;
flex-direction: row;
flex:1;
flex-direction: column;
flex:1;
flex-direction: column;
flex:1;
flex-direction: column;
flex:1;
flex-direction: column;
flex-direction: column;
padding-bottom: 2;
flex-direction: column;
padding-bottom: 2;
flex-direction: column;
flex-direction: column;
height: 26;
height: 26;
flex-direction: column;
flex-direction: column;
height: 200;
width: 200;
height: 200;
width: 200;
height: 26;
height: 26;
}
正在加载...
取消
保存