rename menu to menuentry

This commit is contained in:
buzz-lightsnack-2007 2024-04-28 21:13:27 +08:00
parent ce906d42e9
commit 8627a572a4

View file

@ -0,0 +1,24 @@
import Menu from '/scripts/GUI/menus.js';
import texts from "/scripts/mapping/read.js";
export default class MenuEntry {
/* Create all entries. */
constructor() {
// Add the context menu.
this.menu = new Menu({title: (new texts(`entry_contextMenu`)).localized, contexts: [`all`], events: {"onClicked": this.onclick}, hidden: true});
};
/*
Enable the sidebar.
*/
enable () {
this.menu.show();
}
/*
Disable.
*/
disable () {
this.menu.remove();
}
}