From 1e7a5f911aa3f80bb968e498f147170cdcacc62b Mon Sep 17 00:00:00 2001 From: Steve Biedermann Date: Wed, 7 Oct 2026 18:54:15 +0200 Subject: [PATCH] feat: add a Monaco-based Rune script editor --- src/index.html | 157 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 143 insertions(+), 14 deletions(-) diff --git a/src/index.html b/src/index.html index 9667d11..3e67c0b 100644 --- a/src/index.html +++ b/src/index.html @@ -25,16 +25,35 @@ width: 56px; } - #script { - width: 100%; - height: 260px; - box-sizing: border-box; - background: #181818; - color: #ddd; - font: 12px monospace; + #editorPanel { + display: none; + position: fixed; + top: 0; + right: 0; + bottom: 0; + width: min(760px, 70vw); + flex-direction: column; + background: #1e1e1e; + border-left: 1px solid #444; + z-index: 10; + } + + #editorBar { + padding: 6px 10px; + display: flex; + gap: 8px; + align-items: center; + } + + #monaco { + flex: 1; + min-height: 0; } #scriptErr { + padding: 6px 10px; + max-height: 25vh; + overflow: auto; color: #f77; white-space: pre-wrap; } @@ -90,15 +109,25 @@

Stockpile

Behaviour script (Rune)

- -
-
+

Events

Legend

yellow: person, white: rabbit, red: wolf
green dot: tree, pink: berries, grey: stone
brown square: house
+
+
+ behavior.rn + + + + +
+
+
+
+