Skip to content
Browse files

Update workbench

  • Loading branch information...
Shinmera committed Sep 8, 2019
1 parent c90f1c4 commit 86f2041e7b1b97bdfbe8271a939c22e88d2c7f55
Showing with 7 additions and 3 deletions.
  1. +7 −3 alloy/workbench.lisp
@@ -7,11 +7,14 @@
(in-package #:org.shirakumo.fraf.trial.alloy)

(defclass workbench (trial:main) ()
(:default-initargs :clear-color (vec 0.3 0.3 0.3)))
(:default-initargs :clear-color (vec 0.1 0.1 0.1)))

(defclass dui (ui org.shirakumo.alloy.renderers.simple.presentations::default-look-and-feel)

(defmethod trial:setup-scene ((workbench workbench) scene)
(let* ((ui (trial:enter (make-instance 'ui) scene))
(let* ((ui (trial:enter (make-instance 'dui) scene))
(focus (alloy:focus-tree ui))
(layout (alloy:layout-tree ui))
(save (make-instance 'alloy:button :text "Save"))
@@ -32,7 +35,8 @@
(let ((focus (make-instance 'alloy:focus-list :parent focus)))
(alloy:enter autosave focus)
(alloy:enter title focus)
(alloy:enter save focus)))
(alloy:enter save focus))
(alloy:register ui ui))
(trial:enter (make-instance 'trial:2d-camera) scene)
(trial:enter (make-instance 'trial:render-pass) scene))

0 comments on commit 86f2041

Please sign in to comment.
You can’t perform that action at this time.