Unify folder names
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
|
||||
let plugin = plugin_create();
|
||||
|
||||
let h1 = zui_handle_create();
|
||||
let h2 = zui_handle_create({value: 5});
|
||||
let timer = 0.0;
|
||||
|
||||
plugin.draw_ui = function(ui) {
|
||||
if (zui_panel(h1, "Auto Save")) {
|
||||
zui_slider(h2, "min", 1, 15, false, 1);
|
||||
}
|
||||
}
|
||||
|
||||
plugin.update = function() {
|
||||
if (project_filepath == "") {
|
||||
return;
|
||||
}
|
||||
timer += 1 / 60;
|
||||
if (timer >= h2.value * 60) {
|
||||
timer = 0.0;
|
||||
project_save();
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,24 @@
|
||||
|
||||
let import_txt = function(path) {
|
||||
let b = data_get_blob(path);
|
||||
var filename = path.split('\\').pop().split('/').pop();
|
||||
try {
|
||||
ui_box_show_message(filename, sys_buffer_to_string(b), true);
|
||||
ui_box_click_to_hide = false;
|
||||
data_delete_blob(path);
|
||||
}
|
||||
catch(e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
let plugin = plugin_create();
|
||||
let formats = path_texture_formats;
|
||||
let importers = path_texture_importers;
|
||||
formats.push("txt");
|
||||
importers.set("txt", import_txt);
|
||||
|
||||
plugin.delete = function() {
|
||||
formats.splice(formats.indexOf("txt"), 1);
|
||||
importers.delete("txt");
|
||||
};
|
||||
Reference in New Issue
Block a user