From 773dc261c8ed484da6f7b89480ecab1d532951e1 Mon Sep 17 00:00:00 2001 From: bluesaxman Date: Tue, 20 Dec 2022 10:22:53 -0700 Subject: [PATCH] added unfinished window class to bluepixle_ui.js --- libs/bluepixle_ui.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libs/bluepixle_ui.js b/libs/bluepixle_ui.js index 4fedac4..2e80f8c 100644 --- a/libs/bluepixle_ui.js +++ b/libs/bluepixle_ui.js @@ -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;