MOD Gui support.

This commit is contained in:
Robin E. R. Davies
2025-07-10 11:37:02 -04:00
parent e7cdd38056
commit 890368352f
45 changed files with 1971 additions and 806 deletions
+7 -1
View File
@@ -31,7 +31,7 @@ class Rect {
this.x = x; this.y = y; this.width = width; this.height = height;
}
toString() { return '{' + this.x + "," + this.y + " " + this.width + "," + this.height +"}"; }
toString() { return '{' + this.x + "," + this.y + " - " + this.width + "," + this.height +"}"; }
copy(): Rect {
let result = new Rect();
result.x = this.x;
@@ -84,6 +84,12 @@ class Rect {
this.x += xOffset;
this.y += yOffset;
}
equals(other: Rect): boolean {
return this.x === other.x &&
this.y === other.y &&
this.width === other.width &&
this.height === other.height;
}
}
export default Rect;