-
Notifications
You must be signed in to change notification settings - Fork 0
/
AutoSave-alert.js
39 lines (35 loc) · 986 Bytes
/
AutoSave-alert.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
function getClientInfo() {
return {
"name": "Autosave Helper",
"category": "Utils",
"author": "Github @leostudiooo",
"versionNumber": 0.1,
"minEditorVersion": 65536
}
}
function main() {
// Looks like they don't provide a method to access files so it is just an alert ;(
// var absPath = getFileName();
// var backupPath = absPath.slice(0, absPath.lastIndexOf(".svp")) + ".svp";
// SV.showMessageBox("Auto-save is ON", "Start your creation without any concern and have fun!")
var alertTime = 1000 * Number(
SV.showInputBox(
"Autosave Helper",
"When do you want me to remind you to save the project? (In seconds, default 600)",
600
)
);
alrt(alertTime);
}
function alrt(t) {
SV.showMessageBox(
"Hi!",
"It's time for a Ctrl+S!"
)
SV.setTimeout(
t,
function() {
alrt(t);
}
);
}