KrabCode / LazyGui

GUI library for Processing in which you only mention control elements in draw() at the places you need them.
https://krabcode.github.io/LazyGui/
MIT License
83 stars 4 forks source link

use sketchPath() instead of dataPath() #277

Open KrabCode opened 11 months ago

KrabCode commented 11 months ago

there are no actual issues with dataPath(), but the docs warn against it and it might get deprecated, so let's move to sketchPath()

based on a warning found here: https://stackoverflow.com/questions/36530876/how-to-get-the-path-of-the-sketch-in-processing-datapath-not-working

KrabCode commented 8 months ago

but this changes the actual path, it removes the data/ from it...

KrabCode commented 8 months ago

drawbacks of moving to sketchPath() include:

~~possible behavior change: consider whether to stop storing things in "data" altogether and instead put the "gui" directory inside the sketch folder next to the .pde files? it seems recommended by the sketchPath() javadocs~~

but this breaks loading from existing saves in their old locations... so probably a bad idea

KrabCode commented 3 months ago

let's not break any functionality - let there be no changes to save folder location