浏览代码

[mat graph]More CSS

/main
Tim Cooper 8 年前
当前提交
f4c0b482
共有 4 个文件被更改,包括 272 次插入287 次删除
  1. 2
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/NodeDrawer.cs
  2. 71
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss
  3. 484
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss.imported.asset
  4. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss.imported.asset.meta

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


name = "controls", // for USS&Flexbox
pickingMode = PickingMode.Ignore,
};
AddChild(m_ControlsContainer);
//AddChild(m_ControlsContainer);
m_currentControlDrawData = new List<ControlDrawData>();
}

71
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss


MaterialNodeDrawer {
flex-direction: column;
}
margin-top: 15;
background-color:#444;
MaterialNodeDrawer #slots #output {
MaterialNodeDrawer #slots #input{
flex-direction: column;
justify-content: flex-end;
MaterialNodeDrawer #slots #input {
MaterialNodeDrawer #slots #output {
flex-direction: column;
}
MaterialNodeDrawer #controls {
flex-direction: column;
padding-bottom: 2;
}
MaterialNodeDrawer #controls #element{
flex-direction: column;
}
MaterialNodeDrawer #preview {
flex-direction: column;
}
MaterialNodeDrawer #preview #image {
height: 200;
width: 200;
justify-content: flex-end;
margin-right:5;
margin-left:5;
}
NodeAnchor #connector {

flex:1;
}
MaterialNodeDrawer.horizontal #output NodeAnchor #type {
MaterialNodeDrawer #slots #input NodeAnchor {
flex-direction: row;
}
MaterialNodeDrawer #slots #output NodeAnchor {
flex-direction: row-reverse;
}
MaterialNodeDrawer #output NodeAnchor #type {
text-alignment:middle-right;
}

}
MaterialNodeDrawer.horizontal {
flex-direction: row;
MaterialNodeDrawer #controls {
flex-direction: column;
padding-bottom: 2;
}
MaterialNodeDrawer #controls #element{
flex-direction: column;
MaterialNodeDrawer.horizontal #input, MaterialNodeDrawer.horizontal #output {
margin-top: 15;
background-color:#444;
MaterialNodeDrawer #preview {
flex-direction: column;
MaterialNodeDrawer.horizontal #input NodeAnchor {
flex-direction: row;
MaterialNodeDrawer #preview #image {
height: 200;
width: 200;
MaterialNodeDrawer.horizontal #output NodeAnchor {
flex-direction: row-reverse;
MaterialGraphView {
grid-background-color:#404749;
line-color:#20293F;
thick-line-color:#030C22;
spacing:75.0;
thick-lines:10;
}

484
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss.imported.asset


m_Name:
m_EditorClassIdentifier:
matchers:
- specificity: 102
- specificity: 2
selectorValues:
- MaterialNodeDrawer
selectorTypes: 02000000

nextIndex: 1
- specificity: 102
selectorValues:
- slots
selectorTypes: 06000000
ruleIndex: 0
depth: 2147483647
previousIndex: 0
- specificity: 202
- specificity: 102
selectorValues:
- MaterialNodeDrawer
selectorTypes: 02000000

nextIndex: 3
- specificity: 202
nextIndex: 2
- specificity: 102
previousIndex: 2
nextIndex: 4
- specificity: 202
selectorValues:
- output
selectorTypes: 06000000
ruleIndex: 1
depth: 2147483647
previousIndex: 3
previousIndex: 1
nextIndex: -1
- specificity: 202
selectorValues:

depth: 2147483647
previousIndex: -1
nextIndex: 6
nextIndex: 4
- specificity: 202
selectorValues:
- slots

previousIndex: 5
nextIndex: 7
previousIndex: 3
nextIndex: 5
- specificity: 202
selectorValues:
- input

previousIndex: 6
previousIndex: 4
- specificity: 102
- specificity: 202
selectorValues:
- MaterialNodeDrawer
selectorTypes: 02000000

nextIndex: 9
- specificity: 102
nextIndex: 7
- specificity: 202
- controls
- slots
previousIndex: 8
nextIndex: -1
- specificity: 202
selectorValues:
- MaterialNodeDrawer
selectorTypes: 02000000
ruleIndex: 4
depth: 2147483647
previousIndex: -1
nextIndex: 11
previousIndex: 6
nextIndex: 8
- controls
- output
ruleIndex: 4
ruleIndex: 3
previousIndex: 10
nextIndex: 12
- specificity: 202
previousIndex: 7
nextIndex: -1
- specificity: 2
- element
selectorTypes: 06000000
- NodeAnchor
selectorTypes: 02000000
previousIndex: 11
previousIndex: -1
- MaterialNodeDrawer
- NodeAnchor
nextIndex: 14
nextIndex: 11
- preview
- connector
previousIndex: 13
previousIndex: 10
- specificity: 202
- specificity: 112
- MaterialNodeDrawer
- NodeAnchor
nextIndex: 16
- specificity: 202
selectorValues:
- preview
selectorTypes: 06000000
ruleIndex: 6
depth: 2147483647
previousIndex: 15
nextIndex: 17
- specificity: 202
nextIndex: 13
- specificity: 112
- image
selectorTypes: 06000000
- connector
- anchorHighlight
selectorTypes: 0600000003000000
previousIndex: 16
previousIndex: 12
- specificity: 2
- specificity: 102
selectorValues:
- NodeAnchor
selectorTypes: 02000000

nextIndex: -1
nextIndex: 15
- NodeAnchor
- type
selectorTypes: 06000000
ruleIndex: 7
depth: 2147483647
previousIndex: 14
nextIndex: -1
- specificity: 203
selectorValues:
- MaterialNodeDrawer
nextIndex: 20
- specificity: 102
nextIndex: 17
- specificity: 203
- connector
- slots
previousIndex: 19
previousIndex: 16
nextIndex: 18
- specificity: 203
selectorValues:
- input
selectorTypes: 06000000
ruleIndex: 8
depth: 2147483647
previousIndex: 17
nextIndex: 19
- specificity: 203
selectorValues:
- NodeAnchor
selectorTypes: 02000000
ruleIndex: 8
depth: 2147483647
previousIndex: 18
- specificity: 112
- specificity: 203
- NodeAnchor
- MaterialNodeDrawer
nextIndex: 21
- specificity: 203
selectorValues:
- slots
selectorTypes: 06000000
ruleIndex: 9
depth: 2147483647
previousIndex: 20
- specificity: 112
- specificity: 203
- connector
- anchorHighlight
selectorTypes: 0600000003000000
- output
selectorTypes: 06000000
nextIndex: -1
- specificity: 102
nextIndex: 23
- specificity: 203
ruleIndex: 10
depth: 2147483647
previousIndex: -1
nextIndex: 24
- specificity: 102
selectorValues:
- type
selectorTypes: 06000000
ruleIndex: 10
ruleIndex: 9
previousIndex: 23
previousIndex: 22
- specificity: 213
- specificity: 203
- horizontal
selectorTypes: 0200000003000000
ruleIndex: 11
selectorTypes: 02000000
ruleIndex: 10
nextIndex: 26
- specificity: 213
nextIndex: 25
- specificity: 203
ruleIndex: 11
ruleIndex: 10
previousIndex: 25
nextIndex: 27
- specificity: 213
previousIndex: 24
nextIndex: 26
- specificity: 203
ruleIndex: 11
ruleIndex: 10
previousIndex: 26
nextIndex: 28
- specificity: 213
previousIndex: 25
nextIndex: 27
- specificity: 203
ruleIndex: 11
ruleIndex: 10
previousIndex: 27
previousIndex: 26
nextIndex: -1
- specificity: 113
selectorValues:

ruleIndex: 12
ruleIndex: 11
nextIndex: 30
nextIndex: 29
ruleIndex: 12
ruleIndex: 11
previousIndex: 29
nextIndex: 31
previousIndex: 28
nextIndex: 30
ruleIndex: 12
ruleIndex: 11
previousIndex: 30
previousIndex: 29
- specificity: 12
- specificity: 102
- horizontal
selectorTypes: 0200000003000000
ruleIndex: 13
selectorTypes: 02000000
ruleIndex: 12
nextIndex: 32
- specificity: 102
selectorValues:
- controls
selectorTypes: 06000000
ruleIndex: 12
depth: 2147483647
previousIndex: 31
- specificity: 112
- specificity: 202
- horizontal
selectorTypes: 0200000003000000
ruleIndex: 14
selectorTypes: 02000000
ruleIndex: 13
- specificity: 112
- specificity: 202
- input
- controls
ruleIndex: 14
ruleIndex: 13
nextIndex: 35
- specificity: 202
selectorValues:
- element
selectorTypes: 06000000
ruleIndex: 13
depth: 2147483647
previousIndex: 34
- specificity: 112
- specificity: 102
- horizontal
selectorTypes: 0200000003000000
ruleIndex: 15
selectorTypes: 02000000
ruleIndex: 14
nextIndex: 36
- specificity: 112
nextIndex: 37
- specificity: 102
- output
- preview
ruleIndex: 15
ruleIndex: 14
previousIndex: 35
previousIndex: 36
- specificity: 113
- specificity: 202
- horizontal
selectorTypes: 0200000003000000
ruleIndex: 16
selectorTypes: 02000000
ruleIndex: 15
nextIndex: 38
- specificity: 113
selectorValues:
- input
selectorTypes: 06000000
ruleIndex: 16
depth: 2147483647
previousIndex: 37
- specificity: 113
- specificity: 202
- NodeAnchor
selectorTypes: 02000000
ruleIndex: 16
- preview
selectorTypes: 06000000
ruleIndex: 15
nextIndex: -1
- specificity: 113
nextIndex: 40
- specificity: 202
- MaterialNodeDrawer
- horizontal
selectorTypes: 0200000003000000
ruleIndex: 17
depth: 2147483647
previousIndex: -1
nextIndex: 41
- specificity: 113
selectorValues:
- output
- image
ruleIndex: 17
ruleIndex: 15
previousIndex: 40
nextIndex: 42
- specificity: 113
previousIndex: 39
nextIndex: -1
- specificity: 2
- NodeAnchor
- MaterialGraphView
ruleIndex: 17
ruleIndex: 16
previousIndex: 41
previousIndex: -1
nextIndex: -1
rules:
- builtinPropertyHandles:

- type: 0
propertyID: 23
valueIndex: 0
propertyID: 23
valueIndex: 1
propertyID: 1
valueIndex: 0
- type: 1
propertyID: 28
valueIndex: 2
- type: 3
propertyID: 41
valueIndex: 0
- type: 0
propertyID: 23
valueIndex: 1
customPropertyNames: []
customPropertyHandles: []
- builtinPropertyHandles:

- type: 1
propertyID: 26
valueIndex: 3
- type: 1
propertyID: 26
valueIndex: 4
propertyID: 7
propertyID: 23
customPropertyNames: []
customPropertyHandles: []
- builtinPropertyHandles:
propertyID: 26
valueIndex: 5
customPropertyNames: []
customPropertyHandles: []
- builtinPropertyHandles:
- type: 1
propertyID: 26
valueIndex: 6
customPropertyNames: []
customPropertyHandles: []
- builtinPropertyHandles:
- type: 0
propertyID: 18
valueIndex: 4
- type: 0
propertyID: 17
valueIndex: 5
propertyID: 28
valueIndex: 2
valueIndex: 6
valueIndex: 4
valueIndex: 7
- type: 0
propertyID: 2
valueIndex: 8
- type: 0
propertyID: 0
valueIndex: 9
valueIndex: 5
valueIndex: 0
valueIndex: 1
valueIndex: 1
valueIndex: 2
valueIndex: 10
valueIndex: 6
valueIndex: 2
valueIndex: 3
valueIndex: 3
valueIndex: 4
valueIndex: 11
valueIndex: 7
customPropertyNames: []
customPropertyHandles: []
- builtinPropertyHandles:
- type: 1
propertyID: 26
valueIndex: 3
customPropertyNames: []
customPropertyHandles: []
- builtinPropertyHandles:
- type: 1
propertyID: 26
valueIndex: 4
valueIndex: 7
valueIndex: 5
valueIndex: 12
valueIndex: 8
valueIndex: 13
valueIndex: 9
valueIndex: 8
customPropertyNames: []
customPropertyHandles: []
- builtinPropertyHandles:
valueIndex: 6
propertyID: 1
valueIndex: 14
- type: 3
propertyID: 41
valueIndex: 4
propertyID: 7
valueIndex: 10
- type: 0
propertyID: 1
valueIndex: 15
- type: 3
propertyID: 41
valueIndex: 5
- type: 1
propertyID: 26
valueIndex: 7
valueIndex: 9
valueIndex: 8
- type: 1
propertyID: 26
valueIndex: 10
- type: 0
propertyID: 18
valueIndex: 11
- type: 0
propertyID: 17
valueIndex: 12
- builtinPropertyHandles: []
customPropertyNames:
- grid-background-color
- line-color
- thick-line-color
- spacing
- thick-lines
customPropertyHandles:
- type: 3
propertyID: 43
valueIndex: 5
- type: 3
propertyID: 43
valueIndex: 6
- type: 3
propertyID: 43
valueIndex: 7
- type: 1
propertyID: 43
valueIndex: 9
- type: 1
propertyID: 43
valueIndex: 10
- 15
- 2
- 200
- 200
- 5
- 5
- 5
- 5
- 4

- 15
- 15
ints: 0200000000000000020000000000000000000000000000000000000005000000020000000200000003000000
- 2
- 200
- 200
ints: 0000000002000000020000000200000003000000050000000000000000000000000000004b0000000a000000
- {r: 0.26666668, g: 0.26666668, b: 0.26666668, a: 1}
- {r: 0.26666668, g: 0.26666668, b: 0.26666668, a: 1}
- {r: 0.26666668, g: 0.26666668, b: 0.26666668, a: 1}
- {r: 0.2509804, g: 0.2784314, b: 0.28627452, a: 1}
- {r: 0.1254902, g: 0.16078432, b: 0.24705882, a: 1}
- {r: 0.011764706, g: 0.047058824, b: 0.13333334, a: 1}
strings: []
assets: []

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Styles/MaterialGraph.uss.imported.asset.meta


fileFormatVersion: 2
guid: 13814e9314253674e8d4966bba14d963
timeCreated: 1478071405
timeCreated: 1478162579
licenseType: Pro
NativeFormatImporter:
userData:
正在加载...
取消
保存