浏览代码

Added options button (not functional yet)

/main
Peter Bay Bastian 8 年前
当前提交
53ab6c81
共有 2 个文件被更改,包括 25 次插入0 次删除
  1. 11
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/TitleBarDrawer.cs
  2. 14
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/TitleBar.uss

11
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/TitleBarDrawer.cs


showInProjectItem.AddChild(new VisualElement() { classList = new ClassList("titleBarItemBorder") });
leftContainer.AddChild(showInProjectItem);
var optionsItem = new VisualContainer() { classList = new ClassList("titleBarItem") };
optionsItem.AddChild(new VisualElement() { classList = new ClassList("titleBarItemBorder") });
var optionsLabel = new VisualElement()
{
classList = new ClassList("titleBarItemLabel"),
content = new GUIContent("Options")
};
optionsItem.AddChild(optionsLabel);
optionsItem.AddChild(new VisualElement() { classList = new ClassList("titleBarItemBorder") });
rightContainer.AddChild(optionsItem);
this.dataProvider = dataProvider;
}

14
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/TitleBar.uss


background-color: #3d3d3d;
align-items: stretch;
flex-direction: row;
}
#TitleBar #left {
}
#TitleBar #right {
justify-content: flex-end;
}
#left .titleBarItem {
}
#right .titleBarItem {
margin-right: 5;
}
.titleBarItemBorder {

正在加载...
取消
保存