ngld / OverlayPlugin

Yet another OverlayPlugin fork.
Other
231 stars 39 forks source link

Storing values between sessions #245

Closed ghost closed 2 years ago

ghost commented 2 years ago

I'm working on a personal overlay and I am wondering if there's a way to preserve data so that if ACT restarts you can start from where you left. This can be in any form: config file, databsae file, etc.. as long as I can access and modify the file with javascript from within the overlay.. I couldn't find anything related in the documentation

quisquous commented 2 years ago

See the loadData and saveData handlers. The targetbars use these if you need an example: https://github.com/ngld/OverlayPlugin/blob/master/OverlayPlugin.Core/resources/targetbars/targetbars.js#L1035-L1048