Added FileManager and TopMenuModule

The TopMenuModule binds the buttons so that they open the sub menus: at the moment it also binds those events that don't have a proper place yet. FileManager contains all the functions that have something to do with files, that is loading, opening, saving and exporting.
This commit is contained in:
unsettledgames
2021-07-15 22:21:19 +02:00
parent 9540002c6e
commit f76d05bffa
10 changed files with 303 additions and 299 deletions

View File

@ -5,12 +5,7 @@ class Input {
element.addEventListener(event,
function (e) {
// e = event
//this = element clicked
functionCallback(e, ...args);
//if you need to access the event or this variable, you need to add them
//when you define the callback, but you cant use the word this, eg:
//on('click', menuButton, function (e, button) {});
functionCallback(...args, e);
});
}