ladybug-tools / ladybug-legacy

:beetle: Ladybug is an environmental plugin for Grasshopper.
http://ladybug.tools
Other
192 stars 82 forks source link

Repeating characters for the Fly component #496

Open jramsden271 opened 2 years ago

jramsden271 commented 2 years ago

Line 218 of the Fly component, there is indeed a better way to replicate 50 * "." in C#: string pb = new string('.', 50);

Alternatively, it looks like it can be simplified further. Replace line 332 with: string pbString = new string('|', lnCount) + new string('.', pbLength - lnCount); and at the top of the UpdateProgressBar method, add: int pbLength = 50; Then get rid of the pbChars elsewhere above.

mostaphaRoudsari commented 2 years ago

Hi @jramsden271! Thank you for opening this issue. We are not actively developing the legacy plugins anymore. I still keep this issue open in case we wanted to re-write it for the new LBT plugins. Cheers.