Support Board
Date/Time: Wed, 12 Mar 2025 12:37:07 +0000
Post From: What am I doing wrong? Combining scsf_BarTimeDuration and scsf_BackgroundDrawStyleExample
[2022-05-05 16:17:03] |
User431178 - Posts: 613 |
Try actually assigning a value to the subgraph, similarly to how scsf_BackgroundDrawStyleExample does. if (BarDurationAsSeconds >= 0 && BarDurationAsSeconds < 15) { Subgraph_BackgroundDC.DataColor[sc.Index] = RGB(204, 153, 255); Subgraph_BackgroundDC[sc.Index] = 1.0f; }; if (BarDurationAsSeconds >= 15 && BarDurationAsSeconds < 30) { Subgraph_BackgroundDC.DataColor[sc.Index] = RGB(51, 204, 51); Subgraph_BackgroundDC[sc.Index] = 1.0f; }; if (BarDurationAsSeconds >= 30 && BarDurationAsSeconds < 45) { Subgraph_BackgroundDC.DataColor[sc.Index] = RGB(158, 70, 255); Subgraph_BackgroundDC[sc.Index] = 1.0f; }; |