From 14464dee966fe415d4c8e1fb8b5205653b22003f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 3 Oct 2022 19:22:23 -0400 Subject: Add prototype catbird modules. --- catbird/overlay.scm | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 catbird/overlay.scm (limited to 'catbird/overlay.scm') diff --git a/catbird/overlay.scm b/catbird/overlay.scm new file mode 100644 index 0000000..31a1442 --- /dev/null +++ b/catbird/overlay.scm @@ -0,0 +1,116 @@ +(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 + notify + open-minibuffer)) + +(define %background-color (make-color 0.2 0.2 0.2 0.8)) + +(define-class ()) + +(define (make-overlay) + (make )) + +(define-method (notify (scene ) message) + (run-script scene + (let* ((padding 8.0) + (label (make