Skip to content

Commit 205eaea

Browse files
committed
Fixing include dir fors lists and adding tooltips to Process list as test
1 parent ed5123d commit 205eaea

5 files changed

Lines changed: 35 additions & 5 deletions

File tree

‎public/js/nodes/lists/list_of_materials.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InputList } from "/js/nodes/utilities/input_list.js";
1+
import { InputList } from "/js/nodes/lists/input_list.js";
22

33
class MaterialsList extends InputList{
44
constructor() {

‎public/js/nodes/lists/list_of_outputprocesses.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InputList } from "/js/nodes/utilities/input_list.js";
1+
import { InputList } from "/js/nodes/lists/input_list.js";
22

33
class OutputProcessesList extends InputList {
44
constructor() {

‎public/js/nodes/lists/list_of_processes.js‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,44 @@
1-
import { InputList } from "/js/nodes/utilities/input_list.js";
1+
import { InputList } from "/js/nodes/lists/input_list.js";
22

33
class ProcessesList extends InputList {
44
constructor() {
55
super();
6+
7+
let that = this;
8+
9+
this.scaling_type = this.addWidget("toggle", "Group", true, function(v){
10+
that.process_list.disabled = !v;
11+
console.log(that.process_list.disabled.value)
12+
});
13+
14+
this.process_list = this.addWidget("combo", "Process List", 0, function(v) {}, {
15+
values: [
16+
"initial_conditions_process_list",
17+
"boundary_conditions_process_list",
18+
"gravity",
19+
"auxiliary_process_list",
20+
"json_check_process"
21+
]
22+
});
23+
24+
this.process_list.tooltip = (w) => {
25+
return w.value;
26+
}
27+
28+
this.scaling_type.tooltip = (w) => {
29+
return w.value;
30+
}
631
}
732

833
setIOType() {
934
this.input_type = "process_list";
1035
this.output_type = "process_list";
1136
}
37+
38+
onExecute() {
39+
this.group_value = this.scaling_type.value ? this.process_list.value : undefined;
40+
super.onExecute();
41+
}
1242
}
1343

1444
ProcessesList.title = "List of Processes";

‎public/js/nodes/lists/list_of_submodelparts.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InputList } from "/js/nodes/utilities/input_list.js";
1+
import { InputList } from "/js/nodes/lists/input_list.js";
22

33
class SubmodelPartsList extends InputList {
44
constructor() {

‎public/js/nodes/modelers/list_of_modelers.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InputList } from "/js/nodes/utilities/input_list.js";
1+
import { InputList } from "/js/nodes/lists/input_list.js";
22

33
class ModelersList extends InputList {
44
constructor() {

0 commit comments

Comments
 (0)