commit 3deca851383b9cf469edc8bf3160336fcf6bd535
parent a239b4275aec1bcd09f36d3d8a52f07768b58741
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Tue, 22 Oct 2024 11:35:13 -0700
Make "Add Furniture" a top-level button
It's kind of a primary function, so I don't want it hidden in the
grouping.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js
@@ -207,7 +207,6 @@ function run(editor) {
let tg = newGroup("More...")
- tg.append(item(addFurn))
tg.append(item(ui.button("Fit to view", "Fit the floor plan into view", null, {
handlers: { click: function() {
editor.fitToView()
@@ -238,6 +237,7 @@ function run(editor) {
})))
toolbar.append(undoRedo)
+ toolbar.append(item(addFurn))
if (debug) {
toolbar.append(item(