Mum gui init

This commit is contained in:
2023-10-04 13:18:09 +00:00
parent 2b402d7a2d
commit e02054bd10
13 changed files with 228 additions and 197 deletions

View File

@@ -504,6 +504,13 @@ var Signal = {
},
};
var game_quit = function()
{
Primum.kill();
}
Signal.register("quit", game_quit);
var Window = {
set width(w) { cmd(125, w); },
set height(h) { cmd(126, h); },
@@ -511,6 +518,14 @@ var Window = {
get height() { return cmd(49); },
get dimensions() { return [this.width, this.height]; },
set name(str) { cmd(134, str); },
boundingbox() {
return {
t: Window.height,
b: 0,
r: Window.width,
l: 0
};
},
};
Window.icon = function(path) { cmd(90, path); };