jiayouxjh / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Lua: memorizing window settings #388

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DawnBringer made a lot of nice scripts with settings. But it's a pity that the 
windows "forget" your settings - For example if you've used Desaturate with 15% 
settings and you see it's too much, you can undo the change and run script 
again, but the window has forgotten your setting of "15% and reset to default 
(25%). It's not a big problem when there's a single setting, but some screens 
have a lot of options.

I'm trying to find a way to use "persistence" in Lua... Script should have the 
ability to save some data that can be re-loaded next time it's run (into same 
local variables) 

Original issue reported on code.google.com by yrizoud on 17 Sep 2010 at 2:21

GoogleCodeExporter commented 9 years ago
Isn't that done now with the memory library ?

Original comment by pulkoma...@gmail.com on 20 Jan 2011 at 8:58

GoogleCodeExporter commented 9 years ago
It works but it stores text files in a subdirectory of scripts/
It will fail (and cause runtime script error) for people who use an "installed" 
version of Grafx2, on Linux and also for all Windows users who installed in 
'Program Files' (as recommended when not using WIP versions) and aren't running 
as Administrator (which is recommended, always)

The new ability of storing scripts in subdirectories will also be a problem, 
because now every subdirectory should have one subdirectory where the 
persistent data is stored.

So, the proof-of-concept works, but it doesn't really integrate well.

Original comment by yrizoud on 20 Jan 2011 at 11:23

GoogleCodeExporter commented 9 years ago

Original comment by pulkoma...@gmail.com on 15 Feb 2011 at 8:16

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by pulkoma...@gmail.com on 10 Apr 2011 at 8:36