public UIElement(UIScreen screen, BinElement el, byte[] palette) { this.screen = screen; this.el = el; this.x1 = el.x1; this.y1 = el.y1; this.width = el.width; this.height = el.height; this.palette = palette; this.sensitive = true; this.text = el.text; this.visible = (el.flags & ElementFlags.Visible) != 0; }