mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-07 16:58:26 +08:00
[VM] Put the "run in VM" button behind a feature flag called "vm".
This commit is contained in:
parent
d9110f0041
commit
1a7e9ee9ac
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user