added unfinished window class to bluepixle_ui.js

This commit is contained in:
bluesaxman 2022-12-20 10:22:53 -07:00
parent ca816835f0
commit 773dc261c8

View File

@ -5,6 +5,16 @@ const RIGHT_KEY = "KeyD";
const ACT_KEY = "KeyE";
const MENU_KEY = "KeyQ";
class bpu_window {
constructor (frameBufferRef, coordinates, dimentions, options) {
this.parentBuffer = frameBufferRef;
this.coordinates = coordinates instanceof vector ? (coordinates.d.length == 2 ? coordinates : new vector([0,0])) : new vector([0,0]);
this.dimentions = dimentions instanceof vector ? (dimentions.d.length == 2 ? dimentions : new vector([0,0])) : new vector([0,0]);
// add options for title bar, close button, and minimize button
// add container object for window, container for optional title bar, and container for contents.
}
}
class bpu_menu {
constructor (frameBufferRef, dimentions, closeable, options, callbackArray) {
this.parentBuffer = frameBufferRef;