@@ -104,7 +104,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
104
104
} ,
105
105
DocumentNodeDefinition {
106
106
identifier: "Value" ,
107
- category: "General " ,
107
+ category: "Value " ,
108
108
node_template: NodeTemplate {
109
109
document_node: DocumentNode {
110
110
implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
@@ -113,12 +113,164 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
113
113
..Default :: default ( )
114
114
} ,
115
115
persistent_node_metadata: DocumentNodePersistentMetadata {
116
- input_metadata: vec![ ( "" , "Value" ) . into( ) ] ,
116
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
117
+ output_names: vec![ "Out" . to_string( ) ] ,
118
+ ..Default :: default ( )
119
+ } ,
120
+ } ,
121
+ description: Cow :: Borrowed ( "Construct any value using the dropdown menu." ) ,
122
+ properties: Some ( "value_properties" ) ,
123
+ } ,
124
+ DocumentNodeDefinition {
125
+ identifier: "Number Value" ,
126
+ category: "Value" ,
127
+ node_template: NodeTemplate {
128
+ document_node: DocumentNode {
129
+ implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
130
+ manual_composition: Some ( generic!( T ) ) ,
131
+ inputs: vec![ NodeInput :: value( TaggedValue :: F64 ( 0. ) , false ) ] ,
132
+ ..Default :: default ( )
133
+ } ,
134
+ persistent_node_metadata: DocumentNodePersistentMetadata {
135
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
136
+ output_names: vec![ "Out" . to_string( ) ] ,
137
+ ..Default :: default ( )
138
+ } ,
139
+ } ,
140
+ description: Cow :: Borrowed ( "Constructs a number which can be set to any real number" ) ,
141
+ properties: Some ( "value_properties" ) ,
142
+ } ,
143
+ DocumentNodeDefinition {
144
+ identifier: "Percentage Value" ,
145
+ category: "Value" ,
146
+ node_template: NodeTemplate {
147
+ document_node: DocumentNode {
148
+ implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
149
+ manual_composition: Some ( generic!( T ) ) ,
150
+ inputs: vec![ NodeInput :: value( TaggedValue :: Percentage ( 0. ) , false ) ] ,
151
+ ..Default :: default ( )
152
+ } ,
153
+ persistent_node_metadata: DocumentNodePersistentMetadata {
154
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
155
+ output_names: vec![ "Out" . to_string( ) ] ,
156
+ ..Default :: default ( )
157
+ } ,
158
+ } ,
159
+ description: Cow :: Borrowed ( "Constructs a decimal value between 0 and 1." ) ,
160
+ properties: Some ( "value_properties" ) ,
161
+ } ,
162
+ DocumentNodeDefinition {
163
+ identifier: "Number Value" ,
164
+ category: "Value" ,
165
+ node_template: NodeTemplate {
166
+ document_node: DocumentNode {
167
+ implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
168
+ manual_composition: Some ( generic!( T ) ) ,
169
+ inputs: vec![ NodeInput :: value( TaggedValue :: U32 ( 0 ) , false ) ] ,
170
+ ..Default :: default ( )
171
+ } ,
172
+ persistent_node_metadata: DocumentNodePersistentMetadata {
173
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
174
+ output_names: vec![ "Out" . to_string( ) ] ,
175
+ ..Default :: default ( )
176
+ } ,
177
+ } ,
178
+ description: Cow :: Borrowed ( "Constructs a positive integer value." ) ,
179
+ properties: Some ( "value_properties" ) ,
180
+ } ,
181
+ DocumentNodeDefinition {
182
+ identifier: "Bool Value" ,
183
+ category: "Value" ,
184
+ node_template: NodeTemplate {
185
+ document_node: DocumentNode {
186
+ implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
187
+ manual_composition: Some ( generic!( T ) ) ,
188
+ inputs: vec![ NodeInput :: value( TaggedValue :: Bool ( true ) , false ) ] ,
189
+ ..Default :: default ( )
190
+ } ,
191
+ persistent_node_metadata: DocumentNodePersistentMetadata {
192
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
193
+ output_names: vec![ "Out" . to_string( ) ] ,
194
+ ..Default :: default ( )
195
+ } ,
196
+ } ,
197
+ description: Cow :: Borrowed ( "Constructs a value which can be true or false" ) ,
198
+ properties: Some ( "value_properties" ) ,
199
+ } ,
200
+ DocumentNodeDefinition {
201
+ identifier: "String Value" ,
202
+ category: "Value" ,
203
+ node_template: NodeTemplate {
204
+ document_node: DocumentNode {
205
+ implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
206
+ manual_composition: Some ( generic!( T ) ) ,
207
+ inputs: vec![ NodeInput :: value( TaggedValue :: Percentage ( 0. ) , false ) ] ,
208
+ ..Default :: default ( )
209
+ } ,
210
+ persistent_node_metadata: DocumentNodePersistentMetadata {
211
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
212
+ output_names: vec![ "Out" . to_string( ) ] ,
213
+ ..Default :: default ( )
214
+ } ,
215
+ } ,
216
+ description: Cow :: Borrowed ( "Constructs a string value which can be set to any plain text." ) ,
217
+ properties: Some ( "value_properties" ) ,
218
+ } ,
219
+ DocumentNodeDefinition {
220
+ identifier: "Coordinate Value" ,
221
+ category: "Value" ,
222
+ node_template: NodeTemplate {
223
+ document_node: DocumentNode {
224
+ implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
225
+ manual_composition: Some ( generic!( T ) ) ,
226
+ inputs: vec![ NodeInput :: value( TaggedValue :: DVec2 ( DVec2 :: new( 0. , 0. ) ) , false ) ] ,
227
+ ..Default :: default ( )
228
+ } ,
229
+ persistent_node_metadata: DocumentNodePersistentMetadata {
230
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
231
+ output_names: vec![ "Out" . to_string( ) ] ,
232
+ ..Default :: default ( )
233
+ } ,
234
+ } ,
235
+ description: Cow :: Borrowed ( "Constructs a string value which can be set to any plain text." ) ,
236
+ properties: Some ( "value_properties" ) ,
237
+ } ,
238
+ DocumentNodeDefinition {
239
+ identifier: "Color Value" ,
240
+ category: "Value" ,
241
+ node_template: NodeTemplate {
242
+ document_node: DocumentNode {
243
+ implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
244
+ manual_composition: Some ( generic!( T ) ) ,
245
+ inputs: vec![ NodeInput :: value( TaggedValue :: OptionalColor ( None ) , false ) ] ,
246
+ ..Default :: default ( )
247
+ } ,
248
+ persistent_node_metadata: DocumentNodePersistentMetadata {
249
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
250
+ output_names: vec![ "Out" . to_string( ) ] ,
251
+ ..Default :: default ( )
252
+ } ,
253
+ } ,
254
+ description: Cow :: Borrowed ( "Constructs a color value which may to set to any color, or no color" ) ,
255
+ properties: Some ( "value_properties" ) ,
256
+ } ,
257
+ DocumentNodeDefinition {
258
+ identifier: "Gradient Value" ,
259
+ category: "Value" ,
260
+ node_template: NodeTemplate {
261
+ document_node: DocumentNode {
262
+ implementation: DocumentNodeImplementation :: ProtoNode ( ops:: identity:: IDENTIFIER ) ,
263
+ manual_composition: Some ( generic!( T ) ) ,
264
+ inputs: vec![ NodeInput :: value( TaggedValue :: OptionalColor ( None ) , false ) ] ,
265
+ ..Default :: default ( )
266
+ } ,
267
+ persistent_node_metadata: DocumentNodePersistentMetadata {
268
+ input_metadata: vec![ ( "Value" , "" ) . into( ) ] ,
117
269
output_names: vec![ "Out" . to_string( ) ] ,
118
270
..Default :: default ( )
119
271
} ,
120
272
} ,
121
- description: Cow :: Borrowed ( "Returns the value stored in its input " ) ,
273
+ description: Cow :: Borrowed ( " Constructs a gradient value which may be set to any sequence of color stops to represent the transition between colors. " ) ,
122
274
properties: Some ( "value_properties" ) ,
123
275
} ,
124
276
// TODO: Auto-generate this from its proto node macro
@@ -934,7 +1086,7 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
934
1086
} ,
935
1087
} ,
936
1088
description: Cow :: Borrowed (
937
- "Decomposes the X and Y components of a 2D coordinate.\n \n The inverse of this node is \" Coordinate Value \" , which can have either or both its X and Y exposed as graph inputs." ,
1089
+ "Decomposes the X and Y components of a 2D coordinate.\n \n The inverse of this node is \" Coordinate from Numbers \" , which can have either or both its X and Y exposed as graph inputs." ,
938
1090
) ,
939
1091
properties: None ,
940
1092
} ,
0 commit comments