;;; Catbird Game Engine ;;; Copyright © 2022 David Thompson ;;; ;;; Catbird is free software: you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation, either version 3 of the License, or ;;; (at your option) any later version. ;;; ;;; Catbird is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;;; General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with Catbird. If not, see . ;;; Commentary: ;; ;; System overlay scene for notifications and developer tools. ;; ;;; Code: (define-module (catbird overlay) #:use-module (catbird kernel) #:use-module (catbird input-map) #:use-module (catbird minibuffer) #:use-module (catbird node) #:use-module (catbird node-2d) #:use-module (catbird region) #:use-module (catbird repl) #:use-module (catbird scene) #:use-module (chickadee graphics color) #:use-module (chickadee graphics path) #:use-module (chickadee graphics text) #:use-module (chickadee math vector) #:use-module (chickadee scripting) #:use-module (ice-9 format) #:use-module (oop goops) #:export (make-overlay)) (define %background-color (make-color 0.2 0.2 0.2 0.8)) (define-class ()) (define (make-overlay) (make #:name 'overlay)) (define-method (notify (scene ) message) (run-script scene (let* ((padding 8.0) (label (make