File tree Expand file tree Collapse file tree 6 files changed +12
-232
lines changed
OpenFunscripter/extensions
Funscript Generator Linux
Funscript Generator Windows Expand file tree Collapse file tree 6 files changed +12
-232
lines changed Original file line number Diff line number Diff line change 1- -- Version 0.0.2
1+
22processHandle = nil
33scriptIdx = 0
4+ status = " MTFG not running"
45
56function start_funscript_generator ()
67 scriptIdx = ofs .ActiveIdx ()
@@ -39,10 +40,12 @@ function start_funscript_generator()
3940 " -o" , tmpFile
4041 )
4142 end
43+ status = " MTFG running"
4244end
4345
4446
4547function import_funscript_generator_result ()
48+ status = " MTFG not running"
4649 local tmpFile = ofs .ExtensionDir () .. " /funscript_actions.csv"
4750 local f = io.open (tmpFile )
4851 if not f then
@@ -68,21 +71,26 @@ function import_funscript_generator_result()
6871end
6972
7073
71-
7274function init ()
7375 ofs .Bind (" start_funscript_generator" , " execute the funcript generator" )
7476end
7577
7678
7779function update (delta )
7880 if processHandle and not ofs .IsProcessAlive (processHandle ) then
79- print (' funscript generator completed, try import result' )
81+ print (' funscript generator completed import result' )
8082 processHandle = nil
8183 import_funscript_generator_result ()
8284 end
8385end
8486
8587
8688function gui ()
87-
89+ ofs .Text (status )
90+ if not processHandle then
91+ ofs .SameLine ()
92+ if ofs .Button (" Start MTFG" ) then
93+ start_funscript_generator ()
94+ end
95+ end
8896end
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments