Switch to rollup for bundling
This commit is contained in:
parent
fc8d282509
commit
cfe9c55c9a
16 changed files with 131 additions and 7 deletions
8
js/gui/button.mjs
Normal file
8
js/gui/button.mjs
Normal file
|
@ -0,0 +1,8 @@
|
|||
import * as gui from './index.mjs';
|
||||
|
||||
export class GuiButton extends gui.GuiElement {
|
||||
constructor(x, y, text, onclick) {
|
||||
let textSize = gui.measureText(text, 'Arial 14pt');
|
||||
super(x, y, ...textSize);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue