[VM] Put the "run in VM" button behind a feature flag called "vm".

This commit is contained in:
jtuu 2019-10-02 21:34:57 +03:00
parent d9110f0041
commit 1a7e9ee9ac

View File

@ -74,17 +74,20 @@ export class QuestEditorToolBar extends ToolBar {
tooltip: "[Experimental] Run the current quest in a virtual machine." tooltip: "[Experimental] Run the current quest in a virtual machine."
}); });
super({ const children = [
children: [
new_quest_button, new_quest_button,
open_file_button, open_file_button,
save_as_button, save_as_button,
undo_button, undo_button,
redo_button, redo_button,
area_select, area_select,
run_button, ];
],
}); if (gui_store.feature_active("vm")) {
children.push(run_button);
}
super({ children });
const quest_loaded = quest_editor_store.current_quest.map(q => q != undefined); const quest_loaded = quest_editor_store.current_quest.map(q => q != undefined);