convert classes to es6
(cherry picked from commit e7615d49a4071fe5b5f192884f142c9f3385211a)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
window.GuiKeyButton = class extends GuiButton {
|
||||
import GuiButton from "./GuiButton.js";
|
||||
|
||||
export default class GuiKeyButton extends GuiButton {
|
||||
|
||||
constructor(name, key, x, y, width, height, callback) {
|
||||
super(name + ": " + key, x, y, width, height, _ => callback(this.key));
|
||||
|
||||
Reference in New Issue
Block a user