added unfinished window class to bluepixle_ui.js
This commit is contained in:
parent
ca816835f0
commit
773dc261c8
@ -5,6 +5,16 @@ const RIGHT_KEY = "KeyD";
|
|||||||
const ACT_KEY = "KeyE";
|
const ACT_KEY = "KeyE";
|
||||||
const MENU_KEY = "KeyQ";
|
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 {
|
class bpu_menu {
|
||||||
constructor (frameBufferRef, dimentions, closeable, options, callbackArray) {
|
constructor (frameBufferRef, dimentions, closeable, options, callbackArray) {
|
||||||
this.parentBuffer = frameBufferRef;
|
this.parentBuffer = frameBufferRef;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user