Skip to content

Commit cc5c4ce

Browse files
author
arch
committed
update ofs extension
1 parent b93891d commit cc5c4ce

File tree

6 files changed

+12
-232
lines changed

6 files changed

+12
-232
lines changed

contrib/Installer/assets/main.lua

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
-- Version 0.0.2
1+
22
processHandle = nil
33
scriptIdx = 0
4+
status = "MTFG not running"
45

56
function 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"
4244
end
4345

4446

4547
function 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()
6871
end
6972

7073

71-
7274
function init()
7375
ofs.Bind("start_funscript_generator", "execute the funcript generator")
7476
end
7577

7678

7779
function 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
8385
end
8486

8587

8688
function 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
8896
end

contrib/OpenFunscripter/extensions/Funscript Generator Linux/config

Lines changed: 0 additions & 1 deletion
This file was deleted.

contrib/OpenFunscripter/extensions/Funscript Generator Linux/main.lua

Lines changed: 0 additions & 111 deletions
This file was deleted.

contrib/OpenFunscripter/extensions/Funscript Generator Windows/config

Lines changed: 0 additions & 1 deletion
This file was deleted.

contrib/OpenFunscripter/extensions/Funscript Generator Windows/main.lua

Lines changed: 0 additions & 112 deletions
This file was deleted.

contrib/OpenFunscripter/extensions/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)