Rozi 0 Posted July 15, 2018 So basically, would it be possible to store all of the menu events in an array (menuEvent) and instead of having multiple mp.events.add("individual event" () =>{}); i can have mp.events.add(menuEvent()=>{}); Then in that mp.events.add to use a switch statement for each of the elements in the array Share this post Link to post Share on other sites
Sir BenSon 2 Posted September 17, 2018 mp.events.add("eventname"(action, params)=>{ switch(action) { .. } }); Share this post Link to post Share on other sites