Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 22:14:34 +0000



Post From: User/Source code controlled settings

[2022-02-05 21:23:22]
Csurles2010 - Posts: 13
Thank you for responding. I moved the code into an if (sc.Index == 0) {} block and it had the same affect. It seems if a code to modify drawstyles is outside of the sc.SetDefaults block, then drawstyles can't be manually changed in the study settings window.

I wanted an input to change drawstyles, rather than manually change each subgraph. I have a bool that if true, it draws rectangles. When it's false the subgraph draw style is a dashed line. I can change this to yes or no inside the settings and inputs window. It will draw rectangle or dashed line.

This works as I want it, however, I can only ever have a rectangle or dashed line. I can't manually change to say, a solid line, in the subgraph settings window. The source code will always overwrite any manual changes in the settings window.