You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-manual.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -858,10 +858,13 @@ Working on a game with other people is more fun!
858
858
859
859
## Vectarine and Git
860
860
861
-
Vectarine works well with version control systems like [Git](https://git-scm.com/). If you already now Git, use it!
861
+
Vectarine works well with version control systems like [Git](https://git-scm.com/). If you already now Git, use it! You can add "luau-api" to your .gitignore
862
+
as it is automatically generated by Vectarine when the project is loaded.
862
863
863
864
If you don't know Git, do not use it, it is complex to learn.
864
865
866
+
867
+
865
868
## Vectarine and shared folders
866
869
867
870
You use shared folder using Google Drive, Dropbox to have multiple people working on the same project.
if ui.button("Refresh trusted plugin list").clicked(){
57
-
editor.plugins = trustedplugin::load_plugins();
63
+
should_refresh_plugins = true;
58
64
}
59
65
});
60
66
61
-
let plugins = &mut editor.plugins;
62
-
63
-
if plugins.is_empty(){
67
+
if editor.plugins.is_empty(){
64
68
ui.label("No plugins found").on_hover_text("Plugins are programs that extend Vectarine's functionality. They are files ending with '.vecta.plugin'. You can download plugins or create them using the template provided by Vectarine GitHub repository.");
65
69
}else{
66
70
ui.heading("Trusted plugins").on_hover_text("Trusted plugins are the list of plugins known to the editor. Only plugins of a game that are also inside the trusted list are executed.");
ui.label("⚠️ Untrusted").on_hover_text("This plugin is not trusted and won't be executed. You can add it to the list of trusted plugin to allow its execution.");
208
+
ui.label("⚠ Untrusted").on_hover_text("This plugin is not trusted and won't be executed. You can add it to the list of trusted plugins to allow its execution.");
175
209
});
176
210
row.col(|ui| {
177
-
ui.label(filename);
211
+
ui.label(display_filename);
178
212
});
179
213
row.col(|ui| {
180
214
if ui.button("Trust").clicked(){
181
-
// Trust it and refresh lists.
215
+
plugin_to_trust = Some(plugin.path.clone());
216
+
should_refresh_plugins = true;
182
217
}
183
218
});
184
219
});
185
220
}
186
221
}
187
222
}
188
223
});
224
+
225
+
// We perform actions on the plugin list outside of drawing code to avoid mutating the list of plugins while iterating on it.
226
+
// Trusting a plugin means copying it the trusted folder. We refresh the list afterwards
227
+
ifletSome(plugin_to_trust) = plugin_to_trust {
228
+
let editor_plugin_folder = get_editor_plugins_path();
0 commit comments