mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-17 05:13:40 +00:00
Start work on Group Cue children loading
This commit is contained in:
@@ -13,21 +13,22 @@ namespace qController
|
||||
public string colorName { get; set; }
|
||||
public string name { get; set; }
|
||||
public bool armed { get; set; }
|
||||
public int translationX { get; set; }
|
||||
public decimal translationX { get; set; }
|
||||
public bool isRunning { get; set; }
|
||||
public int scaleX { get; set; }
|
||||
public decimal scaleX { get; set; }
|
||||
public bool isPaused { get; set; }
|
||||
public int translationY { get; set; }
|
||||
public int preWait { get; set; }
|
||||
public int opacity { get; set; }
|
||||
public int scaleY { get; set; }
|
||||
public int duration { get; set; }
|
||||
public int postWait { get; set; }
|
||||
public decimal translationY { get; set; }
|
||||
public decimal preWait { get; set; }
|
||||
public decimal opacity { get; set; }
|
||||
public decimal scaleY { get; set; }
|
||||
public decimal duration { get; set; }
|
||||
public decimal postWait { get; set; }
|
||||
public bool isBroken { get; set; }
|
||||
public string displayName { get; set; }
|
||||
public bool isLoaded { get; set; }
|
||||
public string notes { get; set; }
|
||||
public List<double> levels { get; set; }
|
||||
public List<QCue> cues { get; set; }
|
||||
public string getIconString()
|
||||
{
|
||||
switch (type)
|
||||
|
||||
@@ -9,7 +9,6 @@ namespace qController
|
||||
public List<QCueList> data { get; set; }
|
||||
public string workspace_id { get; set; }
|
||||
public string address { get; set; }
|
||||
|
||||
public QCue GetCue(string cue_id)
|
||||
{
|
||||
QCue returnCue = null;
|
||||
@@ -40,6 +39,23 @@ namespace qController
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateChildren(string cue_id, List<QCue> children)
|
||||
{
|
||||
for (int i = 0; i < data.Count; i++)
|
||||
{
|
||||
for (int j = 0; j < data[i].cues.Count; j++)
|
||||
{
|
||||
if (data[i].cues[j].uniqueID == cue_id)
|
||||
{
|
||||
if(data[i].cues[j].type == "Group")
|
||||
{
|
||||
data[i].cues[j].cues = children;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateLevels(string cue_id, List<double> levels)
|
||||
{
|
||||
for (int i = 0; i < data.Count; i++)
|
||||
@@ -55,6 +71,21 @@ namespace qController
|
||||
}
|
||||
}
|
||||
|
||||
public bool ChildrenPopulated()
|
||||
{
|
||||
for (int i = 0; i < data.Count; i++)
|
||||
{
|
||||
for (int j = 0; j < data[i].cues.Count; j++)
|
||||
{
|
||||
if (data[i].cues[j].type == "Group" && data[i].cues[j].cues == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void PrintStats()
|
||||
{
|
||||
foreach (var cueList in data)
|
||||
|
||||
Reference in New Issue
Block a user