diff --git a/plugins/qlab/cue.ejs b/plugins/qlab/cue.ejs
index 12fcbc7..27810ca 100644
--- a/plugins/qlab/cue.ejs
+++ b/plugins/qlab/cue.ejs
@@ -29,26 +29,31 @@
<%= cue.number || " " %> |
+ <% for(let i=0; i
+ <% if(cue.cues && cue.cues.length==0 && i==cue.nestedGroupModes.length-1){ %>
+ |
+
+ <% }else if(cue.cues && i==cue.nestedGroupModes.length-1){ %>
+ |
- <% for(let i=cue.nestedGroupModes.length; i>0; i--){ %>
+ <% }else if(cue.nestedGroupPosition[i]<=0){ %>
+ <% if(i
+ |
- <% if(cue.type=="Group" && i==1 && cue.cues.length==0){ %>
- |
+ <% }else{ %>
+ |
- <% }else if(cue.type=="Group" && i==1){ %>
- |
+ <% } %>
- <% }else if(cue.nestedGroupPosition[i-1]==0 && cue.nestedGroupPosition[i-2]==0){ %>
- |
+ <% }else if(i
+ |
- <% }else if(i==1 && cue.nestedGroupPosition[i]==0){ %>
- |
+ <% }else{ %>
+ |
- <% }else{ %>
- |
-
- <% } %>
+ <% } %>
+
<% } %>
@@ -67,10 +72,10 @@
<% } %>
<% }else if(cue.nestedGroupPosition[1]==0){ %>
- <%= cue.listName %> |
+ <%= cue.listName %> |
<% }else{ %>
- <%= cue.listName %> |
+ <%= cue.listName %> |
<% } %>
diff --git a/plugins/qlab/img/new_group_arrow.png b/plugins/qlab/img/new_group_arrow.png
new file mode 100644
index 0000000..29a4b33
Binary files /dev/null and b/plugins/qlab/img/new_group_arrow.png differ
diff --git a/plugins/qlab/main.js b/plugins/qlab/main.js
index e001cde..0e3c9c1 100644
--- a/plugins/qlab/main.js
+++ b/plugins/qlab/main.js
@@ -140,19 +140,38 @@ exports.data = function data(_device, oscData) {
cue.postWaitElapsed = cueValues.postWaitElapsed;
const nestedGroupModes = [];
- const nestedGroupPosition = [0];
+ const nestedGroupPosition = [];
let obj = cue;
+ let sum = 0;
+
+ if(obj.cues){
+ sum+=obj.cues.length;
+ }
while(obj.parent !== "[root group of cue lists]"){
- nestedGroupModes.push(obj.groupMode);
let pos = _.findIndex(workspace.cues[obj.parent].cues, {uniqueID: obj.uniqueID});
- pos = Math.abs(pos - workspace.cues[obj.parent].cues.length) - 1;
- nestedGroupPosition.push(pos)
+ pos = Math.abs(pos - workspace.cues[obj.parent].cues.length)-1;
+
+ if(obj.cues === undefined){
+ sum += pos;
+ }
+
+ nestedGroupPosition.unshift(sum);
+
+ if(obj.cues){
+ sum+=pos;
+ nestedGroupModes.unshift(obj.groupMode);
+ }else{
+ nestedGroupModes.unshift(workspace.cues[obj.parent].groupMode);
+ }
+
obj = workspace.cues[obj.parent];
+
}
+
cue.nestedGroupModes = nestedGroupModes;
cue.nestedGroupPosition = nestedGroupPosition;
diff --git a/plugins/qlab/styles.css b/plugins/qlab/styles.css
index 9fc38f0..715abf7 100644
--- a/plugins/qlab/styles.css
+++ b/plugins/qlab/styles.css
@@ -157,7 +157,7 @@ tr.playback-position .q-gray-text {
}
.group-arrow {
width: 13px;
- background-image: url('img/arrow-down.png');
+ background-image: url('img/new_group_arrow.png');
background-position: center;
background-repeat: no-repeat;
}